I’m having trouble with some fonts wrapping my timer text. As seen in the attached images. Sometimes it’s fine, like for the number 20. But sometimes the second part wraps to a new line. Here’s how I construct the timer text.
local startTimeText = runtime.saveData.time self.timeText = display.newText({ text = startTimeText, x = HSCREENW, y = SCREENH\*0.15, width = display.contentWidth, height = 300, font = font.bold, fontSize = 100, align = "center" }) self.timeText:setFillColor(1) self.gameGroup:insert(self.timeText)
As you see, the font size is a 100 and it has plenty of space with a height of 300 and a width of the entire display (~1200 units).
It seems to work on sizes smaller than 100 but not larger. It also seems to work on some fonts but not others. The only difference I’ve found is that Windows lists those not working as “OpenType layout, TrueType outlines” and those working as “TrueType outlines”. Could that be the problem? If, so can I convert these outlines in some way?