Comments (1)
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
is equivalent toLoadFlag::RENDER
((5 & 15) << 16)
is equivalent toFT_LOAD_TARGET_(FT_RENDER_MODE_SDF)
in C
Then you can use the load_flags
with load_glyph() or load_char().
from freetype-rs.
Related Issues (20)
- Crate not usable on arm/android any more HOT 6
- Relicense under dual MIT/Apache-2.0 HOT 19
- The single_glyph example might crash HOT 2
- SVG Glyphs in OpenType Specification
- Example outdated?
- CurveIterator is wrong with curves starting with OFF point HOT 1
- Support Stroker
- Expose global bbox
- Segfault during glyph outlining HOT 1
- Dropping BitmapGlyph created by Glyph::to_bitmap invalidates the Glyph and causes segfault HOT 5
- Glyph::to_bitmap creates duplicate pointer if the glyph was already rendered during `Face::load_char`.
- Printing `Error` recurse infinitely
- sample single_glyph problem for j
- [Question] why do we need to `FT_Done_Library` in `impl Drop for Glyph` and `impl Drop for Face` HOT 1
- Upkeep: Should this code migrate to 2021 edition?
- Fails to build on Windows
- Why not use the existing crates for the fixed-width numbers?
- Missing CI and semver check resulted in a breaking change
- Different bitmap results in dev and release builds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freetype-rs.