forked from pool/freetype2
* Contains the fix for CVE-2020-15999 * Minor improvements to the B/W rasterizer. * Auto-hinter support for Medefaidrin script. * Fix various memory leaks (mainly for CFF) and other issues that might cause crashes in rare circumstances. - Update to version 2.10.4 * In `ftview', custom LCD filter values are now normalized and balanced. Unorthodox filters are still available through the `-L' command line option. * The GUI demo programs can now be resized. * Demo programs that accept command line option `-k' can now handle function keys, too. The corresponding character codes start with 0xF1. As an example, the POSIX shell syntax (accepted by bash, ksh, and zsh) -k $'\xF3q' emulates the pressing of function key `F3' followed by key `q'. OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=164
21 lines
637 B
Diff
21 lines
637 B
Diff
---
|
|
src/base/ftobjs.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
Index: freetype-2.10.4/src/base/ftobjs.c
|
|
===================================================================
|
|
--- freetype-2.10.4.orig/src/base/ftobjs.c
|
|
+++ freetype-2.10.4/src/base/ftobjs.c
|
|
@@ -2602,6 +2602,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;
|
|
|