Hi corona community.
I am trying to write some numbers and letters with a popular font that is showed on this tutorial http://www.youtube.com/watch?v=Y6r2V4Nd2Vw.
My code dont have any bug or error, only the font dont work. Anyone see the problem? Thanks
Build.settings
settings =
{
iphone = {
plist = {
UIAppFonts = {
"BorisBlackBloxx.ttf"
}
},
},
}
main.lua
local director = require("director")
local MainGroup = display.newGroup();
local sysFonts = native.getFontNames()
for k,v in pairs(sysFonts) do print(v) end
local function Main()
MainGroup:insert(director.directorView)
director:changeScene("exp")
return true
end
Main()
exp.lua
[code]
module(…, package.seeall)
function new()
local LocalGroup = display.newGroup()
– Screen
local _W = display.contentWidth
local _H = display.contentHeight
local text = display.newText(“Game”,0,0,“BorisBlackBloxx”,24)
text.x = math.round( _W*0.5 )
text.y = math.round( _H*0.5 )
text.isVisible = true
text:toFront()
LocalGroup:insert( text )
return LocalGroup
end
[/code] [import]uid: 26056 topic_id: 25097 reply_id: 325097[/import]
[import]uid: 26056 topic_id: 25097 reply_id: 101964[/import]