klyff 0.1.3

Text rendering library for games with MSDF support
Documentation
mod atlas_retrieve;
mod cache;
mod size;
mod types;

#[cfg(feature = "serde")]
mod serde_state;

pub use skrifa;

pub use atlas_retrieve::{AtlasRegion, CachedGlyph, FontData, GlyphKey, WriteGlyphError};
pub use size::AtlasSize;
pub use types::{TextureAtlas, TextureAtlasDescriptor};

#[cfg(feature = "serde")]
pub use serde_state::{AtlasState, BakeError, BakedAtlas};

/// The default pixel per 1em scaling of glyphs in texture atlas.
pub const DEFAULT_PPEM: f32 = 50.;

/// The default padding for each glyph in texture atlas.
pub const DEFAULT_PADDING: usize = 5;

/// Minimum atlas texture size that can be constructed.
pub const MIN_TEXTURE_SIZE: u32 = 256;