Skip to main content

kas_text/
lib.rs

1// Licensed under the Apache License, Version 2.0 (the "License");
2// you may not use this file except in compliance with the License.
3// You may obtain a copy of the License in the LICENSE-APACHE file or at:
4//     https://www.apache.org/licenses/LICENSE-2.0
5
6//! KAS-text: text layout library
7//!
8//! KAS-text supports plain text input, custom formatted text objects (see the
9//! [`format`] module) and a subset of Markdown ([`format::Markdown`],
10//! feature-gated).
11//!
12//! The library also supports glyph rastering (depending on feature flags).
13//!
14//! [`format`]: mod@format
15
16mod env;
17pub use env::*;
18
19mod conv;
20pub use conv::DPU;
21
22mod data;
23use data::Range;
24pub use data::Vec2;
25
26mod display;
27pub use display::*;
28
29pub mod fonts;
30pub mod format;
31
32mod swash_convert;
33pub(crate) use swash_convert::script_to_fontique;
34
35mod text;
36pub use text::*;
37
38mod util;
39pub use util::{LineIterator, OwningVecIter, Status};
40
41pub(crate) mod shaper;
42pub use shaper::{Glyph, GlyphId};