Parcourir la source

apply two patches from the FreeType CVS via the FreeBSD ports (fixing bold text rendering and memory handling)

Ralf S. Engelschall il y a 20 ans
Parent
commit
a7feaf5f39
2 fichiers modifiés avec 31 ajouts et 1 suppressions
  1. 30 0
      freetype/freetype.patch
  2. 1 1
      freetype/freetype.spec

+ 30 - 0
freetype/freetype.patch

@@ -108,3 +108,33 @@ Index: include/freetype/freetype.h
  #ifndef __FREETYPE_H__
  #define __FREETYPE_H__
  
+Index: src/base/ftsynth.c
+--- src/base/ftsynth.c.orig	Tue Dec 13 00:44:56 2005
++++ src/base/ftsynth.c	Tue Dec 13 00:45:05 2005
+@@ -123,7 +123,6 @@
+     if ( !error )
+     {
+       slot->advance.x += xstr;
+-      slot->advance.y += ystr;
+ 
+       slot->metrics.width        += xstr;
+       slot->metrics.height       += ystr;
+Index: src/sfnt/sfdriver.c.orig
+--- src/sfnt/sfdriver.c.orig	Wed Aug  3 18:46:34 2005
++++ src/sfnt/sfdriver.c	Wed Aug  3 18:47:24 2005
+@@ -367,8 +367,13 @@
+     /* see `ttsbit.h' and `sfnt.h' */
+     tt_face_set_sbit_strike,
+     tt_face_load_sbit_strikes,
+-    0 /* tt_find_sbit_image */,
+-    0 /* tt_load_sbit_metrics */,
++#ifdef FT_OPTIMIZE_MEMORY
++    0,
++    0,
++#else
++    tt_find_sbit_image,
++    tt_load_sbit_metrics,
++#endif
+     tt_face_load_sbit_image,
+     tt_face_free_sbit_strikes,
+ 

+ 1 - 1
freetype/freetype.spec

@@ -33,7 +33,7 @@ Class:        BASE
 Group:        Graphics
 License:      GPL
 Version:      2.1.10
-Release:      20051014
+Release:      20051215
 
 #   list of sources
 Source0:      http://savannah.nongnu.org/download/freetype/freetype-%{version}.tar.gz