NanoSVG::Font
Inherits NanoSVG::BinRead < Reference < Object
Constructors
new(data : Bytes)
SourceClass methods
load(path : String) : Font | Nil
SourceInstance methods
advance(gid : Int32) : Float32
Sourceascender
Sourcedescender
Sourceglyph(gid : Int32) : Glyph | Nil
Sourcekern(l_gid : Int32, r_gid : Int32) : Float32
Kerning between two glyph ids in font units (positive moves the
second glyph right). GPOS first, legacy kern as a fallback.
units_per_em
Sourcex_height
X-height in font units: OS/2 sxHeight when present (v2+), else the top of the lowercase 'x' outline.