3 ms·
> Why not just use some system library to write into a texture and then use that in your game? if you are making any non-trivial software that is supposed to r
by jcelerier 6y ago
> Why not just use some system library to write into a texture and then use that in your game?
if you are making any non-trivial software that is supposed to run on two different operating systems, you never never never want to use the OS font rendering, as you'll get text slightly wider, line breaks at different places, stuff that fits neatly in a pixmap on Windows will be 3 pixels too wide on macOS and suddenly won't fit your button, baselines are a bit different, there's the 72 / 96 dpi mess, users will complain that their document don't look the same across OSes... it's an endless can of worms. Just ship & use freetype & harfbuzz everywhere (or use Qt which can do that for you automatically).