pub struct ReadOptions {
pub font_number: Option<usize>,
pub check_checksums: u8,
pub recalc_bboxes: bool,
pub recalc_timestamp: bool,
pub ignore_decompile_errors: bool,
pub use_legacy_ttc: bool,
pub use_harfbuzz_repacker: Option<bool>,
pub optimize_font_speed: bool,
pub woff_limits: WoffLimits,
}Expand description
Options for Font::read, corresponding to the TTFont constructor arguments.
Fields§
§font_number: Option<usize>The font in a collection to read (fontNumber). Required for collections.
check_checksums: u8How to treat wrong checksums (checkChecksums): 0 ignores them, 1 warns, 2
fails.
recalc_bboxes: boolRecalculate bounding boxes and related values when compiling
(recalcBBoxes).
recalc_timestamp: boolSet head.modified to the current time when compiling (recalcTimestamp).
ignore_decompile_errors: boolKeep tables that fail to decompile as raw data instead of failing
(ignoreDecompileErrors).
use_legacy_ttc: boolUse the original offset table of a version 1.1/2.1 collection
(_useLegacyTTC).
use_harfbuzz_repacker: Option<bool>§optimize_font_speed: bool§woff_limits: WoffLimitsThe limits on decompressed WOFF and WOFF 2.0 data (the
WOFF_MAX_* module variables of fontTools.ttLib.sfnt).
Trait Implementations§
Auto Trait Implementations§
impl Forget for ReadOptions
impl Freeze for ReadOptions
impl Move for ReadOptions
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnsafeUnpin for ReadOptions
impl UnwindSafe for ReadOptions
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