We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As seen in the FreeType documentation, there is a render mode for creating SDFs. This enum is missing in the rust binding as of yet
The text was updated successfully, but these errors were encountered:
For anyone stumbling upon this you can set the render SDF flag with the following
let load_flags = freetype::face::LoadFlag::from_bits((0x1 << 2) | ((5 & 15) << 16)).unwrap();
Where:
0x1 << 2
LoadFlag::RENDER
((5 & 15) << 16)
FT_LOAD_TARGET_(FT_RENDER_MODE_SDF)
Then you can use the load_flags with load_glyph() or load_char().
load_flags
Sorry, something went wrong.
No branches or pull requests
As seen in the FreeType documentation, there is a render mode for creating SDFs. This enum is missing in the rust binding as of yet
The text was updated successfully, but these errors were encountered: