MonoMapper
This crate can be used for loading various bitmap fonts and rendering them into a buffer, it is supposed to be simple and only supports monospace fonts since it was primarily written for a terminal emulator I'm working on.
I also paid special attention to memory usage since I have quite a lot of terminals open at all times.
Limitations
- Only Monospace
- Glyphs must be less than 64 bits wide
Features
bdf
Enables support for reading bdf files, reading bdf.gz files also requires
the gz feature.
pcf
Enables support for reading pcf files, reading pcf.gz files also requires
the gz feature.
gz
Enables support for reading compressed fonts, like pcf.gz or bdf.gz, this
uses the flate2 crate for this.
Test Fonts
This repository contains a couple of freely available fonts for testing
purposes under ./test_fonts/. These files are included in the source
package so the tests can be run from a packaged crate, but they are not
linked into or embedded in the library itself.
Terminus Font
Author: Dimitar Zhekov
License: SIL OPEN FONT LICENSE Version 1.1
License text: test_fonts/LICENSE-Terminus
Spleen
Author: Frederic Cambus
License: BSD-2-Clause
License text: test_fonts/LICENSE-Spleen
Dina
Author: Jørgen Ibsen
License: MIT
License text: test_fonts/LICENSE-Dina
UNSCII
Author: Viznut License: Public Domain
BB{8/16}
Author: Benjamin Schulenburg License: Public Domain