Lobster font refuses to work

Hi Folks!

I’ve been trying to get the “Lobster 1.4” font to work with Corona to no avail. I tried many different aproaches, from editing the font in Type Light by converting the font to TTF to editing the headers.

Did anyone else use this font and got it to work?

Here’s the source:
http://www.dafont.com/search.php?q=lobster

Thanks! [import]uid: 86582 topic_id: 28992 reply_id: 328992[/import]

For iOS you can leave it as a OTF font, but if you want it on Android you will have to have at a TTF.

It’s working for me:

main.lua

x = display.newText("Hello World", 0, 0, "Lobster 1.4", 96)  
x.x = display.contentCenterX  
x.y = display.contentCenterY  

build.settings

 plist=  
 {  
 UIInterfaceOrientation = "UIInterfaceOrientationLandscapeLeft",  
 UISupportedInterfaceOrientations =  
 {  
 "UIInterfaceOrientationLandscapeLeft",  
 "UIInterfaceOrientationLandscapeRight"  
 },  
 MinimumOSVersion="4.3",  
 UIApplicationExitsOnSuspend = false,  
 UIPrerenderedIcon="YES",  
 UIStatusBarHidden=true,  
 CFBundleIconFile = "Icon.png",  
  
 UIAppFonts =  
 {  
 "Lobster 1.4.otf",  
 },  
 },  

Now you will have to install the font on your Mac in fontbook for the Simulator to see it. For a device build, the font has to be in the same folder with main.lua.

Android does not use the build.settings file. But like I said above, it will need to be a TTF file for android.
[import]uid: 19626 topic_id: 28992 reply_id: 116697[/import]

Thanks for helping, Rob! I appreciate it. However, I tried its original OTF type, but neither works here. I’m on the Windows simulator, so I guess it’s a Windows simulator problem. I’ll go test it on the Mac simulator asap and will let you know if it makes a difference or not. [import]uid: 86582 topic_id: 28992 reply_id: 116709[/import]

If you’re on windows, it will also have to be a TTF and it will need to be installed so all window’s apps can see it.

Don’t forget to restart Corona after installing the font since most windows apps fetch the list of fonts on startup and never check again while they are running (Mac may do that too)
[import]uid: 19626 topic_id: 28992 reply_id: 116714[/import]