I noticed some letters dropping out when creating a TextField. At first I suspect my custom class that breaks text into lines, deals with centering, etc., but I even see the glitch in a new project with just these lines of code:
local nehe = " !\"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~\\"message_font = TTFont.new("OpenSanCondBold.ttf", 38, nehe)
tf = TextField.new(message_font, "Fine fins finally fishing for fiscal fixers.")
tf:setPosition(10,100)
stage:addChild(tf)
Rather than showing the text, anywhere a lowercase "f" is followed by a lowercase "i", those letters are missing. It shows:
Fine ns nally shing for scal xers.
I haven't seen the issue with any other text. Anyone care to try to repeat that?
I tried with a different font, f44.ttf, and it works fine. But with OpenSanCondBold.ttf, "fi" disappears.
Paul
Comments
Likes: SinisterSoft