JSPM

fontpath-glyph-iterator

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 55
  • Score
    100M100P100Q73546F
  • License MIT

used for positioning glyphs and determining their size

Package Exports

  • fontpath-glyph-iterator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fontpath-glyph-iterator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

An iterator which steps through a string and moves the pen position (in pixels) forward based on the glyph kerning and horizontal advance. This is also used to compute a bounding region for a series of glyphs, to the given available width.

This class is mostly used internally by fontpath modules, but it may be useful for an advanced or custom renderer.