Font embed options for font families?

Hi, I’m pretty new to haxe (and loving it !). So far I always found an answer to my questions by searching, but can’t seem to find anything on this one so I’m asking here.

In as3 when you embed a .ttf font which is a “font family” you have options you can specify to get the regular version or italic version etc : is there anything like that with haxe/openFL ?

(I understand I can probably split those font families into multiple .ttf, just wondering)

Thanks !

Hello, and welcome :grin:

Our tools currently expect only one font per TTF. In fact, I’m not sure if I’ve used a TTF with multiple styles before :slight_smile:

At runtime, TextField does have some support for using bold, italic, bold italic or regular variations on the same font, but generally each font is treated separately

Let me know if it works for you :slight_smile:

Thanks singmajesty :slight_smile:

I know about TextFormat options : your work on openFL is incredible by the way !

I’m porting a game from as3, and now that “SourceSansPro-Regular.ttf” will only display as italic, ignoring everything else ^^

No biggie though, I’ll split it