Struct ttf_parser::os2::Table
source · [−]pub struct Table<'a> {
pub version: u8,
/* private fields */
}
Expand description
Fields
version: u8
Table version.
Implementations
sourceimpl<'a> Table<'a>
impl<'a> Table<'a>
sourcepub fn permissions(&self) -> Option<Permissions>
pub fn permissions(&self) -> Option<Permissions>
Returns face permissions.
Returns None
in case of a malformed value.
sourcepub fn is_subsetting_allowed(&self) -> bool
pub fn is_subsetting_allowed(&self) -> bool
Checks if the face subsetting is allowed.
sourcepub fn is_bitmap_embedding_allowed(&self) -> bool
pub fn is_bitmap_embedding_allowed(&self) -> bool
Checks if the face bitmaps embedding is allowed.
sourcepub fn subscript_metrics(&self) -> ScriptMetrics
pub fn subscript_metrics(&self) -> ScriptMetrics
Returns subscript metrics.
sourcepub fn superscript_metrics(&self) -> ScriptMetrics
pub fn superscript_metrics(&self) -> ScriptMetrics
Returns superscript metrics.
sourcepub fn strikeout_metrics(&self) -> LineMetrics
pub fn strikeout_metrics(&self) -> LineMetrics
Returns strikeout metrics.
sourcepub fn unicode_ranges(&self) -> UnicodeRanges
pub fn unicode_ranges(&self) -> UnicodeRanges
Returns Unicode ranges.
sourcepub fn is_bold(&self) -> bool
pub fn is_bold(&self) -> bool
Checks if face is bold.
Do not confuse with Weight::Bold
.
sourcepub fn use_typographic_metrics(&self) -> bool
pub fn use_typographic_metrics(&self) -> bool
Checks if typographic metrics should be used.
sourcepub fn typographic_ascender(&self) -> i16
pub fn typographic_ascender(&self) -> i16
Returns typographic ascender.
sourcepub fn typographic_descender(&self) -> i16
pub fn typographic_descender(&self) -> i16
Returns typographic descender.
sourcepub fn typographic_line_gap(&self) -> i16
pub fn typographic_line_gap(&self) -> i16
Returns typographic line gap.
sourcepub fn windows_ascender(&self) -> i16
pub fn windows_ascender(&self) -> i16
Returns Windows ascender.
sourcepub fn windows_descender(&self) -> i16
pub fn windows_descender(&self) -> i16
Returns Windows descender.
sourcepub fn capital_height(&self) -> Option<i16>
pub fn capital_height(&self) -> Option<i16>
Returns capital height.
Returns None
version is < 2.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Table<'a>
impl<'a> Send for Table<'a>
impl<'a> Sync for Table<'a>
impl<'a> Unpin for Table<'a>
impl<'a> UnwindSafe for Table<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more