Mixing multiple font engines
-
Hi all!
I am working on a project on which I would need to get pathes from drawing text using a QPainter, I have already achieved this by inheriting from QPaintDevice and QPaintEngine and it works no problem there, I can't want to use QPainterPath because I need the wrapping, layout, etc.. functionalities. This is to then use those pathes to display with a laser.
However I would like for it to work with engraving fonts which don't close pathes, unfortunately it causes problems on macos due to CoreText (using the launch argument to use FreeType instead works flawlessly, no issue on windows either) and I unfortunately can not move the whole application to FreeType.
I am looking for a way to programatically change the FontEngine temporarily just for that process. I am ok with using small "hacks" or modifying Qt.
Is it possible?Thanks a lot!