FreeType has one of the weirdest C APIs I've ever seen.
-
-
Replying to @ApoorvaJ
if you don't need all the bells'n'whistles of FreeType but want a much saner API, FontStash+stb_truetype.h is quite nice:https://github.com/memononen/fontstash …
1 reply 3 retweets 7 likes -
Replying to @FlohOfWoe
I want top-notch font rendering for production purposes. Not too happy with stb_truetype in terms of hinting, etc.
1 reply 0 retweets 2 likes -
Replying to @ApoorvaJ @FlohOfWoe
Maybe
@pcwalton’s Pathfinder2 can grow a C API!1 reply 0 retweets 0 likes -
Replying to @ArmyOfBruce @ApoorvaJ and
Not sure if thats necessary, you can generate the font meshes in advance and then just load these in your program. There is a example with typescript webgl renderer and a rust backend that generates the fonts: https://github.com/pcwalton/pathfinder/tree/master/demo …
2 replies 0 retweets 0 likes -
Replying to @pATjako @ArmyOfBruce and
I could pre-render my glyphs using pathfinder, but my app could use a run-time font rasterizer in the future. It's worth it in the long-term to integrate FreeType for my specific use-case.
1 reply 0 retweets 0 likes
Note that if you want hinting then you need FreeType no matter what. However, be sure that you want hinting: you probably don’t need it unless you really want to match Windows (not macOS!) rendering specifically.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.