nuklear icon indicating copy to clipboard operation
nuklear copied to clipboard

.ttc font support?

Open ScalletaZ opened this issue 5 years ago • 1 comments

I got crashed on nk_font_atlas_add_from_file with a ttc font.

Is ttc font supported?

ScalletaZ avatar Mar 07 '19 06:03 ScalletaZ

no. that function is meant to work with TTF only. If you really want to use that API you'd need to reimplement nk_tt_InitFont (called here). The other way you have is not to bake your font at all (render glyphs to an in memory image) and use struct nk_user_font yourself, such as in GDI demo

irtusb avatar Mar 08 '19 13:03 irtusb