Struct GlyphMetrics

D struct that wraps a glyph's metrics information

struct GlyphMetrics ;

Constructors

NameDescription
this (min, max, advance) Constructs a new GlyphMetrics by feeding in its attributes

Fields

NameTypeDescription
advance intAdvancing step size of the glyph
max int[2]Tuple of the maxX and maxY values
min int[2]Tuple of the minX and minY values

Properties

NameTypeDescription
maxX[get] inout(int)Proxy to the maximum X value of the GlyphMetrics
maxY[get] inout(int)Proxy to the maximum Y value of the GlyphMetrics
minX[get] inout(int)Proxy to the minimum X value of the GlyphMetrics
minY[get] inout(int)Proxy to the minimum Y value of the GlyphMetrics

Methods

NameDescription
toString () Formats the GlyphMetrics into its construction representation: "dsdl2.ttf.GlyphMetrics(<min>, <max>, <advance>)"