GenericGlyph class
Generic glyph. Used as an intermediate storage between different types of glyphs (including OpenType's CharString, TrueType outlines).
Constructors
-
GenericGlyph(List<
Outline> outlines, Rectangle<num> bounds, [GenericGlyphMetadata? metadata]) - GenericGlyph.empty()
- GenericGlyph.fromSimpleTrueTypeGlyph(SimpleGlyph glyph)
-
factory
- GenericGlyph.fromSvg(Svg svg)
-
factory
Properties
-
bounds
→ Rectangle<
num> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metadata → GenericGlyphMetadata
-
final
- metrics → GenericGlyphMetrics
-
no setter
-
outlines
→ List<
Outline> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
center(
int ascender, int descender, int offset) → GenericGlyph -
copy(
) → GenericGlyph - Deep copy of a glyph and its outlines
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resize(
{int? ascender, int? descender, int? fontHeight, double? ratioX, double? ratioY}) → GenericGlyph - Resizes according to ascender/descender or a font height.
-
toCharStringCommands(
CharStringOptimizer optimizer) → List< CharStringCommand> -
toSimpleTrueTypeGlyph(
) → SimpleGlyph -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited