pub struct SubstFont {
pub charset: Charset,
pub italic_angle: i32,
pub is_builtin_generic: bool,
/* private fields */
}Expand description
The record a substitution produces.
weight and weight_cjk are Option where PDFium overloads 0 to mean
“the face’s natural weight” (D12). The sentinel is real behavior — it makes
the embolden level 0 and the Multiple-Master axis take its default — so the
mapping back to 0 happens at the two places the arithmetic needs it, not
silently at construction.
Fields§
§charset: CharsetThe charset the face was chosen for.
italic_angle: i32The synthetic italic angle, in degrees. Negative slants right.
is_builtin_generic: boolWhether this is one of the two built-in Multiple-Master generics, which suppresses artificial emboldening entirely — the design space handles weight properly, so dilating on top would double-count it.
Implementations§
Trait Implementations§
impl Eq for SubstFont
impl StructuralPartialEq for SubstFont
Auto Trait Implementations§
impl Freeze for SubstFont
impl RefUnwindSafe for SubstFont
impl Send for SubstFont
impl Sync for SubstFont
impl Unpin for SubstFont
impl UnsafeUnpin for SubstFont
impl UnwindSafe for SubstFont
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