Skip to content

textmode.js / fonts / GlyphData

Interface: GlyphData

Glyph outline data for a character (TextmodeFont only).

Extends

  • GlyphOutlineData

Properties

PropertyTypeDescriptionInherited from
advanceWidthnumberAdvance width of the character.-
endPtsnumber[]End point indices for each contour.GlyphOutlineData.endPts
flagsnumber[]Point flags describing curve and line segments.GlyphOutlineData.flags
nocnumberNumber of contours (-1 for composite glyphs).GlyphOutlineData.noc
parts?unknown[]Composite glyph parts, when present.GlyphOutlineData.parts
xMaxnumberMaximum x coordinate of the glyph bounds.GlyphOutlineData.xMax
xMinnumberMinimum x coordinate of the glyph bounds.GlyphOutlineData.xMin
xsnumber[]X coordinates for all outline points.GlyphOutlineData.xs
yMaxnumberMaximum y coordinate of the glyph bounds.GlyphOutlineData.yMax
yMinnumberMinimum y coordinate of the glyph bounds.GlyphOutlineData.yMin
ysnumber[]Y coordinates for all outline points.GlyphOutlineData.ys