Warning: Could not load font Helvetica-bold. Using default font.

I’m getting this error in the console when I draw a simple “widget.newButton”:

ultimateBtn = widget.newButton{  
 label = "Test",  
 labelColor = { default={65, 95, 106}, over={65, 95, 106} },  
 xOffset=0,  
 fontSize=24,  
 default="assets/images/ultimateBtn.png",  
 over="assets/images/ultimateBtnPressed.png",  
 width=295, height=55,  
 left=12, top=10,  
 onRelease = function()  
 end  
 }  

Any idea? I don’t specify “Helvetica-bold” anywhere in my code. I’m using CrawlSpaceLib, Storyboard, Storage and Widget. [import]uid: 128747 topic_id: 33983 reply_id: 333983[/import]

The widgets used to be hard-coded to expect “HelveticaNeue-Bold”, which is one of the default iOS fonts and comes stock on OSX. It is *not* included in any version of Windows I know of and is not freely available.

I thought they removed that dependency but I haven’t tried using widget.newButton in quite some time. It’s possible that widget is still dependent.

If the widget supports other fonts you could give it a different one to look at, else the best you can do is just ignore the message (it won’t interfere with code operation.) [import]uid: 41884 topic_id: 33983 reply_id: 135111[/import]

Thank you for the clarification :slight_smile: [import]uid: 128747 topic_id: 33983 reply_id: 135121[/import]

Are you building this on Windows or a Mac?
[import]uid: 199310 topic_id: 33983 reply_id: 135200[/import]

on Windows :slight_smile: [import]uid: 128747 topic_id: 33983 reply_id: 135236[/import]

Corona uses whatever fonts you have installed for the simulator. Windows doesn’t by default have the Helvetica family and even the Helvetica Neue is even less likely to be available for Windows.

Widgets use a Theme file to control how the widgets look. There are two things: theme_ios.lua and the widget_ios folder.

The theme_ios.lua folder defines the fonts for the various widgets and is using a mix of Helvetica and Helvetica Neue since that’s what iOS uses a lot. If you don’t have those fonts, it will fall back to system.nativeFont which for Windows is “Arial”. If you build for Android, the default font is going to be Droid Sans. As a Windows users, I’m guessing you’re probably not building for iOS anyway, so you could change copy theme_iso.lua and make a theme_android.lua and change the fonts to Arial or Droid Sans (since you can get that and install it for free).

[import]uid: 199310 topic_id: 33983 reply_id: 135250[/import]

Thank you for your help, I will try it out :slight_smile: [import]uid: 128747 topic_id: 33983 reply_id: 135259[/import]

The widgets used to be hard-coded to expect “HelveticaNeue-Bold”, which is one of the default iOS fonts and comes stock on OSX. It is *not* included in any version of Windows I know of and is not freely available.

I thought they removed that dependency but I haven’t tried using widget.newButton in quite some time. It’s possible that widget is still dependent.

If the widget supports other fonts you could give it a different one to look at, else the best you can do is just ignore the message (it won’t interfere with code operation.) [import]uid: 41884 topic_id: 33983 reply_id: 135111[/import]

Thank you for the clarification :slight_smile: [import]uid: 128747 topic_id: 33983 reply_id: 135121[/import]

Are you building this on Windows or a Mac?
[import]uid: 199310 topic_id: 33983 reply_id: 135200[/import]

on Windows :slight_smile: [import]uid: 128747 topic_id: 33983 reply_id: 135236[/import]

Corona uses whatever fonts you have installed for the simulator. Windows doesn’t by default have the Helvetica family and even the Helvetica Neue is even less likely to be available for Windows.

Widgets use a Theme file to control how the widgets look. There are two things: theme_ios.lua and the widget_ios folder.

The theme_ios.lua folder defines the fonts for the various widgets and is using a mix of Helvetica and Helvetica Neue since that’s what iOS uses a lot. If you don’t have those fonts, it will fall back to system.nativeFont which for Windows is “Arial”. If you build for Android, the default font is going to be Droid Sans. As a Windows users, I’m guessing you’re probably not building for iOS anyway, so you could change copy theme_iso.lua and make a theme_android.lua and change the fonts to Arial or Droid Sans (since you can get that and install it for free).

[import]uid: 199310 topic_id: 33983 reply_id: 135250[/import]

Thank you for your help, I will try it out :slight_smile: [import]uid: 128747 topic_id: 33983 reply_id: 135259[/import]