Struct pdf_writer::types::UnicodeCmap
source · pub struct UnicodeCmap { /* private fields */ }Expand description
A builder for a /ToUnicode character map stream.
Implementations§
source§impl UnicodeCmap
impl UnicodeCmap
sourcepub fn new(name: Name<'_>, info: SystemInfo<'_>) -> Self
pub fn new(name: Name<'_>, info: SystemInfo<'_>) -> Self
Create a new, empty unicode character map.
sourcepub fn pair(&mut self, glyph: u16, codepoint: char)
pub fn pair(&mut self, glyph: u16, codepoint: char)
Add a mapping from a glyph ID to a codepoint.
sourcepub fn pair_with_multiple(
&mut self,
glyph: u16,
codepoints: impl IntoIterator<Item = char>
)
pub fn pair_with_multiple( &mut self, glyph: u16, codepoints: impl IntoIterator<Item = char> )
Add a mapping from a glyph ID to multiple codepoints.
Auto Trait Implementations§
impl RefUnwindSafe for UnicodeCmap
impl Send for UnicodeCmap
impl Sync for UnicodeCmap
impl Unpin for UnicodeCmap
impl UnwindSafe for UnicodeCmap
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