[−][src]Struct alacritty::config::font::Font
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: bool
normal: FontDescription
Normal font face.
bold: SecondaryFontDescription
Bold font face.
italic: SecondaryFontDescription
Italic font face.
bold_italic: SecondaryFontDescription
Bold italic font face.
size: Size
Font size in points.
Implementations
impl Font
[src]
pub fn with_size(self, size: FontSize) -> Font
[src]
Get a font clone with a size modification.
pub fn size(&self) -> FontSize
[src]
pub fn normal(&self) -> &FontDescription
[src]
Get normal font description.
pub fn bold(&self) -> FontDescription
[src]
Get bold font description.
pub fn italic(&self) -> FontDescription
[src]
Get italic font description.
pub fn bold_italic(&self) -> FontDescription
[src]
Get bold italic font description.
Trait Implementations
impl Clone for Font
[src]
impl Debug for Font
[src]
impl Default for Font
[src]
impl<'de> Deserialize<'de> for Font
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for Font
[src]
impl PartialEq<Font> for Font
[src]
impl StructuralEq for Font
[src]
impl StructuralPartialEq for Font
[src]
Auto Trait Implementations
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,