Okay, thanks for testing!
What should the code look like to make it work?
Current code:
main.lua
io.output():setvbuf('no')
print();print("");print()
-- The main group
mainGroup = display.newGroup()
-- The main function
local function main()
text1bg = display.newRect(50,50,200,75)
text1bg:setFillColor(255, 48, 14)
text1bg.x = display.contentWidth/2
text1bg.y = 60
text1 = display.newText("BebasNeue", 20,20,"BebasNeue", 50)
text2 = display.newText("Bebas Neue", 20,20,"Bebas Neue", 50)
text3 = display.newText("Bebas Neue.otf", 20,20,"Bebas Neue.otf", 50)
text4 = display.newText("BebasNeue.otf", 20,20,"BebasNeue.otf", 50)
text5 = display.newText("System.contentFont", 20, 20, system.contentFont, 50)
text1:setReferencePoint(display.CenterReferencePoint)
text1.x = display.contentWidth/2
text2:setReferencePoint(display.CenterReferencePoint)
text2.x = display.contentWidth/2
text2.y = text1.y + 100
text3:setReferencePoint(display.CenterReferencePoint)
text3.x = display.contentWidth/2
text3.y = text1.y + 200
text4:setReferencePoint(display.CenterReferencePoint)
text4.x = display.contentWidth/2
text4.y = text1.y + 300
text5:setReferencePoint(display.CenterReferencePoint)
text5.x = display.contentWidth/2
text5.y = text1.y + 400
end
main()
build.settings
settings = {
orientation = {
default = "portrait",
supported =
{
"portrait", "portraitUpsideDown"
}
},
iphone = {
plist = {
UIAppFonts = {
"BebasNeue.otf",
},
UIApplicationExitsOnSuspend = false,
UIPrerenderedIcon = true,
CFBundleIconFile = "Icon.png",
CFBundleIconFiles = {
"Icon.png" ,
"Icon@2x.png" ,
"Icon-72.png" ,
"Icon-72@2x.png" ,
"Icon-Small-50.png" ,
"Icon-Small-50@2x.png" ,
"Icon-Small.png" ,
"Icon-Small@2x.png"
},
},
},
androidPermissions = {
"android.permission.INTERNET"
},
android = {
plist = {
UIAppFonts = {
"BebasNeue.otf"
}
},
},
}
Font name is BebasNeue.otf and it’s in the same folder.
-Oskar [import]uid: 24111 topic_id: 26833 reply_id: 108918[/import]