Crate owned_ttf_parser[−][src]
Extends ttf_parser with owned version of
Face
: OwnedFace
.
Re-exports ttf_parser::*
.
Example
use owned_ttf_parser::{AsFaceRef, OwnedFace, Face}; let owned_face = OwnedFace::from_vec(owned_font_data, 0).unwrap(); let face_ref: &Face<'_> = owned_face.as_face_ref(); assert_eq!(face_ref.ascender(), 2254);
Modules
cmap | A character to glyph index mapping table implementation. |
kern | A kerning table implementation. |
name_id | A list of name ID's. |
parser | Binary parsing utils. |
Structs
Class | A value of Class Definition Table. |
Face | A font face handle. |
FaceTables | Parsed face tables. |
GlyphId | A type-safe wrapper for glyph ID. |
LineMetrics | A line metrics. |
Name | A Name Record. |
Names | An iterator over font's names. |
NormalizedCoordinate | A variation coordinate in a normalized coordinate system. |
OwnedFace | An owned version of font |
RasterGlyphImage | A glyph's raster image. |
Rect | A rectangle. |
ScriptMetrics | A script metrics used by subscript and superscript. |
Tag | A 4-byte tag. |
Variation | A font variation value. |
VariationAxes | An iterator over variation axes. |
VariationAxis |
Enums
FaceParsingError | A list of font face parsing errors. |
GlyphClass | A glyph class. |
PlatformId | A platform ID. |
RasterImageFormat | A glyph raster image format. |
TableName | A table name. |
Weight | A font weight. |
Width | A font width. |
Traits
AsFaceRef | Used to perform a cheap conversion to a |
OutlineBuilder | A trait for glyph outline construction. |
Functions
fonts_in_collection | Returns the number of fonts stored in a TrueType font collection. |