freetype-2.9.1.diff 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. diff -ru freetype-2.9.1.orig/include/freetype/config/ftoption.h freetype-2.9.1/include/freetype/config/ftoption.h
  2. --- freetype-2.9.1.orig/include/freetype/config/ftoption.h 2018-04-22 11:41:36.000000000 +0200
  3. +++ freetype-2.9.1/include/freetype/config/ftoption.h 2019-01-29 22:06:21.130522767 +0100
  4. @@ -178,7 +178,7 @@
  5. /* */
  6. /* Define this macro if you want to enable this `feature'. */
  7. /* */
  8. -#define FT_CONFIG_OPTION_USE_LZW
  9. +/* #define FT_CONFIG_OPTION_USE_LZW */
  10. /*************************************************************************/
  11. @@ -193,7 +193,7 @@
  12. /* Define this macro if you want to enable this `feature'. See also */
  13. /* the macro FT_CONFIG_OPTION_SYSTEM_ZLIB below. */
  14. /* */
  15. -#define FT_CONFIG_OPTION_USE_ZLIB
  16. +/* #define FT_CONFIG_OPTION_USE_ZLIB */
  17. /*************************************************************************/
  18. @@ -309,7 +309,7 @@
  19. /* You would normally undefine this configuration macro when building */
  20. /* a version of FreeType that doesn't contain a Type 1 or CFF driver. */
  21. /* */
  22. -#define FT_CONFIG_OPTION_POSTSCRIPT_NAMES
  23. +#undef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
  24. /*************************************************************************/
  25. @@ -327,7 +327,7 @@
  26. /* able to synthesize a Unicode charmap out of the glyphs found in the */
  27. /* fonts. */
  28. /* */
  29. -#define FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
  30. +#undef FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
  31. /*************************************************************************/
  32. @@ -340,7 +340,7 @@
  33. /* */
  34. /* Note that the `FOND' resource isn't checked. */
  35. /* */
  36. -#define FT_CONFIG_OPTION_MAC_FONTS
  37. +/* #define FT_CONFIG_OPTION_MAC_FONTS */
  38. /*************************************************************************/
  39. @@ -530,7 +530,7 @@
  40. /* embedded bitmaps in all formats using the SFNT module (namely */
  41. /* TrueType & OpenType). */
  42. /* */
  43. -#define TT_CONFIG_OPTION_EMBEDDED_BITMAPS
  44. +/* #define TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
  45. /*************************************************************************/
  46. @@ -545,7 +545,7 @@
  47. /* */
  48. /* (By default, the module uses `PSNames' to extract glyph names.) */
  49. /* */
  50. -#define TT_CONFIG_OPTION_POSTSCRIPT_NAMES
  51. +#undef TT_CONFIG_OPTION_POSTSCRIPT_NAMES
  52. /*************************************************************************/
  53. @@ -559,7 +559,7 @@
  54. /* Accessing SFNT names is done through the functions declared in */
  55. /* `ftsnames.h'. */
  56. /* */
  57. -#define TT_CONFIG_OPTION_SFNT_NAMES
  58. +/* #define TT_CONFIG_OPTION_SFNT_NAMES */
  59. /*************************************************************************/
  60. @@ -696,7 +696,7 @@
  61. /* Define TT_CONFIG_OPTION_BDF if you want to include support for */
  62. /* an embedded `BDF ' table within SFNT-based bitmap formats. */
  63. /* */
  64. -#define TT_CONFIG_OPTION_BDF
  65. +/* #define TT_CONFIG_OPTION_BDF */
  66. /*************************************************************************/
  67. @@ -760,7 +760,7 @@
  68. /* files into an existing face. Note that if set, the T1 driver will be */
  69. /* unable to produce kerning distances. */
  70. /* */
  71. -#undef T1_CONFIG_OPTION_NO_AFM
  72. +#define T1_CONFIG_OPTION_NO_AFM
  73. /*************************************************************************/
  74. diff -ru freetype-2.9.1.orig/modules.cfg freetype-2.9.1/modules.cfg
  75. --- freetype-2.9.1.orig/modules.cfg 2018-04-22 11:41:36.000000000 +0200
  76. +++ freetype-2.9.1/modules.cfg 2019-01-29 21:51:32.331946425 +0100
  77. @@ -38,41 +38,41 @@
  78. #
  79. # This driver needs the `psaux', `pshinter', and `psnames' modules.
  80. # No FT_CONFIG_OPTION_PIC support.
  81. -FONT_MODULES += type1
  82. +#FONT_MODULES += type1
  83. # CFF/OpenType font driver.
  84. #
  85. # This driver needs the `sfnt', `psaux', `pshinter', and `psnames' modules.
  86. -FONT_MODULES += cff
  87. +#FONT_MODULES += cff
  88. # Type 1 CID-keyed font driver.
  89. #
  90. # This driver needs the `psaux', `pshinter', and `psnames' modules.
  91. # No FT_CONFIG_OPTION_PIC support.
  92. -FONT_MODULES += cid
  93. +#FONT_MODULES += cid
  94. # PFR/TrueDoc font driver. See optional extension ftpfr.c below also.
  95. # No FT_CONFIG_OPTION_PIC support.
  96. -FONT_MODULES += pfr
  97. +#FONT_MODULES += pfr
  98. # PostScript Type 42 font driver.
  99. #
  100. # This driver needs the `truetype' and `psaux' modules.
  101. # No FT_CONFIG_OPTION_PIC support.
  102. -FONT_MODULES += type42
  103. +#FONT_MODULES += type42
  104. # Windows FONT/FNT font driver. See optional extension ftwinfnt.c below
  105. # also.
  106. # No FT_CONFIG_OPTION_PIC support.
  107. -FONT_MODULES += winfonts
  108. +#FONT_MODULES += winfonts
  109. # PCF font driver. If debugging and tracing is enabled, needs `ftbitmap.c'.
  110. # No FT_CONFIG_OPTION_PIC support.
  111. -FONT_MODULES += pcf
  112. +#FONT_MODULES += pcf
  113. # BDF font driver. See optional extension ftbdf.c below also.
  114. # No FT_CONFIG_OPTION_PIC support.
  115. -FONT_MODULES += bdf
  116. +#FONT_MODULES += bdf
  117. # SFNT files support. If used without `truetype' or `cff', it supports
  118. # bitmap-only fonts within an SFNT wrapper.
  119. @@ -86,10 +86,10 @@
  120. ####
  121. # FreeType's auto hinter.
  122. -HINTING_MODULES += autofit
  123. +#HINTING_MODULES += autofit
  124. # PostScript hinter.
  125. -HINTING_MODULES += pshinter
  126. +#HINTING_MODULES += pshinter
  127. # The TrueType hinting engine doesn't have a module of its own but is
  128. # controlled in file include/freetype/config/ftoption.h
  129. @@ -101,7 +101,7 @@
  130. ####
  131. # Monochrome rasterizer.
  132. -RASTER_MODULES += raster
  133. +#RASTER_MODULES += raster
  134. # Anti-aliasing rasterizer.
  135. RASTER_MODULES += smooth
  136. @@ -115,7 +115,7 @@
  137. # that its public API is subject to change if necessary). See
  138. # include/freetype/ftcache.h. Needs `ftglyph.c'.
  139. # No FT_CONFIG_OPTION_PIC support.
  140. -AUX_MODULES += cache
  141. +#AUX_MODULES += cache
  142. # TrueType GX/AAT table validation. Needs `ftgxval.c' below.
  143. #
  144. @@ -126,19 +126,19 @@
  145. #
  146. # See include/freetype/ftgzip.h for the API.
  147. # No FT_CONFIG_OPTION_PIC support.
  148. -AUX_MODULES += gzip
  149. +#AUX_MODULES += gzip
  150. # Support for streams compressed with LZW (files with suffix .Z).
  151. #
  152. # See include/freetype/ftlzw.h for the API.
  153. # No FT_CONFIG_OPTION_PIC support.
  154. -AUX_MODULES += lzw
  155. +#AUX_MODULES += lzw
  156. # Support for streams compressed with bzip2 (files with suffix .bz2).
  157. #
  158. # See include/freetype/ftbzip2.h for the API.
  159. # No FT_CONFIG_OPTION_PIC support.
  160. -AUX_MODULES += bzip2
  161. +#AUX_MODULES += bzip2
  162. # OpenType table validation. Needs `ftotval.c' below.
  163. #
  164. @@ -149,7 +149,7 @@
  165. #
  166. # This module depends on `psnames'.
  167. # No FT_CONFIG_OPTION_PIC support.
  168. -AUX_MODULES += psaux
  169. +#AUX_MODULES += psaux
  170. # Support for PostScript glyph names.
  171. #
  172. @@ -165,12 +165,12 @@
  173. # Exact bounding box calculation.
  174. #
  175. # See include/freetype/ftbbox.h for the API.
  176. -BASE_EXTENSIONS += ftbbox.c
  177. +#BASE_EXTENSIONS += ftbbox.c
  178. # Access BDF-specific strings. Needs BDF font driver.
  179. #
  180. # See include/freetype/ftbdf.h for the API.
  181. -BASE_EXTENSIONS += ftbdf.c
  182. +#BASE_EXTENSIONS += ftbdf.c
  183. # Utility functions for converting 1bpp, 2bpp, 4bpp, and 8bpp bitmaps into
  184. # 8bpp format, and for emboldening of bitmap glyphs.
  185. @@ -181,17 +181,17 @@
  186. # Access CID font information.
  187. #
  188. # See include/freetype/ftcid.h for the API.
  189. -BASE_EXTENSIONS += ftcid.c
  190. +#BASE_EXTENSIONS += ftcid.c
  191. # Access FSType information. Needs `fttype1.c'.
  192. #
  193. # See include/freetype/freetype.h for the API.
  194. -BASE_EXTENSIONS += ftfstype.c
  195. +#BASE_EXTENSIONS += ftfstype.c
  196. # Support for GASP table queries.
  197. #
  198. # See include/freetype/ftgasp.h for the API.
  199. -BASE_EXTENSIONS += ftgasp.c
  200. +#BASE_EXTENSIONS += ftgasp.c
  201. # Convenience functions to handle glyphs. Needs `ftbitmap.c'.
  202. #
  203. @@ -201,27 +201,27 @@
  204. # Interface for gxvalid module.
  205. #
  206. # See include/freetype/ftgxval.h for the API.
  207. -BASE_EXTENSIONS += ftgxval.c
  208. +#BASE_EXTENSIONS += ftgxval.c
  209. # Multiple Master font interface.
  210. #
  211. # See include/freetype/ftmm.h for the API.
  212. -BASE_EXTENSIONS += ftmm.c
  213. +#BASE_EXTENSIONS += ftmm.c
  214. # Interface for otvalid module.
  215. #
  216. # See include/freetype/ftotval.h for the API.
  217. -BASE_EXTENSIONS += ftotval.c
  218. +#BASE_EXTENSIONS += ftotval.c
  219. # Support for FT_Face_CheckTrueTypePatents.
  220. #
  221. # See include/freetype/freetype.h for the API.
  222. -BASE_EXTENSIONS += ftpatent.c
  223. +#BASE_EXTENSIONS += ftpatent.c
  224. # Interface for accessing PFR-specific data. Needs PFR font driver.
  225. #
  226. # See include/freetype/ftpfr.h for the API.
  227. -BASE_EXTENSIONS += ftpfr.c
  228. +#BASE_EXTENSIONS += ftpfr.c
  229. # Path stroker. Needs `ftglyph.c'.
  230. #
  231. @@ -232,19 +232,19 @@
  232. # `ftbitmap.c'.
  233. #
  234. # See include/freetype/ftsynth.h for the API.
  235. -BASE_EXTENSIONS += ftsynth.c
  236. +#BASE_EXTENSIONS += ftsynth.c
  237. # Interface to access data specific to PostScript Type 1 and Type 2 (CFF)
  238. # fonts.
  239. #
  240. # See include/freetype/t1tables.h for the API.
  241. -BASE_EXTENSIONS += fttype1.c
  242. +#BASE_EXTENSIONS += fttype1.c
  243. # Interface for accessing data specific to Windows FNT files. Needs winfnt
  244. # driver.
  245. #
  246. # See include/freetype/ftwinfnt.h for the API.
  247. -BASE_EXTENSIONS += ftwinfnt.c
  248. +#BASE_EXTENSIONS += ftwinfnt.c
  249. ####
  250. #### The components `ftsystem.c' (for memory allocation and stream I/O