pub struct Font {
pub subtype: FontType,
pub name: Option<Name>,
pub data: FontData,
pub encoding: Option<Encoding>,
pub to_unicode: Option<RcRef<Stream<()>>>,
pub _other: Dictionary,
}
Fields§
§subtype: FontType
§name: Option<Name>
§data: FontData
§encoding: Option<Encoding>
§to_unicode: Option<RcRef<Stream<()>>>
§_other: Dictionary
other keys not mapped in other places. May change over time without notice, and adding things probably will break things. So don’t expect this to be part of the stable API
Implementations§
source§impl Font
impl Font
pub fn embedded_data(&self, resolve: &impl Resolve) -> Option<Result<Arc<[u8]>>>
pub fn is_cid(&self) -> bool
pub fn cid_to_gid_map(&self) -> Option<&CidToGidMap>
pub fn encoding(&self) -> Option<&Encoding>
pub fn info(&self) -> Option<&TFont>
pub fn widths(&self, resolve: &impl Resolve) -> Result<Option<Widths>>
pub fn to_unicode(&self, resolve: &impl Resolve) -> Option<Result<ToUnicodeMap>>
Trait Implementations§
source§impl DataSize for Font
impl DataSize for Font
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 = 72usize
const STATIC_HEAP_SIZE: usize = 72usize
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 ObjectWrite for Font
impl ObjectWrite for Font
Auto Trait Implementations§
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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