Loads a true type font using arsd.ttf that can be drawn as images on windows
through a ScreenPainter. That module must be compiled in if you choose to use this function.
You should also consider OperatingSystemFont, which loads and draws a font with
facilities native to the user's operating system. You might also consider
arsd.ttf.OpenGlLimitedFont or using arsd.nanovega if you are making some kind
of game, as they have their own ways to draw text too.
Be warned: this can be slow, especially on remote connections to the X server, since
it needs to create and transfer bitmaps instead of just text. The DrawableFont interface
offers DrawableFont.cacheString which can help with this, sometimes. You might want to
experiment in your specific case.
Loads a true type font using arsd.ttf that can be drawn as images on windows through a ScreenPainter. That module must be compiled in if you choose to use this function.
You should also consider OperatingSystemFont, which loads and draws a font with facilities native to the user's operating system. You might also consider arsd.ttf.OpenGlLimitedFont or using arsd.nanovega if you are making some kind of game, as they have their own ways to draw text too.
Be warned: this can be slow, especially on remote connections to the X server, since it needs to create and transfer bitmaps instead of just text. The DrawableFont interface offers DrawableFont.cacheString which can help with this, sometimes. You might want to experiment in your specific case.
Please note that the return type of DrawableFont also includes an implementation of MeasurableFont.