Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.14.2
-
None
-
Kubuntu 20.20, qt installed from system packages.
Description
I've been trying to render text using QRawFont but it seems it doesn't actually handle kerning correctly.
I'm calling
advancesForGlyphIndexes(glyphs, QRawFont::UseDesignMetrics|QRawFont::KernedAdvances)
The QRawFont being created from a QFont with family "Noto Sans", style "Bold", and point size 36.
Attached some screenshots comparing to how a QTextDocument renders it (outline) vs the result from QRawFont (filled).
The QRawFont result is kept the same but the QTextDocument is shown with kerning enabled and disabled.
The one where kerning is disable matches perfectly, while the one with kerning enable is off.