TerminalStyle class
Font-family + sizing slice. The view derives its measured TextStyle from this; bold/italic/boldItalic land in 2O-b.
Constructors
-
TerminalStyle({String? family, List<
String> ? fallback, double size = 14.0, double lineHeight = 1.0, String? boldFamily, String? italicFamily, String? boldItalicFamily, double offsetX = 0, double offsetY = 0, double glyphOffsetX = 0, double glyphOffsetY = 0}) - TerminalStyle.defaults()
-
VS Code-aligned platform defaults (same as TerminalConfig.defaults font).
factory
Properties
- boldFamily → String?
-
final
- boldItalicFamily → String?
-
final
-
fallback
→ List<
String> -
final
- family → String
-
final
- glyphOffsetX → double
-
Shift of the glyph bitmap inside the cell (alacritty
font.glyph_offset).final - glyphOffsetY → double
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- italicFamily → String?
-
final
- lineHeight → double
-
final
- offsetX → double
-
Extra pixels added to measured cell size (alacritty
font.offset).final - offsetY → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
final
Methods
-
copyWith(
{String? family, List< String> ? fallback, double? size, double? lineHeight, String? boldFamily, String? italicFamily, String? boldItalicFamily, double? offsetX, double? offsetY, double? glyphOffsetX, double? glyphOffsetY}) → TerminalStyle -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toTextStyle(
) → TextStyle - Build the TextStyle the renderer measures cells from.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override