display.newText() UTF-8 Japanese text not showing correctly

Running the following on hardware (the emulator works fine) results in the character ‘?’ not showing for certain font sizes.
Varying the font size, test text all result in certain font sizes not showing. Seems random

local y = 0 for fontSize=6,48 do local t = display.newText( fontSize .. ":?", 0, 0, native.systemFont, fontSize ) t:setReferencePoint( display.TopLeftReferencePoint ) t.x, t.y = 0, y y = y + fontSize end [import]uid: 27242 topic_id: 10960 reply_id: 310960[/import]

What device and OS and version? [import]uid: 6787 topic_id: 10960 reply_id: 40027[/import]

Tested with:

iPod Touch 4G running iOS 4.2.1 (8C148)
iPhone 3GS running iOS 4.3.3 (8J2) [import]uid: 27242 topic_id: 10960 reply_id: 40073[/import]

Further testing:

iPhone 3G running iOS 3.1.3 (7E18) - fails test
iPod touch 1G running iOS 3.1.3 (7E18) - fails test

iPhone 4 running iOS 5.0 beta (9A5220p) - WORKS FINE
[import]uid: 27242 topic_id: 10960 reply_id: 40075[/import]

Looking this topic, Ansca team did not fix this bug since Jun 2011…

http://developer.anscamobile.com/forum/2011/12/11/japanese-texts-cant-display-property-device-newtext-bug [import]uid: 98774 topic_id: 10960 reply_id: 75434[/import]

I can see one bug report on this filed on Monday December 12th of this year. (This month.) - but none earlier, although I see the thread date.

Did you file an earlier report? What’s the bug #? (We really need a bug report in order to test issues.)

The team are looking into it.

Peach :slight_smile: [import]uid: 52491 topic_id: 10960 reply_id: 75563[/import]

This will be fixed in the next daily build (715 or after).

The reason it suddenly works in iOS5 was b/c this was actually an Apple bug that they fixed in iOS5. We found a workaround that works across iOS4 and iOS5 [import]uid: 26 topic_id: 10960 reply_id: 75592[/import]