pub struct FontIdentity {
pub name: Option<String>,
pub file_hash: u64,
}Expand description
Identity of one parsed font face, in primary-then-fallback order. Hashes identify the font source, not a cryptographic checksum or a promise of identical rasterization across different text-engine versions/platforms.
Fields§
§name: Option<String>Face name when present in the font’s metadata.
file_hash: u64Non-cryptographic font-source hash supplied by the text engine.
Trait Implementations§
Source§impl Clone for FontIdentity
impl Clone for FontIdentity
Source§impl Debug for FontIdentity
impl Debug for FontIdentity
impl Eq for FontIdentity
Source§impl PartialEq for FontIdentity
impl PartialEq for FontIdentity
impl StructuralPartialEq for FontIdentity
Auto Trait Implementations§
impl Forget for FontIdentity
impl Freeze for FontIdentity
impl Move for FontIdentity
impl RefUnwindSafe for FontIdentity
impl Send for FontIdentity
impl Sync for FontIdentity
impl Unpin for FontIdentity
impl UnsafeUnpin for FontIdentity
impl UnwindSafe for FontIdentity
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