freetype2/bugzilla-308961-cmex-workaround.patch
Fridrich Strba eaac049b95 Accepting request 967886 from home:dirkmueller:Factory
- update to 2.12.0:
  - FreeType  now   handles  OT-SVG  fonts,  to   be  controlled  with
   `FT_CONFIG_OPTION_SVG`  configuration macro.   By default,  it can
    only load the 'SVG ' table of an OpenType font.  However, by using
    the `svg-hooks` property of the new 'ot-svg' module it is possible
    to register an  external SVG rendering engine.   The FreeType demo
    programs  have been  set  up  to use  'librsvg'  as the  rendering
    library. 
  - The handling of fonts with an 'sbix' table has been improved.
  - The internal 'zlib'  code has been updated to be  in sync with the
    current 'zlib' version (1.2.11).
  - The  previously internal  load  flag  `FT_LOAD_SBITS_ONLY` is  now
    public.
  - Some  minor improvements  of the  building systems,  in particular
    handling of the 'zlib' library (internal vs. external).
  - Support for non-desktop Universal Windows Platform.
  - Various other minor bug and documentation fixes.
  - The `ftdump` demo  program shows more information  for Type1 fonts
    if option `-n` is given.
  - `ftgrid` can now display embedded bitmap strikes.

OBS-URL: https://build.opensuse.org/request/show/967886
OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=170
2022-04-08 22:08:46 +00:00

21 lines
637 B
Diff

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