diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-12-14 12:55:04 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-12-16 15:02:20 +0000 |
commit | ae825a48dcb702cef6b9b5dc0cb24c5192fc4b63 (patch) | |
tree | d2cba63d8d91f83e0ef472719bb11035d40c7b9f /src/plugins/platforms/wasm/qwasmeventtranslator.cpp | |
parent | 1f30434356603109ca8aa5edb720522cb6fceac0 (diff) |
Set point size, not just pixel size, when creating HarfBuzz fonts for shaping
Otherwise HarfBuzz will fall back to using default font sizes, e.g. 12.0
in the CoreText backend.
hb_coretext_font_create() already does the right thing, but we're not using
that function, we create the hb_font_t ourselves in _hb_qt_font_create().
The mismatch didn't matter for vector-based fonts as the metrics (presumably)
scale linearly, but for bitmap-based font such as Emojis they don't, and
we ended up with advances that were way too large (increasingly so the
larger the font point size).
Change-Id: I4781dda965c745853732026da91590d8506ec3f5
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmeventtranslator.cpp')
0 files changed, 0 insertions, 0 deletions