1 unstable release
0.1.0-alpha.0 | Jun 21, 2022 |
---|
#1663 in GUI
110KB
2.5K
SLoC
Compatibility layer for different font engines.
CoreText is used on Mac OS. FreeType is used on everything that's not Mac OS. Eventually, ClearType support will be available for windows.
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.
Dependencies
~0.3–11MB
~55K SLoC