3 ms·
> there's no way for Qt to leverage user fonts if it keeps on using that strategy. One possible approach would be to create an invisible <canvas> (i.e. display
by TimTheTinker 8y ago
> there's no way for Qt to leverage user fonts if it keeps on using that strategy.
One possible approach would be to create an invisible <canvas> (i.e. display:none or position:absolute;left:-15000), use fillText at the desired font size for the subset of characters that will be used, read the pixel data back in, and use the (now bitmapped) font to render text internally. Using bitmapped font data could require patching Qt's render pipeline at a low level -- I don't know enough to say.