int nvg::LoadFont(const string&in filename, bool fallbackIcons = false, bool fallbackArial = false)

Load a font for use in the NanoVG API.

string filename

The path of the font to load. Must be relative to the root of your plugin. For legacy reasons, this can also be the user fonts folder, or Openplanet's own fonts folder.

bool fallbackIcons

Whether to load icon fonts as a fallback. Warning: Don't use fallback fonts if you don't need them! Fallback fonts cost a lot of memory!

bool fallbackArial

Whether to load Arial as part of the fallback. This allows for many more Unicode characters to render. For this to work, fallback must be true.

Returns int