pub struct FontDemand {
pub families: Vec<String>,
pub codepoints: Vec<(char, FontAttrs)>,
}Expand description
What shaping could not resolve — the host’s font-loading demand signal
(Flutter web’s missing-font detection reshaped as an API).
families: requested names the collection has NO face for at all.
codepoints: chars NO present face covers, each with the attrs of the
span that wanted it — a bold span’s missing glyph should be answered
with a bold face (for subset-chunk families this doubles as “which
chunk is missing”). valo detects; the host owns the loading policy —
Google, a mirror, bundled files, the OS, anything.
Fields§
§families: Vec<String>§codepoints: Vec<(char, FontAttrs)>Implementations§
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 Freeze for FontDemand
impl RefUnwindSafe for FontDemand
impl Send for FontDemand
impl Sync for FontDemand
impl Unpin for FontDemand
impl UnsafeUnpin for FontDemand
impl UnwindSafe for FontDemand
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