mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:24:24 +00:00
45 lines
1.8 KiB
Rust
45 lines
1.8 KiB
Rust
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
|
|
//! Native only (the font store does not build for the web). Craft Font Manager as a library: the bundled font indexes and searching them, the installed
|
|
//! fonts by family, and the font store interface installs and removals go through.
|
|
//!
|
|
//! With the `ui` feature, [`FontsPanel`] is the whole interface as one panel that fills the `Ui`
|
|
//! it is given, with no window, menu or eframe of its own, so ArtCraft Launcher can show it as its
|
|
//! Fonts tab and the standalone app as its window. The host passes in the catalog, the store and
|
|
//! the index ([`Options`]) and installs a `craft_host::Host`: the panel keeps its
|
|
//! [`FontsPanelSettings`] in the Host's settings, runs its jobs through the Host's job service and
|
|
//! follows the Host's language. A host reads or sets the download consent through the panel.
|
|
//!
|
|
//! Also on `ui`: [`glyphs::GlyphsPanel`], [`missing::MissingFontsDialog`], [`axes::AxisSliders`] and
|
|
//! [`picker::FontPicker`], the font family field for text tools and panels.
|
|
|
|
pub mod filter;
|
|
pub mod index;
|
|
pub mod installed;
|
|
pub mod store;
|
|
|
|
#[cfg(feature = "ui")]
|
|
pub mod axes;
|
|
#[cfg(feature = "ui")]
|
|
pub mod glyphs;
|
|
#[cfg(feature = "ui")]
|
|
pub mod missing;
|
|
#[cfg(feature = "ui")]
|
|
mod panel;
|
|
#[cfg(feature = "ui")]
|
|
pub mod picker;
|
|
|
|
pub use craft_font_catalog;
|
|
pub use craft_font_catalog::{Catalog, FaceInfo, FontEnv, Source};
|
|
#[cfg(feature = "ui")]
|
|
pub use panel::{
|
|
FontSources, FontSourcesOutput, FontsBrowseWords, FontsCommand, FontsPanel, FontsPanelOutput, FontsPanelSettings, FontsPanelView,
|
|
FontsPanelWords, Options, Preset, Tab, install_interface_fonts,
|
|
};
|
|
|
|
/// The registered stories and trials of this crate.
|
|
#[cfg(feature = "screen-testing")]
|
|
pub mod testing {
|
|
craft_ui::testing_registered!();
|
|
}
|