You’ll have to explain this one to me, Danny.
local temptext = display.newText("Hi there!", 50, 50, "Helvetica Neue", 14)
local tempbutton = widget.newButton{ x=50, y=100, label="My Button", onEvent = pressButton, font = "Helvetica Neue" }
- The font file Helvetica Neue.ttf is in the project directory.
- It’s also installed in Windows.
- Using the command to list all available fonts through the debug window, it shows up as Helvetica Neue
- Ansca’s page on config.lua does not mention the word font even once. Search comes up empty, too. (I’d strongly suggest explaining how you mean to add this stuff there, if you can)
Still, I tried adding this:
application =
{
content =
{
font = "Helvetica Neue"
},
}
And nothing. No errors thrown. It’s as if I never specified a font. The Widget comes up blank and anything else that I specify the font with just reverts to default. (If I specify a knowingly wrong font, say, " ", the widget reverts to native.systemfont. I suspect this means it is trying to use the specified font but something else is blocking it.)
So…either I’m doing something wrong with config.lua’s (undocumented?) font registration, or I’m missing something else?
Also, does config.lua need to be included in? I tried it and nothing changed, but I can’t find any info on whether that is automatically included or not.
[import]uid: 41884 topic_id: 14973 reply_id: 55428[/import]