Class TtfCompositeComponent
One component entry within a TrueType composite glyph.
Inherited Members
Namespace: DRIT.Drawing.Font.Ttf.Glyphs
Assembly: DRIT.Drawing.dll
Syntax
public sealed class TtfCompositeComponent
Properties
Arg1
Raw Arg1 from the component record. When ArgsAreXYValues is false, this is a point index in the composite glyph outline (matched to Arg2 in the component).
Declaration
public short Arg1 { get; }
Property Value
| Type | Description |
|---|---|
| short |
Arg2
Raw Arg2 from the component record. When ArgsAreXYValues is false, this is a point index in the component glyph outline.
Declaration
public short Arg2 { get; }
Property Value
| Type | Description |
|---|---|
| short |
ArgsAreXYValues
True when Transform[0,2] and Transform[1,2] are xy offsets.
False when Arg1/Arg2 are matched point indices (anchor alignment).
Declaration
public bool ArgsAreXYValues { get; }
Property Value
| Type | Description |
|---|---|
| bool |
GlyphIndex
Glyph index of the referenced component glyph.
Declaration
public ushort GlyphIndex { get; }
Property Value
| Type | Description |
|---|---|
| ushort |
Transform
2×3 affine transformation matrix applied to the component:
| Transform[0,0] Transform[0,1] Transform[0,2] | | a b dx |
| Transform[1,0] Transform[1,1] Transform[1,2] | = | c d dy |
Point transform: x' = a·x + b·y + dx, y' = c·x + d·y + dy.
Identity (pure translation): a=1, b=0, c=0, d=1.
Declaration
public float[,] Transform { get; }
Property Value
| Type | Description |
|---|---|
| float[,] |