proc sizePt(font: Font): float32 {...}{.raises: [], tags: [].}
-
Gets font size in Pt or Point units.
proc sizePt=(font: Font; sizePoints: float32) {...}{.raises: [], tags: [].}
-
Sets font size in Pt or Point units.
proc sizeEm(font: Font): float32 {...}{.raises: [], tags: [].}
-
Gets font size in em units.
proc sizeEm=(font: Font; sizeEm: float32) {...}{.raises: [], tags: [].}
-
Gets font size in em units.
proc sizePr(font: Font): float32 {...}{.raises: [], tags: [].}
-
Gets font size in % or Percent units.
proc sizePr=(font: Font; sizePercent: float32) {...}{.raises: [], tags: [].}
-
Gets font size in % or Percent units.
proc scale(font: Font): float32 {...}{.raises: [], tags: [].}
-
Gets the internal scaling of font units to pixles.
proc letterHeight(font: Font): float32 {...}{.raises: [], tags: [].}
-
Gets the current letter height based on ascent and descent and the current size and lineheight.
proc baseline(font: Font): float32 {...}{.raises: [], tags: [].}
-
Gets the baseline of the font based on current size and lineheight.
proc capline(font: Font): float32 {...}{.raises: [], tags: [].}
-
Gets the current capline of the font based on current size and lineheight.
proc intersects(a, b: Segment; at: var Vec2): bool {...}{.raises: [], tags: [].}
-
Checks if the a segment intersects b segment. If it returns true, at will have point of intersection
proc glyphPathToCommands(glyph: Glyph) {...}{.raises: [ValueError], tags: [].}
-
Converts a glyph into lines-shape
proc commandsToShapes(glyph: Glyph) {...}{.raises: [ValueError], tags: [].}
-
Converts SVG-like commands to shape made out of lines