Struct printpdf::ExternalFont
source · [−]pub struct ExternalFont { /* private fields */ }
Implementations
sourceimpl ExternalFont
impl ExternalFont
sourcepub fn new<R>(font_stream: R, font_index: usize) -> Result<Self, Error> where
R: Read,
pub fn new<R>(font_stream: R, font_index: usize) -> Result<Self, Error> where
R: Read,
Creates a new font. The index
is used for naming / identifying the font
This method uses owned_ttf_parser
to parse the font data. If you want to use a different
font backend, use the with_font_data
method instead.
Trait Implementations
sourceimpl Clone for ExternalFont
impl Clone for ExternalFont
sourcefn clone(&self) -> ExternalFont
fn clone(&self) -> ExternalFont
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExternalFont
impl Debug for ExternalFont
sourceimpl PartialEq<ExternalFont> for ExternalFont
impl PartialEq<ExternalFont> for ExternalFont
sourcefn eq(&self, other: &ExternalFont) -> bool
fn eq(&self, other: &ExternalFont) -> bool
Two fonts are equal if their names are equal, the contents aren’t checked
Auto Trait Implementations
impl !RefUnwindSafe for ExternalFont
impl !Send for ExternalFont
impl !Sync for ExternalFont
impl Unpin for ExternalFont
impl !UnwindSafe for ExternalFont
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more