2010-12-08 13:07:58 +01:00
|
|
|
---
|
|
|
|
src/base/ftobjs.c | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
2013-01-15 00:27:06 +01:00
|
|
|
Index: freetype-2.4.11/src/base/ftobjs.c
|
2007-10-09 17:08:08 +02:00
|
|
|
===================================================================
|
2013-01-15 00:27:06 +01:00
|
|
|
--- freetype-2.4.11.orig/src/base/ftobjs.c
|
|
|
|
+++ freetype-2.4.11/src/base/ftobjs.c
|
|
|
|
@@ -2187,10 +2187,15 @@
|
|
|
|
|
|
|
|
/* some checks */
|
2007-10-09 17:08:08 +02:00
|
|
|
|
2007-10-03 00:52:44 +02:00
|
|
|
if ( FT_IS_SCALABLE( face ) )
|
|
|
|
{
|
2007-10-20 17:35:32 +02:00
|
|
|
+ if ( face->family_name && strncmp(face->family_name, "CMEX", 4 ) == 0){
|
2007-10-09 17:08:08 +02:00
|
|
|
+ face->underline_position = (FT_Short)( -face->units_per_EM / 10 );
|
|
|
|
+ face->underline_thickness = (FT_Short)( face->units_per_EM / 30 );
|
2007-10-03 00:52:44 +02:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if ( face->height < 0 )
|
|
|
|
face->height = (FT_Short)-face->height;
|
2007-10-09 17:08:08 +02:00
|
|
|
|
2013-01-15 00:27:06 +01:00
|
|
|
if ( !FT_HAS_VERTICAL( face ) )
|
|
|
|
face->max_advance_height = (FT_Short)face->height;
|