* src/type1/t1afm.c (T1_Read_Metrics): Reaffirm ascender and descender.
This commit is contained in:
parent
82c131accb
commit
1bbec9e993
@ -297,7 +297,8 @@
|
||||
t1_face->bbox.yMax = ( fi->FontBBox.yMax + 0xFFFF ) >> 16;
|
||||
|
||||
/* ascender and descender are optional and could both be zero */
|
||||
if ( fi->Ascender || fi->Descender )
|
||||
/* check if values are meaningful before overriding defaults */
|
||||
if ( fi->Ascender > fi->Descender )
|
||||
{
|
||||
/* no `U' suffix here to 0x8000! */
|
||||
t1_face->ascender = (FT_Short)( ( fi->Ascender + 0x8000 ) >> 16 );
|
||||
|
Loading…
Reference in New Issue
Block a user