https://github.com/alacritty/crossfont
Cross platform native font loading and rasterization library for Rust
https://github.com/alacritty/crossfont
bsd font linux macos rust windows
Last synced: 11 months ago
JSON representation
Cross platform native font loading and rasterization library for Rust
- Host: GitHub
- URL: https://github.com/alacritty/crossfont
- Owner: alacritty
- License: apache-2.0
- Created: 2020-07-18T00:14:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-14T06:44:23.000Z (about 1 year ago)
- Last Synced: 2025-04-02T09:57:27.714Z (about 1 year ago)
- Topics: bsd, font, linux, macos, rust, windows
- Language: Rust
- Homepage:
- Size: 94.7 KB
- Stars: 77
- Watchers: 6
- Forks: 33
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# crossfont
crossfont is a cross-platform Rust library for loading fonts and rasterizing
glyphs, using native font engines whenever possible.
### Supported Backends
| Platform | Backends |
|----------|-------------|
| Linux | Freetype |
| BSD | Freetype |
| Windows | DirectWrite |
| macOS | Core Text |
### Known Issues
Since crossfont was originally made solely for rendering monospace fonts in
[Alacritty](https://github.com/alacritty/alacritty), there currently is only
very limited support for proportional fonts.
Loading a lot of different fonts might also lead to resource leakage since they
are not explicitly dropped from the cache.