11 releases
new 0.5.2 | Nov 24, 2023 |
---|---|
0.5.1 | Oct 24, 2022 |
0.5.0 | Jul 9, 2022 |
0.3.2 | Dec 11, 2021 |
0.1.0 | Jul 18, 2020 |
#131 in GUI
25,889 downloads per month
Used in 5 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.4–2.9MB
~58K SLoC