icon_font_generator library

Classes

FlutterClassGenerator
A helper for generating Flutter-compatible class with IconData objects for each icon.
GenericGlyph
Generic glyph. Used as an intermediate storage between different types of glyphs (including OpenType's CharString, TrueType outlines).
GenericGlyphMetadata
Metadata for a generic glyph.
GenericGlyphMetrics
Metrics for a generic glyph.
OpenTypeFont
An OpenType font. Contains either TrueType (glyf table) or OpenType (CFF2 table) outlines
OTFReader
A helper for reading an OpenType font from a binary data.
OTFWriter
A helper for writing an OpenType font as a binary data.
Outline
A helper for working with outlines (including transforming).
Svg
SVG root element.
SvgToOtfResult
Result of svg-to-otf conversion.

Enums

FillRule
How shapes with more than one closed outlines are filled.

Extensions

NumPretty on num
XmlNodeUtils on XmlNode

Functions

generateFlutterClass({required List<GenericGlyph> glyphList, String? className, String? familyName, String? fontFileName, String? package, int? indent}) String
Generates a Flutter-compatible class for a list of glyphs.
readFromFile(String path) OpenTypeFont
Reads OpenType font from a file.
svgToOtf({required Map<String, String> svgMap, bool? ignoreShapes, bool? normalize, String? fontName}) SvgToOtfResult
Converts SVG icons to OTF font.
writeToFile(String path, OpenTypeFont font) → void
Writes OpenType font to a file.