I’ve read several threads on this and I think I’m doing it right…
My build.config file:
settings =
{
iphone =
{
plist=
{
UIStatusBarHidden = true,
UIAppFonts =
{
"tt\_bobo.ttf",
"laffayette\_comic\_pro.ttf",
},
},
},
}
In my lua code:
hoboFont = native.newFont( "Hobo", 32 )
comicFont = native.newFont("Laffayette Comic Pro", 24)
...
playButtonText = display.newText( "Tap to Start", 0, 0, comicFont, 24)
playButtonText:setTextColor( 255, 0, 0, 255 )
playButtonText.font = comicFont;
playButtonText.x = display.contentWidth / 2
playButtonText.y = display.contentHeight - 60
playButton:insert(playButtonText)
playButton.isVisible = true
I get a lovely system font. Happens in both the Corona Simulator, the XCode Simulator and my iPhone. Its gotta be something simple, but I’m clueless…
Thanks
Rob
[import]uid: 19626 topic_id: 7707 reply_id: 307707[/import]