freetype-rs
freetype-rs copied to clipboard
Rust bindings for FreeType library
As seen in the [FreeType documentation](https://freetype.org/freetype2/docs/reference/ft2-glyph_retrieval.html#ft_render_mode), there is a render mode for creating SDFs. This enum is missing in the rust binding as of yet
doesn't it causes double free in the real program? e.g. i have a function to get some info from a glyph ``` fn get_glyph_info(face: Face) { let glyph = face.glyph().get_glyph().unwrap();...
When building my application normally (the "dev" profile) everything works as intended; I set the face, set character sizes, then get glyphs and render them, putting the resulting bitmap buffer...
Hi, thanks for the hard work on doing this! This repo badly needs a proper CI (preferably github actions for convenience), and as part of it it should include semver...
I think it would be a great enhancement for the user to deal with the convenient types, such as the [fixed](https://crates.io/crates/fixed) crate. Otherwise, I suggest providing a mistake-free interface and...
Just wondering if the maintainers are ok with some cleanup chores, e.g. 2021 edition and other similar upkeep changes?
run command `cargo run --example single_glyph examples/assets/FiraSans-Regular.ttf j` The problem meets. bitmap_left() is possible 0 {glyph.bitmap_left() as usize } else {(-glyph.bitmap_left()) as usize};` j is a little special case. But...
If a glyph was loaded using `LoadFlag::RENDER` like this: ```rust use freetype::Library; use freetype::face::LoadFlag; let lib = Library::init().unwrap(); let face = lib.new_face("test.ttf", 0).unwrap(); face.load_char('A' as usize,LoadFlag::RENDER) .unwrap(); ``` and created...
The `glyph_outline` example crashes with segfault while trying to outline the 0 glyph (I had to modify the example a bit, since it accepts only characters) using the Noto Tinos-BoldItalic.ttf...
This is as easy as `face.raw().bbox`. Useful for getting line height.