Crates.io | crossfont |
lib.rs | crossfont |
version | 0.8.0 |
source | src |
created_at | 2020-07-18 00:50:54.737659 |
updated_at | 2024-02-23 05:58:59.267783 |
description | Cross platform native font loading and rasterization |
homepage | |
repository | https://github.com/alacritty/crossfont.git |
max_upload_size | |
id | 266436 |
size | 121,556 |
crossfont is a cross-platform Rust library for loading fonts and rasterizing glyphs, using native font engines whenever possible.
Platform | Backends |
---|---|
Linux | Freetype |
BSD | Freetype |
Windows | DirectWrite |
macOS | Core Text |
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.