pub struct TtxOptions {
pub tables: Vec<TableKey>,
pub skip_tables: Vec<TableKey>,
pub write_version: bool,
pub newline: String,
pub disassemble_instructions: bool,
pub bitmap_glyph_data_format: String,
pub split_tables: bool,
pub split_glyphs: bool,
}Expand description
Options for Font::to_ttx (TTFont.saveXML).
Fields§
§tables: Vec<TableKey>The tables to dump; empty dumps all (tables).
skip_tables: Vec<TableKey>Tables to skip when dumping all (skipTables).
write_version: boolWrite the ttLibVersion attribute (writeVersion).
newline: StringLine ending (newlinestr).
disassemble_instructions: boolDisassemble TrueType instructions (disassembleInstructions).
bitmap_glyph_data_format: StringHow to dump bitmap glyph data (bitmapGlyphDataFormat): raw, row,
bitwise or extfile.
split_tables: boolWrite each table to a file of its own, and a main file that refers to
them (splitTables). Only Font::to_ttx_files can do this.
split_glyphs: boolAlso write each glyph of glyf to a file of its own (splitGlyphs);
implies TtxOptions::split_tables.
Trait Implementations§
Source§impl Clone for TtxOptions
impl Clone for TtxOptions
Source§impl Debug for TtxOptions
impl Debug for TtxOptions
Auto Trait Implementations§
impl Forget for TtxOptions
impl Freeze for TtxOptions
impl Move for TtxOptions
impl RefUnwindSafe for TtxOptions
impl Send for TtxOptionswhere
RawVecInner: Send,
impl Sync for TtxOptionswhere
RawVecInner: Sync,
impl Unpin for TtxOptions
impl UnsafeUnpin for TtxOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<TableKey>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for TtxOptionswhere
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