tinymist_world/font/mod.rs
1//! The font implementations for typst worlds.
2//!
3//! The core concept is the [`FontResolver`], implemented by
4//! [`FontResolverImpl`].
5//!
6//! You can construct a [`FontResolverImpl`] on systems, browsers or simply
7//! without touching any external environment. See the [`system`], [`web`] and
8//! [`pure`] crates for more details.
9//!
10//! The [`FontResolverImpl`] has a lot of [`FontSlot`] objects and allow to load
11//! font resources lazily.
12//!
13//! There are also other structs, which help store and load
14//! [`typst::text::FontInfo`] objects in the local file system or the remote
15//! machine. See the [`cache`] and `profile` crates for more details.
16
17pub mod cache;
18pub(crate) mod info;
19pub(crate) mod loader;
20pub(crate) mod profile;
21pub(crate) mod resolver;
22pub(crate) mod slot;
23
24pub use loader::*;
25pub use profile::*;
26pub use resolver::*;
27pub use slot::*;
28
29#[cfg(feature = "system")]
30pub mod system;
31
32#[cfg(feature = "web")]
33pub mod web;
34
35pub mod memory;
36#[deprecated(note = "use memory module instead")]
37pub use memory as pure;