Skip to main content

teksilo_text/
lib.rs

1// SPDX-License-Identifier: MPL-2.0
2// SPDX-FileCopyrightText: 2026 FernTech
3
4pub mod embedded_fonts;
5pub mod shared_typesetter;
6pub mod typesetter_bridge;
7
8#[cfg(feature = "system-emoji")]
9mod system_emoji;
10
11pub mod font_registrar;
12pub mod rich_text_engine;
13pub mod typography_defaults;
14
15#[cfg(feature = "fonts-arabic")]
16pub use embedded_fonts::noto_sans_arabic_bytes;
17#[cfg(feature = "fonts-hebrew")]
18pub use embedded_fonts::noto_sans_hebrew_bytes;
19pub use shared_typesetter::SharedTypesetter;
20pub use typesetter_bridge::TypesetterBridge;
21
22pub use font_registrar::{EmbeddedInterRegistrar, FontFaceSpec, FontRegistrar, VecFontRegistrar};
23// `FontFaceSpec::data` is a public field of this type, so its type has to be
24// nameable by anyone constructing one.
25pub use rich_text_engine::{RichTextEngine, WrapMode};
26pub use text_typeset::SharedFontData;
27pub use typography_defaults::EditorTypographyDefaults;
28
29pub use text_typeset::{
30    BlockVisualInfo, CharacterGeometry, CursorAffinity, CursorDisplay,
31    DecorationKind as TypesetterDecorationKind, DecorationRect, FontFaceId, FontFamilyInfo,
32    GlyphQuad as TypesetterGlyphQuad, HitRegion, HitTestResult, ImageQuad, RelayoutError,
33    RenderFrame, TableVisualInfo, TextDirection, TextFontService, WritingSystem,
34    WritingSystemIndexBuilder, WritingSystemSet, resolve_paragraph_direction,
35};
36
37pub use text_document;