Previous Element | Next Element |
Glyph
This defines a glyph used as part of a FontDefinition
element. Glyphs are composed solely of vector drawing
elements. Ann enclosed areas will be rendered using the
specified font color using an even-odd fill style. All
glyphs are defined in a square of width 51.2 and height of
51.2. The ascent of the glyph is specified using negative
y-axis coordinates and the descent of the glyph is specified
using positive y-axis coordinates. Positive coordinates on
the x-axis are rendered to the right of the current drawing
position and negative coordinates are drawn to the left.
When rendering, all coordinate positions and advances are
scaled by 1/51.2 * TextSize. All inner glyph boundaries must
be specified in the opposite direction to the outer boundary
otherwise the entire glyph will be filled.
Attributes
code | The character code represented by this glyph. | |
Type | Integer | |
From Value | 1 | |
To Value | 65535 | |
char | Optional informational attribute illustrating the ASCII character represented by the code. Only output if the code is in the range [32 - 126]. | |
Type | String | |
advance | The distance along the x-axis to move the current drawing position when this glyph has been rendered. This is normally equal to the width of the glyph + 2* minimum x-axis coordinate. | |
Type | String | |
bounds | The bounding rectangle of the glyph specified as 'bounds( minX, minY, maxX, maxY)'. If the bounding rectangle is unknown, a value of 'auto' can be specified and the glyph bounds will be calculated automatically. Incorrect specification of this may result in parts of the glyph being occluded. | |
Value Template | bounds(Coord, Coord, Coord, Coord) | |
Type | Float | |
Default Value | auto |
Child Elements
ShapeTransformMove
Line
Curve
CArc
EArc
Circle
Rect
Path
Polyline
Parent Elements
GlyphsExamples
User-Defined Font ExamplePrevious Element | Next Element |