fonts/font_file library
Enums
- FontOutlines
- The outline format of a font file.
Constants
-
kColorFontTables
→ const Set<
String> - The tables whose glyphs have their own colours.
Properties
-
kLatinLetterCodePoints
→ List<
int> -
A-Z and a-z.
final
Functions
-
cmapCodePoints(
ByteData bytes) → Set< int> - Code points that the Unicode cmap subtables map to a glyph other than 0 (.notdef).
-
colorTables(
ByteData bytes) → List< String> -
The colour tables of
bytes, sorted. Empty for a font without them, or a file that is not a font. -
fontOutlines(
ByteData bytes) → FontOutlines -
The outline format of
bytes: glyf, CFF, or CFF2. -
fontTableRecords(
ByteData bytes) → Map< String, FontTableRecord> ? -
The tables of
bytesby tag, or null ifbytesis not a TrueType or OpenType file, or its table directory is cut off. -
hasLatinLetters(
Set< int> codePoints) → bool -
Whether
codePointshas A-Z and a-z: the font draws English letters. -
unitsPerEm(
ByteData bytes) → int? -
head.unitsPerEm of
bytes, or null if it has no head table.
Typedefs
- FontTableRecord = ({int length, int offset, int record})
- Facts read from the bytes of a TrueType or OpenType font file.