Expand description
Re-exported ab_glyph types.
Structs§
- Codepoint
IdIter - FontArc
Font
implementor that wraps another concreteFont + 'static
type storing in anArc
.- FontRef
- Font data handle stored as a
&[u8]
+ parsed data. SeeFont
for more methods. - FontVec
- Font data handle stored in a
Vec<u8>
+ parsed data. SeeFont
for more methods. - Glyph
- A glyph with pixel scale & position.
- GlyphId
- Glyph id.
- Glyph
Image - A pre-rendered image of a glyph, usually used for emojis or other glyphs that can’t be represented only using an outline.
- Invalid
Font - Invalid font data error.
- Outline
- A “raw” collection of outline curves for a glyph, unscaled & unpositioned.
- Outlined
Glyph - A glyph that has been outlined at a scale & position.
- PxScale
- Pixel scale.
- PxScale
Factor - 2D scale factors for use with unscaled metrics.
- PxScale
Font - A
Font
and an associated pixel scale. - Rect
- A rectangle, with top-left corner at
min
, and bottom-right corner atmax
. - Variation
Axis
Enums§
- Glyph
Image Format - Valid formats for a
GlyphImage
. - Outline
Curve - Glyph outline primitives.
Traits§
- Font
- Functionality required from font data.
- Scale
Font - A
Font
with an associated pixel scale. This can be used to provide pixel scale values for glyph advances, heights etc. - Variable
Font - Logic for variable fonts.
Functions§
Type Aliases§
- Point
- An (x, y) coordinate.
Point { x: f32, y: f32 }