fonts/font_height_equalizer.g library

Constants

kAscentEmByFontFamily → const Map<String, double>
Ascent from the font's hhea table, in em. Flutter's line metrics use it.
kDescentEmByFontFamily → const Map<String, double>
Descent from the font's hhea table, in em, positive below the baseline.
kFontSizeAdjustExcludedFontFamilies → const Set<String>
Families with Latin ink that the size adjust skips: rounding unitsPerEm / scale would leave the valid range or change the size by more than 0.1% (docs/design/ADR_font_size_adjust.md in telosnex, D7).
kLatinInkAboveEmByFontFamily → const Map<String, double>
How far the Latin letter ink reaches above the baseline, in em: the largest over every weight and style.
kLatinInkBelowEmByFontFamily → const Map<String, double>
How far the Latin letter ink reaches below the baseline, in em, positive below it. Same families as kLatinInkAboveEmByFontFamily.
kRasterAveragePhraseCharacterAdvanceEmByFontFamily → const Map<String, double>
kRasterCapHeightEmByFontFamily → const Map<String, double>
kRasterLowercaseP60HeightEmByFontFamily → const Map<String, double>
kRasterPhraseHeightEmByFontFamily → const Map<String, double>
kRasterUppercaseMedianHeightEmByFontFamily → const Map<String, double>
kRasterVisualHeightEmByFontFamily → const Map<String, double>
kRasterXHeightEmByFontFamily → const Map<String, double>
kReferenceRasterAveragePhraseCharacterAdvanceEm → const double
kReferenceRasterCapHeightEm → const double
kReferenceRasterLowercaseP60HeightEm → const double
kReferenceRasterPhraseHeightEm → const double
kReferenceRasterUppercaseMedianHeightEm → const double
kReferenceRasterVisualHeightEm → const double
kReferenceRasterXHeightEm → const double
kReferenceVisualHeightFamily → const String
kVisualHeightAdvanceWeight → const double
kVisualHeightXWeight → const double

Functions

ascentEmForFontFamily(String? fontFamily) → double?
Ascent from the font's hhea table, in em, when known.
descentEmForFontFamily(String? fontFamily) → double?
Descent from the font's hhea table, in em, when known.
normalizeFontFamilyForFontMetrics(String fontFamily) → String
rasterAveragePhraseCharacterAdvanceEmForFontFamily(String? fontFamily) → double?
Average phrase character advance, in em, when known.
rasterCapHeightEmForFontFamily(String? fontFamily) → double?
Raster cap height for a font family, in em, when known.
rasterVisualHeightEmForFontFamily(String? fontFamily) → double?
The visual-height metric of the font file, in the em of the file.
rasterVisualHeightScaleForFontFamily(String? fontFamily) → double
Scale that makes the letters of the font file look as large as the reference font's at the same font size. 1.0 when unknown.
rasterXHeightEmForFontFamily(String? fontFamily) → double?
Raster x-height for a font family, in em, when known.
visualHeightScaleForFontFamily(String? fontFamily) → double
Scale for normal text-theme roles relative to the reference font.