Skip to main content

Crate repose_text

Crate repose_text 

Source

Modules§

fallback
fallback_data
unresolved

Structs§

CacheKey
Cache key for the renderer’s glyph slug cache -> uniquely identifies a specific glyph in a specific font face. Cache key for the renderer’s glyph slug cache -> uniquely identifies a specific glyph in a specific font face at a specific variation instance.
GlyphBitmap
GlyphKey
ShapeOptions
ShapedGlyph
ShapedRun
ShapedText
SharedShapedText
TextMetrics

Enums§

Command
Vector path command for glyph outlines.
FontSynthesis
ShapeCapabilityError
SwashContent
Content of a scaled glyph image.
TextDirection

Statics§

FONT_PROVIDER

Functions§

begin_frame
canonical_variation
Canonicalize font-variation settings into an axis-sorted, deduplicated key. Axis order in the source string must not change the key, and a repeated axis resolves to its last value (matching shaping and skrifa).
current_frame
ellipsize_line
ellipsize_line_with_family
ellipsize_line_with_style
ensure_web_fallback_initialized
extract_outline_commands
extract_outline_commands_for
extract_outline_commands_shared
font_family_name
Extract the family name from raw font bytes.
font_generation
load_font_file
Load a font from a file path and register it into the global font system.
lookup_and_extract_outline
Outline for a legacy GlyphKey handle, at the font’s default variation instance (see lookup_cache_key).
lookup_cache_key
CacheKey for a legacy GlyphKey handle.
metrics_for_textfield
metrics_for_textfield_shared
primary_font_vertical_metrics
Vertical font metrics (ascent, descent) in px for the primary font matching (font_family, font_weight).
raster_placement
rasterize
Rasterize through the legacy GlyphKey handle.
rasterize_cache_key
register_font_data
shape_line
shape_line_cached
shape_line_shared
shape_line_vector
shape_line_with_options
shape_line_with_options_cached
shape_line_with_options_vector
shape_text_with_options
shape_text_with_options_cached
shape_text_with_options_shared
shape_text_with_options_vector
take_fallback_dirty
wrap_line_ranges
wrap_line_ranges_with_family
wrap_line_ranges_with_style
wrap_lines
wrap_lines_with_family
wrap_lines_with_style

Type Aliases§

CachedShapedText
ShapedLine
VectorShapedLine
VectorShapedText