module

NanoSVG::FontStore

Family name → Font resolution. Explicit registrations win; system families go through fontconfig, so the same file Pango/librsvg pick is picked (family + weight + slant pattern).

Class methods

font(family : String, bold : Bool, italic : Bool) : Font | Nil
Source
register(path : String, families : String | Enumerable(String), bold : Bool = false, italic : Bool = false) : Nil

Registers a font file for a family (and variants): overrides fontconfig for that key.

Source

Nested types