On Mon, Jan 11, 2021 at 01:18:42PM +0900, Byeongsik Jeon wrote:
Fixes a regression caused by 044315c0b3890676d9fd751d8191b0b7381e0b97. GGO_UNHINTED bit is used by freetype.c::get_load_flags().
The pre-044315c0b38 code get/set the metrics cache, regardless of whether GGO_UNHINTED bit is turned on. The problem must be corrected because the metrics vary depending on the GGO_UNHINTED on/off. Since the structural change of 044315c0b38, this possibility is excluded naturally by this patch.
Ideally we'd cache unhinted glyph metrics too.
Signed-off-by: Huw Davies huw@codeweavers.com