pub struct Table<'a> {
pub version: u8,
/* private fields */
}
Expand description
Fields§
§version: u8
Table version.
Implementations§
Source§impl<'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 allows embedding a subset, further restricted by Self::permissions
.
Sourcepub fn is_outline_embedding_allowed(&self) -> bool
pub fn is_outline_embedding_allowed(&self) -> bool
Checks if the face allows outline data to be embedded.
If false, only bitmaps may be embedded in accordance with Self::permissions
.
If the font contains no bitmaps and this flag is not set, it implies no 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.