Expand description
Everything related to text, fonts, text layout, cursors etc.
Modules§
- cursor
- Different types of text cursors, i.e. ways to point into a
super::Galley.
Structs§
- Byte
Index - A byte offset into a UTF-8 string.
- Char
Index - A character (Unicode scalar) offset into a string.
- Fallback
Request - Input to a
FontProvider. - Font
Data - A
.ttfor.otffile and a font face index. - Font
Definitions - Describes a set of pre-configured fonts.
- FontId
- How to select a sized font.
- Font
Insert - A font to add to
FontDefinitions, and which families to add it to. - Font
Tweak - Extra scale and vertical tweak to apply to all text of a certain font.
- Font
Variation Axis - A single variation axis of a variable font, e.g. weight (
wght) or width (wdth). - Fonts
- The collection of fonts used by
epaint. - Fonts
View - The context’s collection of fonts, with this context’s
pixels_per_point. This is what you use to do text layout. - Galley
- Text that has been laid out, ready for painting.
- Glyph
- Glyph
Bitmap - A glyph bitmap, ready to be copied into the glyph atlas.
- Glyph
Rasterizer - Rasterizes grapheme clusters using something other than the installed fonts, e.g. the browser on web, or your own custom glyphs.
- Glyph
Rasterizer Request - Input to a
GlyphRasterizer. - Insert
Font Family - Where in the fallback chain of a
FontFamilyaFontInsertgoes. - Layout
Job - Describes the task of laying out text.
- Layout
Section - A contiguous range of
LayoutJob::textthat shares the sameTextFormat. - Placed
Row - Rasterized
Glyph - A glyph rasterized by a
GlyphRasterizer. - Row
- RowVisuals
- The tessellated output of a row.
- Smooth
Hinting - Tuning for
HintingTarget::Smooth, mirroringskrifa’sTarget::Smooth. - Tag
- An OpenType tag.
- Text
Format - Formatting option for a section of text.
- Text
Options - Controls how we render text
- Text
Wrapping - Controls the text wrapping and elision of a
LayoutJob. - Variation
Coords - List of font variation coordinates by axis tag. If more than one coordinate for a given axis is provided, the last one added is used.
- Viewport
Key - Identifies an independently rendered viewport’s text-layout cache.
Enums§
- Font
Family - Font of unknown size.
- Font
Priority - Whether an inserted font (or
crate::text::GlyphRasterizer) goes before or after the existing fonts of a family. - Hinting
Target - How to hint glyph outlines, i.e. how aggressively to nudge them onto the
pixel grid before rasterizing. Mirrors
skrifa::outline::Target. - Missing
Glyph Policy - What to do with a character that nothing can draw: no installed font has it,
no
FontProviderfinds a font for it, and noGlyphRasterizerhandles it. - Text
Wrap Mode - How to wrap and elide text.
Constants§
- MAX_
GLYPH_ SIZE - Maximum width or height of a glyph rasterized into the font atlas.
- PASSWORD_
REPLACEMENT_ CHAR - Suggested character to use to replace those in password text fields.
Traits§
- Byte
Range Ext - Extension methods for a
ByteRange. - Char
Range Ext - Extension methods for a
CharRange. - Font
Provider - A source of fonts.
- IntoTag
- Helper trait for all types that can be parsed as a
font_types::Tag.
Functions§
- has_
emoji_ presentation - Does this grapheme cluster have emoji presentation, per Unicode (UTS #51)?