bugzilla-308961-cmex-workaround
authorAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 22:06:12 +0000 (14:06 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Wed, 7 Nov 2012 22:06:12 +0000 (14:06 -0800)
src/base/ftobjs.c

index 36ee797..27c689d 100644 (file)
 
     if ( FT_IS_SCALABLE( face ) )
     {
+      if ( face->family_name && strncmp(face->family_name, "CMEX", 4 ) == 0){
+       face->underline_position = (FT_Short)( -face->units_per_EM / 10 );
+       face->underline_thickness = (FT_Short)( face->units_per_EM / 30 );
+      }
+
       if ( face->height < 0 )
         face->height = (FT_Short)-face->height;