Remove macOS specific path that causes reverse vertical advance
This special case of macOS appears to be outdated and now causes a bug. Change-Id: Ie9c074bb69eda7abfe3d123f807b517334cc2958 Fixes: QTBUG-69803 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
parent
14984bd59a
commit
7c93f1cf5d
@ -686,11 +686,7 @@ _hb_qt_font_create(QFontEngine *fe)
|
||||
const int x_ppem = (fe->fontDef.pixelSize * fe->fontDef.stretch) / 100;
|
||||
|
||||
hb_font_set_funcs(font, hb_qt_get_font_funcs(), (void *)fe, NULL);
|
||||
#ifdef Q_OS_MAC
|
||||
hb_font_set_scale(font, QFixed(x_ppem).value(), QFixed(y_ppem).value());
|
||||
#else
|
||||
hb_font_set_scale(font, QFixed(x_ppem).value(), -QFixed(y_ppem).value());
|
||||
#endif
|
||||
hb_font_set_ppem(font, x_ppem, y_ppem);
|
||||
|
||||
return font;
|
||||
|
Loading…
Reference in New Issue
Block a user