https://github.com/typst/pixglyph
OpenType glyph rendering.
https://github.com/typst/pixglyph
font-rendering
Last synced: about 1 year ago
JSON representation
OpenType glyph rendering.
- Host: GitHub
- URL: https://github.com/typst/pixglyph
- Owner: typst
- License: apache-2.0
- Created: 2022-01-24T14:57:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-13T08:53:16.000Z (over 1 year ago)
- Last Synced: 2025-03-29T11:02:53.008Z (over 1 year ago)
- Topics: font-rendering
- Language: Rust
- Homepage:
- Size: 638 KB
- Stars: 22
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pixglyph
[](https://crates.io/crates/pixglyph)
[](https://docs.rs/pixglyph)
OpenType glyph rendering.
```toml
[dependencies]
pixglyph = "0.6"
```
## Features
- Render glyph outlines into coverage bitmaps.
- Place glyphs at subpixel offsets and scale them to subpixel sizes. This is
important if you plan to render more than a single glyph since inter-glyph
spacing will look off if every glyph origin must be pixel-aligned.
- No font data structure you have to store somewhere. Just owned glyphs
which you can load individually from a font, cache if you care about
performance, and then render at any size.
- No unsafe code.
## License
This crate is licensed under the terms of the Apache 2.0 license.