Crates.io | bdf-reader |
lib.rs | bdf-reader |
version | 0.1.2 |
source | src |
created_at | 2022-10-18 12:28:31.476928 |
updated_at | 2024-02-19 19:36:39.782852 |
description | BDF font format reader |
homepage | |
repository | https://codeberg.org/heu/bdf-reader |
max_upload_size | |
id | 690876 |
size | 43,628 |
A reader for the BDF (Glyph Bitmap Distribution Format) font format.
use bdf_reader::Font;
use std::{fs::File, io::BufReader};
let reader = BufReader::new(File::open("path/to/font.bdf")?);
let font = Font::read(reader)?;