14 releases (7 breaking)
0.8.0 | Feb 23, 2024 |
---|---|
0.7.0 | Dec 11, 2023 |
0.6.0 | Dec 5, 2023 |
0.5.2 | Nov 24, 2023 |
0.1.0 | Jul 18, 2020 |
#147 in Operating systems
18,082 downloads per month
Used in 8 crates
(2 directly)
105KB
2.5K
SLoC
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, 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.
lib.rs
:
Compatibility layer for different font engines.
CoreText is used on macOS. DirectWrite is used on Windows. FreeType is used everywhere else.
Dependencies
~0.3–7MB
~57K SLoC