FontGlyph
Constructors
namestringThe glyph name (e.g. "Aring", "five")
xnumberDistance along path, including advanceWidth and kerning of previous characters.
advanceWidthnumberThe width to advance when drawing this glyph. We use this to find the
"designed" origin of the glyph. Advance width does not change in response
to letter spacing or kerning. For a value that includes these
adjustments, see advanceX.
advanceXnumberThe amount to move the cursor from the previous cursor position when
drawing this glyph. Unlike advanceWidth, this value incorporates things
like letter spacing and kerning.
geometryThe geometry associated with the glyph. This is currently always a
CompoundPath. Glyph geometry is not pre-transformed, so you'll probably
need to translate this by x.
Properties
The glyph name (e.g. "Aring", "five")
Distance along path, including advanceWidth and kerning of previous characters.
The width to advance when drawing this glyph. We use this to find the
"designed" origin of the glyph. Advance width does not change in response
to letter spacing or kerning. For a value that includes these
adjustments, see advanceX.
The amount to move the cursor from the previous cursor position when
drawing this glyph. Unlike advanceWidth, this value incorporates things
like letter spacing and kerning.
The geometry associated with the glyph. This is currently always a
CompoundPath. Glyph geometry is not pre-transformed, so you'll probably
need to translate this by x.
Methods
Returns a copy of this glyph.
Returns true if this glyph contains no geometry. Glyphs for whitespace characters such as spaces typically don't contain any geometry.
Freetype's article on glyph metrics goes in depth about the various metrics.
We're thinking about a parametric Cuttle version of this image for any font/glyph. 🧐