forked from pool/freetype2
- update to 2.13.1: * New function `FT_Get_Default_Named_Instance` to get the index of the default named instance of an OpenType Variation Font. A new load flag `FT_LOAD_NO_SVG` to make FreeType ignore glyphs in an 'SVG ' table. * New function `FT_GlyphSlot_AdjustWeight` to adjust the glyph weight either horizontally or vertically. This is part of the `ftsynth.h` header file * TrueType interpreter version 38 (also known as 'Infinality') has been deactivated; the value of `TT_INTERPRETER_VERSION_38` is now the same as `TT_INTERPRETER_VERSION_40`. * Switching named instances on and off in Variation Fonts was buggy if the design coordinates didn't change. - drop enable-infinality-subpixel-hinting.patch (obsolete, infinality is deactivated) - update to 2.13.1: * `ftbench` has a new command-line option `-a` to apply design coordinates. * `ftview` can now flip SVG rendering on and off using the 'Z' key. * `ftmulti` it is now possible to toggle the fill rule and overlap flag used for rendering glyphs using the 'F3' and 'F4' keys, respectively. Toggling the anti-aliased mode has been changed to the 'TAB' key. OBS-URL: https://build.opensuse.org/request/show/1098802 OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=201
21 lines
637 B
Diff
21 lines
637 B
Diff
---
|
|
src/base/ftobjs.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
Index: freetype-2.13.1/src/base/ftobjs.c
|
|
===================================================================
|
|
--- freetype-2.13.1.orig/src/base/ftobjs.c
|
|
+++ freetype-2.13.1/src/base/ftobjs.c
|
|
@@ -2753,6 +2753,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;
|
|
|