Function FreeTypeFontManager.registerFont

register freetype font by filename - optinally font properties can be passed if known (e.g. from libfontconfig).

Prototype

bool registerFont(
  string filename,
  FontFamily family = cast(FontFamily)cast(ubyte)1u,
  string face = null,
  bool italic = false,
  int weight = 0,
  bool dontLoadFile = false
);

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0