Trait write_fonts::FontWrite
source · pub trait FontWrite {
// Required method
fn write_into(&self, writer: &mut TableWriter);
// Provided method
fn table_type(&self) -> TableType { ... }
}Expand description
A type that that can be written out as part of a font file.
This both handles writing big-endian bytes as well as describing the relationship between tables and their subtables.
Required Methods§
sourcefn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
Provided Methods§
sourcefn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table.
This only matters in cases where a table may require additional processing after initial compilation, such as with GPOS/GSUB lookups.