Hi,
I have an oddity … my text is sometimes getting truncated.
This happens on the simulator, Android, and (infrequently) on macOS.
(It has not happened yet on HTML5.)
The problem sometimes moves/appears/disappears if I add other text to
the app (unclear if it’s just text being displayed or…)
I recreated the problem with a tiny 125 line source, available (project, apk, and source) at:
The universe being perverse, this small subset of my app isn’t showing truncated text on Android (sigh), just on the simulator. But, I first noticed this when I saw truncated text in my app, so it’s a real problem (not just a simulator problem).
My text display is built via:
t_comment = display.newText (“explain_drill msg”, x, y, native.systemFont, 40)
t_comment.anchorX = 0
t_comment.anchorY = 0
Later, depending upon where you click, I fill in the t_comment.text field with a message of 3 to 5 lines of text:
t_comment.longdesc = drills [drill_num]
If I also do:
print (“text = '” .. drills [drill_num] .. “'”)
I see the correct untruncated text on the debugging console. The truncation in the sample is the line of dashes disappearing in three out of the five text messages. (In the real app, in addition to truncation, the text is sometimes folded (newline injected) needlessly in the middle, in addition to truncation.)
In one test case, if I make the text longer, the truncation disappears! (See comment in source.)
There are no objects on the screen that could collide with the text.
If I remove “width=”, “height=”, and “scale=” from config.lua, the problem still occurs.
My build.settings has nothing controlling the display other than specifying portrait orientation.
thanks,
Stan