pub struct LoadedFont {
pub composite: bool,
pub type3: Option<Type3>,
pub vertical: bool,
/* private fields */
}Fields§
§composite: bool§type3: Option<Type3>§vertical: boolImplementations§
Source§impl LoadedFont
impl LoadedFont
pub fn load(doc: &Document, fdict: &Dictionary) -> LoadedFont
Sourcepub fn decode(&self, bytes: &[u8]) -> Vec<(u32, u32, bool)>
pub fn decode(&self, bytes: &[u8]) -> Vec<(u32, u32, bool)>
Split a string operand into (code, cid, is_single_byte); cid is
the code itself for a simple font.
Sourcepub fn advance(&self, code: u32, cid: u32) -> f64
pub fn advance(&self, code: u32, cid: u32) -> f64
The horizontal advance of cid (a code for simple fonts) in text
space (font size 1). Type 3 advances go through the font matrix.
Sourcepub fn type3_glyph_name(&self, code: u32) -> Option<String>
pub fn type3_glyph_name(&self, code: u32) -> Option<String>
A Type 3 font’s procedure name for code (its /Encoding /Differences).
Sourcepub fn glyph(&self, code: u32, cid: u32) -> Option<Rc<Path>>
pub fn glyph(&self, code: u32, cid: u32) -> Option<Rc<Path>>
The glyph outline for a code, in text space (font size 1), cached.
pub fn has_program(&self) -> bool
Auto Trait Implementations§
impl !Freeze for LoadedFont
impl !RefUnwindSafe for LoadedFont
impl !Send for LoadedFont
impl !Sync for LoadedFont
impl Unpin for LoadedFont
impl UnsafeUnpin for LoadedFont
impl UnwindSafe for LoadedFont
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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