Type3Font

Struct Type3Font 

Source
pub struct Type3Font<'a> {
    pub name: Option<PdfName<'a>>,
    pub font_bbox: Rectangle<i32>,
    pub font_matrix: Matrix<f32>,
    pub first_char: u8,
    pub last_char: u8,
    pub encoding: Resource<Encoding<'a>>,
    pub char_procs: Dict<ObjRef>,
    pub widths: &'a [u32],
}
Expand description

A type 3 font resource

Fields§

§name: Option<PdfName<'a>>

The name of the object

§font_bbox: Rectangle<i32>

The largest boundig box that fits all glyphs

§font_matrix: Matrix<f32>

The matrix to map glyph space into text space

§first_char: u8

The first used char key

§last_char: u8

The last used char key

§encoding: Resource<Encoding<'a>>

Dict of encoding value to char names

§char_procs: Dict<ObjRef>

Dict of char names to drawing procedures

§widths: &'a [u32]

Width of every char between first and last

Auto Trait Implementations§

§

impl<'a> Freeze for Type3Font<'a>

§

impl<'a> RefUnwindSafe for Type3Font<'a>

§

impl<'a> Send for Type3Font<'a>

§

impl<'a> Sync for Type3Font<'a>

§

impl<'a> Unpin for Type3Font<'a>

§

impl<'a> UnwindSafe for Type3Font<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.