diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index a7e65fbe0..f6d6f9fcd 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -658,8 +658,10 @@ } else { - loader->exec->metrics.x_scale = loader->size->metrics.x_scale; - loader->exec->metrics.y_scale = loader->size->metrics.y_scale; + loader->exec->metrics.x_scale = + ((TT_Size)loader->size)->metrics.x_scale; + loader->exec->metrics.y_scale = + ((TT_Size)loader->size)->metrics.y_scale; } #endif