forked from minhngoc25a/freetype2
Fixed computation of `face->height'.
This commit is contained in:
parent
4efbfc9ba2
commit
410a3e4646
|
@ -285,7 +285,7 @@
|
|||
root->units_per_EM = 1000;
|
||||
root->ascender = (FT_Short)face->type1.font_bbox.yMax;
|
||||
root->descender = (FT_Short)face->type1.font_bbox.yMin;
|
||||
root->height = ( ( root->ascender + root->descender ) * 12 ) / 10;
|
||||
root->height = ( ( root->ascender - root->descender ) * 12 ) / 10;
|
||||
|
||||
/* now compute the maximum advance width */
|
||||
|
||||
|
|
Loading…
Reference in New Issue