pub struct FontInfo {
pub name: String,
pub size: Option<f32>,
pub font_weight: Option<f32>,
pub italic_angle: Option<f32>,
}Expand description
Font metadata resolved from a PDF font dictionary.
Fields§
§name: StringThe normalized font name (subset prefix stripped).
size: Option<f32>Optional font size from the font descriptor (diagnostic only; Tf state is authoritative).
font_weight: Option<f32>FontWeight from the font descriptor (e.g., 700 = bold). None if not present.
italic_angle: Option<f32>ItalicAngle from the font descriptor. Non-zero indicates italic/oblique. None if not present.
Trait Implementations§
impl StructuralPartialEq for FontInfo
Auto Trait Implementations§
impl Freeze for FontInfo
impl RefUnwindSafe for FontInfo
impl Send for FontInfo
impl Sync for FontInfo
impl Unpin for FontInfo
impl UnsafeUnpin for FontInfo
impl UnwindSafe for FontInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more