33110175ea
- Rediffed patches. - CVE-2012-5668.patch, CVE-2012-5669.patch, CVE-2012-5670.patch nothing to do. OBS-URL: https://build.opensuse.org/request/show/148512 OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=72
25 lines
762 B
Diff
25 lines
762 B
Diff
---
|
|
src/base/ftobjs.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
Index: freetype-2.4.11/src/base/ftobjs.c
|
|
===================================================================
|
|
--- freetype-2.4.11.orig/src/base/ftobjs.c
|
|
+++ freetype-2.4.11/src/base/ftobjs.c
|
|
@@ -2187,10 +2187,15 @@
|
|
|
|
/* some checks */
|
|
|
|
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;
|
|
|
|
if ( !FT_HAS_VERTICAL( face ) )
|
|
face->max_advance_height = (FT_Short)face->height;
|