projects
/
platform
/
upstream
/
freetype2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c0d5af
)
bugzilla-308961-cmex-workaround
author
Anas Nashif
<anas.nashif@intel.com>
Wed, 7 Nov 2012 22:06:12 +0000
(14:06 -0800)
committer
Anas Nashif
<anas.nashif@intel.com>
Wed, 7 Nov 2012 22:06:12 +0000
(14:06 -0800)
src/base/ftobjs.c
patch
|
blob
|
history
diff --git
a/src/base/ftobjs.c
b/src/base/ftobjs.c
index
36ee797
..
27c689d
100644
(file)
--- a/
src/base/ftobjs.c
+++ b/
src/base/ftobjs.c
@@
-2187,6
+2187,11
@@
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;