pub struct CidCMap { /* private fields */ }Expand description
A parsed CID CMap that maps character codes to CIDs.
Used by predefined CMaps (e.g., Adobe-Japan1) and embedded CID CMaps
that use begincidchar/endcidchar and begincidrange/endcidrange
sections. Unlike CMap which maps to Unicode strings, this maps
character codes to numeric CID values.
Implementations§
Source§impl CidCMap
impl CidCMap
Sourcepub fn parse(data: &[u8]) -> Result<Self, BackendError>
pub fn parse(data: &[u8]) -> Result<Self, BackendError>
Parse a CID CMap from its raw byte content.
Extracts begincidchar/endcidchar and begincidrange/endcidrange
sections to build the character code → CID mapping table.
Sourcepub fn writing_mode(&self) -> u8
pub fn writing_mode(&self) -> u8
Writing mode: 0 = horizontal, 1 = vertical.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CidCMap
impl RefUnwindSafe for CidCMap
impl Send for CidCMap
impl Sync for CidCMap
impl Unpin for CidCMap
impl UnsafeUnpin for CidCMap
impl UnwindSafe for CidCMap
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