freetype2/bugzilla-308961-cmex-workaround.patch
Ismail Dönmez 638a078b2f - Remove old ppc64 parts in spec file
- Refresh patches:
  + bugzilla-308961-cmex-workaround.patch
  + don-t-mark-libpng-as-required-library.patch
  + enable-long-family-names-by-default.patch
- Enable subpixel rendering with infinality config:
  + enable-subpixel-rendering.patch
  + enable-infinality-subpixel-hinting.patch

OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=152
2018-10-27 11:56:04 +00:00

21 lines
634 B
Diff

---
src/base/ftobjs.c | 5 +++++
1 file changed, 5 insertions(+)
Index: freetype-2.9.1/src/base/ftobjs.c
===================================================================
--- freetype-2.9.1.orig/src/base/ftobjs.c
+++ freetype-2.9.1/src/base/ftobjs.c
@@ -2540,6 +2540,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;