pub struct BitmapLocator<const COLOR: bool, const APPLE: bool = false> {
pub version: f64,
pub strikes: Vec<Option<Strike>>,
}Expand description
Embedded (COLOR false) or Color (COLOR true) Bitmap Location table
(table_E_B_L_C_, table_C_B_L_C_), or with APPLE, Apple’s bloc
(table__b_l_o_c).
See https://learn.microsoft.com/en-us/typography/opentype/spec/eblc and https://learn.microsoft.com/en-us/typography/opentype/spec/cblc.
Fields§
§version: f64The table version.
strikes: Vec<Option<Strike>>The strikes. Only a TTX document with gaps in its strike indices leaves
Nones, which fail when the table is compiled or dumped.
Trait Implementations§
impl<const COLOR: bool, const APPLE: bool> StructuralPartialEq for BitmapLocator<COLOR, APPLE>
Source§impl<const COLOR: bool, const APPLE: bool> Table for BitmapLocator<COLOR, APPLE>
impl<const COLOR: bool, const APPLE: bool> Table for BitmapLocator<COLOR, APPLE>
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<()>
The first and last glyph are recalculated when compiling.
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<const COLOR: bool, const APPLE: bool> TableType for BitmapLocator<COLOR, APPLE>
impl<const COLOR: bool, const APPLE: bool> TableType for BitmapLocator<COLOR, APPLE>
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<const COLOR: bool, const APPLE: bool> Forget for BitmapLocator<COLOR, APPLE>
impl<const COLOR: bool, const APPLE: bool> Freeze for BitmapLocator<COLOR, APPLE>
impl<const COLOR: bool, const APPLE: bool> Move for BitmapLocator<COLOR, APPLE>
impl<const COLOR: bool, const APPLE: bool> RefUnwindSafe for BitmapLocator<COLOR, APPLE>
impl<const COLOR: bool, const APPLE: bool> Send for BitmapLocator<COLOR, APPLE>where
RawVecInner: Send,
impl<const COLOR: bool, const APPLE: bool> Sync for BitmapLocator<COLOR, APPLE>where
RawVecInner: Sync,
impl<const COLOR: bool, const APPLE: bool> Unpin for BitmapLocator<COLOR, APPLE>
impl<const COLOR: bool, const APPLE: bool> UnsafeUnpin for BitmapLocator<COLOR, APPLE>
impl<const COLOR: bool, const APPLE: bool> UnwindSafe for BitmapLocator<COLOR, APPLE>where
RawVecInner: 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