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
16#![cfg_attr(docsrs, feature(doc_auto_cfg))]
17
18mod env;
19pub use env::*;
20
21mod conv;
22pub use conv::DPU;
23
24mod data;
25pub use data::{Range, Vec2};
26
27mod display;
28pub use display::*;
29
30pub mod fonts;
31pub mod format;
32
33mod swash_convert;
34pub(crate) use swash_convert::script_to_fontique;
35
36mod text;
37pub use text::*;
38
39mod util;
40pub use util::{OwningVecIter, Status};
41
42pub(crate) mod shaper;
43pub use shaper::{Glyph, GlyphId};