The Font class encapsulates a font. Its size is in points, which the display scales, so one Font reads the same on every display. The derivation methods (bold, italic, underlined, larger, smaller, scaled, withPointSize) each return a new Font with one change and leave this one as it was, so a heading can be written as SystemFonts.Default.bold().scaled(1.4).
A new, bold Font.
Returns a new Font like this one but bold; this font is unchanged.
Gets the facename of the font.
Gets the family of the font.
Gets the point size of the font.
Gets the style of the font.
A new, italic Font.
Returns a new Font like this one but italic; this font is unchanged.
A new, larger Font.
Returns a new Font like this one with its point size multiplied by 1.2; this font is unchanged.
A new Font of the scaled size.
Returns a new Font like this one with its point size multiplied by factor; this font is unchanged. A factor that is not a positive number leaves the size as it is.
Sets the new facename of the font.
Sets the new family of the font, where family is one of Font.Default, Font.Roman, Font.Swiss, or Font.Modern.
Sets the new size of the font in points.
Sets the new style of the font to a combination of Font.Normal, Font.Bold, Font.Italic, and Font.Underlined.
A new, smaller Font.
Returns a new Font like this one with its point size divided by 1.2; this font is unchanged.
A new, underlined Font.
Returns a new Font like this one but underlined; this font is unchanged.
A new Font of that size.
Returns a new Font like this one at size points; this font is unchanged. A size that is not a positive number leaves the size as it is.