Expand description
Text handling.
Modules§
- color
- Utilities for color font handling
Structs§
- Costs
- Costs for various layout decisions.
- Coverage
- A compactly encoded set of codepoints.
- Decoration
- A text decoration.
- Font
- An OpenType font.
- Font
Book - Metadata about a collection of fonts.
- Font
Family - A lowercased font family like “arial”.
- Font
Features - OpenType font features settings.
- Font
Flags - Bitflags describing characteristics of a font.
- Font
Info - Properties of a single font.
- Font
List - Font family fallback list.
- Font
Metrics - Metrics of a font.
- Font
Stretch - The width of a font.
- Font
Variant - Properties that distinguish a font from other fonts in the same family.
- Font
Weight - The weight of a font.
- Glyph
- A glyph in a run of shaped text.
- Highlight
Elem - Highlights text with a background color.
- Italic
Toggle - A toggle that turns on and off alternatingly if folded.
- Lang
- An identifier for a natural language.
- Line
Metrics - Metrics for a decorative line.
- Linebreak
Elem - Inserts a line break.
- Overline
Elem - Adds a line over text.
- RawElem
- Raw text with optional syntax highlighting.
- RawLine
- A highlighted line of raw text.
- RawSyntax
- A loaded syntax.
- RawTheme
- A loaded syntect theme.
- Region
- An identifier for a region somewhere in the world.
- Smallcaps
Elem - Displays text in small capitals.
- Smart
Quote Dict - A dict of single and double quotes.
- Smart
Quote Elem - A language-aware quote that reacts to its context.
- Smart
Quote Set - An opening and closing quote.
- Smart
Quoter - A smart quote substitutor with zero lookahead.
- Smart
Quotes - Decides which quotes to substitute smart quotes with.
- Space
Elem - A text space.
- Strike
Elem - Strikes through text.
- Stylistic
Sets - A set of stylistic sets to enable.
- SubElem
- Renders text in subscript.
- Super
Elem - Renders text in superscript.
- TextDir
- The direction of text and inline objects in their line.
- Text
Elem - Customizes the look and layout of text in a variety of ways.
- Text
Item - A run of shaped text.
- Text
Item View - A slice of a
TextItem
. - Text
Size - The size of text.
- Underline
Elem - Underlines text.
- Weight
Delta - A delta that is summed up when folded.
- Writing
Script - An ISO 15924-type script identifier.
Enums§
- Bottom
Edge - Specifies the top edge of text.
- Bottom
Edge Metric - Metrics that describe the bottom edge of text.
- Case
- A case transformation on text.
- Caseable
- A value whose case can be changed.
- Covers
- Defines which codepoints a font family will be used for.
- Deco
Line - A kind of decorative line.
- Font
Style - The style of a font.
- Number
Type - Which kind of numbers / figures to select.
- Number
Width - The width of numbers / figures.
- RawContent
- The content of the raw text.
- Smallcaps
- What becomes small capitals.
- Text
Edge Bounds - Defines how to resolve a
Bounds
text edge. - TopEdge
- Specifies the top edge of text.
- TopEdge
Metric - Metrics that describe the top edge of text.
- Vertical
Font Metric - Identifies a vertical metric of a font.
Statics§
- RAW_
SYNTAXES - The syntect syntax definitions.
- RAW_
THEME - The default theme used for syntax highlighting.
Traits§
- Local
Name - The name with which an element is referenced.
Functions§
- families
- Resolve a prioritized iterator over the font families.
- features
- Collect the OpenType features to apply.
- is_
default_ ignorable - Whether a codepoint is Unicode
Default_Ignorable
. - localized_
str - Retrieves the localized string for a given language and region. Silently falls back to English if no fitting string exists for the given language + region. Panics if no fitting string exists in both given language + region and English.
- lorem
- Creates blind text.
- lower
- Converts a string or content to lowercase.
- upper
- Converts a string or content to uppercase.
- variant
- Resolve the font variant.