hey guys,
I’m using “Roboto” as a font in my app. Everything works fine with the custom font, but I can’t use any other font style than “regular”.
But I want to use Bold, Black or Thin too at some points. There are different files for the different font types. I also found the font names (for windows simulator)
But it doesnt change, not on my android device and not in the simulator.
Here is my code for the font:
[lua]-- load roboto font
if “Win” == system.getInfo( “platformName” ) then
robotoFont = native.newFont( “Roboto”)
robotoFontBlack = native.newFont( “Roboto Bk”)
robotoFontThin = native.newFont( “Roboto Th”)
elseif “Android” == system.getInfo( “platformName” ) then
robotoFont = native.newFont( “RobotoRegular”)
robotoFontBlack = native.newFont( “RobotoBlack”)
robotoFontThin = native.newFont( “RobotoThin”)
end[/lua]
I placed the font files in the project folder (and as I said, the regular font works)
Any ideas?