kas-text 0.6.0

Text layout and font management
Documentation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License in the LICENSE-APACHE file or at:
//     https://www.apache.org/licenses/LICENSE-2.0

//! KAS-text: text layout library
//!
//! KAS-text supports plain text input, custom formatted text objects (see the
//! [`format`] module) and a subset of Markdown ([`format::Markdown`],
//! feature-gated).
//!
//! The library also supports glyph rastering (depending on feature flags).
//!
//! [`format`]: mod@format

#![cfg_attr(doc_cfg, feature(doc_cfg))]
#![allow(clippy::len_zero)]
#![allow(clippy::type_complexity)]
#![allow(clippy::unit_arg)]
#![allow(clippy::needless_lifetimes)]
#![allow(clippy::neg_cmp_op_on_partial_ord)]

mod env;
pub use env::*;

mod conv;
pub use conv::DPU;

mod data;
pub use data::{Range, Vec2};

mod display;
pub use display::*;

pub mod fonts;
pub mod format;

#[cfg(any(feature = "ab_glyph", feature = "fontdue"))]
pub mod raster;

mod text;
pub use text::*;

mod util;
pub use util::{Action, OwningVecIter};

pub(crate) mod shaper;
pub use shaper::{Glyph, GlyphId};