pub trait FontExt: 'static {
// Required methods
fn describe(&self) -> FontDescription;
fn describe_with_absolute_size(&self) -> FontDescription;
fn coverage(&self, language: &Language) -> Coverage;
fn face(&self) -> FontFace;
fn font_map(&self) -> Option<FontMap>;
fn glyph_extents(&self, glyph: Glyph) -> (Rectangle, Rectangle);
fn metrics(&self, language: Option<&Language>) -> FontMetrics;
fn has_char(&self, wc: char) -> bool;
fn serialize(&self) -> Bytes;
}
Available on crate feature v1_46
only.
Available on crate feature v1_44
only.
Available on crate feature v1_50
only.