This section lists the notable non-API breaking changes.
(Only Affects Tests)
FlutterTest is now the default test font
FlutterTest font replaced
Ahem as the default font in tests: when
fontFamily isn’t specified, or the font families specified are not registered,
tests use the
FlutterTest font to render text. The
Ahem font is still
available in tests if specified as the
fontFamily to use.
FlutterTest font produces more precise font and glyph metrics than
and the metrics are generally font-engine agnostic.
Check out the Flutter Test Fonts
wiki page for more details about the test font.
FlutterTest font looks almost identical to the old default
glyph for most characters is a box that fills the em square. The notable
differences between the
FlutterTest font and
Ahem font are:
1. Different baseline location
FlutterTest font’s ascent and descent are 0.75 em and 0.25 em, while
Ahem’s are 0.8 em and 0.2 em, respectively.
In the example golden image change below, the white blocks are text rendered
FlutterTest. The second character is taller in the new font
since it has a larger descent.
2. Different decoration position
The underline location is slightly higher in
In the example golden image change below, the 3 lines of white blocks are text
FlutterTest. The blue dashed lines indicate the
positions for each line.
3. The glyph used for unmapped characters are slightly different
Unmapped characters are rendered as hollow boxes in both fonts, with a slight difference:
FlutterTestfont was added in: Add new test font
FlutterTestfont was made the default in: Make FlutterTest the default test font