Font class
Properties
- ascender ↔ num
-
getter/setter pair
- cffEncoding ↔ dynamic
-
getter/setter pair
- createdTimestamp ↔ num
-
getter/setter pair
-
defaultRenderOptions
↔ Map<
String, dynamic> -
getter/setter pair
- defaultWidthX ↔ dynamic
-
getter/setter pair
- descender ↔ num
-
getter/setter pair
- encoding ↔ dynamic
-
getter/setter pair
- fsSelectionValues → _FsSelectionValues
-
final
- glyphNames ↔ dynamic
-
getter/setter pair
- glyphs ↔ GlyphSet
-
getter/setter pair
- gsubrs ↔ dynamic
-
getter/setter pair
- gsubrsBias ↔ dynamic
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCIDFont ↔ dynamic
-
getter/setter pair
-
kerningPairs
↔ Map<
String, dynamic> -
getter/setter pair
-
metas
↔ Map<
String, dynamic> -
getter/setter pair
- names ↔ Map
-
getter/setter pair
- nGlyphs ↔ dynamic
-
getter/setter pair
- nominalWidthX ↔ dynamic
-
getter/setter pair
- numberOfHMetrics ↔ dynamic
-
getter/setter pair
- numGlyphs ↔ dynamic
-
getter/setter pair
- options ↔ FontOption
-
getter/setter pair
- outlinesFormat ↔ String
-
getter/setter pair
- position ↔ dynamic
-
getter/setter pair
- push ← dynamic
-
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subrs ↔ dynamic
-
getter/setter pair
- subrsBias ↔ dynamic
-
getter/setter pair
- substitution ↔ dynamic
-
getter/setter pair
- supported ↔ bool
-
getter/setter pair
-
tables
↔ Map<
String, dynamic> -
getter/setter pair
- unitsPerEm ↔ num
-
getter/setter pair
- usWeightClasses → _UsWeightClasses
-
final
- usWidthClasses → _UsWidthClasses
-
final
Methods
-
charToGlyph(
dynamic c) → dynamic - Convert the given character to a single Glyph object. Note that this function assumes that there is a one-to-one mapping between the given character and a glyph; for complex scripts this might not be the case. @param {string} @return {opentype.Glyph}
-
charToGlyphIndex(
dynamic s) → dynamic - Convert the given character to a single glyph index. Note that this function assumes that there is a one-to-one mapping between the given character and a glyph; for complex scripts this might not be the case. @param {string} @return {Number}
-
getEnglishName(
dynamic name) → dynamic -
Create an array of Path objects that represent the glyphs of a given text.
@param {string} text - The text to create.
@param {number}
x=0
- Horizontal position of the beginning of the text. @param {number}y=0
- Vertical position of the baseline of the text. @param {number}fontSize=72
- Font size in pixels. We scale the glyph units by1 / unitsPerEm * fontSize
. @param {GlyphRenderOptions=} options @return {opentype.Path[]} -
glyphIndexToName(
dynamic gid) → dynamic -
hasChar(
dynamic c) → dynamic - Check if the font has a glyph for the given character. @param {string} @return {Boolean}
-
nameToGlyph(
dynamic name) → dynamic -
nameToGlyphIndex(
dynamic name) → dynamic - Convert the given text to a list of Glyph objects. Note that there is no strict one-to-one mapping between characters and glyphs, so the list of returned glyphs can be larger or smaller than the length of the given string. @param {string} @param {GlyphRenderOptions} options @return {opentype.Glyph[]}
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited