win32u: Only cache font glyph metrics from GGO_METRICS.
commitbca9df8db26206ddd9c615d274d8ff0c5652e17a
authorZhiyi Zhang <zzhang@codeweavers.com>
Mon, 15 Aug 2022 15:13:54 +0000 (15 23:13 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 1 Sep 2022 15:43:44 +0000 (1 17:43 +0200)
tree0ca376394aa405194d83f41e9a8a39ec04600bc7
parentf9739a59636eda49cf97f1220fa7542b41415710
win32u: Only cache font glyph metrics from GGO_METRICS.

Fonts loaded with GGO_BITMAP may report different font metrics than that with GGO_METRICS. If the
font metrics from GGO_BITMAP are used and later getting font metrics with GGO_METRICS or vice versa,
the font metric difference may cause UI glitchs.

Fix Steam installer next button text moving to the left for 1 pixel when hovered on Mac and Wine is
built with FreeType > 2.8.0.
dlls/win32u/font.c