instantia Posted May 11, 2014 Share Posted May 11, 2014 Strangely shows the textdoubled pixels: fragment code .fnt: <char id="49" x="192" y="2" width="2" height="7" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15" letter="1"/> <char id="50" x="197" y="2" width="5" height="7" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15" letter="2"/> <char id="51" x="204" y="2" width="5" height="7" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15" letter="3"/> <char id="52" x="211" y="2" width="5" height="7" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15" letter="4"/> <char id="53" x="218" y="2" width="5" height="7" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15" letter="5"/> <char id="54" x="225" y="2" width="5" height="7" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15" letter="6"/> <char id="55" x="232" y="2" width="5" height="7" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15" letter="7"/> <char id="56" x="239" y="2" width="5" height="7" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15" letter="8"/> <char id="57" x="246" y="2" width="5" height="7" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15" letter="9"/>font .pngWhy is there such a shift? Name: new PIXI.BitmapText(mName, {font: "17px nbp", align: "center"}),Name.position.x = roundHalf(x - Name.textWidth / 2);Name.position.y = roundHalf(y - Name.textHeight / 2);roundHalf© = (c << 0) - 0.5;Why is this split pixels? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.