pixie/fontformats/svgfont

  Source   Edit

Types

SvgFont = ref object
  unitsPerEm*, ascent*, descent*: float32
  advances: Table[Rune, float32]
  glyphPaths: Table[Rune, Path]
  kerningPairs: Table[(Rune, Rune), float32]
  missingGlyphAdvance: float32
  missingGlyphPath: Path
  Source   Edit

Procs

proc getAdvance(svgFont: SvgFont; rune: Rune): float32 {....raises: [], tags: [].}
  Source   Edit
proc getGlyphPath(svgFont: SvgFont; rune: Rune): Path {....raises: [], tags: [].}
  Source   Edit
proc getKerningAdjustment(svgFont: SvgFont; left, right: Rune): float32 {.
    ...raises: [], tags: [].}
  Source   Edit
proc hasGlyph(svgFont: SvgFont; rune: Rune): bool {....raises: [], tags: [].}
  Source   Edit
proc parseSvgFont(buf: string): SvgFont {....raises: [PixieError],
    tags: [ReadIOEffect, RootEffect, WriteIOEffect].}
  Source   Edit