Module layout

Source
Expand description

Provides access to the layout of a text node.

Structsยง

ByteIndex ๐Ÿ”’
A read-only text index in bytes.
DecorationSpan ๐Ÿ”’
A text decoration span.
Glyph ๐Ÿ”’
A glyph.
GlyphCluster ๐Ÿ”’
GlyphClusters ๐Ÿ”’
An iterator over glyph clusters.
PathNormal ๐Ÿ”’
PositionedGlyph
A glyph that has already been positioned correctly.
ResolvedFont ๐Ÿ”’
Span
A span contains a number of layouted glyphs that share the same fill, stroke, paint order and visibility.

Traitsยง

DatabaseExt ๐Ÿ”’

Functionsยง

apply_length_adjust ๐Ÿ”’
apply_letter_spacing ๐Ÿ”’
Applies the letter-spacing property to a text chunk clusters.
apply_word_spacing ๐Ÿ”’
Applies the word-spacing property to a text chunk clusters.
apply_writing_mode ๐Ÿ”’
Rotates clusters according to Unicode Vertical_Orientation Property.
chunk_span_at ๐Ÿ”’
clusters_length ๐Ÿ”’
collect_decoration_spans ๐Ÿ”’
collect_normals ๐Ÿ”’
convert_decoration ๐Ÿ”’
convert_span ๐Ÿ”’
form_glyph_clusters ๐Ÿ”’
is_word_separator_characters ๐Ÿ”’
Checks that the selected character is a word separator.
layout_text ๐Ÿ”’
process_anchor ๐Ÿ”’
process_chunk ๐Ÿ”’
Converts a text chunk into a list of outlined clusters.
resolve_baseline ๐Ÿ”’
resolve_baseline_shift ๐Ÿ”’
resolve_clusters_positions ๐Ÿ”’
Resolves clusters positions.
resolve_clusters_positions_horizontal ๐Ÿ”’
resolve_clusters_positions_path ๐Ÿ”’
script_supports_letter_spacing ๐Ÿ”’
Checks that selected script supports letter spacing.
shape_text ๐Ÿ”’
Text shaping with font fallback.
shape_text_with_font ๐Ÿ”’
Converts a text into a list of glyph IDs.
span_contains ๐Ÿ”’

Type Aliasesยง

FontsCache ๐Ÿ”’