GlyphPoint class
A single point in a TrueType glyph contour.
Coordinates are in font design units with Y increasing upward (TTF convention). The rasterizer must flip the Y axis when converting to screen coordinates.
onCurve determines how the point participates in Bézier curve construction:
true: the point lies on the curve (endpoint of a segment or quadratic Bézier endpoint).false: the point is a quadratic Bézier control point (off-curve).
TrueType uses quadratic Bézier curves (unlike PostScript/CFF which uses cubic). Two consecutive off-curve points imply an implicit on-curve point halfway between them.
Constructors
- GlyphPoint(double x, double y, bool onCurve)
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
transformed(
double a, double b, double c, double d) → GlyphPoint -
translated(
double dx, double dy) → GlyphPoint
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited