Skip to content

Commit

Permalink
embrace the fontato
Browse files Browse the repository at this point in the history
wherein we magically support both reading and writing from a single crate
  • Loading branch information
dfrg committed Nov 22, 2023
1 parent 58ba78e commit f3f5723
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"otexplorer",
"skrifa",
"fauntlet",
"fontato",
]

[workspace.dependencies]
Expand Down
18 changes: 18 additions & 0 deletions fontato/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "fontato"
version = "0.1.0"
edition = "2021"
license = "MIT/Apache-2.0"
description = "Reading and writing support for OpenType fonts."
repository = "https://github.com/googlefonts/fontations"
readme = "README.md"
categories = ["text-processing"]

[features]
std = ["read-fonts/std"]
write = ["write-fonts", "std"]

[dependencies]
font-types = { version = "0.4.1", path = "../font-types" }
read-fonts = { version = "0.13.2", path = "../read-fonts" }
write-fonts = { version = "0.18.0", path = "../write-fonts", optional = true }
15 changes: 15 additions & 0 deletions fontato/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//! Wherein we read and write fonts.
pub use font_types::*;

/// Reading fonts.
pub mod read {
pub use read_fonts::*;
}

/// Writing fonts.
#[cfg_attr(doc_cfg, doc(cfg(feature = "write")))]
#[cfg(feature = "write")]
pub mod write {
pub use write_fonts::*;
}

0 comments on commit f3f5723

Please sign in to comment.