Struct GlyphMetrics
D struct that wraps a glyph's metrics information
struct GlyphMetrics
;
Constructors
Name | Description |
---|---|
this
(min, max, advance)
|
Constructs a new GlyphMetrics by feeding in its attributes
|
Fields
Name | Type | Description |
---|---|---|
advance
|
int | Advancing 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
Name | Type | Description |
---|---|---|
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
Name | Description |
---|---|
toString
()
|
Formats the GlyphMetrics into its construction representation:
"dsdl2.ttf.GlyphMetrics(<min>, <max>, <advance>)"
|