pub struct Dmap(pub Cmap);Expand description
Delta map table (table_D_M_A_P_): the same structure as cmap, whose
mappings it takes precedence over.
Tuple Fields§
§0: CmapTrait Implementations§
impl StructuralPartialEq for Dmap
Source§impl Table for Dmap
impl Table for Dmap
Source§fn remap_glyphs(&mut self, f: &mut dyn FnMut(u32) -> Result<u32>) -> Result<()>
fn remap_glyphs(&mut self, f: &mut dyn FnMut(u32) -> Result<u32>) -> Result<()>
Maps every glyph ID in the table with
f, as when the glyph order
changes (fontTools refers to glyphs by name, so this happens implicitly
there). f fails for glyphs that no longer exist.Source§fn compile(&mut self, font: &mut Font) -> Result<Vec<u8>>
fn compile(&mut self, font: &mut Font) -> Result<Vec<u8>>
Compiles the table to binary (
compile).Source§fn clone_table(&self) -> Box<dyn Table>
fn clone_table(&self) -> Box<dyn Table>
A deep copy.
Source§fn ensure_decompiled(&mut self)
fn ensure_decompiled(&mut self)
Expands whatever was left compact when reading (
ensureDecompiled).Source§fn is_raw(&self) -> bool
fn is_raw(&self) -> bool
Whether this is a plain
DefaultTable, which TTX marks as raw.Source§fn decompile_error(&self) -> Option<&str>
fn decompile_error(&self) -> Option<&str>
The error message, if decompilation failed and the table was kept as raw
data (
ERROR).Source§impl TableType for Dmap
impl TableType for Dmap
Source§const COMPANION: Option<Tag> = None
const COMPANION: Option<Tag> = None
The tag of the beyond-64k companion that this type also implements, as
GLYF for glyf. Font::get prefers it, as fontTools does with its
"GLYF" if "GLYF" in font else "glyf".Auto Trait Implementations§
impl Forget for Dmap
impl Freeze for Dmap
impl Move for Dmap
impl RefUnwindSafe for Dmap
impl Send for Dmap
impl Sync for Dmap
impl Unpin for Dmap
impl UnsafeUnpin for Dmap
impl UnwindSafe for Dmapwhere
RawVecInner: UnwindSafe,
Arc<BTreeMap<u32, u32>>: UnwindSafe,
BTreeMap<u32, Vec<(u32, Option<u32>)>>: UnwindSafe,
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