Accessing FT_RENDER_MODE_SDF through Qt APIs
-
Hi,
I'm still new to Qt, and was hoping to do SDF-based text rasterization for a project. I have a QTextLayout, and a set of QGlyphRuns, and can get the individual QPainterPaths and was curious if Qt exposed the relatively new FT_RENDER_MODE_SDF to somehow get the paths rasterized as SDFs...
Otherwise, is it possible in some way to access FreeType APIs directly from my own code? My assumption is that the glyphIndex into the RawFont is the same index that FreeType would require.
Thanks!
Loren -
Hi,
I'm still new to Qt, and was hoping to do SDF-based text rasterization for a project. I have a QTextLayout, and a set of QGlyphRuns, and can get the individual QPainterPaths and was curious if Qt exposed the relatively new FT_RENDER_MODE_SDF to somehow get the paths rasterized as SDFs...
Otherwise, is it possible in some way to access FreeType APIs directly from my own code? My assumption is that the glyphIndex into the RawFont is the same index that FreeType would require.
Thanks!
LorenHi,
Good question, I think the best way to check that is to take a look at the qtbase module and search for it there.