| Crates.io | glyphslib |
| lib.rs | glyphslib |
| version | 0.2.2 |
| created_at | 2025-11-28 10:09:07.597287+00 |
| updated_at | 2026-01-14 19:50:55.226719+00 |
| description | A Rust library for reading, writing, and manipulating Glyphs font source files |
| homepage | https://github.com/simoncozens/glyphslib-rs |
| repository | https://github.com/simoncozens/glyphslib-rs |
| max_upload_size | |
| id | 1955084 |
| size | 163,465 |
A Rust library for reading, writing, and manipulating Glyphs font source files (.glyphs and .glyphspackage).
GlyphsFile traitAdd this to your Cargo.toml:
[dependencies]
glyphslib = "0.1"
use glyphslib::{Font, GlyphsFile};
use std::path::Path;
// Load a Glyphs file
let font = Font::load(Path::new("MyFont.glyphs"))?;
// Access font properties
let font_ref = font.as_ref();
println!("Family: {}", font_ref.family_name());
println!("Masters: {}", font_ref.masters().len());
println!("Glyphs: {}", font_ref.glyphs().len());
// Iterate through glyphs
for glyph in font_ref.glyphs() {
println!(" {}: {} layers", glyph.name(), glyph.layers().len());
}
glyphs-reader is a similar crate for reading Glyphs files, but does not preserve the difference between Glyphs 2 and Glyphs 3 formats, nor does it support writing.
For detailed documentation and examples, see the API documentation.
Licensed under either of:
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.