nanovg icon indicating copy to clipboard operation
nanovg copied to clipboard

Forward bitmapOption to fons__tt_buildGlyphBitmap

Open mulle-nat opened this issue 3 years ago • 0 comments

This can avoid unneccessary rasterization. (see #643) In one demo, where I am using glyph measurements quite a lot, I could get 360fps instead of 330fps with this change.

I also added two functions fons__tt_getGlyphRenderFlags and fons__tt_setGlyphRenderFlags so that flags like FT_LOAD_TARGET_LIGHT for rasterization can be set or unset and don't have to be compiled in.

mulle-nat avatar Aug 09 '22 15:08 mulle-nat