Registry / utility / ab-glyph

ab-glyph

JSON →
library0.2.32rscrates✓ verified 24d ago

API for loading, scaling, positioning and rasterizing OpenType font glyphs.

# Cargo.toml [dependencies] ab_glyph = "0.2.32"
INSTALL
IMPORT
SIG · AB-GLYPH
A
ab-glyph
utilityrustv0.2.32
Install
3.0s avg
Import
Disk
19MB
Pass rate
6/ 6
Env Coverage6 / 6
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.32 · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
rust 1.801.853 runs
installs and imports cleanly · install 4.3s · import 0.000s · 19MB
default
rust 1.801.853 runs
installs and imports cleanly · install 1.8s · import 0.000s · 19MB
19MB installed
● package 19MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Font
use ab_glyph::Font;

Loads a font from bytes and retrieves a glyph for the character 'A'.

use ab_glyph::{Font, FontRef}; let font_data: &[u8] = include_bytes!("font.ttf"); let font = FontRef::try_from_slice(font_data).unwrap(); let glyph = font.glyph('A');
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.32latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
34
OpenAI (training)
1
Resources
ab-glyph — cargo add ab-glyph · libregistry