pub struct FontDescriptor {Show 21 fields
pub font_name: Name,
pub font_family: Option<PdfString>,
pub font_stretch: Option<FontStretch>,
pub font_weight: Option<f32>,
pub flags: u32,
pub font_bbox: Rectangle,
pub italic_angle: f32,
pub ascent: Option<f32>,
pub descent: Option<f32>,
pub leading: f32,
pub cap_height: Option<f32>,
pub xheight: f32,
pub stem_v: f32,
pub stem_h: f32,
pub avg_width: f32,
pub max_width: f32,
pub missing_width: f32,
pub font_file: Option<RcRef<Stream<()>>>,
pub font_file2: Option<RcRef<Stream<()>>>,
pub font_file3: Option<RcRef<Stream<FontStream3>>>,
pub char_set: Option<PdfString>,
}Fields§
§font_name: Name§font_family: Option<PdfString>§font_stretch: Option<FontStretch>§font_weight: Option<f32>§flags: u32§font_bbox: Rectangle§italic_angle: f32§ascent: Option<f32>§descent: Option<f32>§leading: f32§cap_height: Option<f32>§xheight: f32§stem_v: f32§stem_h: f32§avg_width: f32§max_width: f32§missing_width: f32§font_file: Option<RcRef<Stream<()>>>§font_file2: Option<RcRef<Stream<()>>>§font_file3: Option<RcRef<Stream<FontStream3>>>§char_set: Option<PdfString>Implementations§
Trait Implementations§
Source§impl DataSize for FontDescriptor
impl DataSize for FontDescriptor
Source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
If
true, the type has a heap size that can vary at runtime, depending on the actual value.Source§const STATIC_HEAP_SIZE: usize = 16usize
const STATIC_HEAP_SIZE: usize = 16usize
The amount of space a value of the type always occupies. If
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.Source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Estimates the size of heap memory taken up by this value. Read more
Source§impl Debug for FontDescriptor
impl Debug for FontDescriptor
Source§impl DeepClone for FontDescriptor
impl DeepClone for FontDescriptor
fn deep_clone(&self, cloner: &mut impl Cloner) -> Result<Self>
Source§impl FromDict for FontDescriptor
impl FromDict for FontDescriptor
Source§impl Object for FontDescriptor
impl Object for FontDescriptor
Source§impl ObjectWrite for FontDescriptor
impl ObjectWrite for FontDescriptor
Source§impl ToDict for FontDescriptor
impl ToDict for FontDescriptor
Auto Trait Implementations§
impl Freeze for FontDescriptor
impl RefUnwindSafe for FontDescriptor
impl Send for FontDescriptor
impl Sync for FontDescriptor
impl Unpin for FontDescriptor
impl UnwindSafe for FontDescriptor
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> 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