pub struct FontDemand {
pub families: Vec<String>,
pub codepoints: Vec<(char, FontAttrs)>,
}Expand description
FontDemand describes font requests that no registered face could satisfy.
Hosts can use it to load additional fonts and lay out affected text again.
Fields§
§families: Vec<String>families lists requested family names with no registered match.
codepoints: Vec<(char, FontAttrs)>codepoints lists uncovered characters and their requested attributes.
Implementations§
Source§impl FontDemand
impl FontDemand
Sourcepub fn add_family(&mut self, name: &str)
pub fn add_family(&mut self, name: &str)
add_family records a family name no face answered, once.
Sourcepub fn add_codepoint(&mut self, ch: char, attrs: FontAttrs)
pub fn add_codepoint(&mut self, ch: char, attrs: FontAttrs)
add_codepoint records a character no face covered at attrs, once.
Trait Implementations§
Source§impl Clone for FontDemand
impl Clone for FontDemand
Source§fn clone(&self) -> FontDemand
fn clone(&self) -> FontDemand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontDemand
impl Debug for FontDemand
Source§impl Default for FontDemand
impl Default for FontDemand
Source§fn default() -> FontDemand
fn default() -> FontDemand
Returns the “default value” for a type. Read more
Source§impl PartialEq for FontDemand
impl PartialEq for FontDemand
impl StructuralPartialEq for FontDemand
Auto Trait Implementations§
impl Forget for FontDemand
impl Freeze for FontDemandwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<(char, FontAttrs)>: Freeze,
impl Move for FontDemand
impl RefUnwindSafe for FontDemand
impl Send for FontDemandwhere
RawVecInner: Send,
impl Sync for FontDemandwhere
RawVecInner: Sync,
impl Unpin for FontDemand
impl UnsafeUnpin for FontDemandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(char, FontAttrs)>: UnsafeUnpin,
impl UnwindSafe for FontDemandwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more