Skip to main content

Crate teksilo_text

Crate teksilo_text 

Source

Re-exports§

pub use embedded_fonts::noto_sans_arabic_bytes;
pub use embedded_fonts::noto_sans_hebrew_bytes;
pub use shared_typesetter::SharedTypesetter;
pub use typesetter_bridge::TypesetterBridge;
pub use font_registrar::EmbeddedInterRegistrar;
pub use font_registrar::FontFaceSpec;
pub use font_registrar::FontRegistrar;
pub use font_registrar::VecFontRegistrar;
pub use rich_text_engine::RichTextEngine;
pub use rich_text_engine::WrapMode;
pub use typography_defaults::EditorTypographyDefaults;
pub use text_document;

Modules§

embedded_fonts
Raw bytes of the bundled fallback fonts, for callers that need to embed a font somewhere else (rather than register it for on-screen shaping). The motivating consumer is Skribisto’s PDF exporter, which hands these blobs to Typst so an exported PDF renders RTL scripts in the same Noto faces the editor shapes with — one source of bytes, no screen/export drift.
font_registrar
Font registration abstraction for rich-text widgets.
rich_text_engine
Per-widget rich-text layout engine.
shared_typesetter
typesetter_bridge
typography_defaults
Non-destructive per-editor default typography.

Structs§

BlockVisualInfo
Visual position and size of a laid-out block.
CharacterGeometry
Per-character advance geometry for a laid-out text run.
CursorDisplay
Cursor display state for rendering.
DecorationRect
A colored rectangle for decorations (underlines, selections, borders, etc.).
FontFaceId
Opaque handle to a registered font face.
FontFamilyInfo
Summary of one installed font family, for building a font picker.
HitTestResult
Result of crate::DocumentFlow::hit_test - maps a screen-space point to a document position.
ImageQuad
An inline image placeholder.
RenderFrame
Everything needed to draw one frame.
TableVisualInfo
Visual position and size of a laid-out table, and of its rows and columns.
TextFontService
Shared font resources for a text-typeset session.
TypesetterGlyphQuad
A positioned glyph to draw as a textured quad from the atlas.
WritingSystemIndexBuilder
A Send snapshot of every family’s face byte-sources, ready to be moved to a background thread and turned into a writing-system coverage map.
WritingSystemSet
A compact set of WritingSystems, backed by a u128 bitset (33 variants ≪ 128 bits). Hand-rolled to avoid a bitflags dependency (the workspace uses none).

Enums§

CursorAffinity
Disambiguates the two visual placements a single character position can have at a soft-wrap boundary. A long paragraph that wraps across lines K and K+1 has one character position N that sits at both the END of line K and the START of line K+1; affinity picks which one the caret renders at and which line Home/End-style navigation considers “current”.
HitRegion
What region of the layout a hit test landed in.
RelayoutError
Reasons DocumentFlow::relayout_block may refuse an incremental update.
TextDirection
Reading direction of a run or paragraph. Re-exported at the crate root because hosts need it to interpret DocumentFlow::direction_at. Text direction for shaping.
TypesetterDecorationKind
The type of a DecorationRect.
WritingSystem
A script / writing system a font can render.

Functions§

resolve_paragraph_direction
Reading direction of a run or paragraph. Re-exported at the crate root because hosts need it to interpret DocumentFlow::direction_at. The base direction a paragraph of text takes.

Type Aliases§

SharedFontData
Byte container owned by a FontEntry. Erased behind a trait object so the registry can hold any of Vec<u8>, memmap2::Mmap, or &'static [u8] (via a wrapper) without copying. fontdb’s Source::Binary uses the same shape, so the same Arc can be shared with the database.