build_helpers library

Classes

FontFile
A single font file belonging to a font family, used by addFontFamily.

Functions

addFont(BuildInput input, BuildOutputBuilder output, {required String family, required String filePath, String? name, int? weight, String? style, bool treeShake = false, AssetRouting? routing}) → void
Adds a single font file at filePath (relative to the package root) to the output as a FontAsset of the given family.
addFontFamily(BuildInput input, BuildOutputBuilder output, {required String family, required List<FontFile> fonts, bool treeShake = false, AssetRouting? routing}) → void
Adds all fonts of a family to the output.