View definition

type FontFamilies

Defined in


FontFamilies represents an enumerator over the font families available for use by package ui. A FontFamilies object behaves similarly to a []string, except that since family names are loaded on demand (depending on the operating system), it is not an actual []string. You call ListFontFamilies to obtain a FontFamilies object, which should reflect the available fonts at the time of the call (TODO verify). Use NumFamilies to get the number of families, and Family to get the name of a given family by index. When finished, call Free.

There is no guarantee that the list of families is sorted. You will need to do sorting yourself if you need it.

TODO thread affinity

FontFamilies is referenced in 1 repository