Use proper y-scale factor for height value
This commit is contained in:
parent
7152ac3fcf
commit
dd8a846037
|
@ -336,7 +336,7 @@ bool OT::cff1::accelerator_t::get_extents (hb_font_t *font, hb_codepoint_t glyph
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
extents->y_bearing = font->em_scalef_y (bounds.max.y.to_real ());
|
extents->y_bearing = font->em_scalef_y (bounds.max.y.to_real ());
|
||||||
extents->height = font->em_scalef_x (bounds.min.y.to_real () - bounds.max.y.to_real ());
|
extents->height = font->em_scalef_y (bounds.min.y.to_real () - bounds.max.y.to_real ());
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue