fontEmScale function

double fontEmScale(
  1. String? fontFamily
)

The size of the em of fontFamily as it loads, in ems of its file.

rasterVisualHeightScaleForFontFamily for a font that the size adjust scales, else 1.0. A value in em from the font tables times this is in the em of the loaded font.

Implementation

double fontEmScale(String? fontFamily) => isFontSizeAdjusted(fontFamily)
    ? rasterVisualHeightScaleForFontFamily(fontFamily)
    : 1.0;