Struct alacritty::config::font::Font [−][src]
pub struct Font {
pub offset: Delta<i8>,
pub glyph_offset: Delta<i8>,
pub use_thin_strokes: bool,
normal: FontDescription,
bold: SecondaryFontDescription,
italic: SecondaryFontDescription,
bold_italic: SecondaryFontDescription,
size: Size,
}Expand description
Font config.
Defaults are provided at the level of this struct per platform, but not per field in this struct. It might be nice in the future to have defaults for each value independently. Alternatively, maybe erroring when the user doesn’t provide complete config is Ok.
Fields
offset: Delta<i8>Extra spacing per character.
glyph_offset: Delta<i8>Glyph offset within character cell.
use_thin_strokes: boolnormal: FontDescriptionNormal font face.
bold: SecondaryFontDescriptionBold font face.
italic: SecondaryFontDescriptionItalic font face.
bold_italic: SecondaryFontDescriptionBold italic font face.
size: SizeFont size in points.
Implementations
Get normal font description.
Get bold font description.
Get italic font description.
Get bold italic font description.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Font
impl UnwindSafe for Font
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.