PageRenderTime 105ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/freetype2/ChangeLog.23

http://github.com/zpao/v8monkey
Unknown | 7948 lines | 5475 code | 2473 blank | 0 comment | 0 complexity | 49b98ce96ffcf9f7d245be2f8df8e54c MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, AGPL-1.0, LGPL-2.1, BSD-3-Clause, GPL-2.0, JSON, Apache-2.0, 0BSD
  1. 2010-02-13 Werner Lemberg <wl@gnu.org>
  2. * Version 2.3.12 released.
  3. ==========================
  4. Tag sources with `VER-2-3-12'.
  5. * docs/CHANGES: Updated.
  6. * docs/VERSION.DLL: Update documentation and bump version number to
  7. 2.3.12.
  8. * README, Jamfile (RefDoc),
  9. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  10. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  11. builds/win32/visualc/freetype.dsp,
  12. builds/win32/visualc/freetype.vcproj,
  13. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  14. builds/win32/visualce/freetype.vcproj,
  15. builds/win32/visualce/index.html,
  16. builds/wince/vc2005-ce/freetype.vcproj,
  17. builds/wince/vc2005-ce/index.html,
  18. builds/wince/vc2008-ce/freetype.vcproj,
  19. builds/wince/vc2008-ce/index.html: s/2.3.11/2.3.12/, s/2311/2312/.
  20. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 12.
  21. * builds/unix/configure.raw (version_info): Set to 10:0:4.
  22. 2010-02-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  23. Improve autotool version checking to work with beta releases.
  24. * autogen.sh (check_tool_version): Improve the extraction of version
  25. number from "tool --version" output. Some beta releases of
  26. autotools have extra strings before version number.
  27. 2010-02-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  28. Fix overallocating bug in FT_Outline_New_Internal().
  29. * src/base/ftoutln.c (FT_Outline_New_Internal): The length of
  30. FT_Outline->points[] should be numPoints, not 2 * numPoints.
  31. Found by Paul Messmer, see
  32. http://lists.gnu.org/archive/html/freetype-devel/2010-02/msg00003.html
  33. 2010-02-10 Ken Sharp <ken.sharp@artifex.com>
  34. Really fix Savannah bug #28678 (part 2).
  35. Since we consider `sbw' for the horizontal direction only, we still have
  36. to synthesize vertical metrics if the user wants to use the vertical
  37. writing direction.
  38. * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
  39. (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph):
  40. Synthesize vertical metrics (only) if FT_LOAD_VERTICAL_LAYOUT is
  41. set.
  42. 2010-02-10 Ken Sharp <ken.sharp@artifex.com>
  43. Really fix Savannah bug #28678 (part 1).
  44. After long discussion, we now consider the character width vector
  45. (wx,wy) returned by the `sbw' Type 1 operator as being part of *one*
  46. direction only. For example, if you are using the horizontal
  47. writing direction, you get the horizontal and vertical components of
  48. the advance width for this direction. Note that OpenType and CFF fonts
  49. don't have such a vertical component; instead, the GPOS table can be
  50. used to generate two-dimensional advance widths (but this isn't
  51. handled by FreeType).
  52. * include/freetype/ftincrem.h (FT_Incremental_MetricsRec): Add
  53. `advance_v' field to hold the vertical component of the advance
  54. value.
  55. * src/truetype/ttgload.c (tt_get_metrics), src/cff/cffgload.c
  56. (cff_slot_load), src/type1/t1gload.c
  57. (T1_Parse_Glyph_And_Get_Char_String), src/cid/cidgload.c
  58. (cid_load_glyph): Use it.
  59. 2010-02-08 Werner Lemberg <wl@gnu.org>
  60. * devel/ftoption.h [FT_CONFIG_OPTION_PIC]: Define.
  61. 2010-02-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  62. Prevent NULL pointer dereference passed to FT_Module_Requester.
  63. * src/sfnt/sfdriver.c (sfnt_get_interface): Don't use `module'.
  64. * src/psnames/psmodule.c (psnames_get_interface): Ditto.
  65. * src/cff/cffdrivr.c (cff_get_interface): Check NULL `driver'.
  66. * src/truetype/ttdriver.c (tt_get_interface): Ditto.
  67. 2010-01-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  68. Fix memory leaks in previous patch.
  69. * src/sfnt/sfobjs.c (sfnt_load_face): Don't overwrite the strings
  70. allocated for face->root.family_name and style_name.
  71. 2010-01-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  72. New parameters for FT_Open_Face() to ignore preferred family names.
  73. Preferred family names should be used for legacy systems that
  74. can hold only a few faces (<= 4) for a family name. Suggested by
  75. Andreas Heinrich.
  76. http://lists.gnu.org/archive/html/freetype/2010-01/msg00001.html
  77. * include/freetype/ftsnames.h (FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY,
  78. FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY): Define.
  79. * src/sfnt/sfobjs.c (sfnt_load_face): Check the arguments and
  80. ignore preferred family and subfamily names if requested.
  81. 2010-01-27 Ken Sharp <ken.sharp@artifex.com>
  82. Fix Savannah bug #28678.
  83. * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
  84. (cid_load_glyph): Handle vertical metrics correctly.
  85. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Handle
  86. vertical metrics correctly.
  87. (T1_Load_Glyph): Don't synthesize vertical metrics.
  88. 2010-01-14 Werner Lemberg <wl@gnu.org>
  89. Make FT_Set_Transform work if no renderer is available.
  90. * src/base/ftobjs.c (FT_Load_Glyph): Apply `standard' transformation
  91. if no renderer is compiled into the library.
  92. 2010-01-14 Werner Lemberg <wl@gnu.org>
  93. Fix compilation warning.
  94. * src/base/ftbase.h: s/LOCAL_DEF/LOCAL/.
  95. * src/base/ftobjc.s: Include ftbase.h conditionally.
  96. 2010-01-11 Kwang Yul Seo <skyul@company100.net>
  97. Provide inline assembly code for RVCT compiler.
  98. This is Savannah patch #7059.
  99. * include/freetype/config/ftconfig.h (FT_MULFIX_ASSEMBLER,
  100. FT_MulFix_arm) [__CC_ARM || __ARM_CC]: Define.
  101. 2010-01-08 Ken Sharp <ken.sharp@artifex.com>
  102. Fix Savannah bug #28521.
  103. Issue #28226 involved a work-around for a font which used the
  104. `setcurrentpoint' operator in an invalid way; this operator is only
  105. supposed to be used with the result of OtherSubrs, and the font used
  106. it directly. The supplied patch removed the block of code which
  107. checked this usage entirely.
  108. This turns out to be a Bad Thing. If `setcurrentpoint' is being
  109. used correctly it should reset the flex flag in the decoder. If we
  110. don't do this then the flag never gets reset and we omit any further
  111. contours from the glyph (at least until we close the path or
  112. similar).
  113. * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
  114. <op_setcurrentpoint>: Handle `flex_state' correctly.
  115. 2010-01-05 Werner Lemberg <wl@gnu.org>
  116. Apply reports from clang static analyzer.
  117. * src/lzw/ftlzw.c (ft_lzw_file_init), src/base/ftstroke.c
  118. (FT_Stroker_ParseOutline), src/base/ftsynth.c
  119. (FT_GlyphSlot_Embolden): Remove dead code.
  120. * src/base/ftpatent.c (_tt_check_patents_in_table): Initialize
  121. `offset_i' and `length_i'.
  122. 2010-01-05 Ralph Giles <giles@ghostscript.com>
  123. Enable the incremental font interface by default.
  124. Ghostscript requires the incremental font interface for handling
  125. some Postscript documents. It is moving to using FreeType as its
  126. primary renderer; supporting this in the default build makes it
  127. Ghostscript to be linked against the system FreeType when one is
  128. available.
  129. * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_INCREMENTAL):
  130. Uncomment.
  131. 2010-01-05 Werner Lemberg <wl@gnu.org>
  132. Fix Savannah bug #28395.
  133. * src/truetype/ttdriver.c (Load_Glyph), src/type1/t1gload.c
  134. (T1_Loada_Glyph): Don't check `num_glyphs' if incremental interface
  135. is used.
  136. 2010-01-05 Ken Sharp <ken.sharp@artifex.com>
  137. Make Type 1 `seac' operator work with incremental interface.
  138. This fixes Savannah bug #28480.
  139. * src/psaux/t1decode.c (t1operator_seac): Don't check `glyph_names'
  140. if incremental interface is used.
  141. 2010-01-04 Ken Sharp <ken.sharp@artifex.com>
  142. Make incremental interface work with TrueType fonts.
  143. This fixes Savannah bug #28478.
  144. * src/truetype/ttgload.c (load_truetype_glyph): Don't check
  145. `glyf_offset' if incremental interface is used.
  146. 2009-12-31 Lars Abrahamsson <wonko@opera.com>
  147. Make compilation with FT_CONFIG_OPTION_PIC work again.
  148. * src/base/ftglyph.c (FT_Glyph_To_Bitmap) [FT_CONFIG_OPTION_PIC]:
  149. Declare `library' for FT_BITMAP_GLYPH_CLASS_GET.
  150. * src/base/ftinit.c (ft_destroy_default_module_classes,
  151. ft_create_default_module_classes): Use proper casts (needed for C++
  152. compilation).
  153. * src/sfnt/ttcmap.c (tt_cmap13_class_rec): Use FT_DEFINE_TT_CMAP.
  154. 2009-12-22 Marc Kleine-Budde <mkl@pengutronix.de>
  155. Make freetype-config aware of $SYSROOT.
  156. This is Savannah patch #7040.
  157. * builds/unix/freetype-config.in: Decorate with ${SYSROOT} where
  158. appropriate.
  159. 2009-12-20 Werner Lemberg <wl@gnu.org>
  160. Fix compiler warning.
  161. Reported by Sean.
  162. * src/base/ftdbgmem.c [!FT_DEBUG_MEMORY]: ANSI C doesn't like empty
  163. source files; however, some compilers warn about an unused variable
  164. declaration. This is now replaced with a typedef.
  165. 2009-12-18 Werner Lemberg <wl@gnu.org>
  166. Fix Savannah bug #28320.
  167. There exist corrupt, subsetted fonts (embedded in PDF files) which
  168. contain a private dict that ends with an unterminated floating point
  169. number (no operator following). We now ignore this error (as
  170. acrobat does).
  171. * src/cff/cffparse.c (cff_parser_run): Don't emit a syntax error for
  172. unterminated floating point numbers.
  173. 2009-12-16 Werner Lemberg <wl@gnu.org>
  174. Really fix compiler warnings.
  175. Reported by Sean.
  176. * src/truetype/ttgxvar.c (GX_PT_POINTS_ARE_WORDS,
  177. GX_PT_POINT_RUN_COUNT_MASK): Convert enum values to macros.
  178. 2009-12-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  179. Improve configure.raw to copy some options from CFLAGS to LDFLAGS.
  180. The linker of Mac OS X 10.6 is sensitive to the architecture. If
  181. the architectures are specified explicitly for the C compiler, the
  182. linker requires the architecture specifications too.
  183. * builds/unix/configure.raw: Replace `-isysroot' option parser by
  184. more generic argument parser.
  185. 2009-12-15 Werner Lemberg <wl@gnu.org>
  186. Fix compiler warnings.
  187. Reported by Sean.
  188. * src/truetype/ttgxvar.c (ft_var_readpackeddeltas): Fix counter data
  189. type.
  190. 2009-12-14 Ken Sharp <ken.sharp@artifex.com>
  191. Ignore invalid `setcurrentpoint' operations in Type 1 fonts.
  192. This fixes Savannah bug #28226.
  193. At least two wild PostScript files of unknown provenance contain
  194. Type 1 fonts, apparently converted from TrueType fonts in earlier
  195. PDF versions of the files, which use the `setcurrentpoint' operator
  196. inappropriately.
  197. FreeType currently throws an error in this case, but Ghostscript and
  198. Adobe Distiller both accept the fonts and ignore the problem. This
  199. commit #ifdefs out the check so PostScript interpreters using
  200. FreeType can render these files.
  201. The specification says `setcurrentpoint' should only be used to set
  202. the point after a `Subr' call, but these fonts use it to set the
  203. initial point to (0,0). Unnecessarily so, as they correctly use an
  204. `hsbw' operation which implicitly sets the initial point.
  205. * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
  206. <op_setcurrentpoint>: Comment out code.
  207. 2009-12-14 Bram Tassyns <bramt@enfocus.be>
  208. Fix parsing of /CIDFontVersion.
  209. This fixes Savannah bug #28287.
  210. * src/cid/cidtoken.h: `cid_version' in CID_FaceInfoRec (in
  211. t1tables.h) is of type FT_Fixed.
  212. 2009-12-14 Werner Lemberg <wl@gnu.org>
  213. Trace glyph index in CID module.
  214. Suggested in Savannah patch #7023.
  215. * src/cid/cidgload.c (cid_load_glyph): Add tracing message.
  216. 2009-12-03 Werner Lemberg <wl@gnu.org>
  217. Fix compiler warnings.
  218. * src/truetype/ttgload.c (tt_get_metrics): Put `Exit' label into the
  219. proper preprocessor conditional.
  220. * src/pfr/pfrobjs.c (pfr_slot_load): Pacify gcc.
  221. 2009-11-25 John Tytgat <John.Tytgat@esko.com>
  222. Better handling of start of `eexec' section.
  223. This fixes Savannah bug #28090.
  224. * src/type1/t1parse.c (T1_Get_Private_Dict): Skip all whitespace
  225. characters before start of `eexec' section.
  226. 2009-11-20 Werner Lemberg <wl@gnu.org>
  227. Fix Savannah bug #27742.
  228. * src/base/ftstroke.c (ft_stroker_outside): Avoid silent division by
  229. zero, using a threshold for `theta'.
  230. 2009-11-20 Werner Lemberg <wl@gnu.org>
  231. Fix Savannah bug #28036.
  232. * src/type1/t1afm.c (t1_get_index): Fix comparison.
  233. 2009-11-16 Werner Lemberg <wl@gnu.org>
  234. Fix compiler warnings.
  235. Reported by Kevin Blenkinsopp <arqon@promode.org>.
  236. * src/sfnt/ttload.c (check_table_dir): Use proper data type.
  237. 2009-11-15 Werner Lemberg <wl@gnu.org>
  238. Really fix FreeDesktop bug #21197.
  239. This also fixes Savannah bug #28021.
  240. * src/autofit/aflatin.c (af_latin_metrics_check_digits),
  241. src/autofit/aflatin2.c (af_latin2_metrics_check_digits): Fix loop.
  242. 2009-11-15 Werner Lemberg <wl@gnu.org>
  243. Add tracing messages for advance values.
  244. * src/base/ftobjs.c (FT_Load_Glyph), src/truetype/ttgload.c
  245. (TT_Get_HMetrics, TT_Get_VMetrics): Do it.
  246. 2009-11-08 Werner Lemberg <wl@gnu.org>
  247. Fix compiler warning.
  248. Reported by Jeremy Manson <jeremy.manson@gmail.com>.
  249. * src/truetype/ttgload.c (load_truetype_glyph): Initialize `error'.
  250. 2009-11-04 Werner Lemberg <wl@gnu.org>
  251. Remove compiler warning.
  252. Reported by Sean McBride <sean@rogue-research.com>.
  253. * src/tools/apinames.c (read_header_file)<STATE_TYPE>: Use a cast to
  254. `int', as specified in the printf(3) man page.
  255. 2009-11-04 Werner Lemberg <wl@gnu.org>
  256. Fix Savannah bug #27921.
  257. * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
  258. (cid_face_init), src/type1/t1afm.c (T1_Read_Metrics),
  259. src/type1/t1objs.c (T1_Face_Init): Don't use unsigned constant
  260. values for rounding if the argument can be negative.
  261. 2009-11-03 Bram Tassyns <bramt@enfocus.be>
  262. Add basic support for Type1 charstrings in CFF.
  263. This fixes Savannah bug #27922.
  264. * src/cff/cffgload.c (CFF_Operator, cff_argument_counts): Handle
  265. `seac', `sbw', and `setcurrentpoint' opcodes.
  266. (cff_compute_bias): Add parameter to indicate the charstring type.
  267. Update all callers.
  268. (cff_operator_seac): Add parameter for side bearing.
  269. (cff_decoder_parse_charstrings): Updated for more Type1 support.
  270. 2009-11-03 Werner Lemberg <wl@gnu.org>
  271. Return correct `linearHoriAdvance' value for embedded TT bitmaps too.
  272. Reported by Jeremy Manson <jeremy.manson@gmail.com>.
  273. src/truetype/ttgload.c (load_truetype_glyph): Add parameter to
  274. quickly load the glyph header only.
  275. Update all callers.
  276. (tt_loader_init): Add parameter to quickly load the `glyf' table
  277. only.
  278. Update all callers.
  279. (TT_Load_Glyph): Compute linear advance values for embedded bitmap
  280. glyphs too.
  281. 2009-11-03 Werner Lemberg <wl@gnu.org>
  282. Improve code readability.
  283. * src/ttgload.c (load_truetype_glyph): Move metrics calculation
  284. to...
  285. (tt_get_metrics): This new function.
  286. 2009-10-26 Bram Tassyns <bramt@enfocus.be>
  287. Fix Savannah bug #27811.
  288. * src/truetype/ttxgvar.c (ft_var_readpackeddeltas): Fix
  289. signed/unsigned mismatch.
  290. 2009-10-19 Ning Dong <flintning@163.com>
  291. Fix handling of `get' and `put' CFF instructions.
  292. * src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_get,
  293. cff_op_put>: Appendix B of Adobe Technote #5177 limits the number of
  294. elements for the `get' and `put' operators to 32.
  295. * src/cff/cffgload.h (CFF_MAX_TRANS_ELEMENTS): Define.
  296. (CFF_Decoder): Use it for `buildchar' and remove `len_buildchar'.
  297. 2009-10-18 Werner Lemberg <wl@gnu.org>
  298. Fix handling of `dup' CFF instruction.
  299. Problem and solution reported by Ning Dong <flintning@163.com>.
  300. * src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_dup>:
  301. Increase `args' by 2, not 1.
  302. 2009-10-10 Werner Lemberg <wl@gnu.org>
  303. * Version 2.3.11 released.
  304. ==========================
  305. Tag sources with `VER-2-3-11'.
  306. * docs/VERSION.DLL: Update documentation and bump version number to
  307. 2.3.11.
  308. * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
  309. builds/win32/visualc/freetype.dsp,
  310. builds/win32/visualc/freetype.vcproj,
  311. builds/win32/visualce/index.html,
  312. builds/win32/visualce/freetype.dsp,
  313. builds/win32/visualce/freetype.vcproj: s/2.3.10/2.3.11/, s/2310/2311/.
  314. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 11.
  315. * builds/unix/configure.raw (version_info): Set to 9:22:3.
  316. 2009-10-10 Werner Lemberg <wl@gnu.org>
  317. * docs/CHANGES, docs/release: Updated.
  318. 2009-10-10 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  319. * src/pcf/pcfread.c (pcf_get_properties): Fix a bug in the nprops
  320. truncation. Reported by Martin von Gagern and Peter Volkov.
  321. https://bugs.gentoo.org/288357 and https://bugs.gentoo.org/288256
  322. 2009-10-06 Werner Lemberg <wl@gnu.org>
  323. * Version 2.3.10 released.
  324. ==========================
  325. Tag sources with `VER-2-3-10'.
  326. * builds/toplevel.mk (major, minor, patch): Fix regexp to allow more
  327. than a single digit.
  328. (dist): We now use git.
  329. * docs/VERSION.DLL: Update documentation and bump version number to
  330. 2.3.10.
  331. * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
  332. builds/win32/visualc/freetype.dsp,
  333. builds/win32/visualc/freetype.vcproj,
  334. builds/win32/visualce/index.html,
  335. builds/win32/visualce/freetype.dsp,
  336. builds/win32/visualce/freetype.vcproj: s/2.3.9/2.3.10/, s/239/2310/.
  337. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 10.
  338. * builds/unix/configure.raw (version_info): Set to 9:21:3.
  339. 2009-10-06 Werner Lemberg <wl@gnu.org>
  340. Fix `make multi'.
  341. * src/cache/ftccache.c, src/cache/ftcsbits.c (FT_COMPONENT): Define.
  342. * src/sfnt/sfdriver.c: Include FT_INTERNAL_DEBUG_H.
  343. 2009-09-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  344. [cache] Fix Savannah bug #27441, clean up Redhat bugzilla #513582.
  345. Tricky casts in FTC_{CACHE,GCACHE,MRULIST}_LOOKUP_CMP() are removed.
  346. Now these functions should be called with FTC_Node or FTC_MruNode
  347. variable, and the caller should cast them to appropriate pointers to
  348. concrete data. These tricky casts can GCC-4.4 optimizer (-O2)
  349. confused and the crashing binaries are generated.
  350. * src/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Drop tricky cast.
  351. Now the 4th argument `node' of this function should be typed as
  352. FTC_MruNode.
  353. * src/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP): For inline
  354. implementation, new temporal variable FTC_MruNode `_mrunode' to take
  355. the pointer from FTC_MRULIST_LOOKUP_CMP(). For non-inline
  356. implementation, tricky cast is dropped.
  357. * src/cache/ftcmanag.c (FTC_SIZE_NODE): New macro casting
  358. to FTC_SizeNode.
  359. (FTC_Manager_LookupSize): Replace FTC_SizeNode `node' by FTC_MruNode
  360. `mrunode', and FTC_SIZE_NODE() is inserted.
  361. (FTC_FACE_NODE): New macro casting to FTC_FaceNode.
  362. (FTC_Manager_LookupFace) Replace FTC_FaceNode `node' by FTC_MruNode
  363. `mrunode', and FTC_FACE_NODE() is inserted.
  364. * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Change the type of
  365. `node' from FTC_INode to FTC_Node. Extra casting macro FTC_NODE()
  366. is dropped.
  367. (FTC_ImageCache_LookupScaler): Ditto.
  368. (FTC_SBitCache_Lookup): Change the type of `node' from FTC_SNode to
  369. FTC_Node. Extra casting macro FTC_NODE() is dropped. FTC_SNODE()
  370. is inserted.
  371. (FTC_SBitCache_LookupScaler): Ditto.
  372. * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change the type of
  373. `node' from FTC_CMapNode to FTC_Node. Extra casting macro
  374. FTC_NODE() is dropped, FTC_CMAP_NODE() is inserted.
  375. 2009-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  376. [cache, psaux, type1] Fix for multi build.
  377. In multi build, some cpp functions are left as unresolved symbols.
  378. * src/cache/ftcbasic.c: Include FT_INTERNAL_DEBUG_H for FT_TRACE1().
  379. * src/psaux/t1decode.c: Include FT_INTERNAL_CALC_H for
  380. FIXED_TO_INT().
  381. * src/type1/t1gload.c: Ditto.
  382. * src/type1/t1objs.c: Ditto.
  383. 2009-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  384. [autofit] Fix for multi build.
  385. * src/autofit/afmodule.h: Include FT_INTERNAL_OBJECTS_H to use
  386. FT_DECLARE_MODULE() macro in multi build.
  387. * src/autofit/aflatin.c: Include <ft2build.h> to handle
  388. FT_ADVANCES_H correctly in multi build.
  389. 2009-09-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  390. [cache] Check the face filled by FTC_Manager_LookupFace().
  391. * src/cache/ftcbasic.c (ftc_basic_family_get_count): Return
  392. immediately if FTC_Manager_LookupFace() fills face by NULL. Such
  393. case can occur when the code is optimized by GCC-4.2.x.
  394. 2009-09-23 Werner Lemberg <wl@gnu.org>
  395. * docs/CHANGES: Updated.
  396. 2009-09-12 Werner Lemberg <wl@gnu.org>
  397. [raster] Fix 5-levels grayscale output.
  398. This was broken since version 2.3.0.
  399. * src/raster/ftraster.c (count_table): Use pre-2.3.0 values (which
  400. were then computed dynamically).
  401. (Vertical_Gray_Sweep_Step): Updated.
  402. (ft_black_render): Initialize `worker->gray_lines' (problem found by
  403. valgrind).
  404. (FT_RASTER_OPTION_ANTI_ALIASING, DEBUG_RASTER): Dont' #undef, just
  405. comment out.
  406. 2009-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  407. Improve configure.raw for cross build.
  408. * builds/unix/configure.raw: Remove temporal files created by the
  409. suffix checking for CC_BUILD. Set XX_ANSIFLAGS and XX_CFLAGS when
  410. cross compiler is GCC. AC_PROG_CC checks whether the cross compiler
  411. is GCC, its result is stored in GCC.
  412. 2009-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  413. [BDF] Modify hash API to take size_t value instead of void *.
  414. The hash API in BDF driver is designed to be generic, it takes
  415. void * typed data. But BDF driver always gives an unsigned long
  416. integer (the index to a property). To reduce non-essential
  417. casts from unsigned long to void* and from void* to unsigned
  418. long, the hash API is changed to take size_t integer.
  419. The issue of incompatible cast between unsigned long and void*
  420. on LLP64 platform is reported by NightStrike from MinGW-Win64
  421. project. See
  422. http://lists.gnu.org/archive/html/freetype/2009-09/msg00000.html
  423. * src/bdf/bdf.h: The type of hashnode->data is changed from
  424. void* to size_t.
  425. * src/bdf/bdflib.c (hash_insert): Get size_t data, instead of
  426. void* data.
  427. (bdf_create_property): Get the name length of new property by
  428. size_t variable, with a cut-off at FT_ULONG_MAX.
  429. (_bdf_set_default_spacing): Get the name length of the face by
  430. size_t variable, with a cut-off at 256.
  431. (bdf_get_property): Get the property id by size_t variable to
  432. reduce the casts between 32-bit prop ID & hashnode->data during
  433. simple copying.
  434. (_bdf_add_property): Ditto.
  435. (_bdf_parse_start): Calculate the index to the property array
  436. by size_t variable.
  437. (bdf_get_font_property): Drop a cast to unsigned long.
  438. 2009-09-10 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  439. [Win64] Improve the computation of random seed from stack address.
  440. On LLP64 platform, the conversion from pointer to FT_Fixed need
  441. to drop higher 32-bit. Explict casts are required. Reported by
  442. NightStrike from MinGW-w64 project. See
  443. http://lists.gnu.org/archive/html/freetype/2009-09/msg00000.html
  444. * src/cff/cffgload.c: Convert the pointers to FT_Fixed explicitly.
  445. * src/psaux/t1decode.c: Ditto.
  446. 2009-09-03 Werner Lemberg <wl@gnu.org>
  447. [raster] Improvements for stand-alone mode.
  448. * src/raster/rules.mk: Don't handle ftmisc.h. It is needed for
  449. stand-alone mode only.
  450. * src/raster/ftmisc.h (FT_MemoryRec , FT_Alloc_Func, FT_Free_Func,
  451. FT_Realloc_Func): Copy declarations from ftsystem.h.
  452. 2009-09-02 Bram Tassyns <bramt@enfocus.be>
  453. Improve vertical metrics calculation (Savannah bug #27364).
  454. The calculation of `vertBearingX' is not defined in the OTF font
  455. spec so FreeType does a `best effort' attempt. However, this value
  456. is defined in the PDF and PostScript specs, and that algorithm is
  457. better than the one FreeType currently uses:
  458. FreeType: Use the middle of the bounding box as the X coordinate
  459. of the vertical origin.
  460. Adobe PDF spec: Use the middle of the horizontal advance vector as
  461. the X coordinate of the vertical origin.
  462. FreeType's algorithm goes wrong if you have a really small glyph
  463. (like the full-width, circle-like dot at the end of the sentence, as
  464. used in CJK scripts) with large bearings. With the FreeType
  465. algorithm this dot gets centered on the baseline; with the PDF
  466. algorithm it gets the correct location (in the top right). Note
  467. that this is a serious issue, it's like printing the dot at the end
  468. of a Roman sentence at the center of the textline instead of on the
  469. baseline like it should. So i believe the PDF spec's algorithm
  470. should be used in FreeType as well.
  471. The `vertBearingY' value for such small glyphs is also very strange
  472. if no `vmtx' information is present, since the height of the bbox is
  473. not representable for the height of the glyph visually (the
  474. whitespace up to the baseline is part of the glyph). The fix also
  475. includes some code for a better estimate of `vertBearingY'.
  476. * src/base/ftobjs.c (ft_synthesize_vertical_metrics): `vertBearingX'
  477. is now calculated as described by the Adobe PDF Spec. Estimate for
  478. `vertBearingY' now works better for small glyphs completely above or
  479. below the baseline into account.
  480. * src/cff/cffgload.c (cff_slot_load): `vertBearingX' is now
  481. calculated as described by the Adobe PDF Spec. Vertical metrics
  482. information was always ignored when FT_CONFIG_OPTION_OLD_INTERNALS
  483. was not defined.
  484. * src/truetype/ttgload.c (compute_glyph_metrics): `vertBearingX' is
  485. now calculated as described by the Adobe PDF Spec.
  486. 2009-09-01 John Tytgat <John.Tytgat@esko.com>
  487. Fix custom cmap for empty Type 1 font (Savannah bug #27294).
  488. * include/freetype/internal/t1types.h (T1_EncodingRecRec_): Update
  489. comment to reflect revised code_last meaning.
  490. * src/type1/t1load.c (T1_Open_Face), src/type42/t42objs.c
  491. (T42_Open_Face): Assign max_char as highest character code + 1 and
  492. use this for T1_EncodingRecRec_::code_last.
  493. * src/psaux/t1cmap.c (t1_cmap_custom_init): Follow revised
  494. T1_EncodingRecRec_::code_last meaning.
  495. 2009-08-25 Werner Lemberg <wl@gnu.org>
  496. Fix rendering of horizontally compressed CFFs.
  497. Bug reported by Ivan Nincic <inincic@pdftron.com>.
  498. * src/cff/cffgload.c (cff_slot_load): Thinko: Check `xx' element of
  499. `font_matrix' also.
  500. * docs/CHANGES: Updated.
  501. 2009-08-03 suyu0925@gmail.com
  502. Don't call `ft_fseek' every time when executing `ft_fread'.
  503. * src/base/ftstream.c (FT_Stream_Seek), src/base/ftsystem.c
  504. (ft_ansi_stream_io): Implement it.
  505. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  506. sfnt: Cast a charcode to 32-bit in cmap format 14 parser.
  507. * src/sfnt/ttcmap.c (tt_cmap14_char_var_index,
  508. tt_cmap14_char_var_isdefault, tt_cmap14_char_variants,
  509. tt_cmap14_variant_chars): Correct mismatches from
  510. FT_CMap_CharVarIndexFunc prototype, FT_ULong arguments
  511. are replaced by FT_UInt32 arguments.
  512. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  513. sfnt: Cast a charcode to 32-bit in cmap format 12 parser.
  514. * src/sfnt/ttcmap.c (tt_cmap12_char_next):
  515. Insert explicit cast from FT_UFast to FT_UInt32
  516. for return value.
  517. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  518. psaux: Fix a few casts to FT_Int32 value.
  519. * src/psaux/t1decode.c (t1_decoder_parse_charstrings):
  520. Fix a few casts setting `value' from FT_Long to FT_Int32,
  521. because `value' is typed as FT_Int32 since 2009-06-22.
  522. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  523. sfnt: Fix a data type mismatching with its source.
  524. * src/sfnt/ttcmap.c (tt_cmap13_char_next): Fix the
  525. type of `gindex' from FT_ULong to FT_UInt because
  526. it is set by FT_UInt tt_cmap13_char_map_binary() or
  527. TT_CMap13->cur_gindex.
  528. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  529. sfnt: Extend a few local variables to load 32-bit values.
  530. * src/sfnt/ttkern.c (tt_face_load_kern): Extend `count'
  531. and `kern' to load 32-bit values.
  532. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  533. pfr: Extend `num_aux' to take 32-bit value.
  534. * src/pfr/pfrload.c (pfr_phy_font_load): Extend
  535. `num_aux' to load 32-bit value.
  536. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  537. pcf: Truncate FT_ULong `nprops' to fit to int PCF_Face->nprops.
  538. * src/pcf/pcfread.c (pcf_get_properties): Load `nprops'
  539. as FT_ULong value from PCF file, but truncate it as
  540. int to fit PCF_Face->nprops. The number of truncated
  541. properties is shown in the trace message.
  542. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  543. gxvalid: Extend a few local variables to reduce the casts.
  544. * src/gxvalid/gxvmorx.c (gxv_morx_subtables_validate):
  545. Extend `type' and `rest' to take FT_ULong values.
  546. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  547. gxvalid: Extend `settingTable' to take 32-bit offset.
  548. * src/gxvalid/gxvfeat.c (gxv_feat_name_validate):
  549. Extend `settingTable' to take 32-bit offset.
  550. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  551. autofit: Cast FT_Long glyph_count to compare with FT_UInt GID.
  552. * src/autofit/afglobal.c (af_face_globals_is_digit,
  553. af_face_globals_compute_script_coverage): Cast FT_Long
  554. globals->glyph_count to FT_ULong, to compare with FT_UInt
  555. gindex.
  556. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  557. smooth: Exclude 16-bit system in invalid pitch/height check.
  558. * src/smooth/ftsmooth.c (ft_smooth_render_generic):
  559. pitch and height are typed as FT_UInt but checked to fit
  560. 16-bit range, to avoid the overflows. On 16-bit system,
  561. this checking inserts a conditional that never occurs.
  562. 2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  563. cff: Type large constants > 0x7FFF as long for 16-bit systems.
  564. * src/cff/cffload.c (cff_charset_load): Type large
  565. constants > 0x7FFF as long, because normal constants
  566. are typed signed integer that is less than 0x8000 on
  567. 16-bit systems.
  568. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  569. base: Remove an unused variable.
  570. * src/base/ftglyph.c (FT_Glyph_To_Bitmap): Remove an
  571. unused variable `library'. glyph->library is used.
  572. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  573. cache: Check higher bits in flags for non ILP32 systems.
  574. 4 public functions ought to take FT_ULong flags, but take
  575. FT_UInt flags. To keep binary compatibility, we drop higher
  576. bits on non ILP32 platforms,
  577. ILP64 systems: No drop occurs.
  578. LP64 systems: Higher bits are not used.
  579. 16-bit systems: Drop can occur.
  580. See
  581. http://lists.gnu.org/archive/html/freetype-devel/2008-12/msg00065.html
  582. These functions will be refined to take FT_ULong flags in
  583. next bump with incompatible API change.
  584. * src/cache/ftcbasic.c (FTC_ImageCache_Lookup):
  585. Check `flags' in `type', the 2nd argument.
  586. (FTC_SBitCache_Lookup): Ditto.
  587. (FTC_ImageCache_LookupScaler): Check `load_flags',
  588. the 3rd argument.
  589. (FTC_SBitCache_LookupScaler): Ditto.
  590. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  591. sfnt: Ignore invalid GIDs in glyph name lookup.
  592. * include/freetype/internal/fttrace.h:
  593. New trace module for sfdriver.c is added.
  594. * src/sfnt/sfdriver.c (sfnt_get_name_index):
  595. Restrict glyph name lookup to FT_UInt GID.
  596. Genuine TrueType can hold 16-bit glyphs.
  597. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  598. pcf: Fix a comparison between FT_Long and FT_ULong.
  599. * src/pcf/pcfread.c (pcf_get_bitmaps): Return an error
  600. if PCF_Face->nemetrics is negative.
  601. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  602. gxvalid: Guarantee `nFeatureFlags' size up to 32-bit.
  603. * src/gxvalid/gxvmort.c (gxv_mort_featurearray_validate):
  604. Extend the 3rd argument `nFeatureFlags' to FT_ULong.
  605. * src/gxvalid/gxvmort.h: Ditto.
  606. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  607. sfnt: Insert explicit cast for LP64 system.
  608. * src/sfnt/ttkern.c (tt_face_load_kern): Insert
  609. cast from unsigned long to FT_UInt32.
  610. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  611. gxvalid: Guarantee `just' table size upto 32-bit.
  612. * src/gxvalid/gxvjust.c (gxv_just_validate):
  613. The type of `offset' is changed from FT_UInt to
  614. FT_Offset, for 16-bit platforms.
  615. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  616. gxvalid: Guarantee `trak' table size upto 32-bit.
  617. * src/gxvalid/gxvtrak.c (gxv_trak_validate):
  618. The type of `offset' is changed from FT_UInt to
  619. FT_Offset, for 16-bit platforms.
  620. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  621. type1: Fix a data type mismatching with its source.
  622. * include/freetype/internal/t1types.h: The type of
  623. T1_Face->buildchar is matched with T1_Decorder->top.
  624. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  625. pfr: Fix a data type mismatching with its source.
  626. * src/pfr/pfrtypes.h: The type of PFR_KernItem->offset
  627. is extended from FT_UInt32 to FT_Offset, because it is
  628. calculated with the pointer difference, in
  629. pfr_extra_item_load_kerning_pairs().
  630. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  631. pfr: Fix a data type mismatching with its source.
  632. * src/pfr/pfrtypes.h: The type of PFR_PhysFont->chars_offset
  633. is extended from FT_UInt32 to FT_Offset, because it is
  634. calculated with the pointer difference in pfr_phy_font_load().
  635. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  636. pfr: Fix a data type mismatching with its source.
  637. * src/pfr/pfrtypes.h: The type of PFR_PhyFont->bct_offset
  638. is extended from FT_UInt32 to FT_Long, because it is
  639. loaded by FT_STREAM_POS() in pfr_phy_font_load().
  640. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  641. smooth: Improve the format in debug message.
  642. * src/smooth/ftgrays.c (gray_dump_cells): Improve the
  643. format specifications to dump variables.
  644. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  645. sfnt: Fix a data type mismatching with its source.
  646. * src/sfnt/sfobjs.c (sfnt_load_face): The type of
  647. local `flags' is matched with FT_Face->face_flags.
  648. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  649. psaux: Fix a data type mismatching with its source.
  650. * include/freetype/internal/psaux.h: The type of
  651. T1_DecorderRec.buildchar is matched with
  652. T1_DecorderRec.top.
  653. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  654. truetype: Extend TrueType GX packed deltas to FT_Offset.
  655. * src/truetype/ttgxvar.c (ft_var_readpackeddeltas):
  656. The type of 2nd argument `delta_cnt' is changed from
  657. FT_Int to FT_Offset, because its source can be cvt
  658. table size calculated from stream position.
  659. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  660. truetype: Extend mmvar_len to hold size_t values.
  661. * src/truetype/ttgxvar.h: The type of
  662. GX_BlendRec.mmvar_len is changed from FT_Int to
  663. FT_Offset, because TT_Get_MM_Var() calculates it
  664. by sizeof() results.
  665. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  666. truetype: Check invalid function number in IDEF instruction.
  667. * src/truetype/ttinterp.c (Ins_IDEF): Check
  668. if the operand fits to 8-bit opcode limitation.
  669. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  670. truetype: Check invalid function number in FDEF instruction.
  671. * src/truetype/ttinterp.c (Ins_FDEF): Check
  672. if the operand fits 16-bit function number.
  673. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  674. truetype: Truncate the deltas of composite glyph at 16-bit values.
  675. * src/truetype/ttgload.c (load_truetype_glyph):
  676. Insert cast from FT_Long (deltas[i].{x,y}) to
  677. FT_Int16 in the summation of deltas[] for composite
  678. glyphs. Because deltas[i] is typed as FT_Pos,
  679. its component x, y are typed as FT_Long, but
  680. their sources are always FT_Int16 when they are
  681. loaded by ft_var_readpackeddeltas(). However,
  682. the limitation about the summed deltas is unclear.
  683. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  684. truetype: Truncate the instructions upto 16-bit per a glyph.
  685. * src/truetype/ttgload.c (TT_Hint_Glyph): Truncate
  686. the instructions upto 16-bit length per a glyph.
  687. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  688. truetype: Cast the numerical operands to 32-bit for LP64 systems.
  689. * src/truetype/ttinterp.c (Ins_SPHIX, INS_MIAP,
  690. Ins_MIRP): Insert cast from long (args[], the
  691. operands passed to TrueType operator) to FT_Int32
  692. (the argument of TT_MulFix14()).
  693. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  694. truetype: Cast the project vector to 32-bit for LP64 system.
  695. * src/truetype/ttinterp.c (Project, DualProject):
  696. Insert casts from FT_Pos (the arguments `dx', `dy')
  697. to FT_UInt32 (the argument to TT_DotFix14()).
  698. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  699. truetype: Cast the scaling params to 32-bit for LP64 system.
  700. * src/truetype/ttgload.c (TT_Process_Composite_Component):
  701. Insert casts from long (return value of FT_MulFix()) to
  702. FT_Int32 (the argument to FT_SqrtFixed()).
  703. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  704. sfnt: Cast a character code to FT_UInt32 for LP64 system.
  705. * src/sfnt/ttcmap.c (tt_cmap14_char_map_nondef_binary,
  706. tt_cmap14_variants, tt_cmap14_char_variants,
  707. tt_cmap14_def_char_count, tt_cmap14_get_def_chars,
  708. tt_cmap14_get_nondef_chars, tt_cmap14_variant_chars)
  709. Insert casts when FT_UInt32 variable is loaded by
  710. TT_NEXT_{UINT24|ULONG}. Because most of them are
  711. compared with FT_UInt32 values in public API, replacing
  712. FT_UFast is not recommended.
  713. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  714. sfnt: Cast a character code to FT_UInt32 for LP64 system.
  715. * src/sfnt/ttcmap.c (tt_cmap4_init, tt_cmap4_next):
  716. Insert the casts from unsigned long constant to
  717. FT_UInt32.
  718. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  719. sfnt: Extend TT_BDF->strings_size to FT_ULong for huge BDF.
  720. * include/freetype/internal/tttypes.h: The type
  721. of TT_BDF->string_size is extended from FT_UInt32
  722. to FT_ULong, because BDF specification does not
  723. restrict the length of string.
  724. * src/sfnt/ttbdf.c: The scratch variable `strings'
  725. to load TT_BDF->string_size is matched with
  726. TT_BDF->string_size.
  727. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  728. psaux: Handle the string length by FT_Offset variables.
  729. * src/psaux/afmparse.c (afm_parser_next_key,
  730. afm_tokenize, afm_parse_track_kern,
  731. afm_parse_kern_pairs, afm_parse_kern_data,
  732. afm_parser_skip_section, afm_parser_parse):
  733. The length of key is handled by FT_Offset,
  734. instead of FT_UInt. Although the length of
  735. PostScript strings or name object is 16-bit,
  736. AFM_STREAM_KEY_LEN() calculates the length
  737. from the pointer difference.
  738. * src/psaux/afmparse.h (afm_parser_next_key):
  739. Ditto.
  740. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  741. pcf: Fix some data types mismatching with their sources.
  742. * src/pcf/pcfread.c (pcf_get_bitmaps): The types
  743. of `nbitmaps', `i', `sizebitmaps' are matched with
  744. the type of area FT_Bitmap.pitch * FT_Bitmap.rows.
  745. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  746. pcf: Handle the string length by size_t variables.
  747. * src/pcf/pcfread.c (pcf_interpret_style): The types
  748. of nn, len, lengths[4] are changed to size_t, because
  749. they are loaded by (or compared with) ft_strlen().
  750. * src/pcf/pcfutil.c (BitOrderInvert, TwoByteSwap,
  751. FourByteSwap): The type of the 2nd argument `nbytes'
  752. is changed to size_t, for similarity with ANSI C
  753. string functions.
  754. * src/pcf/pcfdrivr.c (PCF_Glyph_Load): The type of
  755. `bytes' is changed to FT_Offset, because it is passed
  756. to FT_ALLOC(), via ft_glyphslot_alloc_bitmap(). At
  757. least, using unsigned type is better.
  758. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  759. pcf: Fix some data types mismatching with their sources.
  760. * src/pcf/pcfread.c (pcf_seek_to_table_type,
  761. pcf_has_table_type): The type of 3rd argument
  762. `ntables' is matched with PCF_Toc->count.
  763. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  764. otvalid: Truncate the glyph index to 16-bit.
  765. * src/otvalid/otvalid.c (otv_validate): Checks
  766. face->num_glyphs does not exceed 16-bit limit,
  767. pass FT_UInt num_glyphs to backend functions
  768. otv_{GPOS|GSUB|GDEF|JSTF|MATH}_validate().
  769. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  770. cache: Insert explict casts for LP64 systems.
  771. * src/cache/ftcbasic.c (FTC_ImageCache_Lookup,
  772. FTC_SBitCache_Lookup): The type of FTC_ImageType->width
  773. is FT_Int, so the cast to unsigned larger type FT_ULong
  774. is introduced for the comparisons with 0x10000L for
  775. LP64 platform.
  776. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  777. cache: Fix some data types mismatching with their sources.
  778. * src/cache/ftccache.h: The type of return value
  779. by FTC_Node_WeightFunc function is changed to
  780. FT_Offset. The type of FTC_CacheClass->cache_size
  781. is changed to FT_Offset, too.
  782. * src/cache/ftccback.h (ft_inode_weight,
  783. ftc_snode_weight): Ditto.
  784. * src/cache/ftccmap.c (ftc_cmap_node_weight): Ditto.
  785. * src/cache/ftcimage.c (ftc_inode_weight,
  786. FTC_INode_Weight): Ditto.
  787. * src/cache/ftcsbits.c (ftc_snode_weight,
  788. FTC_SNode_Weight): Ditto.
  789. * src/cache/ftcmru.h: The type of
  790. FTC_MruListClass->node_size is changed to FT_Offset,
  791. because it is passed to FT_ALLOC() to specify the
  792. size of buffer.
  793. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  794. XXX_cmap_encoding_char_next() return FT_UInt32 values.
  795. * include/freetype/internal/services/svpscmap.h:
  796. The size of the charcode value returned by
  797. the function typed PS_Unicodes_CharNextFunc is
  798. matched with its input charcode value.
  799. * src/cff/cffmap.c (cff_cmap_encoding_char_next,
  800. cff_cmap_unicode_char_next): Ditto.
  801. * src/pfr/pfrmap.c (pfr_cmap_encoding_char_next):
  802. Ditto.
  803. * src/psaux/t1cmap.c (t1_cmap_std_char_next,
  804. t1_cmap_custom_char_next, t1_cmap_unicode_char_next):
  805. Ditto.
  806. * src/psnames/psmodule.c (ps_unicodes_char_next):
  807. Ditto.
  808. * src/winfonts/winfnt.c (fnt_cmap_char_next):
  809. Ditto.
  810. * src/sfnt/ttcmap.c (tt_cmap0_char_next,
  811. tt_cmap2_char_next, tt_cmap4_char_next,
  812. tt_cmap6_char_next, tt_cmap10_char_next,
  813. tt_cmap12_char_next, tt_cmap13_char_next): Ditto.
  814. (tt_cmap14_char_variants): Handle base unicode
  815. codepoint by FT_UInt32 variable to avoid overflow
  816. on 16-bit platforms.
  817. (tt_cmap14_ensure): The type of `num_results' is
  818. extend to FT_UInt32, to cover unsigned 32-bit
  819. `numVarSelectorRecords' in cmap14 table header.
  820. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  821. truetype: Extend TT_Face->num_locations for broken TTFs.
  822. * include/freetype/internal/tttypes.h:
  823. TT_Face->num_locations are extended from FT_UInt
  824. to FT_ULong, to stand with broken huge loca table.
  825. Some people insists there are broken TTF including
  826. the glyphs over 16-bit limitation, in PRC market.
  827. * src/truetype/ttpload.c (tt_face_load_loca):
  828. Remove unrequired 16-bit truncation for FT_UInt
  829. TT_Face->num_locations.
  830. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  831. smooth: Fix some data types mismatching with their sources.
  832. * src/smooth/ftgrays.c: The type of `TCoord' is
  833. matched to `TPos', because they are mixed in
  834. gray_set_cell(). The type of TCell->x is extended
  835. to `TPos', because gray_find_cell() sets it by
  836. TWorker.ex. The type of TCell->cover is extended
  837. to `TCoord', because gray_render_scanline() adds
  838. TCoord value to it. The type of TWork.cover is matched
  839. with TCell->cover. The types of
  840. TWork.{max_cells,num_cells} are changed to FT_PtrDist,
  841. because they are calculated from the memory addresses.
  842. The type of TWork.ycount is changed to TPos, because
  843. it is calculated from TPos variables.
  844. (gray_find_cell): The type of `x' is matched with
  845. its initial value ras.ex.
  846. (gray_render_scanline): The types of `mod', `lift'
  847. and `rem' are changed to TCoord, because their values
  848. are set with explicit casts to TCoord. When ras.area
  849. is updated by the differential values including
  850. `delta', they are explicitly cast to TArea, because
  851. the type of `delta' is not TArea but TCoord.
  852. (gray_render_line): The type of `mod' is extended
  853. from int to TCoord, because (TCoord)dy is added to mod.
  854. (gray_hline): The argument `acount' is extended to
  855. TCoord, to match with the parameters in the callers.
  856. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  857. cff: Fix some data types mismatching with their sources.
  858. * src/cff/cffobjs.c (cff_face_init): The type of
  859. `scaling' is matched with the scaling parameter
  860. in FT_Matrix_Multiply_Scaled() and
  861. FT_Vector_Transform_Scaled().
  862. * src/cff/cffparse.c (cff_parse_real): The type of
  863. `power_ten', `scaling', `exponent_add',
  864. `integer_length', `fraction_length',
  865. `new_fraction_length' and `shift' are matched with
  866. the type of `exponent' to avoid unexpected truncation.
  867. (cff_parse_fixed_scaled): The type of `scaling' is
  868. matched with the `scaling' argument to
  869. cff_parse_real().
  870. (cff_parse_fixed_dynamic): Ditto.
  871. (cff_parse_font_matrix): The type of `scaling' is
  872. matched with the `scaling' argument to
  873. cff_parse_dynamic().
  874. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  875. autofit: Fix some data types mismatching with their sources.
  876. * src/autofit/afglobal.c: Correct the type of
  877. AF_FaceGlobalsRec.glyph_count to match with
  878. FT_Face->num_glyphs.
  879. (af_face_globals_compute_script_coverage):
  880. Insert explicit cast to compare
  881. FT_Long AF_FaceGlobalsRec.glyph_count versus
  882. FT_UInt gindex. The type of `nn' is changed
  883. to scan glyph index upto AF_FaceGlobalsRec.glyph_count.
  884. (af_face_globals_get_metrics): The type of `script_max'
  885. is changed to cover size_t value. Insert explicit cast
  886. to compare FT_Long AF_FaceGlobalsRec.glyph_count versus
  887. FT_UInt gindex.
  888. * src/autofit/afhints.c (af_axis_hints_new_segment):
  889. Insert explicit cast to calculate `big_max' from
  890. integer and size_t values.
  891. (af_axis_hints_new_edge): Ditto.
  892. * src/autofit/aflatin.c (af_latin_metrics_init_blues):
  893. The type of `best_y' is matched to FT_Vector.y.
  894. (af_latin_compute_stem_width): The type of `delta' is
  895. matched to `dist' and `org_dist'.
  896. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  897. autofit: Count the size of the memory object by ptrdiff_t.
  898. * src/autofit/afcjk.c (af_cjk_hint_edges): The
  899. number of edges `n_edges' should be counted by
  900. FT_PtrDist variable instead of FT_Int.
  901. * src/autofit/aflatin.c (af_latin_hint_edges):
  902. Ditto.
  903. * src/autofit/aftypes.h: In AF_ScriptClassRec,
  904. the size of metric `script_metrics_size' should
  905. be counted by FT_Offset variable instead of FT_UInt.
  906. * src/autofit/afhints.c
  907. (af_glyph_hints_align_strong_points): The cursors
  908. for the edges `min', `max', `mid' in the memory
  909. buffer should be typed FT_PtrDist.
  910. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  911. autofit: Fix for unused variable `first'.
  912. * src/autofit/afhints.c (af_glyph_hints_reload): Insert
  913. FT_UNUSED() to hide the unused variable warning.
  914. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  915. Improve bitmap size or pixel variables for 16-bit systems.
  916. * include/freetype/config/ftstdlib.h: Introduce
  917. FT_INT_MIN, to use in signed integer overflow in
  918. 16-bit and 64-bit platforms.
  919. * include/freetype/internal/fttrace.h: Add a tracer
  920. to ftsynth.c.
  921. * src/base/ftbitmap.c (FT_Bitmap_Embolden): Check
  922. invalid strength causing integer overflow on 16-bit
  923. platform.
  924. * src/base/ftcalc.c (ft_corner_orientation): Change
  925. the internal calculation from FT_Int to FT_Long, to
  926. avoid an overflow on 16-bit platforms. The caller of
  927. this function should use only the sign of result,
  928. so the cast to FT_Int is acceptable.
  929. * src/base/ftsynth.c: Introduce a tracer for synth module.
  930. (FT_GlyphSlot_Embolden): Check invalid strength causing
  931. integer overflow on 16-bit platform.
  932. * src/bdf/bdfdrivr.c (BDF_Face_Init): The glyph index
  933. in FT2 API is typed as FT_UInt, although BDF driver
  934. can handle unsigned long glyph index internally. To
  935. avoid integer overflow on 16-bit platform, too large
  936. glyph index should be excluded.
  937. (BDF_Glyph_Load): The glyph pitch in FT2 is typed as
  938. FT_UInt, although BDF driver can handle unsigned long
  939. glyph pitch internally. To avoid integer overflow on
  940. 16-bit platform, too large glyph pitch should not be
  941. returned.
  942. * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): The glyph
  943. pitch in FT2 is typed as FT_UInt, although PFR font
  944. format can include huge bitmap glyph with 24-bit pitch
  945. (however, a glyph spends 16.7 pixel, it's not realistic).
  946. To avoid integer overflow on 16-bit platform, huge
  947. bitmap glyph should be excluded.
  948. * src/smooth/ftgrays.c (gray_hline): As FT_Span.x is
  949. truncated to fit its type (16-bit short), FT_Span.y
  950. should be truncated to fit its type (FT_Int).
  951. * src/cff/cffdrivr.c (cff_get_ros): CFF specification
  952. defines the supplement in ROS as a real number.
  953. Truncate it to fit public FT2 API.
  954. * src/cff/cffparse.c (cff_parse_cid_ros): Warn the
  955. supplement if it is truncated or rounded in cff_get_ros().
  956. * src/cff/cfftypes.h: Change the type of internal variable
  957. `supplement' from FT_Long to FT_ULong to fit the signedness
  958. to the type in public API.
  959. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  960. psaux: Prevent invalid arguments to afm_parser_read_vals().
  961. * src/psaux/afmparse.c (afm_parser_read_vals): Change
  962. the type of `n' to prevent negative number how many
  963. arguments should be parsed.
  964. * src/psaux/afmparse.h (afm_parser_read_vals): Ditto.
  965. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  966. base: Prevent some overflows on LP64 systems.
  967. * src/base/ftadvance.c (FT_Get_Advances): Cast the
  968. unsigned long constant FT_LOAD_ADVANCE_ONLY to FT_UInt32
  969. for LP64 platforms.
  970. * src/base/ftcalc.c (FT_Sqrt32): All internal variables
  971. are changed to FT_UInt32 from FT_ULong.
  972. (FT_MulDiv): Insert casts to FT_Int32 for LP64 platforms.
  973. This function is designed for 32-bit integer, although
  974. their arguments and return value are FT_Long.
  975. * src/base/ftobjs.c (FT_Get_Char_Index): Check `charcode'
  976. is within unsigned 32-bit integer for LP64 platforms.
  977. (FT_Face_GetCharVariantIndex): Check `charcode' and
  978. `variantSelector' are within 32-bit integer for LP64
  979. platforms.
  980. (FT_Face_GetCharsOfVariant): Check `variantSelector' is
  981. within unsigned 32-bit integer for LP64 platforms.
  982. * src/base/fttrigon.c (ft_trig_downscale): The FT_Fixed
  983. variable `val' and unsigned long constant FT_TRIG_SCALE
  984. are cast to FT_UInt32, when calculates FT_UInt32.
  985. (FT_Vector_Rotate): The long constant 1L is cast to
  986. FT_Int32 to calculate FT_Int32 `half'.
  987. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  988. cff: Cast the long variables to 32-bit for LP64 systems.
  989. * src/cff/cffdrivr.c (cff_get_advances): Insert
  990. explicit cast to modify a 32-bit flag by unsigned
  991. long constant.
  992. * src/cff/cffobjs.c (cff_face_init): Ditto.
  993. * src/cff/cffgload.c (cff_decoder_parse_charstrings):
  994. Replace the casts to FT_Long by the casts to FT_Int32
  995. for LP64 platforms.
  996. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  997. pcf: Improve PCF_PropertyRec.value names on LP64 platforms.
  998. * src/pcf/pcf.h: In PCF_PropertyRec.value, the member
  999. `integer' is replaced by `l', `cardinal' is replaced
  1000. by `ul', to fix the difference between the name and
  1001. the types on LP64 platforms.
  1002. * src/pcf/pcfdrivr.c (pcf_get_bdf_property): Reflect
  1003. PCF_PropertyRec.value change, with appropriate casts
  1004. to FT_Int32/FT_UInt32. Their destinations
  1005. BDF_PropertyRec.{integer|cardinal} are public and
  1006. explicitly defined as FT_Int32/FT_UInt32.
  1007. * src/pcf/pcfread.c (pcf_get_properties, pcf_load_font):
  1008. Reflect PCF_PropertyRec.value change.
  1009. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1010. pcf: Fix some data types mismatching with their sources.
  1011. * src/pcf/pcfdrivr.c (pcf_cmap_char_index): The type of
  1012. `code' is matched to PCF_Encoding->enc.
  1013. (pcf_cmap_char_next): The type of `charcode' is matched
  1014. to PCF_Encoding->enc. When *acharcode is set by charcode,
  1015. an overflow is checked and cast to unsigned 32-bit
  1016. integer.
  1017. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1018. bdf: Improve bdf_property_t.value names for LP64 platforms.
  1019. * src/bdf/bdf.h: In bdf_property_t.value, the member
  1020. `int32' is replaced by `l', `card32' is replaced by
  1021. `ul', to fix the difference between the name and the
  1022. types on LP64 platforms.
  1023. * src/bdf/bdfdrivr.c (BDF_Face_Init): Reflect
  1024. bdf_property_t.value change.
  1025. (bdf_get_bdf_property): Reflect bdf_property_t.value
  1026. change, with appropriate casts to FT_Int32/FT_UInt32.
  1027. Their destinations BDF_PropertyRec.{integer|cardinal}
  1028. are public and explicitly defined as FT_Int32/FT_UInt32.
  1029. * src/bdf/bdflib.c (_bdf_add_property): Reflect
  1030. bdf_property_t.value change.
  1031. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1032. bdf: Fix some data types mismatching with their sources.
  1033. * src/bdf/bdrdrivr.c (bdf_cmap_char_index): The type
  1034. of `code' is matched with BDF_encoding_el->enc.
  1035. (bdf_cmap_char_next): The type of `charcode' is
  1036. matched with BDF_encoding_el->enc. When *acharcode
  1037. is set by charcode, an overflow is checked and
  1038. cast to unsigned 32-bit integer.
  1039. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1040. autofit: Improve Unicode range definitions.
  1041. * src/autofit/aftypes.h (AF_UNIRANGE_REC): New macro
  1042. to declare a range by two unsigned 32-bit integer,
  1043. to avoid 64-bit range definition on LP64 platforms.
  1044. * src/autofit/aflatin.c (af_latin_uniranges): Ditto.
  1045. * src/autofit/aflatin2.c (af_latin2_uniranges): Ditto.
  1046. * src/autofit/afindic.c (af_indic_uniranges): Ditto.
  1047. * src/autofit/afcjk.c (af_cjk_uniranges): Declare
  1048. the ranges by AF_UNIRANGE_REC.
  1049. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1050. smooth: Fix a data type mismatching with its source.
  1051. * src/smooth/ftgrays.c (gray_sweep): The type of
  1052. `area' is matched with the 3rd argument `area'
  1053. of gray_hline().
  1054. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1055. smooth: Fix a data type mismatching with its source.
  1056. * src/smooth/ftgrays.c (gray_render_line): The type
  1057. of `area' is matched with TWorker.area.
  1058. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1059. cache: Disable the legacy compatibility if 16-bit system.
  1060. * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Exclude
  1061. the legacy behaviour from 16-bit platform, because the
  1062. current hack cannot detect the caller uses this function
  1063. via legacy convension.
  1064. (FTC_SBitCache_Lookup): Ditto.
  1065. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1066. cache: Check 32-bit glyph index on 16-bit systems.
  1067. * src/cache/ftcbasic.c (ftc_basic_family_get_count):
  1068. Check overflow caused by the face including large
  1069. number of glyphs > 64k.
  1070. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1071. cache: Fix some data types mismatching with their sources.
  1072. * src/cache/ftccache.c (ftc_cache_resize): The types of
  1073. `p', `mask', `count' are matched with FTC_Cache->{p,mask}.
  1074. (FTC_Cache_Clear): The type of `old_index' is matched to
  1075. FTC_Cache->{p,mask}.
  1076. * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): The type
  1077. of `_idx' is matched with FTC_Cache->{p,mask}.
  1078. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1079. cache: Fix some data types mismatching with their sources.
  1080. * src/cache/ftcsbits.c (ftc_snode_load): The types
  1081. of `xadvance' and `yadvance' are matched with
  1082. FT_GlyphSlot->advance.{x|y}.
  1083. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1084. cache: Cast NULL to a required function type explicitly.
  1085. * src/cache/ftcmanag.c (FTC_Manager_RemoveFaceID):
  1086. Insert explicit cast from NULL to function type.
  1087. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1088. fttypes.h: Cast FT_MAKE_TAG output to FT_Tag exlicitly.
  1089. * include/freetype/fttypes.h (FT_MAKE_TAG):
  1090. Cast the result to FT_Tag.
  1091. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1092. psnames: Handle Unicode codepoints by FT_UInt32 variables.
  1093. * src/psnames/psmodule.c (BASE_GLYPH): Cast the result
  1094. to unsigned 32-bit integer for LP64 platform.
  1095. (ps_unicode_value): Return the value by unsigned 32-bit
  1096. integer instead of unsigned long.
  1097. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1098. psaux: Use size_t variable to pass the buffer size.
  1099. * src/psaux/psaux.h (to_bytes): The type of `max_bytes'
  1100. (the argument to pass the buffer size) is changed to
  1101. size_t, to match with ANSI C string functions.
  1102. * src/psaux/psconv.h (PS_Conv_StringDecode,
  1103. PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Ditto.
  1104. * src/psaux/psconv.c (PS_Conv_StringDecode,
  1105. PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Ditto.
  1106. * src/psaux/psobjs.h (ps_parser_to_bytes): Ditto.
  1107. * src/psaux/psobjs.c (ps_parser_to_bytes): Ditto.
  1108. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1109. type1: Use size_t variable to pass the string length.
  1110. * psaux.h: The type of `len' (the argument to pass
  1111. the buffer size to the function in AFM_ParserRec)
  1112. is changed to size_t, to match with ANSI C string
  1113. functions.
  1114. * t1afm.c (t1_get_index): Ditto.
  1115. * test_afm.c (dummy_get_index): Ditto.
  1116. * afmparse.c (afm_parser_read_vals): To call
  1117. AFM_ParserRec.get_index, the length of token
  1118. `len' is cast to size_t.
  1119. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1120. cid: Fix some data types mismatching with their sources.
  1121. * src/cid/cidparse.c (cid_parser_new): The types of
  1122. `read_len' and `stream_len' are matched to
  1123. FT_Stream->size. Unrequired cast is removed.
  1124. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1125. cff: Fix for unused variable `rest'.
  1126. * src/cff/cffparse.c (cff_parse_real): Insert
  1127. FT_UNUSED() to hide the unused variable warning.
  1128. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1129. cff: Fix some data types mismatching with their sources.
  1130. * src/cff/cffgload.c (cff_slot_load): The types of
  1131. `top_upm' and `sub_upm' are matched with
  1132. CFF_FontRecDict->units_per_em.
  1133. * src/cff/cffobjs.c (cff_size_select): Ditto.
  1134. (cff_size_request): Ditto.
  1135. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1136. bdf: Fix some data types mismatching with their sources.
  1137. * bdflib.c (_bdf_list_ensure): The type of `num_items'
  1138. is matched with _bdf_list_t.used. Also the types of
  1139. `oldsize', `newsize', `bigsize' are matched too.
  1140. (_bdf_readstream): `cursor' is used as an offset to
  1141. the pointer, it should be typed as FT_Offset. Also
  1142. the types of `bytes', `start', `end', `avail' are matched.
  1143. * bdfdrivr.c: The type of BDF_CMap->num_encodings is
  1144. matched with FT_CMap->clazz->size.
  1145. (bdf_cmap_char_index): The types of `min', `max', `mid'
  1146. are matched with BDF_CMap->num_encodings. The type of
  1147. `result' is matched with encoding->glyph.
  1148. (bdf_cmap_char_next): Ditto, the type of `code' is
  1149. matched with BDF_encoding_el.enc.
  1150. (bdf_interpret_style): The type of `lengths' is changed
  1151. to size_t, to take the value by ft_strlen(). Also the
  1152. types of `len', `nn', `mm' are matched.
  1153. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1154. sfnt: Count the size of the memory object by ptrdiff_t.
  1155. * src/sfnt/ttbdf.c (tt_face_find_bdf_prop): The type of
  1156. `peroperty_len' is changed from FT_UInt to FT_Offset,
  1157. to match with size_t, which is appropriate type for the
  1158. object in the memory buffer.
  1159. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1160. lzw: Count the size of the memory object by ptrdiff_t.
  1161. * src/lzw/ftzopen.h: The types of FT_LzwState->{buf_total,
  1162. stack_size} are changed from FT_UInt to FT_Offset, to match
  1163. with size_t, which is appropriate type for the object in
  1164. the memory buffer.
  1165. * src/lzw/ftzopen.c (ft_lzwstate_stack_grow): The types of
  1166. `old_size' and `new_size' are changed from FT_UInt to
  1167. FT_Offset, to match with size_t, which is appropriate type
  1168. for the object in the memory buffer.
  1169. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1170. otvalid: Count the table size on memory by ptrdiff_t.
  1171. * src/otvalid/otvgpos.c (otv_ValueRecord_validate):
  1172. Change the type of table size from FT_UInt to
  1173. FT_PtrDist because it is calculated by the memory
  1174. addresses.
  1175. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1176. otvalid: Prevent an overflow by GPOS/GSUB 32b-bit offset.
  1177. * src/otvalid/otvgpos.c (otv_ExtensionPos_validate):
  1178. Extend ExtensionOffset from FT_UInt to FT_ULong, to
  1179. cover 32-bit offset on 16-bit platform.
  1180. * src/otvalid/otvgsub.c (otv_ExtensionSubst_validate):
  1181. Ditto.
  1182. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1183. ftobjs.c: Prevent an overflow in glyph index handling.
  1184. * src/base/ftobjs.c (FT_Face_GetCharsOfVariant):
  1185. Improve the cast in comparison to avoid the truncation.
  1186. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1187. Improve the variable types in raccess_make_file_name().
  1188. * src/base/ftrfork.c (raccess_make_file_name):
  1189. Change the type of cursor variable `tmp' to const char*,
  1190. to prevent the unexpected modification of original pathname.
  1191. (raccess_make_file_name): Change the type of new_length
  1192. to size_t.
  1193. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1194. ftpatent.c: Fix for unused variable `error'.
  1195. * src/base/ftpatent.c (_tt_check_patents_in_range):
  1196. Fix warning for unused variable `error'.
  1197. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1198. type1: Check invalid string longer than PostScript limit.
  1199. * src/type1/t1afm.c (t1_get_index): Check invalid string
  1200. which exceeds the limit of PostScript string/name objects.
  1201. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1202. gzip: Use FT2 zcalloc() & zfree() in ftgzip.c by default.
  1203. * src/gzip/ftgzip.c (zcalloc, zcfree): Disable all
  1204. zcalloc() & zfree() by zlib in zutil.c, those in
  1205. ftgzip.c by FT2 are enabled by default. To use
  1206. zlib zcalloc() & zfree(), define USE_ZLIB_ZCALLOC.
  1207. See discussion:
  1208. http://lists.gnu.org/archive/html/freetype-devel/2009-02/msg00000.html
  1209. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1210. gzip: Distinguish PureC from TurboC on MSDOS.
  1211. * src/gzip/zutil.c (zcalloc, zcfree): Enable only for
  1212. MSDOS platform.
  1213. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1214. gxvalid: Insert PureC pragma to allow unevaluated variables.
  1215. * builds/atari/ATARI.H: Insert PureC pragma not to
  1216. warn against set-but-unevaluated variable in gxvalid
  1217. module.
  1218. 2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1219. gxvalid: Pass the union by the pointer instead of the value.
  1220. * src/gxvalid/gxvcommn.h:
  1221. - Declare new type `GXV_LookupValueCPtr'.
  1222. - Update the type of the 2nd argument to pass GXV_LookupValueDesc
  1223. data to the function prototyped as GXV_Lookup_Value_Validate_Func,
  1224. from GXV_LookupValueDesc to GXV_LookupValueCPtr.
  1225. - Likewise for the function prototyped as
  1226. GXV_Lookup_Fmt4_Transit_Func.
  1227. - Declare new type `GXV_StateTable_GlyphOffsetCPtr'.
  1228. - Update the type of the 3rd argument to pass
  1229. GXV_StateTable_GlyphOffsetDesc data to the function prototyped
  1230. as GXV_StateTable_Entry_Validate_Func, from
  1231. GXV_StateTable_GlyphOffsetDesc to GXV_StateTable_GlyphOffsetCPtr.
  1232. - Declare new type `GXV_XStateTable_GlyphOffsetCPtr'.
  1233. - Update the type of the 3rd argument to pass
  1234. GXV_XStateTable_GlyphOffsetDesc data to the function prototyped
  1235. as GXV_XStateTable_Entry_Validate_Func,
  1236. from GXV_XStateTable_GlyphOffsetDesc
  1237. to GXV_XStateTable_GlyphOffsetCPtr.
  1238. * src/gxvalid/gxvcommn.c (gxv_LookupTable_fmt0_validate,
  1239. gxv_XClassTable_lookupval_validate,
  1240. gxv_XClassTable_lookupfmt4_transit):
  1241. Update from GXV_LookupValueDesc to GXV_LookupValueCPtr.
  1242. * src/gxvalid/gxvbsln.c (gxv_bsln_LookupValue_validate,
  1243. gxv_bsln_LookupFmt4_transit): Ditto.
  1244. * src/gxvalid/gxvjust.c
  1245. (gxv_just_pcTable_LookupValue_entry_validate,
  1246. gxv_just_classTable_entry_validate,
  1247. gxv_just_wdcTable_LookupValue_validate): Ditto.
  1248. * src/gxvalid/gxvkern.c
  1249. (gxv_kern_subtable_fmt1_entry_validate): Ditto.
  1250. * src/gxvalid/gxvlcar.c (gxv_lcar_LookupValue_validate,
  1251. gxv_lcar_LookupFmt4_transit): Ditto.
  1252. * src/gxvalid/gxvopbd.c (gxv_opbd_LookupValue_validate,
  1253. gxv_opbd_LookupFmt4_transit): Ditto.
  1254. * src/gxvalid/gxvprop.c (gxv_prop_LookupValue_validate,
  1255. gxv_prop_LookupFmt4_transit): Ditto.
  1256. * src/gxvalid/gxvmort4.c
  1257. (gxv_mort_subtable_type4_lookupval_validate): Ditto.
  1258. * src/gxvalid/gxvmort0.c
  1259. (gxv_mort_subtable_type0_entry_validate): Update
  1260. from GXV_StateTable_GlyphOffsetDesc
  1261. to GXV_StateTable_GlyphOffsetCPtr.
  1262. * src/gxvalid/gxvmort1.c
  1263. (gxv_mort_subtable_type1_entry_validate): Ditto.
  1264. * src/gxvalid/gxvmort2.c
  1265. (gxv_mort_subtable_type2_entry_validate): Ditto.
  1266. * src/gxvalid/gxvmort5.c
  1267. (gxv_mort_subtable_type5_entry_validate): Ditto.
  1268. * src/gxvalid/gxvmorx2.c
  1269. (gxv_morx_subtable_type2_entry_validate): Ditto.
  1270. * src/gxvalid/gxvmorx5.c
  1271. (gxv_morx_subtable_type5_entry_validate): Ditto.
  1272. * src/gxvalid/gxvmorx1.c
  1273. (gxv_morx_subtable_type1_entry_validate): Ditto.
  1274. (gxv_morx_subtable_type1_LookupValue_validate,
  1275. gxv_morx_subtable_type1_LookupFmt4_transit):
  1276. Update from GXV_LookupValueDesc to GXV_LookupValueCPtr.
  1277. * src/gxvalid/gxvmorx0.c
  1278. (gxv_morx_subtable_type0_entry_validate): Update
  1279. from GXV_XStateTable_GlyphOffsetDesc
  1280. to GXV_XStateTable_GlyphOffsetCPtr.
  1281. 2009-07-29 Fabrice Bellet <fabrice@bellet.info>
  1282. Fix Redhat bugzilla #513582 and Savannah bug #26849.
  1283. * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP) <FTC_INLINE>: Fix
  1284. aliasing bug.
  1285. 2009-07-19 Werner Lemberg <wl@gnu.org>
  1286. Document recent library changes.
  1287. * docs/CHANGES: Do it.
  1288. 2009-07-17 Werner Lemberg <wl@gnu.org>
  1289. Fix Savannah bug #23786.
  1290. * src/truetype/ttobjs.c (tt_size_init_bytecode): Don't reset x_ppem
  1291. and y_ppem. Otherwise the `*_CVT_Stretched' functions in ttinterp.c
  1292. get never called.
  1293. An anonymous guy suggested this change on Savannah, and it seems to
  1294. be the right solution.
  1295. 2009-07-15 Werner Lemberg <wl@gnu.org>
  1296. * docs/release: Updated.
  1297. 2009-07-15 Werner Lemberg <wl@gnu.org>
  1298. README.CVS -> README.git
  1299. * README.CVS: Renamed to...
  1300. * README.git: This.
  1301. Updated.
  1302. 2009-07-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1303. Borland C++ compiler patch proposed by Mirco Babin.
  1304. http://lists.gnu.org/archive/html/freetype/2009-07/msg00016.html.
  1305. * builds/exports.mk: Delete unused flags, CCexe_{CFLAGS,LDFLAGS}.
  1306. Fix APINAMES_C and APINAMES_EXE pathnames to reflect the platform
  1307. specific pathname syntax.
  1308. * builds/compiler/bcc.mk: Remove unused flag, CCexe_LDFLAGS.
  1309. Define TE = `-e' separately (bcc32 cannot specify the pathname of
  1310. binary executable by T = `-o').
  1311. Extend the large page size in linking freetype.lib.
  1312. Add extra CLEAN target to delete bcc specific temporary files.
  1313. * builds/compiler/bcc-dev.mk: Ditto.
  1314. 2009-07-14 Werner Lemberg <wl@gnu.org>
  1315. Fix Savannah bug #27026.
  1316. * builds/win32/vc2005/freetype.sln: Use correct version number.
  1317. 2009-07-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1318. Add a script to check the undefined and unused trace macros.
  1319. * src/tools/chktrcmp.py: A script to check trace_XXXX macros
  1320. that are used in C source but undefined in fttrace.h, or
  1321. defined in fttrace.h but unused in C sources. See
  1322. http://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00013.html.
  1323. * docs/DEBUG: Mention on chktrcmp.py.
  1324. * docs/release: Ditto.
  1325. 2009-07-09 Werner Lemberg <wl@gnu.org>
  1326. [ftraster] Make it compile again with -D_STANDALONE_.
  1327. * src/raster/ftraster.c [_STANDALONE_]: Define
  1328. FT_CONFIG_STANDARD_LIBRARY_H.
  1329. Include `string.h'.
  1330. Don't include `rastpic.h'.
  1331. Define FT_DEFINE_RASTER_FUNCS.
  1332. 2009-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1333. smooth: Check glyph size by width/height, instead of pitch/height.
  1334. Suggested by der Mouse <mouse@Rodents-Montreal.ORG>.
  1335. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Improve
  1336. the check for too large glyph. Replace the pair of `pitch' and
  1337. `height' by the pair of `width' and `height'. `pitch' cannot
  1338. be greater than `height'. The required is checking the product
  1339. `pitch' * `height' <= FT_ULONG_MAX, but we use cheap checks for
  1340. the realistic case only.
  1341. 2009-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1342. Register 2 missing trace components, t1afm and ttbdf.
  1343. * include/freetype/internal/fttrace.h: Add FT_TRACE_DEF( t1afm )
  1344. and FT_TRACE_DEF( ttbdf ). See
  1345. http://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00013.html
  1346. 2009-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1347. Register a trace component for ftgloadr.c.
  1348. * include/freetype/internal/fttrace.h: Add FT_TRACE_DEF( gloader ).
  1349. The macro `trace_gloader' was already used in the initial version
  1350. on 2002-02-24.
  1351. 2009-07-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1352. Prevent the overflows by a glyph with too many points or contours.
  1353. The bug is reported by Boris Letocha <b.letocha@gmc.net>. See
  1354. http://lists.gnu.org/archive/html/freetype-devel/2009-06/msg00031.html
  1355. http://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00002.html
  1356. * include/freetype/ftimage.h (FT_OUTLINE_CONTOURS_MAX,
  1357. FT_OUTLINE_POINTS_MAX): New macros to declare the maximum
  1358. values of FT_Outline.{n_contours,n_points}.
  1359. * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Check the
  1360. total numbers of points and contours cause no overflows in
  1361. FT_Outline.{n_contours,n_points}.
  1362. * include/freetype/internal/ftgloadr.h (FT_GLYPHLOADER_CHECK_P,
  1363. FT_GLYPHLOADER_CHECK_C): Compare the numbers of points and
  1364. contours as unsigned long number, instead of signed int, to
  1365. prevent the overflows on 16-bit systems.
  1366. 2009-07-05 Bram Tassyns <bramt@enfocus.be>
  1367. Improve compatibility to Acroread.
  1368. This fixes Savannah bug #26944.
  1369. * src/cff/cffload.c (cff_charset_compute_cids): For multiple GID to
  1370. single CID mappings, make the lowest value win.
  1371. 2009-06-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1372. ftpatent: Fix a bug by wrong usage of service->table_info().
  1373. http://lists.gnu.org/archive/html/freetype-devel/2008-12/msg00039.html
  1374. * include/freetype/internal/services/svsfnt.h: Extend
  1375. FT_SFNT_TableInfoFunc() to take new argument to obtain the offset
  1376. to the specified table.
  1377. * src/sfnt/sfdriver.c (sfnt_table_info): Extend to return the
  1378. table-offset to the caller function.
  1379. * src/base/ftpatent.c (_tt_check_patents_in_table): Use new
  1380. service->table_info().
  1381. * src/base/ftobjs.c (FT_Sfnt_Table_Info): Synchronize to new
  1382. service->table_info().
  1383. 2009-06-28 Werner Lemberg <wl@gnu.org>
  1384. [psaux, cff] Protect against nested `seac' calls.
  1385. * include/freetype/internal/psaux.h (T1_Decoder), src/cff/cffgload.h
  1386. (CFF_Decoder): Add `seac' boolean variable.
  1387. * src/cff/cffgload.c (cff_operator_seac), src/psaux/t1decode.c
  1388. (t1operator_seac): Use it.
  1389. 2009-06-28 Werner Lemberg <wl@gnu.org>
  1390. Thinko.
  1391. * src/psaux/t1decode.c (t1operator_seac)
  1392. [FT_CONFIG_OPTION_INCREMENTAL]: Test for existence of incremental
  1393. interface.
  1394. 2009-06-28 Werner Lemberg <wl@gnu.org>
  1395. * devel/ftoption.h [FT_CONFIG_OPTION_INCREMENTAL]: Define.
  1396. 2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1397. Add tools to preprocess the source files for AtariST PureC.
  1398. * builds/atari/deflinejoiner.awk: New file to filter C source files
  1399. for broken C preprocessor of PureC compiler.
  1400. * builds/atari/gen-purec-patch.sh: New file to generate a patch set
  1401. for PureC, by using deflinejoiner.awk.
  1402. 2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1403. Keep existing modules.cfg in the building tree.
  1404. * configure: If `configure' is executed outside of the source tree,
  1405. an existing `modules.cfg' file in the build directory should be
  1406. kept, not overwritten by the version in the source tree.
  1407. 2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1408. Filter --srcdir= option before invoking builds/unix/configure.
  1409. * configure: If builds/unix/configure is invoked with --srcdir
  1410. option, the option should take `builds/unix' directory instead of
  1411. the top source directory. Thus the configure script in the top
  1412. directory should modify the --srcdir= option if
  1413. `builds/unix/configure' is invoked.
  1414. 2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1415. Improve configure.raw for cross-building on exe-suffixed systems.
  1416. * builds/unix/configure.raw: Fix a bug in sed script to extract
  1417. native suffix for binary executables, patch by Peter Breitenlohner.
  1418. http://lists.gnu.org/archive/html/freetype-devel/2009-04/msg00036.html
  1419. 2009-06-26 Werner Lemberg <wl@gnu.org>
  1420. [truetype] Remove TT_SubGlyphRec.
  1421. * src/truetype/ttobjs.h (TT_SubGlyphRec): Removed, unused.
  1422. 2009-06-26 Werner Lemberg <wl@gnu.org>
  1423. * */*: For warning messages, replace FT_ERROR with FT_TRACE0.
  1424. FT_ERROR is now used only if a function produces a non-zero `error'
  1425. value.
  1426. Formatting, improving and harmonizing debug strings.
  1427. 2009-06-25 Werner Lemberg <wl@gnu.org>
  1428. Provide version information better.
  1429. * src/base/ftinit.c (FT_Init_FreeType): Don't set version here
  1430. but...
  1431. * src/base/ftobjs.c (FT_New_Library): Here.
  1432. 2009-06-22 Werner Lemberg <wl@gnu.org>
  1433. Use 16.16 format while parsing Type 1 charstrings.
  1434. This fixes Savannah bug #26867.
  1435. Previously, only integers have been used which can lead to serious
  1436. rounding errors.
  1437. However, fractional values are only used internally; after the
  1438. charstrings (of either Type 1 or 2) have been processed, the
  1439. resulting coordinates get rounded to integers currently -- before
  1440. applying scaling. This should be fixed; at the same time a new load
  1441. flag should be introduced, to be used in combination with
  1442. FT_LOAD_NO_SCALE, which indicates that font units are returned in
  1443. 16.16 format. Similarly, the incremental interface should be
  1444. extended to allow fractional values for metrics.
  1445. * include/freetype/internal/psaux.h (T1_BuilderRec): Remove `shift'
  1446. field.
  1447. * include/freetype/internal/pshints.h (T1_Hints_SetStemFunc,
  1448. T1_Hints_SetStem3Func): Use FT_Fixed for coordinates.
  1449. * src/psaux/psobjs.c: Include FT_INTERNAL_CALC_H.
  1450. (t1_build_add_point): Always convert fixed to integer.
  1451. * src/psaux/t1decode.c (t1_decoder_parse_charstrings):
  1452. Use 16.16 format everywhere (except for large integers followed by a
  1453. `div').
  1454. [CAN_HANDLE_NON_INTEGRAL_T1_OPERANDS]: Remove #ifdef and activate
  1455. code uncoditionally.
  1456. Add support for random numbers and update remaining code
  1457. accordingly; this should work now.
  1458. (t1_operator_seac): Updated.
  1459. * src/psaux/pshrec.c: Include FT_INTERNAL_CALC_H.
  1460. (ps_hints_t1stem3, t1_hints_stem): Updated.
  1461. * src/cid/cidgload.c: Include FT_INTERNAL_CALC_H.
  1462. (cid_load_glyph) [FT_CONFIG_OPTION_INCREMENTAL],
  1463. (cid_face_compute_max_advance, cid_slot_load_glyph): Updated.
  1464. * src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
  1465. [FT_CONFIG_OPTION_INCREMENTAL], (T1_Get_Advances, T1_Load_Glyph):
  1466. Updated.
  1467. * src/type1/t1load.c: Include FT_INTERNAL_CALC_H.
  1468. * src/type1/t1objs.c (T1_Face_Init): Updated.
  1469. 2009-06-21 Werner Lemberg <wl@gnu.org>
  1470. * src/pshinter/pshrec.c: Use PSH_Err_Ok.
  1471. 2009-06-21 Werner Lemberg <wl@gnu.org>
  1472. Code beautification.
  1473. * src/type1/t1load.c (FT_INT_TO_FIXED): Removed.
  1474. Replace everywhere with INT_TO_FIXED.
  1475. (FT_FIXED_TO_INT): Move to ...
  1476. * include/freetype/internal/ftcalc.h (FIXED_TO_INT): Here.
  1477. Update all users.
  1478. 2009-06-20 Werner Lemberg <wl@gnu.org>
  1479. Remove unused variables.
  1480. * include/freetype/internal/psaux.h (T1_BuilderRec),
  1481. src/cff/cffgload.h (CFF_Builder): Remove `last'.
  1482. Update all users.
  1483. 2009-06-20 Werner Lemberg <wl@gnu.org>
  1484. [psaux] Check large integers while parsing charstrings.
  1485. * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Large
  1486. integers must be followed by a `div' operator.
  1487. 2009-06-20 Werner Lemberg <wl@gnu.org>
  1488. [cff] Revert last change.
  1489. * src/cff/cffgload.c (cff_decoder_parse_charstrings): Do it.
  1490. Next time, don't confuse Type 2 charstring opcodes with TOP DICT
  1491. values...
  1492. 2009-06-20 Werner Lemberg <wl@gnu.org>
  1493. * src/autofit/aflatin.c (af_latin_metrics_check_digits): Fix
  1494. compiler warning.
  1495. 2009-06-20 Werner Lemberg <wl@gnu.org>
  1496. * builds/compiler/gcc.mk (CFLAGS): Use -O3, not -O6.
  1497. 2009-06-19 Werner Lemberg <wl@gnu.org>
  1498. [cff] Fix handling of reserved byte 0xFF.
  1499. * src/cff/cffgload.c (cff_decoder_parse_charstrings): Abort if byte
  1500. 0xFF is encountered.
  1501. 2009-06-19 Werner Lemberg <wl@gnu.org>
  1502. Improve debug messages for Type1 charstrings.
  1503. * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Emit newlines
  1504. after instructions.
  1505. Prettify output.
  1506. 2009-06-19 Werner Lemberg <wl@gnu.org>
  1507. More ftgray fixes for FT_STATIC_RASTER.
  1508. Problems reported by suyu@cooee.cn.
  1509. * src/smooth/ftgrays.c (gray_move_to, gray_raster_render): Use
  1510. RAS_VAR.
  1511. 2009-06-18 Werner Lemberg <wl@gnu.org>
  1512. * docs/CHANGES: Updated.
  1513. 2009-06-18 Werner Lemberg <wl@gnu.org>
  1514. Fix B/W rasterization of subglyphs with different drop-out modes.
  1515. Normally, the SCANMODE instruction (if present) to set the drop-out
  1516. mode in a TrueType font is located in the `prep' table only and thus
  1517. valid for all glyphs. However, there are fonts like `pala.ttf'
  1518. which additionally contain this instruction in the hinting code of
  1519. some glyphs (but not all). As a result it can happen that a
  1520. composite glyph needs multiple drop-out modes for its subglyphs
  1521. since the rendering state gets reset for each subglyph.
  1522. FreeType collects the hinted outlines from all subglyphs, then it
  1523. sends the data to the rasterizer. It also sends the drop-out mode
  1524. -- after hinting has been applied -- and here is the error: It sends
  1525. the drop-out mode of the last subglyph only; drop-out modes of all
  1526. other subglyphs are lost.
  1527. This patch fixes the problem; it adds a second, alternative
  1528. mechanism to pass the drop-out mode: For each contour, the
  1529. rasterizer now checks the first `tags' array element. If bit 2 is
  1530. set, bits 5-7 contain the contour's drop-out mode, overriding the
  1531. global drop-out mode.
  1532. * include/freetype/ftimage.h (FT_CURVE_TAG_HAS_SCANMODE): New macro.
  1533. * src/truetype/ttgload.c (TT_Hint_Glyph): Store drop-out mode in
  1534. `tags[0]'.
  1535. * src/raster/ftraster.c (Flow_Up, Overshoot_Top, Overshoot_Bottom):
  1536. Use bits 3-5 instead of 0-2.
  1537. (New_Profile): Set the drop-out mode in the profile's `flags' field.
  1538. (Decompose_Curve): Check `tags[0]' and set `dropOutControl' if
  1539. necessary.
  1540. (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
  1541. Horizontal_Gray_Sweep_Drop, Draw_Sweep): Use the profile's drop-out
  1542. mode.
  1543. 2009-06-16 Werner Lemberg <wl@gnu.org>
  1544. Improve scan conversion rules 4 and 6.
  1545. Two new constraints are introduced to better identify a `stub' -- a
  1546. concept which is only vaguely described in the OpenType
  1547. specification. The old code was too rigorous and suppressed more
  1548. pixel than it should.
  1549. . The intersection of the two profiles with the scanline is less
  1550. than a half pixel. Code related to this was already present in
  1551. the sources but has been commented out.
  1552. . The endpoint of the original contour forming a profile has a
  1553. distance (`overshoot') less than half a pixel to the scanline.
  1554. Note that the two additional conditions fix almost all differences
  1555. to the Windows rasterizer, but some problematic cases remain.
  1556. * src/raster/ftraster.c (Overshoot_Top, Overshoot_Bottom): New
  1557. macros for the `flags' field in the `TProfile' structure.
  1558. (IS_BOTTOM_OVERSHOOT, IS_TOP_OVERSHOOT): New macros.
  1559. (New_Profile, End_Profile): Pass overshoot flag as an argument and
  1560. set it accordingly.
  1561. Update callers.
  1562. (Vertical_Sweep_Drop, Horizontal_Sweep_Drop): Implement the two new
  1563. constraints.
  1564. 2009-06-11 Werner Lemberg <wl@gnu.org>
  1565. Increase precision for B/W rasterizer.
  1566. * src/raster/ftraster.c (Set_High_Precision): Add two more bits to
  1567. the precision. This corrects rendering of some small glyphs, for
  1568. example, glyph `xi' in verdana.ttf at 13 ppem. Testing with ftbench
  1569. on my GNU/Linux box I don't see a performance degradation.
  1570. 2009-06-08 Michael Zucchi <notzed@gmail.com>
  1571. Handle FT_STROKER_LINECAP_BUTT.
  1572. This fixes Savannah bug #26757.
  1573. * src/base/ftstroke.c (ft_stroker_cap): Implement it.
  1574. 2009-06-07 Harald Fernengel <harry@kdevelop.org>
  1575. Fix some potential out-of-memory crashes.
  1576. * src/base/ftobjs.c (ft_glyphslot_done): Check `slot->internal'.
  1577. * src/base/ftstream.c (FT_Stream_ReleaseFrame): Check `stream'.
  1578. * src/truetype/ttinterp.c (TT_New_Context): Avoid double-free of
  1579. `exec' in case of failure.
  1580. 2009-06-07 Werner Lemberg <wl@gnu.org>
  1581. Simplify math.
  1582. Suggested by Alexei Podtelezhnikov <apodtele@gmail.com>.
  1583. * src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
  1584. Horizontal_Gray_Sweep_Drop): Do it.
  1585. 2009-06-04 Werner Lemberg <wl@gnu.org>
  1586. Preparation for fixing scan conversion rules 4 and 6.
  1587. * src/raster/ftraster.c (TFlow): Replace enumeration with...
  1588. (Flow_Up): This macro.
  1589. (TProfile): Replace `flow' member with `flags' bit field.
  1590. Update all affected code.
  1591. 2009-05-29 James Cloos <cloos@jhcloos.com>
  1592. Enable autohinting for glyphs rotated by multiples of 90°.
  1593. * src/base/ftobjs.c (FT_Load_Glyph): Alter check for permitted
  1594. matrices to allow rotations by multiples of 90°, not only unrotated,
  1595. possibly slanted matrices.
  1596. 2009-05-28 Werner Lemberg <wl@gnu.org>
  1597. Remove compiler warning.
  1598. Reported by Krzysztof Kowalczyk <kkowalczyk@gmail.com>.
  1599. * src/autofit/aflatin2.c (af_latin2_hint_edges): Move declaration of
  1600. `n_edges' into `#if' block.
  1601. 2009-05-28 Werner Lemberg <wl@gnu.org>
  1602. Make compilation work with FT_CONFIG_OPTION_USE_ZLIB not defined.
  1603. Reported by Krzysztof Kowalczyk <kkowalczyk@gmail.com>.
  1604. * src/pcf/pcfdrivr.c (PCF_Face_Init) [!FT_CONFIG_OPTION_USE_ZLIB]:
  1605. Make it work.
  1606. Simplify #ifdef logic.
  1607. 2009-05-22 Werner Lemberg <wl@gnu.org>
  1608. Improve b/w rasterizer.
  1609. Problem reported by Krzysztof Kotlenga <pocek@users.sf.net>.
  1610. * src/raster/raster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
  1611. Horizontal_Gray_Sweep_Drop): For smart drop-out mode, if
  1612. intersections are equally distant relative to next pixel center,
  1613. select the left pixel, not the right one.
  1614. 2009-05-19 Werner Lemberg <wl@gnu.org>
  1615. Fix Savannah bug #26600.
  1616. * src/type42/t42parse.c (t42_load_keyword): Handle
  1617. T1_FIELD_LOCATION_FONT_EXTRA.
  1618. 2009-04-30 Werner Lemberg <wl@gnu.org>
  1619. Document recent changes to ftview.
  1620. * docs/CHANGES: Do it.
  1621. 2009-04-27 Werner Lemberg <wl@gnu.org>
  1622. autohinter: Don't change digit widths if all widths are the same.
  1623. This fixes FreeDesktop bug #21197.
  1624. * src/autofit/afglobal.c (AF_DIGIT): New macro.
  1625. (af_face_globals_compute_script_coverage): Mark ASCII digits in
  1626. `glyph_scripts' array.
  1627. (af_face_globals_get_metrics): Updated.
  1628. (af_face_globals_is_digit): New function.
  1629. * src/autofit/afglobal.h: Updated.
  1630. (AF_ScriptMetricsRec): Add `digits_have_same_width' flag.
  1631. * src/autofit/aflatin.c: Include FT_ADVANCES_H.
  1632. (af_latin_metrics_check_digits): New function.
  1633. (af_latin_metrics_init): Use it.
  1634. * src/autofit/aflatin.h: Updated.
  1635. * src/autofit/afcjk.c (af_cjk_metrics_init): Updated.
  1636. * src/autofit/aflatin2.c: Similar changes as with aflatin.c.
  1637. * src/autofit/afloader.c (af_loader_load_g): Test digit width.
  1638. * docs/CHANGES: Document it.
  1639. 2009-04-26 Werner Lemberg <wl@gnu.org>
  1640. Make ftgrays compile with _STANDALONE_ and FT_STATIC_RASTER again.
  1641. Problems reported by suyu@cooee.cn.
  1642. * src/smooth/ftgrays.c (FT_DEFINE_OUTLINE_FUNCS,
  1643. FT_DEFINE_RASTER_FUNCS) [_STANDALONE_]: Define.
  1644. [!_STANDALONE_]: Include ftspic.h only here.
  1645. (ras): Define/declare after definition of `TWorker'.
  1646. Use `RAS_VAR_' where necessary.
  1647. 2009-04-21 Karl Berry <karl@gnu.org>
  1648. Fix AC_CHECK_FT2.
  1649. * builds/unix/freetype2.m4: Only check PATH for freetype-config if
  1650. we did not already find it from a prefix option.
  1651. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1652. Add #error to modules and files that do not support PIC yet.
  1653. When FT_CONFIG_OPTION_PIC is defined the following files will
  1654. create #error:
  1655. * src/bdf/bdfdrivr.h
  1656. * src/cache/ftcmanag.c
  1657. * src/cid/cidriver.h
  1658. * src/gxvalid/gxvmod.h
  1659. * src/gzip/ftgzip.c
  1660. * src/lzw/ftlzw.c
  1661. * src/otvalid/otvmod.h
  1662. * src/pcf/pcfdrivr.h
  1663. * src/pfr/pfrdrivr.h
  1664. * src/psaux/psauxmod.h
  1665. * src/type1/t1driver.h
  1666. * src/type42/t42drivr.h
  1667. * src/winfonts/winfnt.h
  1668. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1669. Position Independent Code (PIC) support in autofit module.
  1670. * include/freetype/internal/autohint.h add macros to init
  1671. instances of FT_AutoHinter_ServiceRec.
  1672. * src/autofit/afmodule.h declare autofit_module_class
  1673. using macros from ftmodapi.h,
  1674. when FT_CONFIG_OPTION_PIC is defined create and destroy
  1675. functions will be declared.
  1676. * src/autofit/afmodule.c when FT_CONFIG_OPTION_PIC is defined
  1677. af_autofitter_service and autofit_module_class structs
  1678. will have functions to init or create and destroy them
  1679. instead of being allocated in the global scope.
  1680. And macros will be used from afpic.h in order to access them.
  1681. * src/autofit/aftypes.h add macros to init and declare
  1682. instances of AF_ScriptClassRec.
  1683. * src/autofit/afcjk.h declare af_cjk_script_class
  1684. using macros from aftypes.h,
  1685. when FT_CONFIG_OPTION_PIC is defined init function will be declared.
  1686. * src/autofit/afcjk.c when FT_CONFIG_OPTION_PIC is defined
  1687. af_cjk_script_class struct will have function to init it instead of
  1688. being allocated in the global scope.
  1689. * src/autofit/afdummy.h declare af_dummy_script_class
  1690. using macros from aftypes.h,
  1691. when FT_CONFIG_OPTION_PIC is defined init function will be declared.
  1692. * src/autofit/afdummy.c when FT_CONFIG_OPTION_PIC is defined
  1693. af_dummy_script_class struct will have function to init it instead of
  1694. being allocated in the global scope.
  1695. * src/autofit/afindic.h declare af_indic_script_class
  1696. using macros from aftypes.h,
  1697. when FT_CONFIG_OPTION_PIC is defined init function will be declared.
  1698. * src/autofit/afindic.c when FT_CONFIG_OPTION_PIC is defined
  1699. af_indic_script_class struct will have function to init it instead of
  1700. being allocated in the global scope.
  1701. * src/autofit/aflatin.h declare af_latin_script_class
  1702. using macros from aftypes.h,
  1703. when FT_CONFIG_OPTION_PIC is defined init function will be declared.
  1704. * src/autofit/aflatin.c when FT_CONFIG_OPTION_PIC is defined
  1705. af_latin_script_class struct will have function to init it instead of
  1706. being allocated in the global scope.
  1707. Change af_latin_blue_chars to be PIC-compatible by being a two
  1708. dimentional array rather than array of pointers.
  1709. * src/autofit/aflatin2.h declare af_latin2_script_class
  1710. using macros from aftypes.h,
  1711. when FT_CONFIG_OPTION_PIC is defined init function will be declared.
  1712. * src/autofit/aflatin2.c when FT_CONFIG_OPTION_PIC is defined
  1713. af_latin2_script_class struct will have function to init it instead of
  1714. being allocated in the global scope.
  1715. Change af_latin2_blue_chars to be PIC-compatible by being a two
  1716. dimentional array rather than array of pointers.
  1717. * src/autofit/afglobal.c when FT_CONFIG_OPTION_PIC is defined
  1718. af_script_classes array initialization was moved to afpic.c and
  1719. is later refered using macros defeined in afpic.h.
  1720. New Files:
  1721. * src/autofit/afpic.h declare struct to hold PIC globals for autofit
  1722. module and macros to access them.
  1723. * src/autofit/afpic.c implement functions to allocate, destroy and
  1724. initialize PIC globals for autofit module.
  1725. * src/autofit/autofit.c add new file to build: afpic.c.
  1726. * src/autofit/jamfile add new files to FT2_MULTI build: afpic.c.
  1727. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1728. Position Independent Code (PIC) support in pshinter module.
  1729. * include/freetype/internal/pshints.h add macros to init
  1730. instances of PSHinter_Interface.
  1731. * src/pshinter/pshmod.h declare pshinter_module_class
  1732. using macros from ftmodapi.h,
  1733. when FT_CONFIG_OPTION_PIC is defined create and destroy
  1734. functions will be declared.
  1735. * src/pshinter/pshmod.c when FT_CONFIG_OPTION_PIC is defined
  1736. pshinter_interface and pshinter_module_class structs
  1737. will have functions to init or create and destroy them
  1738. instead of being allocated in the global scope.
  1739. And macros will be used from pshpic.h in order to access them.
  1740. New Files:
  1741. * src/pshinter/pshpic.h declare struct to hold PIC globals for pshinter
  1742. module and macros to access them.
  1743. * src/pshinter/pshpic.c implement functions to allocate, destroy and
  1744. initialize PIC globals for pshinter module.
  1745. * src/pshinter/pshinter.c add new file to build: pshpic.c.
  1746. * src/pshinter/jamfile add new files to FT2_MULTI build: pshpic.c.
  1747. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1748. Position Independent Code (PIC) support in psnames module.
  1749. * include/freetype/internal/services/svpscmap.h add macros to init
  1750. instances of FT_Service_PsCMapsRec.
  1751. * src/psnames/psmodule.h declare psnames_module_class
  1752. using macros from ftmodapi.h,
  1753. when FT_CONFIG_OPTION_PIC is defined create and destroy
  1754. functions will be declared.
  1755. * src/psnames/psmodule.c when FT_CONFIG_OPTION_PIC is defined
  1756. pscmaps_interface and pscmaps_services structs
  1757. and psnames_module_class array
  1758. will have functions to init or create and destroy them
  1759. instead of being allocated in the global scope.
  1760. And macros will be used from pspic.h in order to access them.
  1761. New Files:
  1762. * src/psnames/pspic.h declare struct to hold PIC globals for psnames
  1763. module and macros to access them.
  1764. * src/psnames/pspic.c implement functions to allocate, destroy and
  1765. initialize PIC globals for psnames module.
  1766. * src/psnames/psnames.c add new file to build: pspic.c.
  1767. * src/psnames/jamfile add new files to FT2_MULTI build: pspic.c.
  1768. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1769. Position Independent Code (PIC) support in raster renderer.
  1770. * src/raster/ftrend1.h declare ft_raster1_renderer_class
  1771. and ft_raster5_renderer_class
  1772. using macros from ftrender.h,
  1773. when FT_CONFIG_OPTION_PIC is defined create and destroy
  1774. functions will be declared.
  1775. * src/smooth/ftrend1.c when FT_CONFIG_OPTION_PIC is defined
  1776. ft_raster1_renderer_class and ft_raster5_renderer_class structs
  1777. will have functions to init or create and destroy them
  1778. instead of being allocated in the global scope.
  1779. Macros will be used from rastpic.h in order to access
  1780. ft_standard_raster from the pic_container (allocated in ftraster.c).
  1781. In ft_raster1_render when PIC is enabled, the last letter of
  1782. module_name is used to verfy the renderer class rather than the
  1783. class pointer.
  1784. * src/raster/ftraster.c when FT_CONFIG_OPTION_PIC is defined
  1785. ft_standard_raster struct will have function to init it
  1786. instead of being allocated in the global scope.
  1787. New Files:
  1788. * src/raster/rastpic.h declare struct to hold PIC globals for raster
  1789. renderer and macros to access them.
  1790. * src/raster/rastpic.c implement functions to allocate, destroy and
  1791. initialize PIC globals for raster renderer.
  1792. * src/raster/raster.c add new file to build: rastpic.c.
  1793. * src/raster/jamfile add new files to FT2_MULTI build: rastpic.c.
  1794. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1795. Position Independent Code (PIC) support in smooth renderer.
  1796. * src/smooth/ftsmooth.h declare ft_smooth_renderer_class,
  1797. ft_smooth_lcd_renderer_class and ft_smooth_lcd_v_renderer_class
  1798. using macros from ftrender.h,
  1799. when FT_CONFIG_OPTION_PIC is defined create and destroy
  1800. functions will be declared.
  1801. * src/smooth/ftsmooth.c when FT_CONFIG_OPTION_PIC is defined
  1802. the following structs:
  1803. ft_smooth_renderer_class, ft_smooth_lcd_renderer_class
  1804. and ft_smooth_lcd_v_renderer_class
  1805. will have functions to init or create and destroy them
  1806. instead of being allocated in the global scope.
  1807. And macros will be used from ftspic.h in order to access
  1808. ft_grays_raster from the pic_container (allocated in ftgrays.c).
  1809. * src/smooth/ftgrays.h include FT_CONFIG_CONFIG_H
  1810. * src/smooth/ftgrays.c when FT_CONFIG_OPTION_PIC is NOT defined
  1811. func_interface was moved from gray_convert_glyph_inner function
  1812. to the global scope.
  1813. When FT_CONFIG_OPTION_PIC is defined
  1814. func_interface and ft_grays_raster structs
  1815. will have functions to init them
  1816. instead of being allocated in the global scope.
  1817. And func_interface will be allocated on the stack of
  1818. gray_convert_glyph_inner.
  1819. New Files:
  1820. * src/smooth/ftspic.h declare struct to hold PIC globals for smooth
  1821. renderer and macros to access them.
  1822. * src/smooth/ftspic.c implement functions to allocate, destroy and
  1823. initialize PIC globals for smooth renderer.
  1824. * src/smooth/smooth.c add new file to build: ftspic.c.
  1825. * src/smooth/jamfile add new files to FT2_MULTI build: ftspic.c.
  1826. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1827. Position Independent Code (PIC) support in cff driver.
  1828. * include/freetype/internal/services/svcid.h add macros to init
  1829. instances of FT_Service_CIDRec.
  1830. * include/freetype/internal/services/svpsinfo.h add macros to init
  1831. instances of FT_Service_PsInfoRec.
  1832. * src/cff/cffcmap.h declare cff_cmap_encoding_class_rec
  1833. and cff_cmap_unicode_class_rec using macros from
  1834. ftobjs.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
  1835. functions will be declared.
  1836. * src/cff/cffcmap.c when FT_CONFIG_OPTION_PIC is defined
  1837. the following structs:
  1838. cff_cmap_encoding_class_rec and cff_cmap_unicode_class_rec
  1839. will have functions to init or create and destroy them
  1840. instead of being allocated in the global scope.
  1841. * src/cff/cffdrivr.h declare cff_driver_class using macros from
  1842. ftdriver.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
  1843. functions will be declared.
  1844. * src/cff/cffdrivr.c when FT_CONFIG_OPTION_PIC is defined
  1845. the following structs:
  1846. cff_service_glyph_dict, cff_service_ps_info, cff_service_ps_name
  1847. cff_service_get_cmap_info, cff_service_cid_info, cff_driver_class,
  1848. and cff_services array
  1849. will have functions to init or create and destroy them
  1850. instead of being allocated in the global scope.
  1851. And macros will be used from cffpic.h in order to access them
  1852. from the pic_container.
  1853. Use macros from cffpic.h in order to access the
  1854. structs allocated in cffcmap.c
  1855. * src/cff/cffobjs.c Use macros from cffpic.h in order to access the
  1856. structs allocated in cffcmap.c
  1857. * src/cff/parser.c when FT_CONFIG_OPTION_PIC is defined
  1858. implement functions to create and destroy cff_field_handlers array
  1859. instead of being allocated in the global scope.
  1860. And macros will be used from cffpic.h in order to access it
  1861. from the pic_container.
  1862. New Files:
  1863. * src/cff/cffpic.h declare struct to hold PIC globals for cff
  1864. driver and macros to access them.
  1865. * src/cff/cffpic.c implement functions to allocate, destroy and
  1866. initialize PIC globals for cff driver.
  1867. * src/cff/cff.c add new file to build: cffpic.c.
  1868. * src/cff/jamfile add new files to FT2_MULTI build: cffpic.c.
  1869. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1870. Position Independent Code (PIC) support in sfnt driver.
  1871. * include/freetype/internal/services/svbdf.h add macros to init
  1872. instances of FT_Service_BDFRec.
  1873. * include/freetype/internal/services/svgldict.h add macros to init
  1874. instances of FT_Service_GlyphDictRec.
  1875. * include/freetype/internal/services/svpostnm.h add macros to init
  1876. instances of FT_Service_PsFontNameRec.
  1877. * include/freetype/internal/services/svsfnt.h add macros to init
  1878. instances of FT_Service_SFNT_TableRec.
  1879. * include/freetype/internal/services/svttcmap.h add macros to init
  1880. instances of FT_Service_TTCMapsRec.
  1881. * include/freetype/internal/sfnt.h add macros to init
  1882. instances of SFNT_Interface.
  1883. * src/sfnt/sfdriver.h declare sfnt_module_class using macros from
  1884. ftmodapi.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
  1885. functions will be declared.
  1886. * src/sfnt/sfdriver.c when FT_CONFIG_OPTION_PIC is defined
  1887. the following structs:
  1888. sfnt_service_sfnt_table, sfnt_service_glyph_dict, sfnt_service_ps_name
  1889. tt_service_get_cmap_info, sfnt_service_bdf, sfnt_interface,
  1890. sfnt_module_class, and sfnt_services array
  1891. will have functions to init or create and destroy them
  1892. instead of being allocated in the global scope.
  1893. And macros will be used from sfntpic.h in order to access them
  1894. from the pic_container.
  1895. * src/sfnt/ttcmap.h add macros to init
  1896. instances of TT_CMap_ClassRec.
  1897. * src/sfnt/ttcmap.c when FT_CONFIG_OPTION_PIC is defined
  1898. the following structs:
  1899. tt_cmap0_class_rec, tt_cmap2_class_rec, tt_cmap4_class_rec
  1900. tt_cmap6_class_rec, tt_cmap8_class_rec, tt_cmap10_class_rec,
  1901. tt_cmap12_class_rec, tt_cmap14_class_rec and tt_cmap_classes array
  1902. will have functions to init or create and destroy them
  1903. instead of being allocated in the global scope.
  1904. And macros will be used from sfntpic.h in order to access them
  1905. from the pic_container.
  1906. The content of tt_cmap_classes is now described in the
  1907. new file 'ttcmapc.h'.
  1908. New Files:
  1909. * src/sfnt/sfntpic.h declare struct to hold PIC globals for sfnt
  1910. driver and macros to access them.
  1911. * src/sfnt/sfntpic.c implement functions to allocate, destroy and
  1912. initialize PIC globals for sfnt driver.
  1913. * src/sfnt/ttcmapc.h describing the content of
  1914. tt_cmap_classes allocated in ttcmap.c
  1915. * src/sfnt/sfnt.c add new file to build: sfntpic.c.
  1916. * src/sfnt/jamfile add new files to FT2_MULTI build: sfntpic.c.
  1917. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1918. Position Independent Code (PIC) support in truetype driver.
  1919. * include/freetype/internal/services/svmm.h add macros to init
  1920. instances of FT_Service_MultiMastersRec.
  1921. * include/freetype/internal/services/svttglyf.h add macros to init
  1922. instances of FT_Service_TTGlyfRec.
  1923. * src/truetype/ttdriver.h declare tt_driver_class using macros from
  1924. ftdriver.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
  1925. functions will be declared.
  1926. * src/truetype/ttdriver.c when FT_CONFIG_OPTION_PIC is defined
  1927. the following structs:
  1928. tt_service_gx_multi_masters, tt_service_truetype_glyf, tt_driver_class
  1929. and tt_services array,
  1930. will have functions to init or create and destroy them
  1931. instead of being allocated in the global scope.
  1932. And macros will be used from ttpic.h in order to access them
  1933. from the pic_container.
  1934. * src/truetype/ttobjs.c change trick_names array to be
  1935. PIC-compatible by being a two dimentional array rather than array
  1936. of pointers.
  1937. New Files:
  1938. * src/truetype/ttpic.h declare struct to hold PIC globals for truetype
  1939. driver and macros to access them.
  1940. * src/truetype/ttpic.c implement functions to allocate, destroy and
  1941. initialize PIC globals for truetype driver.
  1942. * src/truetype/truetype.c add new file to build: ttpic.c.
  1943. * src/truetype/jamfile add new files to FT2_MULTI build: ttpic.c.
  1944. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1945. Position Independent Code (PIC) support and infrastructure in base.
  1946. * include/freetype/config/ftoption.h add FT_CONFIG_OPTION_PIC
  1947. * include/freetype/internal/ftobjs.h Add pic_container member to
  1948. FT_LibraryRec.
  1949. Add macros to declare and init instances of FT_CMap_ClassRec.
  1950. Add macros to init instances of FT_Outline_Funcs and FT_Raster_Funcs.
  1951. Add macros to declare, allocate and initialize modules
  1952. (FT_Module_Class).
  1953. Add macros to declare, allocate and initialize renderers
  1954. (FT_Renderer_Class).
  1955. Add macro to init instances of FT_Glyph_Class.
  1956. Add macros to declare, allocate and initialize drivers
  1957. (FT_Driver_ClassRec).
  1958. * include/freetype/internal/ftpic.h new file to declare the
  1959. FT_PIC_Container struct and the functions to allocate and detroy it.
  1960. * include/freetype/internal/ftserv.h add macros to allocate and
  1961. destory arrays of FT_ServiceDescRec.
  1962. * include/freetype/internal/internal.h define macro to include
  1963. ftpic.h.
  1964. New Files:
  1965. * src/base/ftpic.c implement functions to allocate and destory the
  1966. global pic_container.
  1967. * src/base/basepic.h declare struct to hold PIC globals for base and
  1968. macros to access them.
  1969. * src/base/basepic.c implement functions to allocate, destroy and
  1970. initialize PIC globals for base.
  1971. * src/base/ftinit.c when FT_CONFIG_OPTION_PIC is defined implement
  1972. functions that allocate and destroy ft_default_modules according to
  1973. FT_CONFIG_MODULES_H in the pic_container instead of the global scope
  1974. and use macro from basepic.h to access it.
  1975. * src/base/ftobjs.c add calls to the functions that allocate and
  1976. destroy the global pic_container when the library is created and
  1977. destroyed.
  1978. * src/base/jamfile add new files to FT2_MULTI build:
  1979. ftpic.c and basepic.c.
  1980. * src/base/ftbase.c add new files to build:
  1981. ftpic.c and basepic.c.
  1982. * src/base/ftglyph.c when FT_CONFIG_OPTION_PIC is defined
  1983. ft_bitmap_glyph_class and ft_outline_glyph_class will be allocated
  1984. in the pic_container instead of the global scope and use macros from
  1985. basepic.h to access them.
  1986. * src/base/ftbbox.c allocate bbox_interface stract on the stack
  1987. instead of the global scope when FT_CONFIG_OPTION_PIC is defined.
  1988. * src/base/ftstroke.c access ft_outline_glyph_class allocated in
  1989. ftglyph.c via macros from basepic.h
  1990. 2009-04-05 Oran Agra <oran@monfort.co.il>
  1991. Preparing changes in cff parser later needed for PIC version.
  1992. * src/cff/cffload.c, src/cff/cffload.h, src/cff/cffobjs.c,
  1993. src/cff/cffparse.c, src/cff/cffparse.h: Add library pointer to
  1994. 'CFF_ParserRec' set by `cff_parser_init'.
  1995. Route library pointer from 'cff_face_init' to 'cff_subfont_load'
  1996. for `cff_parser_init'.
  1997. * src/cff/cffparse.c (CFF_Field_Handler): Move it to...
  1998. * src/cff/cffparse.h: This file, to be used by other C files.
  1999. 2009-04-05 Oran Agra <oran@monfort.co.il>
  2000. Minor change in ftstroke.c.
  2001. * src/base/ftstroke.c (FT_StrokerRec): Replace `memory' member with
  2002. `library' needed for PIC version.
  2003. Update all callers.
  2004. 2009-04-04 Werner Lemberg <wl@gnu.org>
  2005. ftnames.c -> ftsnames.c
  2006. * src/base/ftnames.c: Rename to...
  2007. * src/base/ftsnames.c: This.
  2008. * src/base/Jamfile, src/base/rules.mk, src/base/ftbase.c: Updated.
  2009. 2009-04-04 Werner Lemberg <wl@gnu.org>
  2010. Add support for cmap type 13.
  2011. * devel/ftoption.h, include/freetype/config/ftoption.h
  2012. (TT_CONFIG_CMAP_FORMAT_13): New macro.
  2013. * src/sfnt/ttcmap.c (TT_CMap13Rec, tt_cmap13_init,
  2014. tt_cmap13_validate, tt_cmap13_char_index, tt_cmap13_char_next,
  2015. tt_cmap13_get_info, tt_cmap13_char_map_def_binary,
  2016. tt_cmap14_class_rec): New functions and structures for cmap 13
  2017. support.
  2018. (tt_cmap_classes): Register tt_cmap13_class_rec.
  2019. * docs/CHANGES: Mention cmap 13 support.
  2020. 2009-04-01 Werner Lemberg <wl@gnu.org>
  2021. Ignore empty contours in CFF glyphs.
  2022. Problem reported by Albert Astals Cid <aacid@kde.org>.
  2023. * src/cff/cffgload.c (cff_builder_close_contour): Synchronize with
  2024. t1_builder_close_contour.
  2025. 2009-03-21 Werner Lemberg <wl@gnu.org>
  2026. Another redundant header inclusion.
  2027. * src/truetype/ttgxvar.c: Fix Ghostscript Coverity issue #4041.
  2028. 2009-03-21 Werner Lemberg <wl@gnu.org>
  2029. Remove redundant header inclusions.
  2030. This covers many Ghostscript Coverity issues.
  2031. * src/*: Do it.
  2032. 2009-03-21 Werner Lemberg <wl@gnu.org>
  2033. Fix Ghostscript Coverity issue #3904.
  2034. * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Protect against
  2035. invalid values of `runcnt'.
  2036. 2009-03-20 Werner Lemberg <wl@gnu.org>
  2037. Fix `make multi' run.
  2038. * src/smooth/ftsmooth.h: Include FT_INTERNAL_DEBUG_H.
  2039. 2009-03-20 Werner Lemberg <wl@gnu.org>
  2040. Fix Savannah bug #25923.
  2041. * src/cache/ftccmap.c (FTC_CMAP_HASH): Fix typo.
  2042. 2009-03-20 Werner Lemberg <wl@gnu.org>
  2043. Protect against too large glyphs.
  2044. Problem reported by Tavis Ormandy <taviso@google.com>.
  2045. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Don't allow
  2046. `pitch' or `height' to be larger than 0xFFFF.
  2047. 2009-03-20 Werner Lemberg <wl@gnu.org>
  2048. Tavis Ormandy <taviso@google.com>
  2049. Fix validation for various cmap table formats.
  2050. * src/sfnt/ttcmap.c (tt_cmap8_validate, tt_cmap10_validate,
  2051. tt_cmap12_validate): Check `length' correctly.
  2052. (tt_cmap_14_validate): Check `length' and `numMappings' correctly.
  2053. 2009-03-20 Werner Lemberg <wl@gnu.org>
  2054. Protect against malformed compressed data.
  2055. * src/lzw/ftzopen.c (ft_lzwstate_io): Test whether `state->prefix' is
  2056. zero.
  2057. 2009-03-20 Werner Lemberg <wl@gnu.org>
  2058. Protect against invalid SID values in CFFs.
  2059. Problem reported by Tavis Ormandy <taviso@google.com>.
  2060. * src/cff/cffload.c (cff_charset_load): Reject SID values larger
  2061. than 64999.
  2062. 2009-03-19 Vincent Richomme <richom.v@free.fr>
  2063. Update WinCE Visual C project files.
  2064. * builds/wince/vc2005-ce/freetype.vcproj,
  2065. builds/wince/vc2008-ce/freetype.vcproj: Add missing base extension
  2066. files.
  2067. 2009-03-19 Werner Lemberg <wl@gnu.org>
  2068. Remove unused Win32 code.
  2069. * builds/wince/ftdebug.c: Remove code guarded with `!_WIN32_WCE'.
  2070. Since Win32 is handled separately this is no longer needed.
  2071. 2009-03-19 Vincent Richomme <richom.v@free.fr>
  2072. Make `gzip' module compile on WinCE.
  2073. * src/gzip/zconf.h [_WIN32_WCE]: Define NO_ERRNO_H.
  2074. 2009-03-19 Werner Lemberg <wl@gnu.org>
  2075. Remove unused WinCE code.
  2076. * builds/win32/ftdebug.c: Remove code guarded with `_WIN32_WCE'.
  2077. Since WinCE is handled separately this is no longer needed.
  2078. 2009-03-16 Werner Lemberg <wl@gnu.org>
  2079. docmaker: Don't ignore single-line code blocks.
  2080. * src/tools/docmaker/content.py (DocBlock::_init__): Fix change from
  2081. 2009-01-31.
  2082. 2009-03-15 Steve Langasek <steve.langasek@canonical.com>
  2083. Use __asm__ for declaring assembly instead of asm.
  2084. * builds/unix/ftconfig.in (FT_MulFix_arm): Use __asm__ instead of
  2085. asm on arm, fixing a build failure on armel with -pedantic.
  2086. 2009-03-14 Werner Lemberg <wl@gnu.org>
  2087. Fix valgrind warning.
  2088. * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_bit_aligned): Don't read
  2089. past the end of the frame.
  2090. 2009-03-12 Werner Lemberg <wl@gnu.org>
  2091. * Version 2.3.9 released.
  2092. =========================
  2093. Tag sources with `VER-2-3-9'.
  2094. 2009-03-12 Werner Lemberg <wl@gnu.org>
  2095. * builds/unix/freetype2.in: Move @FT2_EXTRA_LIBS@ to `Libs.private'.
  2096. 2009-03-12 Werner Lemberg <wl@gnu.org>
  2097. Fix some FreeType Coverity issues as reported for Ghostscript.
  2098. * src/base/ftobjs.c (FT_New_Face, FT_New_Memory_Face): Initialize
  2099. `args.stream' (#3874, #3875).
  2100. (open_face_PS_from_sfnt_stream): Improve error management (#3786).
  2101. * src/base/ftmm.c (ft_face_get_mm_service): Fix check of `aservice'
  2102. (#3870).
  2103. * src/base/ftstroke.c (ft_stroke_border_get_counts): Remove dead
  2104. code (#3790).
  2105. * src/base/ftrfork.c (raccess_guess_apple_generic): Check error
  2106. value of `FT_Stream_Skip' (#3784).
  2107. * src/type1/t1gload.c (T1_Load_Glyph): Check `size' before accessing
  2108. it (#3872)
  2109. * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Check `face' before accessing
  2110. it (#3871).
  2111. * src/pcf/pcfread.c (pcf_get_metrics): Handle return value of
  2112. `pcf_get_metric' (#3789, #3782).
  2113. (pcf_get_properties): Use FT_STREAM_SKIP (#3783).
  2114. * src/cache/ftcmanag.c (FTC_Manager_RegisterCache): Fix check of
  2115. `acache' (#3797)
  2116. * src/cff/cffdrivr.c (cff_ps_get_font_info): Fix check of `cff'
  2117. (#3796).
  2118. * src/cff/cffgload.c (cff_decoder_prepare): Check `size' (#3795).
  2119. * src/cff/cffload.c (cff_index_get_pointers): Add comment (#3794).
  2120. * src/bdf/bdflib.c (_bdf_add_property): Check `fp->value.atom'
  2121. (#3793).
  2122. (_bdf_parse_start): Add comment (#3792).
  2123. * src/raster/ftraster.c (Finalize_Profile_Table): Check
  2124. `ras.fProfile' (#3791).
  2125. * src/sfnt/ttsbit.c (Load_SBit_Image): Use FT_STREAM_SKIP (#3785).
  2126. * src/gzip/ftgzip.c (ft_gzip_get_uncompressed_size): Properly ignore
  2127. seek error (#3781).
  2128. 2009-03-11 Michael Toftdal <toftdal@gmail.com>
  2129. Extend CID service functions to handle CID-keyed CFFs as CID fonts.
  2130. * include/freetype/ftcid.h (FT_Get_CID_Is_Internally_CID_keyed,
  2131. FT_Get_CID_From_Glyph_Index): New functions.
  2132. * include/freetype/internal/services/svcid.h
  2133. (FT_CID_GetIsInternallyCIDKeyedFunc,
  2134. FT_CID_GetCIDFromGlyphIndexFunc): New function typedefs.
  2135. (CID Service): Use them.
  2136. * src/base/ftcid.c: Include FT_CID_H.
  2137. (FT_Get_CID_Is_Internally_CID_keyed, FT_Get_CID_From_Glyph_Index):
  2138. New functions.
  2139. * src/cff/cffdrivr.c (cff_get_is_cid, cff_get_cid_from_glyph_index):
  2140. New functions.
  2141. (cff_service_cid_info): Add them.
  2142. * src/cff/cffload.c (cff_font_load): Don't free `font->charset.sids'
  2143. -- it is needed for access as a CID-keyed font. It gets deleted
  2144. later on.
  2145. * src/cid/cidriver.c (cid_get_is_cid, cid_get_cid_from_glyph_index):
  2146. New functions.
  2147. (cid_service_cid_info): Add them.
  2148. * docs/CHANGES: Updated.
  2149. 2009-03-11 Bram Tassyns <bramt@enfocus.be>
  2150. Fix Savannah bug #25597.
  2151. * src/cff/cffparse.c (cff_parse_real): Don't allow fraction_length
  2152. to become larger than 9.
  2153. 2009-03-11 Werner Lemberg <wl@gnu.org>
  2154. Fix Savannah bug #25814.
  2155. * builds/unix/freetype2.in: As suggested in the bug report, move
  2156. @LIBZ@ to `Libs.private'.
  2157. 2009-03-11 Werner Lemberg <wl@gnu.org>
  2158. Fix Savannah bug #25781.
  2159. We now simply check for a valid `offset', no longer handling `delta
  2160. = 1' specially.
  2161. * src/sfnt/ttcmap.c (tt_cmap4_validate): Don't check `delta' for
  2162. last segment.
  2163. (tt_cmap4_set_range, tt_cmap4_char_map_linear,
  2164. tt_cmap4_char_map_binary): Check offset.
  2165. 2009-03-11 Werner Lemberg <wl@gnu.org>
  2166. * src/base/Jamfile: Fix handling of ftadvanc.c.
  2167. Reported by Oran Agra <oran@monfort.co.il>.
  2168. 2009-03-10 Vincent Richomme <richom.v@free.fr>
  2169. Restructure Win32 and Wince compiler support.
  2170. * src/builds/win32: Remove files for WinCE.
  2171. Move VC 2005 support to a separate directory.
  2172. Add directory for VC 2008 support.
  2173. * src/builds/wince: New directory hierarchy for WinCE compilers
  2174. (VC 2005 and VC 2008).
  2175. 2009-03-09 Werner Lemberg <wl@gnu.org>
  2176. More preparations for 2.3.9 release.
  2177. * docs/CHANGES: Updated.
  2178. * Jamfile, README: s/2.3.8/2.3.9/, s/238/239/.
  2179. 2009-03-09 Werner Lemberg <wl@gnu.org>
  2180. * src/sfnt/rules.mk (SFNT_DRV_H): Add ttsbit0.c.
  2181. 2009-03-09 Alexey Kryukov <anagnost@yandex.ru>
  2182. Fix handling of EBDT formats 8 and 9 (part 2).
  2183. This patch fixes the following problems in ttsbit0.c:
  2184. . Bitmaps for compound glyphs were never allocated.
  2185. . `SBitDecoder' refused to load metrics if some other metrics have
  2186. already been loaded. This condition certainly makes no sense for
  2187. recursive calls, so I've just disabled it. Another possibility
  2188. would be resetting `decoder->metrics_loaded' to false before
  2189. loading each composite component. However, we must restore the
  2190. original metrics after finishing the recursion; otherwise we can
  2191. get a misaligned glyph.
  2192. . `tt_sbit_decoder_load_bit_aligned' incorrectly handled `x_pos',
  2193. causing some glyph components to be shifted too far to the right
  2194. (especially noticeable for small sizes).
  2195. Note that support for grayscale bitmaps (not necessarily compound) is
  2196. completely broken in ttsbit0.c.
  2197. * src/sfnt/tt_sbit_decoder_load_metrics: Always load metrics.
  2198. (tt_sbit_decoder_load_bit_aligned): Handle `x_pos' correctly in case
  2199. of `h == height'.
  2200. (tt_sbit_decoder_load_compound): Reset metrics after loading
  2201. components.
  2202. Allocate bitmap.
  2203. 2009-03-09 Werner Lemberg <wl@gnu.org>
  2204. * builds/unix/configure.raw (version_info): Set to 9:20:3.
  2205. 2009-03-03 David Turner <david@freetype.org>
  2206. Protect SFNT kerning table parser against malformed tables.
  2207. This closes Savannah BUG #25750.
  2208. * src/sfnt/ttkern.c (tt_face_load_kern, tt_face_get_kerning): Fix a
  2209. bug where a malformed table would be successfully loaded but later
  2210. crash the engine during parsing.
  2211. 2009-03-03 David Turner <david@freetype.org>
  2212. Update documentation and bump version number to 2.3.9.
  2213. * include/freetype/freetype.h: Bump patch version to 9.
  2214. * docs/CHANGES: Document the ABI break in 2.3.8.
  2215. * docs/VERSION.DLL: Update version numbers table for 2.3.9.
  2216. 2009-03-03 David Turner <david@freetype.org>
  2217. Remove ABI-breaking field in public PS_InfoFontRec definition.
  2218. Instead, we define a new internal PS_FontExtraRec structure to
  2219. hold the additional field, then place it in various internal
  2220. positions of the corresponding FT_Face derived objects.
  2221. * include/freetype/t1tables.h (PS_FontInfoRec): Remove the
  2222. `fs_type' field from the public structure.
  2223. * include/freetype/internal/psaux.h (T1_FieldLocation): New
  2224. enumeration `T1_FIELD_LOCATION_FONT_EXTRA'.
  2225. * include/freetype/internal/t1types.h (PS_FontExtraRec): New
  2226. structure.
  2227. (T1_FontRec, CID_FaceRec): Add it.
  2228. * src/cid/cidload.c (cid_load_keyword): Handle
  2229. T1_FIELD_LOCATION_FONT_EXTRA.
  2230. * src/cid/cidtoken.h, src/type1/t1tokens.h, src/type42/t42parse.c:
  2231. Adjust FT_STRUCTURE and T1CODE properly to handle `FSType'.
  2232. * src/type1/t1load.c (t1_load_keyword): Handle
  2233. T1_FIELD_LOCATION_FONT_EXTRA.
  2234. * include/freetype/internal/services/svpsinfo.h (PsInfo service):
  2235. Add `PS_GetFontExtraFunc' function typedef.
  2236. * src/base/ftfstype.c: Include FT_INTERNAL_SERVICE_H and
  2237. FT_SERVICE_POSTSCRIPT_INFO_H.
  2238. (FT_Get_FSType_Flags): Use POSTSCRIPT_INFO service.
  2239. * src/cff/cffdrivr.c (cff_service_ps_info): Updated.
  2240. * src/cid/cidriver.c (cid_ps_get_font_extra): New function.
  2241. (cid_service_ps_info): Updated.
  2242. * src/type1/t1driver.c (t1_ps_get_font_extra): New function.
  2243. (t1_service_ps_info): Updated.
  2244. * src/type42/t42drivr.c (t42_ps_get_font_extra): New function.
  2245. (t42_service_ps_info): Updated.
  2246. 2009-03-02 Alexey Kryukov <anagnost@yandex.ru>
  2247. Fix handling of EBDT formats 8 and 9.
  2248. The main cycle in `blit_sbit' makes too many iterations: it actually
  2249. needs the count of lines in the source bitmap rather than in the
  2250. target image.
  2251. * src/sfnt/ttsbit.c (blit_sbit) [FT_CONFIG_OPTION_OLD_INTERNALS]:
  2252. Add parameter `source_height' and use it for main loop.
  2253. (Load_SBit_Single) [FT_CONFIG_OPTION_OLD_INTERNALS]: Updated.
  2254. 2009-02-23 Werner Lemberg <wl@gnu.org>
  2255. Fix Savannah bug #25669.
  2256. * src/base/ftadvanc.h (FT_Get_Advances): Fix serious typo.
  2257. * src/base/ftobjs.c (FT_Select_Metrics, FT_Request_Metrics): Fix
  2258. scaling factor for non-scalable fonts.
  2259. * src/cff/cffdrivr.c (cff_get_advances): Use correct advance width
  2260. value to prevent incorrect scaling.
  2261. * docs/CHANGES: Document it.
  2262. 2009-02-15 Matt Godbolt <matt@godbolt.org>
  2263. Fix Savannah bug #25588.
  2264. * builds/unix/ftconfig.in (FT_MulFix_arm): Use correct syntax for
  2265. `orr' instruction.
  2266. 2009-02-11 Werner Lemberg <wl@gnu.org>
  2267. * src/truetype/ttobjs.c (tt_check_trickyness): Add `DFKaiShu'.
  2268. Reported by David Bevan <dbevan@emtex.com>.
  2269. 2009-02-09 Werner Lemberg <wl@gnu.org>
  2270. Fix Savannah bug #25495.
  2271. * src/sfnt/sfobjs.c (sfnt_load_face): Test for bitmap strikes before
  2272. setting metrics and bbox values. This ensures that the check for a
  2273. font with neither a `glyf' table nor bitmap strikes can be performed
  2274. early enough to set metrics and bbox values too.
  2275. 2009-02-04 Werner Lemberg <wl@gnu.org>
  2276. Fix Savannah bug #25480.
  2277. * builds/unix/freetype-config.in: For --ftversion, don't use $prefix
  2278. but $includedir.
  2279. 2009-01-31 Werner Lemberg <wl@gnu.org>
  2280. Minor docmaker improvements.
  2281. * src/tools/docmaker/content.py (DocBlock::__init__): Ignore empty
  2282. code blocks.
  2283. 2009-01-25 Werner Lemberg <wl@gnu.org>
  2284. Fix SCANCTRL handling in TTFs.
  2285. Problem reported by Alexey Kryukov <anagnost@yandex.ru>.
  2286. * src/truetype/ttinterp.c (Ins_SCANCTRL): Fix threshold handling.
  2287. 2009-01-23 Werner Lemberg <wl@gnu.org>
  2288. Move FT_Get_FSType_Flags to a separate file.
  2289. Problem reported by Mickey Gabel <mickey@monfort.co.il>.
  2290. * src/base/ftobjs.c (FT_Get_FSType_Flags): Move to...
  2291. * src/base/ftfstype.c: This new file.
  2292. * modules.cfg (BASE_EXTENSION): Add ftfstype.c.
  2293. * docs/INSTALL.ANY: Updated.
  2294. * builds/mac/*.txt, builds/amiga/*makefile*,
  2295. builds/win32/{visualc,visualce}/freetype.*, builds/symbian/*:
  2296. Updated.
  2297. 2009-01-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2298. * builds/unix/ftsystem.c (FT_Stream_Open): Fix 2 error
  2299. messages ending without "\n".
  2300. 2009-01-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2301. Fix Savannah bug #25347.
  2302. * src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Rewind
  2303. the stream to the original position passed to this function,
  2304. when ft_lookup_PS_in_sfnt_stream() failed.
  2305. (Mac_Read_sfnt_Resource): Rewind the stream to the head of
  2306. sfnt resource body, when open_face_PS_from_sfnt_stream()
  2307. failed.
  2308. 2009-01-19 Michael Lotz <mmlr@mlotz.ch>
  2309. Fix Savannah bug #25355.
  2310. * include/freetype/config/ftconfig.h (FT_MulFix_i386): Make
  2311. assembler code work with gcc 2.95.3 (as used by the Haiku project).
  2312. Add `cc' register to the clobber list.
  2313. 2009-01-18 Werner Lemberg <wl@gnu.org>
  2314. Protect FT_Get_Next_Char.
  2315. * src/sfnt/ttcmap.c (tt_cmap4_set_range): Apply fix similar to
  2316. change from 2008-07-22.
  2317. Patch from Ronen Ghoshal <rghoshal@emtex.com>.
  2318. 2009-01-18 Werner Lemberg <wl@gnu.org>
  2319. Implement FT_Get_Name_Index for SFNT driver.
  2320. * src/sfnt/sfdriver.c (sfnt_get_name_index): New function.
  2321. (sfnt_service_glyph_dict): Use it.
  2322. Problem reported by Truc Truong <tructv@necsv.com>.
  2323. 2009-01-18 Werner Lemberg <wl@gnu.org>
  2324. * include/freetype/ftstroke.h (FT_Outline_GetInsideBorder): Fix
  2325. documentation. Problem reported by Truc Truong <tructv@necsv.com>.
  2326. * docs/CHANGES: Updated.
  2327. 2009-01-14 Werner Lemberg <wl@gnu.org>
  2328. * Version 2.3.8 released.
  2329. =========================
  2330. Tag sources with `VER-2-3-8'.
  2331. * docs/VERSION.DLL: Update documentation and bump version number to
  2332. 2.3.8.
  2333. * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
  2334. builds/win32/visualc/freetype.dsp,
  2335. builds/win32/visualc/freetype.vcproj,
  2336. builds/win32/visualce/index.html,
  2337. builds/win32/visualce/freetype.dsp,
  2338. builds/win32/visualce/freetype.vcproj: s/2.3.7/2.3.8/, s/237/238/.
  2339. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 8.
  2340. * builds/unix/configure.raw (version_info): Set to 9:19:3.
  2341. * docs/release: Updated.
  2342. 2009-01-14 Werner Lemberg <wl@gnu.org>
  2343. * builds/toplevel.mk (dist): Compress better.
  2344. 2009-01-13 Werner Lemberg <wl@gnu.org>
  2345. * src/base/ftobjs.c (FT_Get_FSType_Flags): Cast for compilation
  2346. with C++.
  2347. 2009-01-13 Werner Lemberg <wl@gnu.org>
  2348. Don't use stdlib.h and friends directly.
  2349. Reported by Mickey Gabel <mickey@monfort.co.il>.
  2350. * src/base/ftdbgmem.c: s/<stdlib.h>/FT_CONFIG_STANDARD_LIBRARY_H/.
  2351. * src/gzip/ftgzip.c, src/lzw/ftlzw.c, src/raster/ftmisc.h:
  2352. s/<string.h>/FT_CONFIG_STANDARD_LIBRARY_H/.
  2353. * src/autofit/aftypes.h, src/autofit/afhints.c,
  2354. src/pshinter/pshalgo.c: s/<stdio.h>/FT_CONFIG_STANDARD_LIBRARY_H/
  2355. * src/lzw/ftlzw.c, src/base/ftdbgmem.c: Don't include stdio.h.
  2356. 2009-01-12 Werner Lemberg <wl@gnu.org>
  2357. Avoid compiler warnings.
  2358. * */*: s/do ; while ( 0 )/do { } while ( 0 )/.
  2359. Reported by Sean McBride <sean@rogue-research.com>.
  2360. 2009-01-12 Werner Lemberg <wl@gnu.org>
  2361. Fix stdlib dependencies.
  2362. Problem reported by Mickey Gabel <mickey@monfort.co.il>.
  2363. * include/freetype/config/ftstdlib.h (ft_exit): Removed. Unused.
  2364. * src/autofit/afhints.c, src/base/ftlcdfil.c, src/smooth/ftsmooth.c:
  2365. s/memcpy/ft_memcpy/.
  2366. * src/psaux/t1decode.c: s/memset/ft_memset/, s/memcpy/ft_memcpy/.
  2367. 2009-01-11 Werner Lemberg <wl@gnu.org>
  2368. * docs/formats.txt: Add link to PCF specification.
  2369. * include/freetype/ftbdf.h (FT_Get_BDF_Property): Improve
  2370. documentation.
  2371. 2009-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2372. * src/base/ftadvanc.c (_ft_face_scale_advances, FT_Get_Advance,
  2373. FT_Get_Advances): Change the type of load_flags from FT_UInt32 to
  2374. FT_Int32, to match with the flags for FT_Load_Glyph().
  2375. * src/cff/cffdrivr.c (cff_get_advances): Ditto.
  2376. * src/truetype/ttdriver.c (tt_get_advances): Ditto.
  2377. * include/freetype/ftadvanc.h (FT_Get_Advance, FT_Get_Advances):
  2378. Ditto.
  2379. * include/freetype/internal/ftdriver.h (FT_Face_GetAdvancesFunc):
  2380. Ditto.
  2381. 2009-01-09 Daniel Zimmermann <netzimme@aol.com>
  2382. * src/gxvalid/gxvmort.c (gxv_mort_feature_validate): Fix wrong
  2383. length check. From Savannah patch #6682.
  2384. 2009-01-09 Werner Lemberg <wl@gnu.org>
  2385. Fix problem with T1_FIELD_{NUM,FIXED}_TABLE2.
  2386. * src/psaux/psobjs.c (ps_parser_load_field_table): Don't handle
  2387. `count_offset' if it is zero (i.e., unused). Otherwise, the first
  2388. element of the structure which holds the data is erroneously
  2389. modified. Problem reported by Chi Nguyen <chint@necsv.com>.
  2390. 2009-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2391. * src/base/ftadvanc.c (_ft_face_scale_advances, FT_Get_Advance,
  2392. FT_Get_Advances): Extend the type of load_flags from FT_UInt to
  2393. FT_UInt32, to pass 32-bit flags on 16bit platforms.
  2394. * src/cff/cffdrivr.c (cff_get_advances): Ditto.
  2395. * src/truetype/ttdriver.c (tt_get_advances): Ditto.
  2396. * include/freetype/ftadvanc.h (FT_Get_Advance, FT_Get_Advances):
  2397. Ditto.
  2398. * include/freetype/internal/ftdriver.h (FT_Face_GetAdvancesFunc):
  2399. Ditto.
  2400. 2009-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2401. * src/base/ftobjs.c (FT_Done_Library): Issue an error message when
  2402. FT_Done_Face() cannot free all faces. If the list of the opened
  2403. faces includes broken face which FT_Done_Face() cannot free,
  2404. FT_Done_Library() retries FT_Done_Face() and it can fall into
  2405. an endless loop. See the discussion:
  2406. http://lists.gnu.org/archive/html/freetype-devel/2008-09/msg00047.html
  2407. http://lists.gnu.org/archive/html/freetype-devel/2008-10/msg00000.html
  2408. 2009-01-07 Werner Lemberg <wl@gnu.org>
  2409. * docs/CHANGES: Document new key `a' in ftdiff.
  2410. 2009-01-06 Werner Lemberg <wl@gnu.org>
  2411. * autogen.sh: Don't use GNUisms while calling sed. Problem reported
  2412. by Sean McBride.
  2413. 2009-01-06 Werner Lemberg <wl@gnu.org>
  2414. * src/base/ftbitmap.c (FT_Bitmap_Convert): Handle FT_PIXEL_MODE_LCD
  2415. and FT_PIXEL_MODE_LCD_V. Problem reported by Chi Nguyen
  2416. <chint@necsv.com>.
  2417. 2009-01-06 Diego Pettenò <flameeyes@gmail.com>
  2418. * builds/unix/configure.raw: Don't call AC_CANONICAL_BUILD and
  2419. AC_CANONICAL_TARGET and use $host_os only. A nice explanation for
  2420. this change can be found at
  2421. http://blog.flameeyes.eu/s/canonical-target.
  2422. From Savannah patch #6712.
  2423. 2009-01-06 Sean McBride <sean@rogue-research.com>
  2424. * src/base/ftdbgmem.c (_debug_mem_dummy): Make it static.
  2425. * src/base/ftmac.c: Remove some #undefs.
  2426. 2008-12-26 Werner Lemberg <wl@gnu.org>
  2427. Set `face_index' field in FT_Face for all font formats.
  2428. * cff/cffobjs.c (cff_face_init), winfonts/winfnt.c (FNT_Face_Init),
  2429. sfnt/sfobjs.c (sfnt_init_face): Do it.
  2430. * docs/CHANGES: Document it.
  2431. 2008-12-22 Steve Grubb
  2432. * builds/unix/ftsystem.c (FT_Stream_Open): Reject zero-length files.
  2433. Patch from Savannah bug #25151.
  2434. 2008-12-21 Werner Lemberg <wl@gnu.org>
  2435. * src/pfr/pfrdrivr.c, src/winfonts/winfnt.c, src/cache/ftcmanag.c,
  2436. src/smooth/ftgrays.c, src/base/ftobjc.s, src/sfobjs.c:
  2437. s/_Err_Bad_Argument/_Err_Invalid_Argument/. The former is for
  2438. errors in the bytecode interpreter only.
  2439. 2008-12-21 Werner Lemberg <wl@gnu.org>
  2440. * src/base/ftpfr.c (FT_Get_PFR_Metrics): Protect against NULL
  2441. arguments.
  2442. Fix return value for non-PFR fonts. Both problems reported by Chi
  2443. Nguyen <chint@necsv.com>.
  2444. 2008-12-21 anonymous
  2445. FT_USE_MODULE declares things as:
  2446. extern const FT_Module_Class
  2447. (or similar for C++). However, the actual types of the variables
  2448. being declared are often different, e.g., FT_Driver_ClassRec or
  2449. FT_Renderer_Class. (Some are, indeed, FT_Module_Class.)
  2450. This works with most C compilers (since those structs begin with an
  2451. FT_Module_Class struct), but technically it's undefined behavior.
  2452. To quote the ISO/IEC 9899:TC2 final committee draft, section 6.2.7
  2453. paragraph 2:
  2454. All declarations that refer to the same object or function shall
  2455. have compatible type; otherwise, the behavior is undefined.
  2456. (And they are not compatible types.)
  2457. Most C compilers don't reject (or even detect!) code which has this
  2458. issue, but the GCC LTO development branch compiler does. (It
  2459. outputs the types of the objects while generating .o files, along
  2460. with a bunch of other information, then compares them when doing the
  2461. final link-time code generation pass.)
  2462. Patch from Savannah bug #25133.
  2463. * src/base/ftinit.c (FT_USE_MODULE): Include variable type.
  2464. * builds/amiga/include/freetype/config/ftmodule.h,
  2465. include/freetype/config/ftmodule.h, */module.mk: Updated to declare
  2466. pass correct types to FT_USE_MODULE.
  2467. 2008-12-21 Hongbo Ni <hongbo@njstar.com>
  2468. * src/autofit/aflatin.c (af_latin_hint_edges),
  2469. src/autofit/aflatin2.c (af_latin2_hint_edges), src/autofit/afcjk.c
  2470. (af_cjk_hint_edges): Protect against division by zero. This fixes
  2471. Savannah bug #25124.
  2472. 2008-12-18 Werner Lemberg <wl@gnu.org>
  2473. * docs/CHANGES: Updated.
  2474. 2008-12-18 Bevan, David <dbevan@emtex.com>
  2475. Provide API for accessing embedding and subsetting restriction
  2476. information.
  2477. * include/freetype.h (FT_FSTYPE_INSTALLABLE_EMBEDDING,
  2478. FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING,
  2479. FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING, FT_FSTYPE_EDITABLE_EMBEDDING,
  2480. FT_FSTYPE_NO_SUBSETTING, FT_FSTYPE_BITMAP_EMBEDDING_ONLY): New
  2481. macros.
  2482. (FT_Get_FSType_Flags): New function declaration.
  2483. * src/base/ftobjs.c (FT_Get_FSType_Flags): New function.
  2484. * src/cid/cidtoken.h, src/type1/t1tokens.h, src/type42/t42parse.c
  2485. (t42_keywords): Handle `FSType'.
  2486. * include/freetype/t1tables.h (PS_FontInfoRec): Add `fs_type' field.
  2487. 2008-12-17 Werner Lemberg <wl@gnu.org>
  2488. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Don't use internal
  2489. macros so that copying the source code into an application works
  2490. out of the box.
  2491. 2008-12-17 Werner Lemberg <wl@gnu.org>
  2492. * include/freetype/ftsynth.h, src/base/ftsynth.c: Move
  2493. FT_GlyphSlot_Own_Bitmap to...
  2494. * include/freetype/ftbitmap.h, src/base/ftbitmap.c: These files.
  2495. * docs/CHANGES: Document it.
  2496. 2008-12-10 Werner Lemberg <wl@gnu.org>
  2497. Generalize the concept of `tricky' fonts by introducing
  2498. FT_FACE_FLAG_TRICKY to indicate that the font format's hinting
  2499. engine is necessary for correct rendering.
  2500. At the same time, slightly modify the behaviour of tricky fonts:
  2501. FT_LOAD_NO_HINTING is now ignored. To really force raw loading
  2502. of tricky fonts (without hinting), both FT_LOAD_NO_HINTING and
  2503. FT_LOAD_NO_AUTOHINT must be used.
  2504. Finally, tricky TrueType fonts always use the bytecode interpreter
  2505. even if the patented code is used.
  2506. * include/freetype/freetype.h (FT_FACE_FLAG_TRICKY, FT_IS_TRICKY):
  2507. New macros.
  2508. * src/truetype/ttdriver.c (Load_Glyph): Handle new load flags
  2509. semantics as described above.
  2510. * src/truetype/ttobjs.c (tt_check_trickyness): New function, using
  2511. code of ...
  2512. (tt_face_init): This function, now simplified and updated to new
  2513. semantics.
  2514. * src/base/ftobjs.c (FT_Load_Glyph): Don't use autohinter for tricky
  2515. fonts.
  2516. * docs/CHANGES: Document it.
  2517. 2008-12-09 Werner Lemberg <wl@gnu.org>
  2518. Really fix Savannah bug #25010: An SFNT font with neither outlines
  2519. nor bitmaps can be considered as containing space `glyphs' only.
  2520. * src/truetype/ttpload.c (tt_face_load_loca): Handle the case where
  2521. a `glyf' table is missing.
  2522. * src/truetype/ttgload.c (load_truetype_glyph): Abort if we have no
  2523. `glyf' table but a non-zero `loca' entry.
  2524. (tt_loader_init): Handle missing `glyf' table.
  2525. * src/base/ftobjs.c (FT_Load_Glyph): Undo change 2008-12-05.
  2526. * src/sfnt/sfobjs.c (sfnt_load_face): A font with neither outlines
  2527. nor bitmaps is scalable.
  2528. 2008-12-05 Werner Lemberg <wl@nu.org>
  2529. * src/autofit/aflatin.c (af_latin_uniranges): Add more ranges. This
  2530. fixes Savannah bug #21190 which also provides a basic patch.
  2531. 2008-12-05 Werner Lemberg <wl@nu.org>
  2532. * include/freetype/freetype.h (FT_LOAD_ADVANCE_ONLY): Use value
  2533. 0x100 instead of 0x10000; the latter value is already occupied by
  2534. FT_LOAD_TARGET_LIGHT. Bug reported by James Cloos.
  2535. Handle SFNT with neither outlines nor bitmaps. This fixes Savannah
  2536. bug #25010.
  2537. * src/base/ftobjs.c (FT_Load_Glyph): Reject fonts with neither
  2538. outlines nor bitmaps.
  2539. * src/sfnt/sfobjs.c (sfnt_load_face): Don't return an error if there
  2540. is no table with glyphs.
  2541. * src/sfnt/ttload.c (tt_face_lookup_table): Improve debugging
  2542. message.
  2543. 2008-12-01 Werner Lemberg <wl@gnu.org>
  2544. GDEF tables need `glyph_count' too for validation. Problem reported
  2545. by Chi Nguyen <chint@necsv.com>.
  2546. * src/otvalid/otvgdef.c (otv_GDEF_validate), src/otvalid/otvalid.h
  2547. (otv_GDEF_validate), src/otvalid/otvmod.c (otv_validate): Pass
  2548. `glyph_count'.
  2549. 2008-11-29 Werner Lemberg <wl@gnu.org>
  2550. * src/autofit/afcjk.c, src/base/ftoutln.c, src/base/ftrfork.c,
  2551. src/bdf/bdfdrivr.c, src/gxvalid/gxvmorx.c, src/otvalid/otvmath.c,
  2552. src/pcf/pcfdrivr.c, src/psnames/pstables.h, src/smooth/ftgrays.c,
  2553. src/tools/glnames.py, src/truetype/ttinterp.c, src/type1/t1load.c,
  2554. src/type42/t42objs.c, src/winfonts/winfnt.c: Fix compiler warnings
  2555. (Atari PureC).
  2556. 2008-11-29 James Cloos <cloos@jhcloos.com>
  2557. * src/type/t1load.c (mm_axis_unmap): Revert previous patch and fix
  2558. it correctly by using FT_INT_TO_FIXED (FreeType expects 16.16 values
  2559. in the /BlendDesignMap space).
  2560. 2008-11-29 James Cloos <cloos@jhcloos.com>
  2561. * src/type1/t1load.c (mm_axis_unmap): `blend_points' is FT_Fixed*,
  2562. whereas `design_points' is FT_Long*. Therefore, return blend rather
  2563. than design points.
  2564. 2008-11-27 Werner Lemberg <wl@gnu.org>
  2565. * src/cff/cffparse.c (cff_parse_real): Handle more than nine
  2566. significant digits correctly. This fixes Savannah bug #24953.
  2567. 2008-11-25 Daniel Zimmermann <netzimme@aol.com>
  2568. * src/base/ftstream.c (FT_Stream_ReadFields): Don't access stream
  2569. before the NULL check. From Savannah patch #6681.
  2570. 2008-11-24 Werner Lemberg <wl@gnu.org>
  2571. Fixes from the gnuwin32 port.
  2572. * src/base/ftlcdfil.c: s/EXPORT/EXPORT_DEF/.
  2573. * src/base/ftotval.c: Include FT_OPENTYPE_VALIDATE_H.
  2574. * src/psaux/psobjs.c (ps_table_add): Check `length'.
  2575. 2008-11-15 Werner Lemberg <wl@gnu.org>
  2576. * src/truetype/ttinterp.c (tt_default_graphics_state): The default
  2577. value for `scan_type' is zero, as confirmed by Greg Hitchcock from
  2578. Microsoft. Problem reported by Michal Nowakowski
  2579. <miszka@limes.com.pl>.
  2580. 2008-11-12 Tor Andersson <tor.andersson@gmail.com>
  2581. * src/cff/cffdrivr.c (cff_get_cmap_info): Initialize `format' field.
  2582. This fixes Savannah bug #24819.
  2583. 2008-11-08 Werner Lemberg <wl@gnu.org>
  2584. * src/sfnt/sfobjs.c (sfnt_load_face): Remove #if 0/#endif guards
  2585. since OpenType version 1.5 has been released.
  2586. * include/ttnameid.h (TT_NAME_ID_WWS_FAMILY,
  2587. TT_NAME_ID_WWS_SUBFAMILY): New macros for OpenType 1.5.
  2588. (TT_URC_COPTIC, TT_URC_VAI, TT_URC_NKO, TT_URC_BALINESE,
  2589. TT_URC_PHAGSPA, TT_URC_NON_PLANE_0, TT_URC_PHOENICIAN,
  2590. TT_URC_TAI_LE, TT_URC_NEW_TAI_LUE, TT_URC_BUGINESE,
  2591. TT_URC_GLAGOLITIC, TT_URC_YIJING, TT_URC_SYLOTI_NAGRI,
  2592. TT_URC_LINEAR_B, TT_URC_ANCIENT_GREEK_NUMBERS, TT_URC_UGARITIC,
  2593. TT_URC_OLD_PERSIAN, TT_URC_SHAVIAN, TT_URC_OSMANYA,
  2594. TT_URC_CYPRIOT_SYLLABARY, TT_URC_KHAROSHTHI, TT_URC_TAI_XUAN_JING,
  2595. TT_URC_CUNEIFORM, TT_URC_COUNTING_ROD_NUMERALS, TT_URC_SUNDANESE,
  2596. TT_URC_LEPCHA, TT_URC_OL_CHIKI, TT_URC_SAURASHTRA, TT_URC_KAYAH_LI,
  2597. TT_URC_REJANG, TT_URC_CHAM, TT_URC_ANCIENT_SYMBOLS,
  2598. TT_URC_PHAISTOS_DISC, TT_URC_OLD_ANATOLIAN, TT_URC_GAME_TILES): New
  2599. macros for OpenType 1.5.
  2600. 2008-11-08 Wenlin Institute <wenlin@wenlin.com>
  2601. * src/base/ftobjs.c (ft_glyphslot_free_bitmap): Protect against
  2602. slot->internal == NULL. Reported by Graham Asher.
  2603. 2008-11-08 Werner Lemberg <wl@gnu.org>
  2604. * src/sfnt/sfobjs.c (tt_face_get_name): Modified to return an error
  2605. code so that memory allocation problems can be distinguished from
  2606. missing table entries. Reported by Graham Asher.
  2607. (GET_NAME): New macro.
  2608. (sfnt_load_face): Use it.
  2609. 2008-11-05 Werner Lemberg <wl@gnu.org>
  2610. * devel/ftoption.h, include/freetype/config/ftoption.h
  2611. [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Undefine
  2612. TT_CONFIG_OPTION_UNPATENTED_HINTING. This fixes the return value of
  2613. `FT_Get_TrueType_Engine_Type' (and makes it work as documented).
  2614. Reported in bug #441638 of bugzilla.novell.com.
  2615. * docs/CHANGES: Document it.
  2616. 2008-11-03 Werner Lemberg <wl@gnu.org>
  2617. * src/type1/t1load.c (parse_subrs): Use an endless loop. There are
  2618. fonts (like HELVI.PFB version 003.001, used on OS/2) which define
  2619. some `subrs' elements more than once. Problem reported by Peter
  2620. Weilbacher <mozilla@weilbacher.org>.
  2621. 2008-10-15 Graham Asher <graham.asher@btinternet.com>
  2622. * src/sfnt/ttpost.c (tt_post_default_names): Add `const'.
  2623. 2008-10-15 David Turner <david@freetype.org>
  2624. * src/truetype/ttgxvar.c (TT_Set_MM_Blend): Disambiguate for
  2625. meddlesome compilers' warning against `for ( ...; ...; ...) ;'.
  2626. 2008-10-14 Werner Lemberg <wl@gnu.org>
  2627. * src/cff/cffobjs.c (cff_face_init): Remove compiler warning.
  2628. Suggested by Bram Tassyns in Savannah patch #6651.
  2629. 2008-10-12 Graham Asher <graham.asher@btinternet.com>
  2630. * src/sfnt/sfobjs.c (sfnt_load_face): Fix computation of
  2631. `underline_position'.
  2632. 2008-10-12 Werner Lemberg <wl@gnu.org>
  2633. * docs/CHANGES: Updated.
  2634. 2008-10-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2635. Fix Savannah bug #24468.
  2636. According to include/freetype/internal/ftobjs.h, the appropriate
  2637. type to interchange single character codepoint is FT_UInt32. It
  2638. should be distinguished from FT_UInt which can be 16bit integer.
  2639. * src/sfnt/ttcmap.c (tt_cmap4_char_map_linear): Change the type
  2640. of the second argument `pcharcode' from FT_UInt* to FT_UInt32*.
  2641. (tt_cmap4_char_map_binary): Ditto.
  2642. (tt_cmap14_get_nondef_chars): Change the type of return value
  2643. from FT_UInt* to FT_UInt32*.
  2644. 2008-10-08 John Tytgat <John.Tytgat@esko.com>
  2645. Fix Savannah bug #24485.
  2646. * src/type1/t1load.c (parse_charstrings): Assure that we always have
  2647. a .notdef glyph.
  2648. 2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2649. * src/base/ftmac.c: Include FT_TRUETYPE_TAGS_H for multi build.
  2650. * builds/mac/ftmac.c: Ditto.
  2651. 2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2652. * include/freetype/tttags.h (TTAG_TYP1, TTAG_typ1): Fix definitions.
  2653. * src/base/ftobjs.c: Include FT_TRUETYPE_TAGS_H.
  2654. 2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2655. * src/sfnt/sfobjs.c (sfnt_open_font): Allow `typ1' version tag in
  2656. the beginning of sfnt container.
  2657. * src/sfnt/ttload.c (check_table_dir): Return
  2658. `SFNT_Err_Table_Missing' when sfnt table directory structure is
  2659. correct but essential tables for TrueType fonts (`head', `bhed' or
  2660. `SING') are missing. Other errors are returned by
  2661. SFNT_Err_Unknown_File_Format.
  2662. * src/base/ftobjs.c (FT_Open_Face): When TrueType driver returns
  2663. `FT_Err_Table_Missing', try `open_face_PS_from_sfnt_stream'. It is
  2664. enabled only when old mac font support is configured.
  2665. 2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2666. * include/freetype/tttags.h (TTAG_CID, TTAG_FOND, TTAG_LWFN,
  2667. TTAG_POST, TTAG_sfnt, TTAG_TYP1, TTAG_typ1): New tags to simplify
  2668. the repeated calculations of these values in ftobjs.c and ftmac.c.
  2669. * src/base/ftobjs.c: Replace all FT_MAKE_TAG by new tags.
  2670. * src/base/ftmac.c: Ditto.
  2671. * builds/mac/ftmac.c: Ditto.
  2672. 2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2673. * src/base/ftobjs.c (ft_lookup_PS_in_sfnt_stream): Remove wrong
  2674. initialization of *is_sfnt_cid.
  2675. 2008-10-04 Werner Lemberg <wl@gnu.org>
  2676. * src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Remove compiler
  2677. warnings.
  2678. 2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2679. * src/base/ftobjs.c (ft_lookup_PS_in_sfnt): Replaced by...
  2680. (ft_lookup_PS_in_sfnt_stream): This.
  2681. (open_face_PS_from_sfnt_stream): New function. It checks whether
  2682. the stream is sfnt-wrapped Type1 PS font or sfnt-wrapped CID-keyed
  2683. font, then try to open a face for given face_index.
  2684. (Mac_Read_sfnt_Resource): Replace the combination of
  2685. `ft_lookup_PS_in_sfnt' and `open_face_from_buffer' by
  2686. `open_face_PS_from_sfnt_stream'.
  2687. * src/base/ftmac.c (FT_New_Face_From_SFNT): Ditto.
  2688. * builds/mac/ftmac.c (FT_New_Face_From_SFNT): Ditto.
  2689. * src/base/ftbase.h: Remove `ft_lookup_PS_in_sfnt' and add
  2690. `open_face_PS_from_sfnt_stream'.
  2691. 2008-10-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2692. * src/base/ftobjs.c (ft_lookup_PS_in_sfnt): Set *is_sfnt_cid to
  2693. FALSE if neither `CID ' nor `TYP1' is found in the sfnt container.
  2694. 2008-10-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2695. * include/freetype/config/ftconfig.h: Define FT_MACINTOSH when SC or
  2696. MrC compiler of MPW is used. These compilers do not define the
  2697. macro __APPLE__ by themselves.
  2698. * builds/unix/ftconfig.in: Ditto.
  2699. * builds/vms/ftconfig.h: Ditto.
  2700. * src/base/ftbase.c: Use FT_MACINTOSH instead of __APPLE__, to
  2701. include ftmac.c if FreeType 2 is built by MPW.
  2702. * src/base/ftobjs.c: Use FT_MACINTOSH instead of __APPLE__, to
  2703. enable shared functions for ftmac.c if FreeType 2 is built by MPW.
  2704. * builds/mac/ftmac.c: Include ftbase.h.
  2705. (memory_stream_close): Removed.
  2706. (new_memory_stream): Ditto.
  2707. (open_face_from_buffer): Removed. Use the implementation in
  2708. ftobjs.c.
  2709. (ft_lookup_PS_in_sfnt): Ditto.
  2710. * builds/mac/FreeType.m68k_far.make.txt: Build ftmac.c as an
  2711. included part of ftbase.c, to share the functions in ftobjs.c. The
  2712. rule compiling ftmac.c separately is removed and the rule copying
  2713. ftbase.c from src/base/ftbase.c to builds/mac/ftbase.c is added.
  2714. * builds/mac/FreeType.m68k_cfm.make.txt: Ditto.
  2715. * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
  2716. * builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
  2717. 2008-10-02 Bram Tassyns <bramt@enfocus.be>
  2718. * src/cff/cffgload.c (cff_slot_load): Map CID 0 to GID 0. This
  2719. fixes Savannah bug #24430.
  2720. 2008-10-02 Werner Lemberg <wl@gnu.org>
  2721. * builds/freetype.mk (BASE_H): Rename to...
  2722. (INTERNAL_H): This.
  2723. (FREETYPE_H): Updated.
  2724. * src/base/rules.mk: (BASE_OBJ_S, OBJ_DIR/%.$O): Add BASE_H.
  2725. * src/bdf/rules.mk (BDF_DRV_H): Add bdferror.h.
  2726. * src/cache/rules.mk (CACHE_DRV_H): Add ftccache.h and ftcsbits.h.
  2727. * src/pcf/rules.mk (PCF_DRV_H): Add pcfread.h.
  2728. * src/raster/rules.mk (RASTER_DRV_H): Add ftmisc.h.
  2729. * src/type42/rules.mk (T42_DRV_H): Add t42types.h.
  2730. 2008-10-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2731. * src/base/ftbase.h: New file to declare the private utility
  2732. functions shared by the sources of base modules. Currently,
  2733. `ft_lookup_PS_in_sfnt' and `open_face_from_buffer' are declared to
  2734. share between ftobjs.c and ftmac.c.
  2735. * src/base/rule.mk: Add ftbase.h.
  2736. * src/base/ftobjs.c: Include ftbase.h.
  2737. (memory_stream_close): Build on any platform when old MacOS font
  2738. support is enabled.
  2739. (new_memory_stream): Ditto.
  2740. (open_face_from_buffer): Build on any platform when old MacOS font
  2741. support is enabled. The counting of the face in a font file is
  2742. slightly different between Carbon-dependent parser and Carbon-free
  2743. parser. They are merged with the platform-specific conditional.
  2744. (ft_lookup_PS_in_sfnt): Ditto.
  2745. * src/base/ftmac.c: Include ftbase.h.
  2746. (memory_stream_close): Removed.
  2747. (new_memory_stream): Ditto.
  2748. (open_face_from_buffer): Removed. Use the implementation in
  2749. ftobjs.c.
  2750. (ft_lookup_PS_in_sfnt): Ditto.
  2751. 2008-10-02 Werner Lemberg <wl@gnu.org>
  2752. * src/sfnt/sfobjs.c (sfnt_load_face): `psnames_error' is only needed
  2753. if TT_CONFIG_OPTION_POSTSCRIPT_NAMES is defined.
  2754. 2008-10-01 Werner Lemberg <wl@gnu.org>
  2755. * src/truetype/ttobjs.c (tt_face_done), src/cff/cffobjs.c
  2756. (cff_face_done), src/pfr/pfrobjs.c (pfr_face_done),
  2757. src/pcf/pcfdrivr.c (PCF_Face_Done), src/cid/cidobjs.c
  2758. (cid_face_done), src/bdf/bdfdrivr. (BDF_Face_Done),
  2759. src/sfnt/sfobjs.c (sfnt_face_done): Protect against face == 0.
  2760. Reported by Graham Asher.
  2761. 2008-09-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2762. * src/base/rules.mk: Add conditional source to BASE_SRC, for `make
  2763. multi' on Mac OS X. If the macro $(ftmac_c) is defined,
  2764. $(BASE_DIR)/$(ftmac_c) is added to BASE_SRC. In a normal build, the
  2765. lack of ftmac.c in BASE_SRC is not serious because ftbase.c includes
  2766. ftmac.c.
  2767. * builds/unix/unix-def.in: Add a macro definition of $(ftmac_c).
  2768. * builds/unix/configure.raw: Add procedure to set up appropriate
  2769. value of $(ftmac_c) with the consideration of the availability of
  2770. Carbon framework.
  2771. 2008-09-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2772. * src/base/Jamfile: Add target for multi build by jam on Mac OS X.
  2773. * src/base/ftobjs.c (FT_New_Face): Fix the condition to include this
  2774. function for MPW building. It is synchronized the condition to
  2775. include ftmac.c source into ftbase.c.
  2776. 2008-09-22 Werner Lemberg <wl@gnu.org>
  2777. * src/cff/cffgload.c (CFF_Operator, cff_argument_counts,
  2778. cff_decoder_parse_charstrings): Handle (invalid)
  2779. `callothersubr' and `pop' instructions.
  2780. 2008-09-22 John Tytgat <John.Tytgat@esko.com>
  2781. Fix Savannah bug #24307.
  2782. * include/freetype/internal/t1types.h (CID_FaceRec),
  2783. src/type42/t42types.h (T42_FaceRec): Comment out `afm_data'.
  2784. 2008-09-21 Werner Lemberg <wl@gnu.org>
  2785. * src/smooth/ftgrays.c (gray_raster_render): Don't dereference
  2786. `target_map' if FT_RASTER_FLAG_DIRECT is set. Problem reported by
  2787. Stephan T. Lavavej <stl@nuwen.net>.
  2788. 2008-09-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2789. * src/otvalid/Jamfile: Add missing target `otvmath' for multi build
  2790. by jam.
  2791. * src/sfnt/Jamfile: Add missing target `ttmtx' for multi build by
  2792. jam.
  2793. 2008-09-20 Werner Lemberg <wl@gnu.org>
  2794. * src/smooth/ftgrays.c (gray_find_cell): Fix threshold. The values
  2795. passed to this function are already `normalized'. Problem reported
  2796. by Stephan T. Lavavej <stl@nuwen.net>.
  2797. * docs/CHANGES: Document it.
  2798. 2008-09-20 Werner Lemberg <wl@gnu.org>
  2799. * src/base/ftoutln.c: Include FT_INTERNAL_DEBUG_H.
  2800. (FT_Outline_Decompose): Decorate with tracing messages.
  2801. * src/smooth/ftgrays.c [DEBUG_GRAYS]: Replace with
  2802. FT_DEBUG_LEVEL_TRACE.
  2803. [_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: Include stdio.h and
  2804. stdarg.h.
  2805. (FT_TRACE) [_STANDALONE_]: Remove.
  2806. (FT_Message) [_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: New function.
  2807. (FT_TRACE5, FT_TRACE7) [_STANDALONE_]: New macros.
  2808. (FT_ERROR) [_STANDALONE_]: Updated.
  2809. (gray_hline) [FT_DEBUG_LEVEL_TRACE]: Fix condition.
  2810. Use FT_TRACE7.
  2811. (gray_dump_cells): Make it `static void'.
  2812. (gray_convert_glyph): Use FT_TRACE7.
  2813. (FT_Outline_Decompose) [_STANDALONE_]: Synchronize with version in
  2814. ftoutln.c.
  2815. * src/base/ftadvanc.c (FT_Get_Advance, FT_Get_Advances): Use
  2816. FT_ERROR_BASE.
  2817. * docs/formats.txt: Updated.
  2818. 2008-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2819. * src/base/ftmac.c: Import sfnt-wrapped Type1 and sfnt-wrapped
  2820. CID-keyed font support.
  2821. * builds/mac/ftmac.c: Ditto.
  2822. 2008-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2823. * src/base/ftobjs.c (Mac_Read_sfnt_Resource): Fix double free bug in
  2824. sfnt-wrapped Type1 and sfnt-wrapped CID-keyed font support code.
  2825. `open_face_from_buffer' frees the passed buffer if it cannot open a
  2826. face from the buffer, so the caller must not free it.
  2827. 2008-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2828. * src/base/ftobjs.c (Mac_Read_sfnt_Resource): Add initial support
  2829. for sfnt-wrapped Type1 and sfnt-wrapped CID-keyed font.
  2830. (ft_lookup_PS_in_sfnt): New function to look up `TYP1' or `CID '
  2831. table in sfnt table directory. It is used before loading TrueType
  2832. font driver.
  2833. * docs/CHANGES: Add note about the current status of sfnt-wrapped
  2834. Type1 and sfnt-wrapped CID-keyed font support.
  2835. 2008-09-18 Werner Lemberg <wl@gnu.org>
  2836. * src/base/ftsystem.c (FT_Done_Memory): Use ft_sfree directly for
  2837. orthogonality (ft_free and ft_sfree could belong to different memory
  2838. pools). This fixes Savannah bug #24297.
  2839. 2008-09-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2840. * src/cff/cffobjs.c (cff_face_init): Use TTAG_OTTO defined
  2841. in ttags.h instead of numerical value 0x4F54544FL.
  2842. 2008-09-16 Werner Lemberg <wl@gnu.org>
  2843. * src/cff/cffgload.h, src/cff/cffgload.c
  2844. (cff_decoder_set_width_only): Eliminate function call.
  2845. 2008-09-15 George Williams <gww@silcom.com>
  2846. Fix Savannah bug #24179, reported by Bram Tassyns.
  2847. * src/type1/t1load.c (mm_axis_unmap, T1_Get_MM_Var): Fix computation
  2848. of default values.
  2849. 2008-09-15 Werner Lemberg <wl@gnu.org>
  2850. * src/tools/glnames.py (main): Surround `ft_get_adobe_glyph_index'
  2851. and `ft_adobe_glyph_list' with FT_CONFIG_OPTION_ADOBE_GLYPH_LIST to
  2852. prevent unconditional definition. This fixes Savannah bug #24241.
  2853. * src/psnames/pstables.h: Regenerated.
  2854. 2008-09-13 Werner Lemberg <wl@gnu.org>
  2855. * autogen.sh, builds/unix/configure.raw,
  2856. include/freetype/config/ftconfig.h, builds/unix/ftconfig.in: Minor
  2857. beautifying.
  2858. * include/freetype/ftadvanc.h, include/freetype/ftgasp.h,
  2859. include/freetype/ftlcdfil.h: Protect against FreeType 1.
  2860. Some other minor fixes.
  2861. * devel/ftoption.h: Synchronize with
  2862. include/freetype/config/ftoption.h.
  2863. 2008-09-11 Werner Lemberg <wl@gnu.org>
  2864. * src/base/ftbase.c: Include ftadvanc.c.
  2865. 2008-09-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2866. * builds/unix/ftconfig.in: Duplicate the cpp computation of
  2867. FT_SIZEOF_{INT|LONG} from include/freetype/config/ftconfig.h.
  2868. (FT_USE_AUTOCONF_SIZEOF_TYPES): New macro. If defined, the cpp
  2869. computation is disabled and the statically configured sizes are
  2870. used. This fixes Savannah bug #21250.
  2871. * builds/unix/configure.raw: Add the checks to compare the cpp
  2872. computation results of the bit length of int and long versus the
  2873. sizes detected by running `configure'. If the results are
  2874. different, FT_USE_AUTOCONF_SIZEOF_TYPES is defined to prioritize the
  2875. results.
  2876. New option --{enable|disable}-biarch-config is added to define or
  2877. undefine FT_USE_AUTOCONF_SIZEOF_TYPES manually.
  2878. 2008-09-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2879. * builds/unix/configure.raw: Clear FT2_EXTRA_LIBS when Carbon or
  2880. ApplicationService framework is missing. Although this value is not
  2881. used in building of FreeType2, it is written in `freetype2.pc' and
  2882. `freetype-config'.
  2883. 2008-09-01 david turner <david@freetype.org>
  2884. * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Accept a negative cmap
  2885. index to mean `use default cached FT_Face's charmap'. This fixes
  2886. Savannah bug #22625.
  2887. * include/freetype/ftcache.h: Document it.
  2888. Make FT_MulFix an inlined function. This is done to speed up
  2889. FreeType a little (on x86 3% when loading+hinting, 10% when
  2890. rendering, ARM savings are more important though). Disable this by
  2891. undefining FT_CONFIG_OPTION_INLINE_MULFIX.
  2892. Use of assembler code can now be controlled with
  2893. FT_CONFIG_OPTION_NO_ASSEMBLER.
  2894. * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in
  2895. [!FT_CONFIG_OPTION_NO_ASSEMBLER] (FT_MulFix_arm): New assembler
  2896. implementation.
  2897. [!FT_CONFIG_OPTION_NO_ASSEMBLER] (FT_MulFix_i386): Assembler
  2898. implementation taken from `ftcalc.c'.
  2899. [!FT_CONFIG_OPTION_NO_ASSEMBLER] (FT_MULFIX_ASSEMBLER): New macro
  2900. which is defined to the platform-specific assembler implementation
  2901. of FT_MulFix.
  2902. [FT_CONFIG_OPTION_INLINE_MULFIX && FT_MULFIX_ASSEMBLER]
  2903. (FT_MULFIX_INLINED): New macro.
  2904. * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_NO_ASSEMBLER,
  2905. FT_CONFIG_OPTION_INLINE_MULFIX): New macros.
  2906. * include/freetype/freetype.h: Updated to handle FT_MULFIX_INLINED.
  2907. * src/base/ftcalc.c: Updated to use FT_MULFIX_ASSEMBLER and
  2908. FT_MULFIX_INLINED.
  2909. Add a new header named FT_ADVANCES_H declaring some new APIs to
  2910. extract the advances of one or more glyphs without necessarily
  2911. loading their outlines. Also provide `fast loaders' for the
  2912. TrueType, Type1, and CFF font drivers (more to come later).
  2913. * src/base/ftadvanc.c, include/freetype/ftadvanc.h: New files.
  2914. * include/freetype/config/ftheader.h (FT_ADVANCES_H): New macro.
  2915. * include/freetype/freetype.h (FT_LOAD_ADVANCE_ONLY): New macro.
  2916. * include/freetype/internal/ftdriver.h (FT_Face_GetAdvancesFunc):
  2917. `flags' and `advances' are now of type `FT_UInt' and `FT_Fixed',
  2918. respectively.
  2919. * src/base/Jamfile (_sources), src/base/rules.mk (BASE_SRC): Add
  2920. ftadvanc.c.
  2921. * src/cff/cffdrivr.c (cff_get_advances): New function.
  2922. (cff_driver_class): Register it.
  2923. * src/cff/cffgload.c (cff_decoder_set_width_only): New function.
  2924. (cff_decoder_parse_charstrings): Handle `width_only'.
  2925. (cff_slot_load): Handle FT_LOAD_ADVANCE_ONLY.
  2926. * src/cff/cffgload.h (cff_decoder): New element `width_only'.
  2927. (cff_decoder_set_width_only): New declaration.
  2928. * src/truetype/ttdriver.c (tt_get_advances): New function.
  2929. (tt_driver_class): Register it.
  2930. * src/truetype/ttgload.c (Get_HMetrics, Get_VMetrics): Renamed to...
  2931. (TT_Get_HMetrics, TT_Get_VMetrics): This.
  2932. Update callers.
  2933. * src/truetype/ttgload.h: Declare them.
  2934. * src/type1/t1gload.h, src/type1/t1gload.c (T1_Get_Advances): New
  2935. function.
  2936. * src/type1/t1driver.c (t1_driver_class): Register T1_Get_Advances.
  2937. Add checks for minimum version of the `autotools' stuff.
  2938. * autogen.sh: Implement it.
  2939. (get_major_version, get_minor_version, get_patch_version,
  2940. compare_to_minimum_version, check_tool_version): New auxiliary
  2941. functions.
  2942. * README.CVS: Document it.
  2943. 2008-08-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2944. * src/sfnt/sfobjs.c (sfnt_open_font): Use TTAG_OTTO defined in
  2945. ttags.h instead of FT_MAKE_TAG( 'O', 'T', 'T', 'O' ).
  2946. 2008-08-28 Werner Lemberg <wl@gnu.org>
  2947. * src/type1/t1load.c (parse_encoding): Protect against infinite
  2948. loop. This fixes Savannah bug #24150 (where a patch has been posted
  2949. too).
  2950. 2008-08-23 Werner Lemberg <wl@gnu.org>
  2951. * src/type/t1afm.c (compare_kern_pairs), src/pxaux/afmparse.c
  2952. (afm_compare_kern_pairs): Fix comparison. This fixes Savannah bug
  2953. #24119.
  2954. 2008-08-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2955. * src/base/ftobjs.c (FT_Stream_New): Initialize *astream always,
  2956. even if passed library or arguments are invalid. This fixes a bug
  2957. that an uninitialized stream is freed when an invalid library handle
  2958. is passed. Originally proposed by Mike Fabian, 2008/08/18 on
  2959. freetype-devel.
  2960. (FT_Open_Face): Ditto (stream).
  2961. (load_face_in_embedded_rfork): Ditto (stream2).
  2962. 2008-08-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2963. * src/base/ftmac.c: Add a fallback to guess the availability of the
  2964. `ResourceIndex' type. It is used when built without configure
  2965. (e.g., a build with Jam).
  2966. * builds/mac/ftmac.c: Ditto.
  2967. * builds/unix/configure.raw: Set HAVE_TYPE_RESOURCE_INDEX to 1 or 0
  2968. explicitly, even if `ResourceIndex' is unavailable.
  2969. 2008-08-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2970. * builds/unix/configure.raw: In checking of Mac OS X features,
  2971. all-in-one header file `Carbon.h' is replaced by the minimum
  2972. header file `CoreServices.h', similar to current src/base/ftmac.c.
  2973. 2008-08-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2974. * src/sfnt/ttcmap.c (tt_cmap2_validate): Skip the validation of
  2975. sub-header when its code_count is 0. Many Japanese Dynalab fonts
  2976. include such an empty sub-header (code_count == 0, first_code == 0
  2977. delta == 0, but offset != 0) as the second sub-header in SJIS cmap.
  2978. 2008-08-04 Werner Lemberg <wl@gnu.org>
  2979. * src/type1/t1tokens.h: Handle `ForceBold' keyword. This fixes
  2980. Savannah bug #23995.
  2981. * src/cid/cidload.c (parse_expansion_factor): New callback function.
  2982. (cid_field_records): Use it for `ExpansionFactor'.
  2983. * src/cod/cidtoken.h: Handle `ForceBold' keyword.
  2984. Don't handle `ExpansionFactor'.
  2985. 2008-08-04 Bram Tassyns <bramt@enfocus.be>
  2986. * src/cff/cffparse.c (cff_parse_fixed_scaled): Fix thinko which
  2987. resulted in incorrect scaling. This fixes Savannah bug #23973.
  2988. 2008-08-04 Werner Lemberg <wl@gnu.org>
  2989. Be more tolerant w.r.t. invalid entries in SFNT table directory.
  2990. * src/sfnt/ttload.c (check_table_dir): Ignore invalid entries and
  2991. adjust table count.
  2992. Add more trace messages.
  2993. (tt_face_load_font_dir): Updated.
  2994. 2008-07-30 Werner Lemberg <wl@gnu.org>
  2995. * src/cff/cffgload.c (cff_decoder_parse_charstrings): No longer
  2996. assume that the first argument on the stack is the bottom-most
  2997. element. Two reasons:
  2998. o According to people from Adobe it is missing in the Type 2
  2999. specification that pushing of additional, superfluous arguments
  3000. on the stack is prohibited.
  3001. o Acroread in general handles fonts differently, namely by popping
  3002. the number of arguments needed for a particular operand (as a PS
  3003. interpreter would do). In case of buggy fonts this causes a
  3004. different interpretation which of the elements on the stack are
  3005. superfluous and which not.
  3006. Since there are CFF subfonts (embedded in PDFs) which rely on
  3007. Acroread's behaviour, FreeType now does the same.
  3008. 2008-07-27 Werner Lemberg <wl@gnu.org>
  3009. Add extra mappings for `Tcommaaccent' and `tcommaaccent'. This
  3010. fixes Savannah bug #23940.
  3011. * src/psnames/psmodule.c (WGL_EXTRA_LIST_SIZE): Rename to...
  3012. (EXTRA_GLYPH_LIST_SIZE): This.
  3013. Increase by 2.
  3014. (ft_wgl_extra_unicodes): Rename to...
  3015. (ft_extra_glyph_unicodes): This.
  3016. Add two code values.
  3017. (ft_wgl_extra_glyph_names): Rename to...
  3018. (ft_extra_glyph_names): This.
  3019. Add two glyphs.
  3020. (ft_wgl_extra_glyph_name_offsets): Rename to...
  3021. (ft_extra_glyph_name_offsets): This.
  3022. Add two offsets.
  3023. (ps_check_wgl_name, ps_check_wgl_unicode): Rename to...
  3024. (ps_check_extra_glyph_name, ps_check_extra_glyph_unicode): This.
  3025. Updated.
  3026. (ps_unicodes_init): Updated.
  3027. 2008-07-26 Werner Lemberg <wl@gnu.org>
  3028. * src/cff/cffgload.c (cff_decoder_prepare,
  3029. cff_decoder_parse_charstrings): Improve debug output.
  3030. 2008-07-22 Martin McBride <mmcbride@emtex.com>
  3031. * src/sfnt/ttcmap.c (tt_cmap4_validate, tt_cmap4_char_map_linear,
  3032. tt_cmap4_char_map_binary): Handle fonts which treat the last segment
  3033. specially. According to the specification, such fonts would be
  3034. invalid but acroread accepts them.
  3035. 2008-07-16 Jon Foster <Jon.Foster@cabot.co.uk>
  3036. * src/pfr/pfrdrivr.c (pfr_get_advance): Fix off-by-one error.
  3037. * src/base/ftcalc.c (FT_MulFix): Fix portability issue.
  3038. * src/sfnt/ttpost.c (MAC_NAME) [!FT_CONFIG_OPTION_POSTSCRIPT_NAMES]:
  3039. Fix compiler warning.
  3040. 2008-07-16 Werner Lemberg <wl@gnu.org>
  3041. Handle CID-keyed fonts wrapped in an SFNT (with cmaps) correctly.
  3042. * src/cff/cffload.c (cff_font_load): Pass `pure_cff'.
  3043. Invert sids table only if `pure_cff' is set.
  3044. * src/cff/cffload.h: Udpated.
  3045. * src/cff/cffobjs.c (cff_face_init): Updated.
  3046. Set FT_FACE_FLAG_CID_KEYED only if pure_cff is set.
  3047. * docs/CHANGES: Updated.
  3048. 2008-07-09 Werner Lemberg <wl@gnu.org>
  3049. * src/truetype/ttpload.c (tt_face_load_loca): Handle buggy fonts
  3050. where num_locations < num_glyphs. Problem reported by Ding Li.
  3051. 2008-07-05 Werner Lemberg <wl@gnu.org>
  3052. Since FreeType uses `$(value ...)', we now need GNU make 3.80 or
  3053. newer. This fixes Savannah bug #23648.
  3054. * configure: zsh doesn't like ${1+"$@"}.
  3055. Update needed GNU make version.
  3056. * builds/toplevel.mk: Check for `$(eval ...)'.
  3057. * docs/INSTALL.GNU, docs/INSTALL.CROSS, docs/INSTALL.UNIX: Document
  3058. it.
  3059. 2008-07-04 Werner Lemberg <wl@gnu.org>
  3060. * src/raster/ftraster.c (Draw_Sweep): If span is smaller than one
  3061. pixel, only check for dropouts if neither start nor end point lies
  3062. on a pixel center. This fixes Savannah bug #23762.
  3063. 2008-06-29 Werner Lemberg <wl@gnu.org>
  3064. * Version 2.3.7 released.
  3065. =========================
  3066. Tag sources with `VER-2-3-7'.
  3067. * docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
  3068. version number to 2.3.7.
  3069. * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
  3070. builds/win32/visualc/freetype.dsp,
  3071. builds/win32/visualc/freetype.vcproj,
  3072. builds/win32/visualce/index.html,
  3073. builds/win32/visualce/freetype.dsp,
  3074. builds/win32/visualce/freetype.vcproj: s/2.3.6/2.3.7/, s/236/237/.
  3075. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 7.
  3076. * builds/unix/configure.raw (version_info): Set to 9:18:3.
  3077. * docs/release: Updated.
  3078. 2008-06-28 Werner Lemberg <wl@gnu.org>
  3079. * src/ftglyph.c (FT_Matrix_Multiply, FT_Matrix_Invert): Move to...
  3080. * src/ftcalc.c: Here. This fixes Savannah bug #23729.
  3081. 2008-06-27 Werner Lemberg <wl@gnu.org>
  3082. * src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
  3083. Horizontal_Gray_Sweep_Drop): Test for intersections which
  3084. degenerate to a single point can be ignored; this has been confirmed
  3085. by Greg Hitchcock from Microsoft. (This was commented out code.)
  3086. 2008-06-26 Werner Lemberg <wl@gnu.org>
  3087. Improve navigation in API reference.
  3088. * src/tools/docmaker/tohtml.py (html_header_3): Renamed to...
  3089. (html_header_6): This.
  3090. (html_header_3, html_header_3i, html_header_4, html_header_5,
  3091. html_header_5t): New strings.
  3092. (toc_footer_start, toc_footer_end): New strings.
  3093. (HtmlFormatter::html_header): Updated.
  3094. (HtmlFormatter::html_index_header, HtmlFormatter::html_toc_header):
  3095. New strings.
  3096. (HtmlFormatter::index_enter): Use `html_index_header'.
  3097. (HtmlFormatter::index_exit): Print `html_footer'.
  3098. (HtmlFormatter::toc_enter): Use `html_toc_header'.
  3099. (HtmlFormatter::toc_exit): Print proper footer.
  3100. Convert ~ to non-breakable space.
  3101. * src/tools/docmaker/tohtml.py (make_html_para): Implement it.
  3102. Update header files accordingly.
  3103. 2008-06-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3104. * builds/unix/configure.raw: Check type `ResourceIndex' explicitly
  3105. and define HAVE_TYPE_RESOURCE_INDEX if it is defined. Mac OS X 10.5
  3106. bundles 10.4u SDK with MAC_OS_X_VERSION_10_5 macro but without
  3107. ResourceIndex type definition. The macro does not inform the type
  3108. availability.
  3109. * src/base/ftmac.c: More parentheses are inserted to clarify the
  3110. conditionals to disable legacy APIs in `10.5 and later' cases. If
  3111. HAVE_TYPE_RESOURCE_INDEX is not defined, ResourceIndex is defined.
  3112. 2008-06-24 Werner Lemberg <wl@gnu.org>
  3113. * src/truetype/ttinterp.c (Ins_SCANTYPE): Don't check rendering
  3114. mode.
  3115. * src/raster/ftraster.c (Render_Glyph, Render_Gray_Glyph,
  3116. Draw_Sweep): No-dropout mode is value 2, not value 0.
  3117. (Draw_Sweep): Really skip dropout handling for no-dropout mode.
  3118. 2008-06-24 Werner Lemberg <wl@gnu.org>
  3119. * src/psaux/psobjs.c (t1_builder_close_contour): Don't add contour
  3120. if it consists of one point only. Based on a patch from Savannah
  3121. bug #23683 (from John Tytgat).
  3122. 2008-06-22 Werner Lemberg <wl@gnu.org>
  3123. * src/truetype/ttgload.c (TT_Load_Glyph): Protect bytecode stuff
  3124. with IS_HINTED.
  3125. * docs/CHANGES: Updated.
  3126. 2008-06-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3127. * builds/unix/configure.raw: If CFLAGS has `-isysroot XXX' option
  3128. but LDFLAGS does not, import it to LDFLAGS. The option is used to
  3129. specify non-default SDK on Mac OS X (e.g., universal binary SDK for
  3130. Mac OS X 10.4 on PowerPC platform). Although Apple TechNote 2137
  3131. recommends to add the option only to CFLAGS, LDFLAGS should include
  3132. it because libfreetype.la is built with -no-undefined. This fixes a
  3133. bug reported by Ryan Schmidt in MacPorts,
  3134. http://trac.macports.org/ticket/15331.
  3135. 2008-06-21 Werner Lemberg <wl@gnu.org>
  3136. Enable access to the various dropout rules of the B&W rasterizer.
  3137. Pass dropout rules from the TT bytecode interpreter to the
  3138. rasterizer.
  3139. * include/freetype/ftimage.h (FT_OUTLINE_SMART_DROPOUTS,
  3140. FT_OUTLINE_EXCLUDE_STUBS): New flags for FT_Outline.
  3141. * src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
  3142. Horizontal_Gray_Sweep_Drop): Use same mode numbers as given in the
  3143. OpenType specification.
  3144. Fix mode 4 computation.
  3145. (Render_Glyph, Render_Gray_Glyph): Handle new outline flags.
  3146. * src/truetype/ttgload.c (TT_Load_Glyph) Convert scan conversion
  3147. mode to FT_OUTLINE_XXX flags.
  3148. * src/truetype/ttinterp.c (Ins_SCANCTRL): Enable ppem check.
  3149. 2008-06-19 Werner Lemberg <wl@gnu.org>
  3150. * src/cff/cffobjs.c (cff_face_init): Compute final
  3151. `dict->units_per_em' value before assigning it to
  3152. `cffface->units_per_EM'. Otherwise, CFFs without subfonts are
  3153. scaled incorrectly if the font matrix is non-standard. This fixes
  3154. Savannah bug #23630.
  3155. * docs/CHANGES: Updated.
  3156. 2008-06-19 Werner Lemberg <wl@gnu.org>
  3157. * src/type/t1objs.c (T1_Face_Init): Slightly improve algorithm fix
  3158. from 2008-06-19.
  3159. 2008-06-18 Werner Lemberg <wl@gnu.org>
  3160. * src/type/t1objs.c (T1_Face_Init): Fix change from 2008-03-21.
  3161. Reported by Peter Weilbacher <mozilla@weilbacher.org>.
  3162. * docs/CHANGES: Updated.
  3163. 2008-06-15 George Williams <gww@silcom.com>
  3164. * src/otvalid/otvgpos.c (otv_MarkBasePos_validate): Set
  3165. `valid->extra2' to 1. This is undocumented in the OpenType 1.5
  3166. specification.
  3167. 2008-06-15 Werner Lemberg <wl@gnu.org>
  3168. * src/base/ftcalc.c (FT_MulFix) <asm>: Protect registers correctly
  3169. from clobbering. Patch from Savannah bug report #23556.
  3170. * docs/CHANGES: Document it.
  3171. 2008-06-10 Werner Lemberg <wl@gnu.org>
  3172. * autogen.sh: Add option `--install' to libtoolize.
  3173. 2008-06-10 Werner Lemberg <wl@gnu.org>
  3174. * Version 2.3.6 released.
  3175. =========================
  3176. Tag sources with `VER-2-3-6'.
  3177. * docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
  3178. version number to 2.3.6.
  3179. * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
  3180. builds/win32/visualc/freetype.dsp,
  3181. builds/win32/visualc/freetype.vcproj,
  3182. builds/win32/visualce/index.html,
  3183. builds/win32/visualce/freetype.dsp,
  3184. builds/win32/visualce/freetype.vcproj: s/2.3.5/2.3.6/, s/235/236/.
  3185. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 6.
  3186. * builds/unix/configure.raw (version_info): Set to 9:17:3.
  3187. * include/freetype/internal/psaux.h (T1_BuilderRec): Remove `scale_x'
  3188. and `scale_y'.
  3189. * src/cff/cffgload.h (CFF_Builder): Remove `scale_x' and `scale_y'.
  3190. * src/cff/cffparse.c: Include FT_INTERNAL_DEBUG_H.
  3191. * src/cff/cffobjs.h: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
  3192. 2008-06-10 Werner Lemberg <wl@gnu.org>
  3193. * src/base/ftobjs.c (open_face): Check `clazz->init_face' and
  3194. `clazz->done_face'.
  3195. 2008-06-09 VaDiM <s_sliva@rambler.ru>
  3196. Support debugging on WinCE. From Savannah patch #6536; this fixes
  3197. bug #23497.
  3198. * builds/win32/ftdebug.c (OutputDebugStringEx): New function/macro
  3199. as a replacement for OutputDebugStringA (which WinCE doesn't have).
  3200. Update all callers.
  3201. (ft_debug_init) [_WIN32_CE]: WinCE apparently doesn't have
  3202. environment variables.
  3203. 2008-06-09 Werner Lemberg <wl@gnu.org>
  3204. * README.CVS: Updated.
  3205. * builds/unix/configure.raw, builds/unix/freetype-config.in: Updated
  3206. for newer versions of autoconf and friends.
  3207. 2008-06-08 Werner Lemberg <wl@gnu.org>
  3208. * src/type1/t1parse.h (T1_ParserRec): Make `base_len' and
  3209. `private_len' unsigned.
  3210. * src/type1/t1parse.c (read_pfb_tag): Make `asize' unsigned and read
  3211. it as such.
  3212. (T1_New_Parser, T1_Get_Private_Dict): Make `size' unsigned.
  3213. * src/base/ftstream.c (FT_Stream_Skip): Reject negative values.
  3214. * src/type1/t1load.c (parse_blend_design_positions): Check `n_axis'
  3215. for sane value.
  3216. Fix typo.
  3217. * src/psaux/psobjs.c (ps_table_add): Check `idx' correctly.
  3218. * src/truetype/ttinterp (Ins_SHC): Use BOUNDS() to check
  3219. `last_point'.
  3220. * src/sfnt/ttload.c (tt_face_load_max_profile): Limit
  3221. `maxTwilightPoints'.
  3222. 2008-06-06 Werner Lemberg <wl@gnu.org>
  3223. * src/truetype/ttinterp.c (Ins_IP): Handle case `org_dist == 0'
  3224. correctly. This fixes glyphs `t' and `h' of Arial Narrow at 12ppem.
  3225. 2008-06-03 Werner Lemberg <wl@gnu.org>
  3226. * include/freetype/ftcache.h (FTC_FaceID): Change type back to
  3227. FT_Pointer. Reported by Ian Britten <britten@caris.com>.
  3228. 2008-06-02 Werner Lemberg <wl@gnu.org>
  3229. Emit header info for defined FreeType objects in reference.
  3230. * src/tools/docmaker/content.py (re_header_macro): New regexp.
  3231. (ContentProcessor::__init__): Initialize new dictionary `headers'.
  3232. (DocBlock::__init__): Collect macro header definitions.
  3233. * src/tools/docmaker/tohtml.py (header_location_header,
  3234. header_location_footer): New strings.
  3235. (HtmlFormatter::__init__): Pass `headers' dictionary.
  3236. (HtmlFormatter::print_html_field): Don't emit paragraph tags.
  3237. (HtmlFormatter::print_html_field_list): Emit empty paragraph.
  3238. (HtmlFormatter::block_enter): Emit header info.
  3239. 2008-06-01 Werner Lemberg <wl@gnu.org>
  3240. * include/freetype/config/ftheader.h (FT_UNPATENTED_HINTING_H,
  3241. FT_INCREMENTAL_H): Added.
  3242. 2008-05-28 Werner Lemberg <wl@gnu.org>
  3243. * src/tools/docmaker/sources.py (SourceBlock::__init__): While
  3244. looking for markup tags, return immediately as soon a single one is
  3245. found.
  3246. 2008-05-28 Werner Lemberg <wl@gnu.org>
  3247. * src/truetype/ttinterp.c (Ins_MD): The MD instruction also uses
  3248. original, unscaled input values. Confirmed by Greg Hitchcock from
  3249. Microsoft.
  3250. 2008-05-27 Werner Lemberg <wl@gnu.org>
  3251. * src/tools/docmaker/tohtml.py (block_footer_start,
  3252. block_footer_middle): Beautify output.
  3253. 2008-05-25 Werner Lemberg <wl@gnu.org>
  3254. * src/raster/ftraster.c (fc_black_render): Return 0 when we are
  3255. trying to render into a zero-width/height bitmap, not an error code.
  3256. * src/truetype/ttgload.c (load_truetype_glyph): Move initialization
  3257. of the graphics state for subglyphs to...
  3258. (TT_Hint_Glyph): This function.
  3259. Hinting instructions for a composite glyph apparently refer to the
  3260. just hinted subglyphs, not the unhinted, unscaled outline. This
  3261. seems to fix Savannah bugs #20973 and (at least partially) #23310.
  3262. 2008-05-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3263. * src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid
  3264. `aface' is returned by FT_New_Face_From_FOND(). The patch was
  3265. proposed by an anonymous reporter of Savannah bug #23204.
  3266. 2008-05-18 Werner Lemberg <wl@gnu.org>
  3267. * src/pshinter/pshalgo.c (ps_hints_apply): Reset scale values after
  3268. correction for pixel boundary. Without this patch, the effect can
  3269. be cumulative under certain circumstances, making glyphs taller and
  3270. taller after each call. This fixes Savannah bug #19976.
  3271. 2008-05-18 Werner Lemberg <wl@gnu.org>
  3272. * src/base/ftdebug.c (FT_Message, FT_Panic): Send output to stderr.
  3273. This fixes Savannah bug #23280.
  3274. * docs/CHANGES: Updated.
  3275. 2008-05-18 David Turner <david@freetype.org>
  3276. * src/psnames/psmodule.c (ft_wgl_extra_unicodes,
  3277. ft_wgl_extra_glyph_names, ft_wgl_extra_glyph_name_offsets,
  3278. ps_check_wgl_name, ps_check_wgl_unicode): Use `static' to make
  3279. declarations non-global.
  3280. * src/type1/t1load.c: Add missing comment.
  3281. 2008-05-17 Sam Hocevar <samh>
  3282. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Handle zero-contour
  3283. glyphs correctly. Patch from Savannah bug #23277.
  3284. 2008-05-16 Werner Lemberg <wl@gnu.org>
  3285. * docs/CHANGES: Updated.
  3286. 2008-05-16 Sergey Tolstov <stolstov@esri.com>
  3287. Improve support for WGL4 encoded fonts.
  3288. * src/psnames/psmodule.c (WGL_EXTRA_LIST_SIZE): New macro.
  3289. (ft_wgl_extra_unicodes, ft_wgl_extra_glyph_names,
  3290. ft_wgl_extra_glyph_name_offsets): New arrays.
  3291. (ps_check_wgl_name, ps_check_wgl_unicode): New functions.
  3292. (ps_unicodes_init): Use them to add additional Unicode mappings.
  3293. 2008-05-15 Werner Lemberg <wl@gnu.org>
  3294. * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
  3295. <op_closepath>: `closepath' without a path is a no-op, not an error
  3296. (cf. the PS reference manual).
  3297. Reported by Martin McBride.
  3298. 2008-05-15 Werner Lemberg <wl@gnu.org>
  3299. * builds/toplevel.mk (CONFIG_GUESS, CONFIG_SUB): Updated.
  3300. 2008-05-15 Werner Lemberg <wl@gnu.org>
  3301. * src/type1/t1load.c (parse_subrs): Accept fonts with a subrs array
  3302. which contains a single but empty entry. This is technically
  3303. invalid (since it must end with `return'), but...
  3304. Reported by Martin McBride.
  3305. 2008-05-14 Werner Lemberg <wl@gnu.org>
  3306. Finish fix of scaling bug of CID-keyed CFF subfonts.
  3307. * include/freetype/internal/ftcalc.h, src/base/ftcalc.c
  3308. (FT_Matrix_Multiply_Scaled, FT_Vector_Transform_Scaled): New
  3309. functions.
  3310. * src/cff/cffobjs.h (CFF_Internal): New struct. It is used to
  3311. provide global hinting data for both the top-font and all subfonts
  3312. (with proper scaling).
  3313. * src/cff/cffobjs.c (cff_make_private_dict): New function, using
  3314. code from `cff_size_init'.
  3315. (cff_size_init, cff_size_done, cff_size_select, cff_size_request):
  3316. Use CFF_Internal and handle subfonts.
  3317. (cff_face_init): Handle top-dict and subfont matrices correctly;
  3318. apply some heuristic in case of unlikely matrix concatenation
  3319. results. This has been discussed with people from Adobe (thanks
  3320. goes mainly to David Lemon) who confirm that the CFF specs are fuzzy
  3321. and not correct.
  3322. * src/cff/cffgload.h (cff_decoder_prepare): Add `size' argument.
  3323. * src/cff/cffgload.c (cff_builder_init): Updated.
  3324. (cff_decoder_prepare): Handle hints globals for subfonts.
  3325. Update all callers.
  3326. (cff_slot_load): Handling scaling of subfonts properly.
  3327. * src/cff/cffparse.c (cff_parse_fixed_dynamic): New function.
  3328. (cff_parse_font_matrix): Use it.
  3329. * src/cff/cfftypes.h (CFF_FontDictRec): Make `units_per_em'
  3330. FT_ULong.
  3331. * docs/CHANGES: Document it.
  3332. 2008-05-13 Werner Lemberg <wl@gnu.org>
  3333. * src/winfonts/winfnt.c (fnt_face_get_dll_font, FNT_Face_Init):
  3334. Handle case `face_index < 0'.
  3335. * docs/CHANGES: Document it.
  3336. 2008-05-04 Werner Lemberg <wl@gnu.org>
  3337. First steps to fix the scaling bug of CID-keyed CFF subfonts,
  3338. reported by Ding Li on 2008/03/28 on freetype-devel.
  3339. * src/base/cff/cffparse.c (power_tens): New array.
  3340. (cff_parse_real): Rewritten to introduce a fourth parameter which
  3341. returns the `scaling' of the real number so that we have no
  3342. precision loss. This is not used yet.
  3343. Update all callers.
  3344. (cff_parse_fixed_thousand): Replace with...
  3345. (cff_parse_fixed_scaled): This function. Update all callers.
  3346. 2008-05-03 Werner Lemberg <wl@gnu.org>
  3347. * src/base/ftobjs.c (FT_Load_Glyph): Call the auto-hinter without
  3348. transformation since it recursively calls FT_Load_Glyph. This fixes
  3349. Savannah bug #23143.
  3350. 2008-04-26 Werner Lemberg <wl@gnu.org>
  3351. * include/freetype/internal/psaux.h (T1_BuilderRec): Mark `scale_x'
  3352. and `scale_y' as obsolete since they aren't used.
  3353. * src/psaux/psobjs.c (t1_builder_init): Updated.
  3354. * src/cff/cffgload.h (CFF_Builder): Mark `scale_x' and `scale_y' as
  3355. obsolete since they aren't used.
  3356. * src/cff/cffgload.c (cff_builder_init): Updated.
  3357. 2008-04-14 Werner Lemberg <wl@gnu.org>
  3358. * src/pcf/pcfdrivr.c (PCF_Face_Init): Protect call to
  3359. `FT_Stream_OpenLZW' with `FT_CONFIG_OPTION_USE_LZ'. From Savannah
  3360. bug #22909.
  3361. 2008-04-13 Werner Lemberg <wl@gnu.org>
  3362. * src/psaux/psconv.c (PS_Conv_ToFixed): Increase precision if
  3363. integer part is zero.
  3364. 2008-04-01 Werner Lemberg <wl@gnu.org>
  3365. Fix compilation with g++ 4.1 (with both `single' and `multi'
  3366. targets).
  3367. * src/base/ftobjs.c (FT_Open_Face): Don't define a variable in block
  3368. which is crossed by a `goto'.
  3369. * src/otvalid/otvalid.h (otv_MATH_validate): Add prototype.
  3370. 2008-03-31 Werner Lemberg <wl@gnu.org>
  3371. Fix support for subsetted CID-keyed CFFs.
  3372. * include/freetype/freetype.h (FT_FACE_FLAG_CID_KEYED,
  3373. FT_IS_CID_KEYED): New macros.
  3374. * src/cff/cffobjs.c (cff_face_init): Set number of glyphs to the
  3375. maximum CID value in CID-keyed CFFs.
  3376. Handle FT_FACE_FLAG_CID_KEYED flag.
  3377. * docs/CHANGES: Document it.
  3378. Fix CFF font matrix calculation and improve precision.
  3379. * src/cff/cffparse.c (cff_parse_real): Increase precision if integer
  3380. part is zero.
  3381. (cff_parse_font_matrix): Simplify computation of `units_per_em';
  3382. this prevents overflow also.
  3383. Support FT_Get_CID_Registry_Ordering_Supplement for PS CID fonts.
  3384. * src/cid/cidriver.c: Include FT_SERVICE_CID_H.
  3385. (cid_get_ros): New function.
  3386. (cid_service_cid_info): New service structure.
  3387. (cid_services): Register it.
  3388. 2008-03-23 Werner Lemberg <wl@gnu.org>
  3389. Adjustments for Visual C++ 8.0, as reported by Rainer Deyke.
  3390. * builds/compiler/visualc.mk (CFLAGS): Remove /W5.
  3391. (ANSIFLAGS): Add _CRT_SECURE_NO_DEPRECATE.
  3392. 2008-03-21 Laurence Darby <ldarby>
  3393. * src/type1/t1objs.c (T1_Face_Init): Use `/Weight'. Patch from
  3394. Savannah bug #22675.
  3395. 2008-03-13 Derek Clegg <dclegg@apple.com>
  3396. * src/truetype/ttgxvar.c (TT_Get_MM_Var): Fix named style loop.
  3397. Patch from Savannah bug #22541.
  3398. 2008-03-03 Masatoshi Kimura <VYV03354@nifty.ne.jp>
  3399. * src/sfnt/ttcmap.c (tt_cmap14_char_map_nondef_binary,
  3400. tt_cmap14_find_variant): Return correct value.
  3401. (tt_cmap14_variant_chars): Fix check for `di'.
  3402. 2008-02-29 Wermer Lemberg <wl@gnu.org>
  3403. * docs/CHANGES: Updated.
  3404. 2008-02-29 Wolf
  3405. Add build support for symbian platform. From Savannah bug #22440.
  3406. * builds/symbian/*: New files.
  3407. 2008-02-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3408. * src/base/ftmac.c (parse_fond): Fix a bug of PostScript font name
  3409. synthesis. For any face of a specified FOND, always the name for
  3410. the first face was used. Except of a FOND that refers multiple
  3411. Type1 font files, wrong synthesized font names are not used at all,
  3412. so this is an invisible bug. A few limit checks are added too.
  3413. * builds/mac/ftmac.c: Ditto.
  3414. 2008-02-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3415. * builds/unix/configure.raw: Split compiler option to link Carbon
  3416. frameworks to one option for CoreServices framework and another
  3417. option for ApplicationServices framework. The split options can be
  3418. managed by GNU libtool to avoid unrequired duplication when FreeType
  3419. is linked with other applications. Suggested by Daniel Macks,
  3420. Savannah bug #22366.
  3421. 2008-02-18 Victor Stinner <victor.stinner@haypocalc.com>
  3422. * src/truetype/ttinterp.c (Ins_IUP): Check number of points. Fix
  3423. from Savannah bug #22356.
  3424. 2008-02-17 Jonathan Blow <jon@number-none.com>
  3425. * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
  3426. Check for valid callback pointers.
  3427. 2008-02-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3428. * src/base/ftmac.c (FT_New_Face_From_SFNT): Check the sfnt resource
  3429. handle by its value instead of ResError(), fix provided by Deron
  3430. Kazmaier. According to the Resource Manager Reference,
  3431. GetResource(), Get1Resource(), GetNamedResource(),
  3432. Get1NamedResource() and RGetResource() set noErr but return NULL
  3433. handle when they can not find the requested resource. These
  3434. functions never return undefined values, so it is sufficient to
  3435. check if the handle is not NULL.
  3436. * builds/mac/ftmac.c (FT_New_Face_From_SFNT): Ditto.
  3437. 2008-02-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3438. * src/base/ftbase.c: <ftmac.c> is replaced by "ftmac.c" as other
  3439. inclusion styles. Now it always includes src/base/ftmac.c;
  3440. builds/mac/ftmac.c is never included in any configuration.
  3441. * builds/unix/configure.raw: Print warning if configure is executed
  3442. with options to specify Carbon functionalities explicitly.
  3443. * docs/INSTALL.MAC: Note that legacy builds/mac/ftmac.c is not
  3444. included automatically and manual replacement is required.
  3445. 2008-02-11 Werner Lemberg <wl@gnu.org>
  3446. * builds/modules.mk (CLOSE_MODULE, REMOVE_MODULE), builds/detect.mk
  3447. (dos_setup), builds/freetype.mk (clean_project_dos,
  3448. distclean_project_dos): Don't use \ but $(SEP). Reported by Duncan
  3449. Murdoch.
  3450. 2008-01-18 Sylvain Pasche <sylvain.pasche@gmail.com>
  3451. * src/base/ftlcdfil.c (_ft_lcd_filter_legacy): Updated comment to
  3452. mention intra-pixel algorithm.
  3453. * include/freetype/freetype.h (FT_Render_Mode): Mention that
  3454. FT_Library_SetLcdFilter can be used to reduce fringes.
  3455. 2008-01-16 Werner Lemberg <wl@gnu.org>
  3456. * src/raster/ftraster.c (ft_black_render): Check `outline' before
  3457. using it. Reported by Allan Yang.
  3458. 2008-01-12 Werner Lemberg <wl@gnu.org>
  3459. * src/raster/ftraster.c (FT_CONFIG_OPTION_5_GRAY_LEVELS): Remove.
  3460. 2008-01-12 Allan Yang, Jian Hua - SH <Allan.Yang@fmc.fujitsu.com>
  3461. * src/raster/ftraster.c (ft_black_init)
  3462. [FT_RASTER_OPTION_ANTI_ALIASING]: Fix compilation.
  3463. 2008-01-10 Werner Lemberg <wl@gnu.org>
  3464. * src/truetype/ttgload.c (load_truetype_glyph): Handle the case
  3465. where the number of contours in a simple glyph is zero (and which
  3466. does contain an entry in the `glyf' table). This fixes Savannah bug
  3467. #21990.
  3468. 2008-01-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3469. Formatting suggested by Sean McBride.
  3470. * builds/mac/ftmac.c: Formatting (tab expanded).
  3471. * src/autofit/afindic.c: Ditto.
  3472. * src/base/ftcid.c: Ditto.
  3473. * src/base/ftmac.c: Ditto.
  3474. 2007-12-30 Werner Lemberg <wl@gnu.org>
  3475. * src/smooth/ftgrays.c (gray_raster_render): Check `outline'
  3476. correctly.
  3477. 2007-12-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3478. Improvement of POSIX resource-fork accessor to load unsorted
  3479. references in a resource. In HelveLTMM (resource-fork PostScript
  3480. Type1 font bundled with Mac OS X since 10.3.x), the appearance order
  3481. of PFB chunks is not sorted; sorting the chunks by reference IDs is
  3482. required.
  3483. * include/freetype/internal/ftrfork.h (FT_RFork_Ref): New structure
  3484. type to store a pair of reference ID and offset to the chunk.
  3485. * src/base/ftrfork.c (ft_raccess_sort_ref_by_id): New function to
  3486. sort FT_RFork_Ref by their reference IDs.
  3487. (FT_Raccess_Get_DataOffsets): Returns an array of offsets that is
  3488. sorted by reference ID.
  3489. 2007-12-14 Werner Lemberg <wl@gnu.org>
  3490. * src/cff/cffparse.c (cff_parse_real): Don't apply `power_ten'
  3491. division too early; otherwise the most significant digit(s) of the
  3492. final result are lost as the value is truncated to an integer. This
  3493. fixes Savannah bug #21794 (where the patch has been posted too).
  3494. 2007-12-06 Fix <4d876b82@gmail.com>
  3495. Pass options from one configure script to another as-is (not
  3496. expanded). This is needed for options like
  3497. --includedir='${prefix}/include'.
  3498. * builds/unix/detect.mk, configure: Prevent argument expansion in
  3499. call to the (real) `configure' script.
  3500. 2007-12-06 Werner Lemberg <wl@gnu.org>
  3501. * src/truetype/ttgload.c (load_truetype_glyph): Fix compilation if
  3502. TT_USE_BYTECODE_INTERPRETER isn't defined.
  3503. 2007-12-06 Werner Lemberg <wl@gnu.org>
  3504. There exist CFFs which contain opcodes for the Type 1 operators
  3505. `hsbw' and `closepath' which are both invalid in Type 2 charstrings.
  3506. However, it doesn't harm to support them.
  3507. * src/cff/cffgload.c (CFF_Operator): Add `cff_op_hsbw' and
  3508. `cff_op_closepath.'
  3509. (cff_argument_counts): Ditto.
  3510. (cff_decoder_parse_charstrings): Handle Type 1 opcodes 9 (closepath)
  3511. and 13 (hsbw) which are invalid in Type 2 charstrings.
  3512. 2007-12-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3513. * src/base/ftrfork.c (raccess_guess_darwin_newvfs): New function to
  3514. support new pathname syntax `..namedfork/rsrc' to access a resource
  3515. fork on Mac OS X. The legacy syntax `/rsrc' does not work on
  3516. case-sensitive HFS+.
  3517. (raccess_guess_darwin_hfsplus): Fix a bug in the calculation of
  3518. buffer size to store a pathname.
  3519. * include/freetype/internal/ftrfork.h: Increment the number of
  3520. resource fork guessing rule.
  3521. 2007-12-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3522. * builds/unix/configure.raw: Improve the compile tests to search
  3523. Carbon functions.
  3524. * builds/mac/ftmac.c: Import fixes for Carbon incompatibilities
  3525. proposed by Sean McBride from src/base/ftmac.c (see 2007-11-16).
  3526. 2007-12-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3527. The documents and comments for Mac OS X are improved by Sean
  3528. McBride.
  3529. * src/base/ftmac.c: Fix a comment.
  3530. * include/freetype/ftmac.h: Ditto.
  3531. * docs/INSTALL.MAC: Improve English and add comment on lowest
  3532. system version specified by MACOSX_DEPLOYMENT_TARGET.
  3533. 2007-12-04 Werner Lemberg <wl@gnu.org>
  3534. * src/cff/cffload.c (cff_subfont_load): Don't use logical OR to
  3535. concatenate error codes.
  3536. * src/sfnt/ttsbit.c (Load_SBit_Range): Ditto.
  3537. 2007-12-04 Graham Asher <graham.asher@btinternet.com>
  3538. * src/truetype/ttobjs.c (tt_face_init): Don't use logical OR to
  3539. concatenate error codes.
  3540. 2007-12-04 Sean McBride <sean@rogue-research.com>
  3541. * src/pfr/pfrgload.c (pfr_glyph_load_compound): Remove compiler
  3542. warning.
  3543. 2007-11-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3544. Fix MacOS legacy font support by Masatake Yamato on Mac OS X. It is
  3545. not working since 2.3.5. In FT_Open_New(), if FT_New_Stream()
  3546. cannot mmap() the specified file and cannot seek to head of the
  3547. specified file, it returns NULL stream and FT_Open_New() returns the
  3548. error immediately. On MacOS, most legacy MacOS fonts fall into such
  3549. a scenario because their data forks are zero-sized and cannot be
  3550. sought. To proceed to guessing of resource fork fonts, the
  3551. functions for legacy MacOS font must properly handle the NULL stream
  3552. returned by FT_New_Stream().
  3553. * src/base/ftobjs.c (IsMacBinary): Return error
  3554. FT_Err_Invalid_Stream_Operation immediately when NULL stream is
  3555. passed.
  3556. (FT_Open_Face): Even when FT_New_Stream() returns an error, proceed
  3557. to fallback. Originally, legacy MacOS font is tested in the cases
  3558. of FT_Err_Invalid_Stream_Operation (occurs when data fork is empty)
  3559. or FT_Err_Unknown_File_Format (occurs when AppleSingle header or
  3560. .dfont header is combined). Now the case of
  3561. FT_Err_Cannot_Open_Stream is included.
  3562. * src/base/ftrfork.c (FT_Raccess_Guess): When passed stream is NULL,
  3563. skip FT_Stream_Seek(), which seeks to the head of stream, and
  3564. proceed to unit testing of raccess_guess_XXX(). FT_Stream_Seek()
  3565. for a NULL stream causes a Bus error on Mac OS X.
  3566. (raccess_guess_apple_double): Return FT_Err_Cannot_Open_Stream
  3567. immediately if passed stream is NULL.
  3568. (raccess_guess_apple_single): Ditto.
  3569. 2007-11-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3570. Fix for Carbon incompatibilities since Mac OS X 10.5,
  3571. proposed by Sean McBride.
  3572. * doc/INSTALL.MAC: Comment on MACOSX_DEPLOYMENT_TARGET.
  3573. * include/freetype/ftmac.h: Deprecate FT_New_Face_From_FOND and
  3574. FT_GetFilePath_From_Mac_ATS_Name. Since Mac OS X 10.5, calling
  3575. Carbon functions from a forked process is classified as unsafe
  3576. by Apple. All Carbon-dependent functions should be deprecated.
  3577. * src/base/ftmac.c: Use essential header files
  3578. <CoreServices/CoreServices.h> and
  3579. <ApplicationServices/ApplicationServices.h> instead of
  3580. all-in-one header file <Carbon/Carbon.h>.
  3581. Include <sys/syslimits.h> and replace HFS_MAXPATHLEN by Apple
  3582. genuine macro PATH_MAX.
  3583. Add fallback macro for kATSOptionFlagsUnRestrictedScope which
  3584. is not found in Mac OS X 10.0.
  3585. Multi-character constants ('POST', 'sfnt' etc) are replaced by
  3586. 64bit constants calculated by FT_MAKE_TAG() macro.
  3587. For the index in the segment of resource fork, new portable
  3588. type ResourceIndex is introduced for better compatibility.
  3589. This type is since Mac OS X 10.5, so it is defined as short
  3590. when built on older platforms.
  3591. (FT_ATSFontGetFileReference): If build target is only the systems
  3592. 10.5 and newer, it calls Apple genuine ATSFontGetFileReference().
  3593. (FT_GetFile_From_Mac_ATS_Name): Return an error if system is 10.5
  3594. and newer or 64bit platform, because legacy type FSSpec type is
  3595. removed completely.
  3596. (FT_New_Face_From_FSSpec): Ditto.
  3597. 2007-11-01 Werner Lemberg <wl@gnu.org>
  3598. * src/sfnt/sfobjs.c (sfnt_done_face): Check `sfnt' everywhere. This
  3599. fixes Savannah bug #21485.
  3600. 2007-10-29 Daniel Svoboda <dasvo@planeta@cz>
  3601. * src/winfonts/winfnt.c (FNT_Face_Init): Check first that the driver
  3602. can handle the font at all, then check `face_index'. Otherwise, the
  3603. driver might return the wrong error code. This fixes Savannah bug
  3604. #21468.
  3605. 2007-10-21 Werner Lemberg <wl@gnu.org>
  3606. * src/sfnt/sfobjs.c (sfnt_load_face): Support bit 9 and prepare
  3607. support for bit 8 of the `fsSelection' field in the `OS/2' table.
  3608. MS is already using this; hopefully, this becomes part of OpenType
  3609. 1.5.
  3610. Prepare also support for `name' IDs 21 (WWS_FAMILY) and 22
  3611. (WWS_SUBFAMILY).
  3612. 2007-10-20 Werner Lemberg <wl@gnu.org>
  3613. * src/tools/docmaker/tohtml.py (html_header_2): Fix typo.
  3614. Add `td.left' element to CSS.
  3615. (toc_section_enter): Use it.
  3616. 2007-10-18 David Turner <david@freetype.org>
  3617. * include/freetype/freetype.h, src/base/ftobjs.c: Rename API
  3618. functions related to cmap type 14 support to the
  3619. `FT_Object_ActionName' scheme:
  3620. FT_Get_Char_Variant_index -> FT_Face_GetCharVariantIndex
  3621. FT_Get_Char_Variant_IsDefault -> FT_Face_GetCharVariantIsDefault
  3622. FT_Get_Variant_Selectors -> FT_Face_GetVariantSelectors
  3623. FT_Get_Variants_Of_Char -> FT_Face_GetVariantsOfChar
  3624. FT_Get_Chars_Of_Variant -> FT_Face_GetCharsOfVariant
  3625. Update documentation accordingly.
  3626. * src/sfnt/ttcmap.c: Stronger cmap 14 validation.
  3627. Make the code a little more consistent with FreeType coding
  3628. conventions and modify the cmap14 functions that returned a newly
  3629. allocated array to use a persistent vector from the TT_CMap14 object
  3630. instead.
  3631. (TT_CMap14Rec): Provide array and auxiliary data for result.
  3632. (tt_cmap14_done, tt_cmap14_ensure): New functions.
  3633. (tt_cmap14_init, tt_cmap14_validate, tt_cmap14_char_map_def_binary,
  3634. tt_cmap14_char_map_nondef_binary, tt_cmap14_find_variant,
  3635. tt_cmap14_char_var_index, tt_cmap14_variants,
  3636. tt_cmap14_char_variants, tt_cmap14_def_char_count,
  3637. tt_cmap14_get_def_chars, tt_cmap14_get_nondef_chars,
  3638. tt_cmap14_variant_chars, tt_cmap14_class_rec): Updated and improved.
  3639. 2007-10-15 George Williams <gww@silcom.com>
  3640. Add support for cmap type 14.
  3641. * devel/ftoption.h, include/freetype/config/ftoption.h
  3642. (TT_CONFIG_CMAP_FORMAT_14): New macro.
  3643. * include/freetype/internal/ftobjs.h (FT_CMap_CharVarIndexFunc,
  3644. FT_CMap_CharVarIsDefaultFunc, FT_CMap_VariantListFunc,
  3645. FT_CMap_CharVariantListFunc, FT_CMap_VariantCharListFunc): New
  3646. support function prototypes.
  3647. (FT_CMap_ClassRec): Add them.
  3648. Update all users.
  3649. * include/freetype/ttnameid.h (TT_APPLE_ID_VARIANT_SELECTOR): New
  3650. macro.
  3651. * include/freetype/freetype.h (FT_Get_Char_Variant_Index,
  3652. FT_Get_Char_Variant_IsDefault, FT_Get_Variant_Selectors,
  3653. FT_Get_Variants_Of_Char, FT_Get_Chars_Of_Variant): New API
  3654. functions.
  3655. * src/base/ftobjs.c (find_variant_selector_charmap): New auxiliary
  3656. function.
  3657. (FT_Set_Charmap): Disallow cmaps of type 14.
  3658. (FT_Get_Char_Variant_Index, FT_Get_Char_Variant_IsDefault,
  3659. FT_Get_Variant_Selectors, FT_Get_Variants_Of_Char,
  3660. FT_Get_Chars_Of_Variant): New API functions.
  3661. * src/sfnt/ttcmap.c (TT_PEEK_UINT24, TT_NEXT_UINT24): New macros.
  3662. (TT_CMap14Rec, tt_cmap14_init, tt_cmap14_validate,
  3663. tt_cmap14_char_index, tt_cmap14_char_next, tt_cmap14_get_info,
  3664. tt_cmap14_char_map_def_binary, tt_cmap14_char_map_nondef_binary,
  3665. tt_cmap14_find_variant, tt_cmap14_char_var_index,
  3666. tt_cmap14_char_var_isdefault, tt_cmap14_variants,
  3667. tt_cmap14_char_variants, tt_cmap14_def_char_count,
  3668. tt_cmap14_get_def_chars, tt_cmap14_get_nondef_chars,
  3669. tt_cmap14_variant_chars, tt_cmap14_class_rec): New functions and
  3670. structures for cmap 14 support.
  3671. (tt_cmap_classes): Register tt_cmap14_class_rec.
  3672. (tt_face_build_cmaps): One more error message.
  3673. * docs/CHANGES: Mention cmap 14 support.
  3674. 2007-10-01 Werner Lemberg <wl@gnu.org>
  3675. * src/base/ftobjs.c (find_unicode_charmap): If search for a UCS-4
  3676. charmap fails, do the loop again while searching a UCS-2 charmap.
  3677. This favours MS charmaps over Apple ones.
  3678. 2007-08-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3679. * src/base/ftmac.c: Introduction of abstract `short' data types,
  3680. ResFileRefNum and ResID. These types were introduced for Copland,
  3681. then backported to MPW. The variables exchanged with FileManager
  3682. QuickDraw frameworks are redefined by these data types. Patch was
  3683. proposed by Sean McBride.
  3684. * builds/mac/ftmac.c: Ditto.
  3685. 2007-08-18 Werner Lemberg <wl@gnu.org>
  3686. * src/otvalid/otvcmmn.c (otv_x_y_ux_sy): Skip context glyphs. Found
  3687. by Imran Yousaf. Fixes Savannah bug #20773.
  3688. (otv_Lookup_validate): Correct handling of LookupType. Found by
  3689. Imran Yousaf. Fixes Savannah bug #20782.
  3690. 2007-08-17 George Williams <gww@silcom.com>
  3691. * src/otvalid/otvgsub.c (otv_SingleSubst_validate): Fix handling of
  3692. SingleSubstFormat1.
  3693. 2007-08-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3694. * builds/unix/configure.raw: Fix a bug which sets CC_BUILD by
  3695. ${build-gcc} (unchecked) instead of by ${build}-gcc (checked).
  3696. Found by Ryan Hill.
  3697. 2007-08-11 George Williams <gww@silcom.com>
  3698. * src/otvalid/otvcommn.c, src/otvalid/otvcommn.h
  3699. (otv_Coverage_validate): Add fourth argument to pass an expected
  3700. count value. Update all users.
  3701. Check glyph IDs.
  3702. (otv_ClassDef_validate): Check `StartGlyph'.
  3703. * src/otvalid/otvgsub.c (otv_SingleSubst_validate): More glyph ID
  3704. checks.
  3705. * src/otvalid/otvmath.c (otv_MathConstants_validate): There are only
  3706. 56 constants.
  3707. (otv_GlyphAssembly_validate, otv_MathGlyphConstruction_validate):
  3708. Check glyph IDs.
  3709. 2007-08-08 Werner Lemberg <wl@gnu.org>
  3710. * src/otvalid/otvbase.c, src/otvalid/otvcommn.c,
  3711. src/otvalid/otvgdef.c, src/otvalid/otvgpos.c, src/otvalid/otvgsub.c,
  3712. src/otvalid/otvjstf.c: s/FT_INVALID_DATA/FT_INVALID_FORMAT/ where
  3713. appropriate. Reported by George.
  3714. * include/freetype/internal/fttrace.h: Define `trace_otvmath'.
  3715. * src/otvalid/rules.mk (OTV_DRV_SRC): Add otvmath.c.
  3716. * docs/CHANGES: Updated.
  3717. 2007-08-08 George Williams <gww@silcom.com>
  3718. Add `MATH' validating support to otvalid module.
  3719. * include/freetype/tttags.h (TTAG_MATH): New macro.
  3720. * include/freetype/ftotval.h (FT_VALIDATE_MATH): New macro.
  3721. (FT_VALIDATE_OT): Updated.
  3722. * src/otvalid/otmath.c: New file.
  3723. * src/otvalid/otvalid.c: Include otvmath.c.
  3724. * src/otvalid/otvmod.c (otv_validate): Handle `MATH' table.
  3725. 2007-08-04 Werner Lemberg <wl@gnu.org>
  3726. * builds/unix/configure.raw: Add call to AC_LIBTOOL_WIN32_DLL.
  3727. Fixes Savannah bug #20686.
  3728. 2007-08-03 Werner Lemberg <wl@gnu.org>
  3729. * src/psnames/psmodule.c: Fix usage of
  3730. FT_CONFIG_OPTION_POSTSCRIPT_NAMES macro. Reported by Graham Asher.
  3731. 2007-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3732. * src/base/ftmac.c (open_face_from_buffer): The argument
  3733. `driver_name' is typed as `const char*' to match with the
  3734. callers in FT_New_Face_From_LWFN and FT_New_Face_From_SFNT.
  3735. This is same with open_face_from_buffer in src/base/ftobjs.c.
  3736. Found and fixed by Sean McBride.
  3737. 2007-07-28 Werner Lemberg <wl@gnu.org>
  3738. * src/raster/ftraster.c (count_table): Make it conditional.
  3739. * src/base/ftobjs.c (FT_New_Library): Check FT_RENDER_POOL_SIZE with
  3740. a preprocessor statement.
  3741. 2007-07-27 Werner Lemberg <wl@gnu.org>
  3742. * src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before
  3743. first usage. From Savannah patch #6115.
  3744. 2007-07-16 Werner Lemberg <wl@gnu.org>
  3745. * docs/CHANGES: Updated.
  3746. 2007-07-16 Derek Clegg <dclegg@apple.com>
  3747. Add new service for getting the ROS from a CID font.
  3748. * include/freetype/config/ftheader.h (FT_CID_H): New macro.
  3749. * include/freetype/ftcid.h: New file.
  3750. * include/freetype/internal/ftserv.h (FT_SERVIVE_CID_H): New macro.
  3751. * include/freetype/internal/services/svcid.h: New file.
  3752. * src/base/ftcid.c: New file.
  3753. * src/cff/cffdrivr.c: Include FT_SERVICE_CID_H.
  3754. (cff_get_ros): New function.
  3755. (cff_service_cid_info): New service structure.
  3756. (cff_services): Register it.
  3757. * src/cff/cffload.c (cff_font_done): Free registry and ordering.
  3758. * src/cff/cfftypes.h (CFF_FontRec): Add `registry' and `ordering'.
  3759. * modules.cfg (BASE_EXTENSIONS): Add ftcid.c.
  3760. 2007-07-11 Derek Clegg <dclegg@apple.com>
  3761. Add support for postscript name service to CFF driver.
  3762. * src/cff/cffdrivr.c: Include FT_SERVICE_POSTSCRIPT_NAME_H.
  3763. (cff_get_ps_name): New function.
  3764. (cff_service_ps_name): New service structure.
  3765. (cff_services): Register it.
  3766. 2007-07-07 Werner Lemberg <wl@gnu.org>
  3767. * src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of
  3768. `target'. Reported by Sean McBride.
  3769. 2007-07-06 Werner Lemberg <wl@gnu.org>
  3770. * src/pfr/pfrcmap.c: Include pfrerror.h.
  3771. * src/autofit/afindic.c: Add some external declarations to pacify
  3772. `make multi' compilation.
  3773. * src/cid/cidgload.c (cid_load_glyph): Pacify compiler.
  3774. * src/cff/cffdrivr.c (cff_ps_get_font_info), src/cff/cffobjs.c
  3775. (cff_strcpy), include/freetype/internal/ftmemory.h (FT_MEM_STRDUP),
  3776. src/autofit/aflatin.c (af_latin_hints_compute_edges),
  3777. src/autofit/afcjk.c (af_cjk_hints_compute_edges), src/sfnt/ttmtx.c
  3778. (tt_face_get_metrics), src/base/ftobjs.c (open_face)
  3779. [FT_CONFIG_OPTION_INCREMENTAL]: Fix compilation with C++ compiler.
  3780. * docs/release: Mention test compilation targets.
  3781. 2007-07-04 Werner Lemberg <wl@gnu.org>
  3782. * docs/PROBLEMS: Mention that some PS based fonts can't be
  3783. handled correctly by FreeType.
  3784. * src/truetype/ttgload.c (load_truetype_glyph): Always allow a
  3785. recursion depth of 1. This was the maximum value in TrueType 1.0,
  3786. and some older fonts don't set this field correctly.
  3787. * src/gxvalid/gxvmort1.c
  3788. (gxv_mort_subtable_type1_substTable_validate): Fix tracing message.
  3789. 2007-07-03 Werner Lemberg <wl@gnu.org>
  3790. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initialize
  3791. `round' to pacify compiler.
  3792. 2007-07-02 Werner Lemberg <wl@gnu.org>
  3793. * Version 2.3.5 released.
  3794. =========================
  3795. Tag sources with `VER-2-3-5'.
  3796. * docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
  3797. version number to 2.3.5.
  3798. * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
  3799. builds/win32/visualc/freetype.dsp,
  3800. builds/win32/visualc/freetype.vcproj,
  3801. builds/win32/visualce/index.html,
  3802. builds/win32/visualce/freetype.dsp,
  3803. builds/win32/visualce/freetype.vcproj: s/2.3.4/2.3.5/, s/234/235/.
  3804. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
  3805. * builds/unix/configure.raw (version_info): Set to 9:16:3.
  3806. 2007-07-01 David Turner <david@freetype.org>
  3807. * include/freetype/freetype.h, src/base/ftpatent.c
  3808. (FT_Face_SetUnpatentedHinting): New function to dynamically change
  3809. the setting after a face is created.
  3810. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Fix a small bug
  3811. that created distortions in the bytecode interpreter results.
  3812. 2007-06-30 David Turner <david@freetype.org>
  3813. * src/truetype/ttinterp.c (Ins_IUP): Add missing variable
  3814. initialization.
  3815. * src/autofit/aflatin.c (af_latin_metric_init_blues): Get rid of an
  3816. infinite loop in the case of degenerate fonts.
  3817. 2007-06-26 Rahul Bhalerao <b.rahul.pm@gmail.com>
  3818. Add autofit module for Indic scripts. This currently just reuses
  3819. the CJK-specific functions.
  3820. * include/freetype/config/ftoption.h (AF_CONFIG_OPTION_INDIC): New
  3821. macro.
  3822. * devel/ftoption.h: Synchronize with
  3823. include/freetype/config/ftoption.h.
  3824. * src/autofit/afindic.c, src/autofit/afindic.h: New files.
  3825. * src/autofit/afglobal.c, src/autofit/aftypes.h,
  3826. src/autofit/autofit.c: Updated.
  3827. * src/autofit/Jamfile (_sources), * src/autofit/rules.mk
  3828. (AUTOF_DRV_SRC): Updated.
  3829. 2007-06-23 David Turner <david@freetype.org>
  3830. * src/truetype/ttgload.c (TT_Load_Simple): Fix change from
  3831. 2007-06-16 that prevented the TrueType module from loading most
  3832. glyphs.
  3833. 2007-06-20 Werner Lemberg <wl@gnu.org>
  3834. * src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28
  3835. change.
  3836. 2007-06-19 Werner Lemberg <wl@gnu.org>
  3837. * src/type1/t1load.c (parse_encoding): Handle one more error.
  3838. 2007-06-19 Dmitry Timoshkov <dmitry@codeweavers.com>
  3839. * src/winfonts/winfnt.c (fnt_face_get_dll_font): Return error
  3840. FNT_Err_Invalid_File_Format if file format was recognized but
  3841. the file doesn't contain any FNT(NE) or RT_FONT(PE) resources.
  3842. Add verbose debug logs to make it easier to debug failing load
  3843. attempts.
  3844. (FNT_Face_Init): A single FNT font can't contain more than 1 face,
  3845. so return an error if requested face index is > 0.
  3846. Do not do further attempt to load fonts if a previous attempt has
  3847. failed but returned error FNT_Err_Invalid_File_Format, i.e., the
  3848. file format has been recognized but no fonts found in the file.
  3849. 2007-07-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  3850. * src/base/ftmac.c: Apply patches proposed by Sean McBride.
  3851. (FT_GetFile_From_Mac_Name): Insert FT_UNUSED macros to fix
  3852. the compiler warnings against unused arguments.
  3853. (FT_ATSFontGetFileReference): Ditto.
  3854. (FT_GetFile_From_Mac_ATS_Name): Ditto.
  3855. (FT_New_Face_From_FSSpec): Ditto.
  3856. (lookup_lwfn_by_fond): Fix wrong comment.
  3857. Replace `const StringPtr' by more appropriate type
  3858. `ConstStr255Param'.
  3859. FSRefMakePathPath always returns UTF8 POSIX pathname in
  3860. Mach-O, thus HFS pathname support is dropped.
  3861. (count_faces): Remove HLock and HUnlock which is not
  3862. required on Mac OS X anymore.
  3863. (FT_New_Face_From_SFNT): Ditto.
  3864. (FT_New_Face_From_FOND): Ditto.
  3865. * builds/mac/ftmac.c: Synchronize to src/base/ftmac.c,
  3866. except of HFS pathname support and HLock/HUnlock.
  3867. They are required on classic CFM environment.
  3868. 2007-06-18 Werner Lemberg <wl@gnu.org>
  3869. * src/psaux/psobjs.c (ps_parser_skip_PS_token): Remove incorrect
  3870. assertion.
  3871. (ps_parser_to_bytes): Fix error message.
  3872. * src/type42/t42objs.c (T42_Open_Face): Handle one more error.
  3873. * src/type42/t42parse.c (t42_parse_sfnts): s/alloc/allocated/.
  3874. Don't allow mixed binary and hex strings.
  3875. Handle string_size == 0 and string_buf == 0.
  3876. (t42_parse_encoding): Handle one more error.
  3877. 2007-06-18 Werner Lemberg <wl@gnu.org>
  3878. * src/psaux/psobjs.c (ps_tofixedarray, ps_tocoordarray): Fix exit
  3879. logic.
  3880. (ps_parser_load_field) <T1_FIELD_TYPE_BBOX>: Skip delimiters
  3881. correctly.
  3882. (ps_parser_load_field_table): Use `fields->array_max' instead of
  3883. T1_MAX_TABLE_ELEMENTS to limit the number of arguments.
  3884. * src/cff/cffgload.c (cff_decoder_prepare): Fix change from
  3885. 2007-06-06.
  3886. 2007-06-17 Werner Lemberg <wl@gnu.org>
  3887. * src/tools/ftrandom.c (font_size): New global variable.
  3888. (TestFace): Use it.
  3889. (main): Handle new option `--size' to set `font_size'.
  3890. (Usage): Updated.
  3891. * src/winfonts/winfnt.c (fnt_face_get_dll_font): Exit in case of
  3892. invalid font.
  3893. (FNT_Load_Glyph): Protect against invalid bitmap width.
  3894. 2007-06-16 David Turner <david@freetype.org>
  3895. * src/smooth/ftgrays.c (gray_find_cell, gray_set_cell, gray_hline):
  3896. Prevent integer overflows when rendering very large outlines.
  3897. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check the
  3898. well-formedness of the contours array when loading a glyph.
  3899. * src/truetype/ttinterp.c (TT_Load_Context): Initialize `zp0', `zp1',
  3900. and `zp2'.
  3901. (Ins_IP): Check argument ranges to reject bogus operations properly.
  3902. (IUP_WorkerRec): Add `max_points' member.
  3903. (_iup_worker_interpolate): Check argument ranges.
  3904. (Ins_IUP): Ignore empty outlines.
  3905. 2007-06-16 Dmitry Timoshkov <dmitry@codeweavers.com>
  3906. * src/winfonts/winfnt.h: Add necessary structures for PE resource
  3907. parsing.
  3908. (WinPE32_HeaderRec): New structure.
  3909. (WinPE32_SectionRec): New structure.
  3910. (WinPE_RsrcDirRec): New structure.
  3911. (WinPE_RsrcDirEntryRec): New structure.
  3912. (WinPE_RsrcDataEntryRec): New structure.
  3913. (FNT_FontRec): Remove unused `size_shift' field.
  3914. * src/winfonts/winfnt.c (fnt_face_get_dll_font): Add support for
  3915. loading bitmap .fon files in PE format.
  3916. 2007-06-15 Dmitry Timoshkov <dmitry@codeweavers.com>
  3917. * builds/win32/ftdebug.c: Unify debug level handling with other
  3918. platforms.
  3919. 2007-06-14 Dmitry Timoshkov <dmitry@codeweavers.com>
  3920. * builds/win32/ftdebug.c (FT_Message): Send debug output to the
  3921. console as well as to the debugger.
  3922. 2007-06-14 Werner Lemberg <wl@gnu.org>
  3923. * src/autofit/aflatin.c (af_latin_uniranges): Expand structure to
  3924. cover all ranges which could possibly be handled by the aflatin
  3925. module (since the default fallback for unknown ranges is now the
  3926. afcjk module). It might be necessary to fine-tune this further by
  3927. splitting off modules for Greek, Cyrillic, or other blocks.
  3928. 2007-06-11 David Turner <david@freetype.org>
  3929. * src/autofit/aflatin.c (af_latin_hints_link_segments): Fix
  3930. incorrect segment linking computation. This was the root cause of
  3931. Savannah bug #19565.
  3932. * src/autofit/* [FT_OPTION_AUTOFIT2]: Some very experimental changes
  3933. to improve the Latin auto-hinter. Note that the new code is
  3934. disabled by default since it is not stabilized yet.
  3935. * src/autofit/aflatin2.c, src/autofit/aflatin2.h: New files
  3936. (disabled currently).
  3937. * src/autofit/afhints.c: Remove dead code.
  3938. (af_axis_hints_new_edge): Add argument to handle segment directions.
  3939. (af_edge_flags_to_string): New function.
  3940. (af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Handle
  3941. option flags.
  3942. (af_glyph_hints_reload): Add argument to handle inflections.
  3943. Simplify.
  3944. (af_direction_compute): Fine tuning.
  3945. (af_glyph_hints_align_edge_points): Fix logic.
  3946. (af_glyph_hints_align_strong_points): Do linear search for small
  3947. edge counts.
  3948. (af_glyph_hints_align_weak_points): Skip any touched neighbors.
  3949. (af_iup_shift): Handle zero `delta'.
  3950. * src/autofit/afhints.h: Updated.
  3951. (AF_SORT_SEGMENTS): New macro (disabled).
  3952. (AF_AxisHintsRec) [AF_SORT_SEGMENTS]: New member `mid_segments'.
  3953. * src/autofit/afglobal.c (af_face_globals_get_metrics): Add
  3954. argument to pass option flags for handling scripts.
  3955. * src/autofit/afglobal.h: Updated.
  3956. * src/autofit/afcjk.c: Updated.
  3957. * src/autofit/aflatin.c: Updated.
  3958. (af_latin_metrics_scale_dim): Don't reduce scale by 2%.
  3959. (af_latin_hints_compute_segments) [AF_HINT_METRICS]: Remove dead code.
  3960. (af_latin_hints_compute_edges) [AF_HINT_METRICS]: Remove dead code.
  3961. Don't set `edge->dir'
  3962. (af_latin_hint_edges): Add more logging.
  3963. * src/autofit/afloader.c: Updated.
  3964. 2007-06-11 Werner Lemberg <wl@gnu.org>
  3965. * docs/CHANGES: Document FT_Face_CheckTrueTypePatents.
  3966. 2007-06-10 David Turner <david@freetype.org>
  3967. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Slight speed-up to
  3968. the TrueType glyph loader.
  3969. * include/freetype/config/ftoption.h: Clarify documentation
  3970. regarding unpatented hinting.
  3971. Add new `FT_Face_CheckTrueTypePatents' API.
  3972. * include/freetype/freetype.h (FT_Face_CheckTrueTypePatents): New
  3973. declaration.
  3974. * include/freetype/internal/services/svttglyf.h,
  3975. src/base/ftpatent.c: New files.
  3976. * include/freetype/internal/ftserv.h (FT_SERVICE_TRUETYPE_GLYF_H):
  3977. New macro.
  3978. * src/truetype/ttdriver.c: Include FT_SERVICE_TRUETYPE_GLYF_H and
  3979. `ttpload.h'.
  3980. (tt_service_truetype_glyf): New service structure.
  3981. (tt_services): Register it.
  3982. * modules.cfg (BASE_EXTENSIONS), src/base/Jamfile (_sources): Add
  3983. `ftpatent.c'.
  3984. 2007-06-08 Werner Lemberg <wl@gnu.org>
  3985. * src/sfnt/sfobjs.c (sfnt_load_face): Undo change from 2007-04-28.
  3986. Fonts without a cmap must be handled correctly by FreeType (anything
  3987. else would be a bug).
  3988. * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
  3989. [FT_DEBUG_LEVEL_TRACE]: Improve tracing message.
  3990. 2007-06-07 Werner Lemberg <wl@gnu.org>
  3991. * src/sfnt/ttsbit0.c (tt_sbit_decoder_init,
  3992. tt_sbit_decoder_load_image): Protect against integer overflows.
  3993. * src/pfr/pfrgload.c (pfr_glyph_load_simple): More bounding checks
  3994. for `x_control' and `y_control'.
  3995. 2007-06-06 Werner Lemberg <wl@gnu.org>
  3996. * src/base/ftoutln.c (FT_Outline_Decompose): Check `last'.
  3997. * src/pfr/pfrcmap.c (pfr_cmap_init): Convert assertion into normal
  3998. FreeType error.
  3999. * src/winfonts/winfnt.c (fnt_face_get_dll_font): Do a rough check of
  4000. `font_count'.
  4001. * src/type1/t1load.c (parse_font_matrix): Check `temp_scale'.
  4002. * src/cff/cffgload.c (cff_decoder_prepare): Change return type to
  4003. `FT_Error'.
  4004. Check `fd_index'.
  4005. (cff_slot_load): Updated.
  4006. * src/cff/cffgload.h: Updated.
  4007. 2007-06-05 Werner Lemberg <wl@gnu.org>
  4008. * src/pfr/pfrgload.c (pfr_glyph_done): Comment out unused code.
  4009. (pfr_glyph_load_simple): Convert assertion into normal FreeType
  4010. error.
  4011. Check `idx'.
  4012. (pfr_glyph_load_compound, pfr_glyph_curve_to, pfr_glyph_line_to):
  4013. Convert assertion into normal FreeType error.
  4014. * src/pfr/pfrtypes.h (PFR_GlyphRec): Comment out unused code.
  4015. * src/winfonts/winfnt.c (FNT_Face_Init): Check `family_size'.
  4016. * src/psaux/psobjs.c (ps_tocoordarray, ps_tofixedarray): Return -1
  4017. in case of parsing error.
  4018. (ps_parser_load_field): Updated.
  4019. * src/type1/t1load.c (parse_font_matrix): Updated.
  4020. 2007-06-04 Werner Lemberg <wl@gnu.org>
  4021. * src/cid/cidgload.c (cid_load_glyph): Check `fd_select'.
  4022. * src/tools/ftrandom/Makefile: Depend on `libfreetype.a'.
  4023. 2007-06-03 Werner Lemberg <wl@gnu.org>
  4024. * src/tools/ftrandom/*: Add the `ftrandom' test program written by
  4025. George Williams (with some modifications).
  4026. 2007-06-03 Werner Lemberg <wl@gnu.org>
  4027. * src/base/ftobjs.c (destroy_charmaps), src/type1/t1objs.c
  4028. (T1_Face_Done), src/winfonts/winfnt.c (FNT_Face_Done): Check for
  4029. face == NULL. Suggested by Graham Asher.
  4030. 2007-06-03 Ismail Dönmez <ismail@pardus.org.tr>
  4031. * src/base/ftobjs.c (FT_Request_Metrics): Fix compiler warning.
  4032. 2007-06-02 Werner Lemberg <wl@gnu.org>
  4033. * include/freetype/fterrdef.h (FT_Err_Corrupted_Font_Header,
  4034. FT_Err_Corrupted_Font_Glyphs): New error codes for BDF files.
  4035. * src/bdf/bdflib.c (bdf_load_font): Use them.
  4036. * src/bdf/bdflib.c (_bdf_parse_start): Check `FONT' better.
  4037. 2007-06-01 Werner Lemberg <wl@gnu.org>
  4038. * src/base/ftobjs.c (FT_Request_Metrics), src/cache/ftccmap.c
  4039. (FTC_CMapCache_Lookup): Remove unused code.
  4040. 2007-06-01 Sean McBride <sean@rogue-research.com>
  4041. * src/truetype/ttinterp.c (Null_Vector, NULL_Vector): Removed,
  4042. unused.
  4043. 2007-06-01 Werner Lemberg <wl@gnu.org>
  4044. * src/cid/cidparse.c (cid_parser_new): Don't continue second search
  4045. pass for `StartData' if an error has occurred.
  4046. Exit properly if no `StartData' has been seen at all.
  4047. * builds/unix/ftsystem.c (FT_Stream_Open): Don't use ULONG_MAX but
  4048. LONG_MAX to avoid compiler warning. Suggested by Sean McBride.
  4049. 2007-05-30 Werner Lemberg <wl@gnu.org>
  4050. * src/type1/t1load.c (parse_subrs, parse_charstrings): Protect
  4051. against too small binary data strings.
  4052. * src/bdf/bdflib.c (_bdf_parse_glyphs): Check `STARTCHAR' better.
  4053. 2007-05-28 David Turner <david@freetype.org>
  4054. * src/cff/cffgload.c (cff_slot_load): Do not apply the identity
  4055. transformation. This significantly reduces the loading time of CFF
  4056. glyphs.
  4057. * docs/CHANGES: Updated.
  4058. * src/autofit/afglobal.c (AF_SCRIPT_LIST_DEFAULT): Change default
  4059. hinting script to CJK, since it works well with more scripts than
  4060. latin. Thanks to Rahul Bhalerao <b.rahul.pm@gmail.com> for pointing
  4061. this out!
  4062. 2007-05-25 Werner Lemberg <wl@gnu.org>
  4063. * docs/CHANGES: Updated.
  4064. 2007-05-24 Werner Lemberg <wl@gnu.org>
  4065. * src/truetype/ttobjs.h (tt_size_ready_bytecode): Move declaration
  4066. into TT_USE_BYTECODE_INTERPRETER preprocessor block.
  4067. 2007-05-24 Graham Asher <graham.asher@btinternet.com>
  4068. * src/truetype/ttobjs.c (tt_size_ready_bytecode)
  4069. [!TT_USE_BYTECODE_INTERPRETER]: Removed. Unused.
  4070. 2007-05-22 David Turner <david@freetype.org>
  4071. * src/truetype/ttgload.c (load_truetype_glyph): Fix last change to
  4072. avoid crashes in case the bytecode interpreter is not used.
  4073. Avoid heap blowup with very large .Z font files. This fixes
  4074. Savannah bug #19910.
  4075. * src/lzw/ftzopen.h (FT_LzwStateRec): Remove `in_cursor',
  4076. `in_limit', `pad', `pad_bits', and `in_buff' members.
  4077. Add `buf_tab', `buf_offset', `buf_size', `buf_clear', and
  4078. `buf_total' members.
  4079. * src/lzw/ftzopen.c (ft_lzwstate_get_code): Rewritten. It now takes
  4080. only one argument.
  4081. (ft_lzwstate_refill, ft_lzwstate_reset, ft_lzwstate_io): Updated.
  4082. 2007-05-20 Ismail Dönmez <ismail@pardus.org.tr>
  4083. * src/pshinter/pshrec.c (ps_mask_table_set_bits): Add `const'.
  4084. (ps_dimension_set_mask_bits): Remove `const'.
  4085. 2007-05-19 Werner Lemberg <wl@gnu.org>
  4086. * src/sfnt/ttmtx.c (tt_face_get_metrics)
  4087. [!FT_CONFIG_OPTION_OLD_INTERNALS]: Another type-punning fix.
  4088. 2007-05-19 Derek Clegg <dclegg@apple.com>
  4089. Savannah patch #5929.
  4090. * include/freetype/tttables.h, src/base/ftobjcs.c
  4091. (FT_Get_CMap_Format): New function.
  4092. * include/freetype/internal/services/svttcmap.c (TT_CMapInfo): Add
  4093. `format' member.
  4094. * src/sfnt/ttcmap.c (tt_cmap{0,2,4,6,8,10,12}_get_info): Set
  4095. cmap_info->format.
  4096. 2007-05-19 Werner Lemberg <wl@gnu.org>
  4097. * src/truetype/ttgload.c (load_truetype_glyph): Save graphics state
  4098. before handling subglyphs so that it can be reinitialized each time.
  4099. This fixes Savannah bug #19859.
  4100. 2007-05-16 Werner Lemberg <wl@gnu.org>
  4101. * src/cache/ftccache.c (ftc_node_mru_link, ftc_node_mru_unlink),
  4102. src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP), src/cache/ftcglyph.h
  4103. (FTC_GCACHE_LOOKUP_CMP), src/pshinter/pshmod.c (ps_hinter_init),
  4104. src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_load_hhea,
  4105. tt_face_get_metrics): Fix type-punning issues.
  4106. 2007-05-15 David Turner <david@freetype.org>
  4107. * include/freetype/config/ftstdlib.h,
  4108. include/freetype/internal/ftobjs.h: As suggested by Graham Asher,
  4109. ensure that ft_isalnum, ft_isdigit, etc., use hard-coded values
  4110. instead on relying on the locale-dependent functions provided by
  4111. <ctypes.h>.
  4112. 2007-05-15 Graham Asher <graham.asher@btinternet.com>
  4113. * src/autofit/afcjk.c (af_cjk_hints_compute_edges): Remove unused
  4114. variable.
  4115. * src/autofit/afloader.c (af_loader_load_g): Ditto.
  4116. * src/base/ftobjs.c (ft_validator_error): Use `ft_jmp_buf'.
  4117. (open_face_from_buffer): Initialize `stream'.
  4118. (FT_Request_Metrics): Remove unused variable.
  4119. Remove redundant `break' statements.
  4120. (FT_Get_Track_Kerning): Remove unused variable.
  4121. * src/psaux/afmparse.c (afm_parse_track_kern, afm_parse_kern_pairs,
  4122. afm_parse_kern_data): Remove redundant
  4123. `break' statements.
  4124. (afm_parser_parse): Ditto.
  4125. Don't use uninitialized variables.
  4126. * src/psnames/psmodule.c (VARIANT_BIT): Define as unsigned long.
  4127. Use `|' operator instead of `^' to set it.
  4128. Update all users.
  4129. * src/sfnt/ttcmap.c (tt_face_build_cmaps): Use `ft_jmp_buf'.
  4130. * src/sfnt/ttkern.c (tt_face_load_kern): Remove unused variable.
  4131. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Remove redundant
  4132. comparison.
  4133. (TT_Process_Simple_Glyph): Use FT_UInt for `n_points' and `i'.
  4134. (TT_Load_Glyph): Remove unused variable.
  4135. 2007-05-13 Derek Clegg <dclegg@apple.com>
  4136. * src/base/ftobjs.c (FT_New_Library): Only allocate rendering pool
  4137. if FT_RENDER_POOL_SIZE is > 0. From Savannah patch #5928.
  4138. 2007-05-11 David Turner <david@freetype.org>
  4139. * src/cache/ftbasic.c, include/freetype/ftcache.h
  4140. (FTC_ImageCache_LookupScaler, FTC_SBit_Cache_LookupScaler): Two new
  4141. functions that allow us to look up glyphs using an FTC_Scaler object
  4142. to specify the size, making it possible to use fractional pixel
  4143. sizes.
  4144. * src/truetype/ttobjs.c (tt_size_ready_bytecode): Set
  4145. `size->cvt_ready'. Reported by Boris Letocha.
  4146. 2007-05-09 Graham Asher <graham.asher@btinternet.com>
  4147. * src/truetype/ttinterp.c (Ins_IP), src/autofit/aflatin.c
  4148. (af_latin_metrics_scale_dim): Fix compiler warnings.
  4149. 2007-05-06 Werner Lemberg <wl@gnu.org>
  4150. * builds/win32/visualce/freetype.sln: Removed, as requested by
  4151. Vincent.
  4152. 2007-05-04 Vincent RICHOMME <richom.v@free.fr>
  4153. * builds/win32/visualce/*: Add Visual C++ project files for Pocket
  4154. PC targets.
  4155. * docs/CHANGES: Document them.
  4156. 2007-05-04 <harry@kdevelop.org>
  4157. * builds/unix/ftsystem.c (FT_Stream_Open): Handle return value 0 of
  4158. mmap (which might happen on some RTOS). From Savannah patch #5909.
  4159. 2007-05-03 Werner Lemberg <wl@gnu.org>
  4160. * src/base/ftobjs.c (FT_Set_Char_Size): Simplify code.
  4161. * include/freetype/freetype.h (FT_Set_Char_Size): Update
  4162. documentation.
  4163. 2007-04-28 Victor Stinner <victor.stinner@inl.fr>
  4164. * src/sfnt/sfobjs.c (sfnt_load_face): Check error code after loading
  4165. `cmap'.
  4166. 2007-04-27 Werner Lemberg <wl@gnu.org>
  4167. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check for negative
  4168. number of points in contours. Problem reported by Victor Stinner
  4169. <victor.stinner@haypocalc.com>.
  4170. (TT_Process_Simple_Glyph): Synchronize variable types.
  4171. 2007-04-26 Werner Lemberg <wl@gnu.org>
  4172. * src/base/ftglyph.c (FT_Glyph_Copy): Always set second argument to
  4173. zero in case of error. This fixes Savannah bug #19689.
  4174. 2007-04-25 Boris Letocha <b.letocha@cz.gmc.net>
  4175. * src/truetype/ttobjs.c: Fix a typo that created a speed regression
  4176. in the TrueType bytecode loader.
  4177. 2007-04-10 Martin Horak <horakm@centrum.cz>
  4178. * src/sfnt/sfobjs.c (sfnt_load_face) [FT_CONFIG_OPTION_INCREMENTAL]:
  4179. Ignore `hhea' table. This fixes Savannah bug #19261.
  4180. 2007-04-09 Werner Lemberg <wl@gnu.org>
  4181. * Version 2.3.4 released.
  4182. =========================
  4183. Tag sources with `VER-2-3-4'.
  4184. * docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
  4185. version number to 2.3.4.
  4186. * README, Jamfile (RefDoc), builds/win32/visualc/index.html,
  4187. builds/win32/visualc/freetype.dsp,
  4188. builds/win32/visualc/freetype.vcproj: s/2.3.3/2.3.4/, s/233/234/.
  4189. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
  4190. * builds/unix/configure.raw (version_info): Set to 9:15:3.
  4191. 2007-04-09 Martin Horak <horakm@centrum.cz>
  4192. * src/truetype/ttgload.c (load_truetype_glyph): Save and restore
  4193. memory stream to avoid a crash with the incremental memory
  4194. interface (Savannah bug #19260).
  4195. 2007-04-06 David Turner <david@freetype.org>
  4196. * src/base/ftbimap.c (ft_bitmap_assure_buffer): Fix buffer-overwrite bug
  4197. (Savannah bug #19536).
  4198. 2007-04-04 Werner Lemberg <wl@gnu.org>
  4199. * Version 2.3.3 released.
  4200. =========================
  4201. Tag sources with `VER-2-3-3'.
  4202. * docs/CHANGES: Mention CVE-2007-1351.
  4203. 2007-04-03 David Turner <david@freetype.org>
  4204. * src/base/ftobjs.c (FT_Set_Char_Size): As suggested by James Cloos,
  4205. if one of the resolution values is 0, treat it as if it were the
  4206. same as the other value.
  4207. 2007-04-02 David Turner <david@freetype.org>
  4208. Add special code to detect `extra-light' fonts and do not snap their
  4209. stem widths too much to avoid bizarre hinting effects.
  4210. * src/autofit/aflatin.h (AF_LatinAxisRec): Add `standard_width' and
  4211. `extra_light' members.
  4212. * src/autofit/aflatin.c (af_latin_metrics_init_widths): Initialize
  4213. them.
  4214. (af_latin_metrics_scale_dim): Set `extra_light'.
  4215. (af_latin_compute_stem_width): Use `extra_light'.
  4216. 2007-03-28 David Turner <david@freetype.org>
  4217. * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Fix zero-ing of the
  4218. padding.
  4219. 2007-03-28 Werner Lemberg <wl@gnu.org>
  4220. * src/bdf/bdflib.c (setsbit, sbitset): Handle values >= 128
  4221. gracefully.
  4222. (_bdf_set_default_spacing): Increase `name' buffer size to 256 and
  4223. issue an error for longer names. This fixes CVE-2007-1351.
  4224. (_bdf_parse_glyphs): Limit allowed number of glyphs in font to the
  4225. number of code points in Unicode.
  4226. * builds/win32/visualc/index.html,
  4227. builds/win32/visualc/freetype.dsp,
  4228. builds/win32/visualc/freetype.vcproj, README: s/2.3.2/2.3.3/,
  4229. s/232/233/.
  4230. * docs/CHANGES: Mention ftdiff.
  4231. 2007-03-26 David Turner <david@freetype.org>
  4232. * src/truetype/ttinterp.c [FIX_BYTECODE]: Remove it and
  4233. corresponding code.
  4234. (Ins_MD): Last regression fix.
  4235. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Fix blues
  4236. computations in order to ignore single-point contours. These are
  4237. never rasterized and correspond in certain fonts to mark-attach
  4238. points that are very far from the glyph's real outline, ruining the
  4239. computation.
  4240. * src/autofit/afloader.c (af_loader_load_g): In the case of
  4241. monospaced fonts, always set `rsb_delta' and `lsb_delta' to 0.
  4242. Otherwise code that uses them will most certainly ruin the fixed
  4243. advance property.
  4244. * docs/CHANGES, docs/VERSION.DLL, README, Jamfile (RefDoc): Update
  4245. documentation and bump version number to 2.3.3.
  4246. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
  4247. * builds/unix/configure.raw (version_info): Set to 9:14:3.
  4248. 2007-03-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4249. * builds/unix/ftconfig.in: Disable Carbon framework dependency on
  4250. 64bit ABI on Mac OS X 10.4.x (ppc & i386). Found by Sean McBride.
  4251. * builds/vms/ftconfig.h: Ditto.
  4252. * include/freetype/config/ftconfig.h: Ditto.
  4253. 2007-03-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4254. * builds/unix/ftsystem.c (FT_Stream_Open): Temporary fix to prevent
  4255. 32bit unsigned long overflow by 64bit filesize on LP64 platform, as
  4256. proposed by Sean McBride:
  4257. http://lists.gnu.org/archive/html/freetype-devel/2007-03/msg00032.html
  4258. 2007-03-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4259. * builds/unix/ftconfig.in: Suppress SGI compiler's warning against
  4260. setjmp, proposed by Sean McBride:
  4261. http://lists.gnu.org/archive/html/freetype-devel/2007-03/msg00032.html
  4262. 2007-03-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4263. * builds/unix/configure.raw: Dequote `OS_INLINE' in comment of
  4264. conftest.c, to avoid unexpected shell evaluation. Possibly it is a
  4265. bug or undocumented behaviour of autoconf.
  4266. 2007-03-18 David Turner <david@freetype.org>
  4267. * src/truetype/ttinterp.c (Ins_MDRP): Another bytecode regression
  4268. fix; testing still needed.
  4269. * src/truetype/ttinterp.c (Ins_MD): Another bytecode regression fix.
  4270. 2007-03-17 David Turner <david@freetype.org>
  4271. * src/truetype/ttinterp.c (Ins_IP): Fix wrong handling of the
  4272. (undocumented) twilight zone special case.
  4273. 2007-03-09 Werner Lemberg <wl@gnu.org>
  4274. * Version 2.3.2 released.
  4275. =========================
  4276. Tag sources with `VER-2-3-2'.
  4277. * builds/win32/visualc/index.html,
  4278. builds/win32/visualc/freetype.dsp,
  4279. builds/win32/visualc/freetype.vcproj, README: s/2.3.1/2.3.2/,
  4280. s/231/232/.
  4281. 2007-03-08 David Turner <david@freetype.org>
  4282. * docs/CHANGES, docs/VERSION.DLL: Updated for upcoming release.
  4283. * builds/unix/configure.raw (version_info): Set to 9:13:3.
  4284. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
  4285. * README, Jamfile (RefDoc): s/2.3.1/2.3.2/.
  4286. * src/base/ftutil.c (ft_mem_strcpyn): Fix a bug that prevented the
  4287. function to work properly, over-writing user-provided buffers in
  4288. some cases. Reported by James Cloos <cloos@jhcloos.com>.
  4289. 2007-03-05 Werner Lemberg <wl@gnu.org>
  4290. * include/freetype/config/ftstdlib.h (ft_strstr): New wrapper
  4291. macro for `strstr'.
  4292. * src/truetype/ttobjs.c (tt_face_init): Use ft_strstr for scanning
  4293. `trick_names', as suggested by Ivan Nincic.
  4294. 2007-03-05 David Turner <david@freetype.org>
  4295. * src/base/ftinit.c (FT_Init_FreeType): Fix a small memory leak in
  4296. case FT_Init_FreeType fails for some reason. Problem reported by
  4297. Maximilian Schwerin <maximilian.schwerin@buelowssiege.de>.
  4298. * src/truetype/ttobs.c (tt_size_init_bytecode): Clear the `x_ppem'
  4299. and `y_ppem' fields of the `TT_Size.metrics' structure, not those of
  4300. `TT_Size.root.metrics'. Problem reported by Daniel Glöckner
  4301. <daniel-gl@gmx.net>.
  4302. * src/type1/t1afm.c (T1_Read_PFM): Read kerning values as 16-bit
  4303. signed values, not unsigned ones. Problem reported by Johannes
  4304. Walther <joh_walt@yahoo.de>.
  4305. 2007-02-21 David Turner <david@freetype.org>
  4306. * src/pshinter/pshalgo.c (psh_hint_align): Fix a bug in the hinting
  4307. of small and ghost stems in the Postscript interpreter.
  4308. 2007-02-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4309. * src/base/ftmac.c (FT_GetFileRef_From_Mac_ATS_Name): Fix memory
  4310. leak, patch by "Jjgod Jiang" <gzjjgod@gmail.com>.
  4311. * builds/mac/ftmac.c (FT_GetFileRef_From_Mac_ATS_Name): Ditto.
  4312. 2007-02-16 Werner Lemberg <wl@gnu.org>
  4313. * src/truetype/ttinterp.c (Ins_MD): Remove unused variable.
  4314. * src/autofit/aflatin.c (af_latin_hints_link_segments): Ditto.
  4315. 2007-02-14 David Turner <david@freetype.org>
  4316. It seems that the following changes fix most of the known
  4317. interpreter problems with my fonts, but more testing is needed,
  4318. though.
  4319. * src/truetype/ttinterp.c (FIX_BYTECODE): Activate.
  4320. (TT_MulFix14): Rewrite.
  4321. (Ins_MD, Ins_MDRP, Ins_IP) [FIX_BYTECODE]: Improved and updated.
  4322. (Ins_MIRP): Ditto.
  4323. 2007-02-12 Werner Lemberg <wl@gnu.org>
  4324. * src/truetype/ttinterp.c (Project_x, Project_y): Remove compiler
  4325. warnings.
  4326. * src/pcf/pcfread.c (pcf_interpret_style), src/bdf/bdfdrivr.c
  4327. (bdf_interpret_style): Ditto.
  4328. 2007-02-12 David Turner <david@freetype.org>
  4329. Simplify projection and dual-projection code interface.
  4330. * src/truetype/ttinterp.h (TT_Project_Func): Use `FT_Pos', not
  4331. FT_Vector' as argument type.
  4332. * src/truetype/ttinterp.c (CUR_Func_project, CUR_Func_dualproj):
  4333. Updated.
  4334. (CUR_fast_project, CUR_fast_dualproj): New macros.
  4335. (Project, Dual_Project, Project_x, Project_y): Updated.
  4336. (Ins_GC, Ins_SCFS, Ins_MDAP, Ins_MIAP, Ins_IP): Use new `fast'
  4337. macros.
  4338. * src/autofit/afloader.c (af_loader_load_g): Improve spacing
  4339. adjustments for the non-light auto-hinted modes. Gets rid of
  4340. `inter-letter spacing is too wide' problems.
  4341. * src/autofit/aflatin.c (af_latin_hints_link_segments,
  4342. af_latin_hints_compute_edges): Slight optimization of the segment
  4343. linker and better handling of serif segments to get rid of broken
  4344. `9' in Arial at 9pt (96dpi).
  4345. Introduce new string functions and the corresponding macros to get
  4346. rid of various uses of strcpy and other `evil' functions, as well as
  4347. to simplify a few things.
  4348. * include/freetype/internal/ftmemory.h (ft_mem_strdup, ft_mem_dup,
  4349. ft_mem_strcpyn): New declarations.
  4350. (FT_MEM_STRDUP, FT_STRDUP, FT_MEM_DUP, FT_DUP, FT_STRCPYN): New
  4351. macros.
  4352. * src/base/ftutil.c (ft_mem_dup, ft_mem_strdup, ft_mem_strcpyn): New
  4353. functions.
  4354. * src/bfd/bfddrivr.c (bdf_interpret_style, BDF_Face_Init),
  4355. src/bdf/bdflib.c (_bdf_add_property), src/pcf/pcfread.c
  4356. (pcf_get_properties, pcf_interpret_style, pcf_load_font),
  4357. src/cff/cffdrivr.c (cff_get_glyph_name), src/cff/cffload.c
  4358. (cff_index_get_sid_string), src/cff/cffobjs.c (cff_strcpy),
  4359. src/sfnt/sfdriver.c (sfnt_get_glyph_name), src/type1/t1driver.c
  4360. (t1_get_glyph_name), src/type42/t42drivr.c (t42_get_glyph_name,
  4361. t42_get_name_index): Use new functions and simplify code.
  4362. * builds/mac/ftmac.c (FT_FSPathMakeSpec): Don't use FT_MIN.
  4363. 2007-02-11 Werner Lemberg <wl@gnu.org>
  4364. * src/autofit/afloader.c (af_loader_load_g): Don't change width for
  4365. non-spacing glyphs.
  4366. 2007-02-07 Tom Parker <palfrey@tevp.net>
  4367. * src/cff/cffdrivr.c (cff_get_name_index): Protect against NULL
  4368. pointer.
  4369. 2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4370. * include/freetype/ftmac.h (FT_DEPRECATED_ATTRIBUTE):
  4371. Introduce __attribute((deprecated))__ to warn functions
  4372. which use non-ANSI data types in its interfaces.
  4373. (FT_GetFile_From_Mac_Name): Deprecated, using FSSpec.
  4374. (FT_GetFile_From_Mac_ATS_Name): Deprecated, using FSSpec.
  4375. (FT_New_Face_From_FSSpec): Deprecated, using FSSpec.
  4376. (FT_New_Face_From_FSRef): Deprecated, using FSRef.
  4377. * src/base/ftmac.c: Predefine FT_DEPRECATED_ATTRIBUTE as void
  4378. to avoid warning in building FreeType.
  4379. * builds/mac/ftmac.c: Ditto.
  4380. 2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4381. * src/base/ftbase.c: Fix to use builds/mac/ftmac.c, if configured
  4382. `--with-fsspec' etc. Replace #include "ftmac.c" with
  4383. #include <ftmac.c>.
  4384. 2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4385. * include/freetype/ftmac.h (FT_GetFilePath_From_Mac_ATS_Name):
  4386. Introduced as replacement of FT_GetFile_From_Mac_ATS_Name.
  4387. * src/base/ftmac.c (FT_GetFilePath_From_Mac_ATS_Name): Ditto.
  4388. (FT_GetFile_From_Mac_ATS_Name): Rewritten as wrapper of
  4389. FT_GetFilePath_From_Mac_ATS_Name.
  4390. * builds/mac/ftmac.c: Ditto.
  4391. 2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4392. * include/freetype/ftmac.h: Fixed wrong comment: FSSpec of
  4393. FT_GetFile_From_Mac_Name, FT_GetFile_From_Mac_ATS_Name are
  4394. for passing to FT_New_Face_From_FSSpec.
  4395. 2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4396. * builds/unix/configure.raw: Check whether Mac OS X system headers
  4397. can be built under ANSI C mode.
  4398. * src/base/ftmac.c (OS_INLINE): Redefine OS_INLINE by a version
  4399. compatible to ANSI C in case system headers are ANSI C incompatible.
  4400. * builds/mac/ftmac.c (OS_INLINE): Ditto.
  4401. 2007-02-01 Werner Lemberg <wl@gnu.org>
  4402. * include/freetype/ttnameid.h (TT_MS_LANGID_DZONGHKA_BHUTAN):
  4403. Explain why applications shouldn't use it. Found by Alexei.
  4404. 2007-02-01 Alexei Podtelezhnikov <apodtele@gmail.com>
  4405. * builds/unix/freetype2.m4 (AC_CHECK_FT2): Fix spelling of warning
  4406. message.
  4407. * src/gxvalid/gxvmort1.c
  4408. (gxv_mort_subtable_type1_substTable_validate): Fix debugging
  4409. message.
  4410. 2007-01-31 Werner Lemberg <wl@gnu.org>
  4411. * Version 2.3.1 released.
  4412. =========================
  4413. Tag sources with `VER-2-3-1-FINAL'.
  4414. * builds/win32/visualc/freetype.dsp,
  4415. builds/win32/visualc/freetype.vcproj: s/230/231/.
  4416. * builds/win32/visualc/index.html: s/221/231/.
  4417. * vms_make.com: Add `ftgasp'.
  4418. 2007-01-30 David Turner <david@freetype.org>
  4419. Tag sources with VER-2-3-1 to prepare release.
  4420. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
  4421. * docs/VERSION.DLL, docs/release, README, Jamfile (RefDoc):
  4422. s/2.3.0/2.3.1/.
  4423. * builds/unix/configure.raw (version_info): Set to 9:12:3.
  4424. * src/autofit/aftypes.h (AF_USE_WARPER), src/autofit/afloader.c
  4425. (af_loader_load_g): Disable the warper (i.e., the light hinting
  4426. improvements) to make a 2.3.1 bugfix release before introducing a
  4427. new feature. This should give us more time to tune and improve the
  4428. warper for the next release.
  4429. * docs/CHANGES: Update accordingly.
  4430. 2007-01-25 David Turner <david@freetype.org>
  4431. For light auto-hinting, improve glyph advance widths and resurrect
  4432. normal/full hinting to its normal quality.
  4433. * src/autofit/afhints.h (AF_GlyphHintsRec): New members `xmin_delta'
  4434. and `xmax_delta'.
  4435. * src/autofit/afhints.c (af_glyph_hints_reload): Reset `xmin_delta'
  4436. and `xmax_delta'.
  4437. * src/autofit/afloader.c (af_loader_load_g) <AF_USE_WARPER>: Replace
  4438. preprocessor conditional with if-clause, handling both light and
  4439. normal mode.
  4440. * src/autofit/afwarp.c (AF_WarpScore): Fine-tune again.
  4441. (af_warper_compute): Handle `xmin_delta' and `xmax_delta'.
  4442. 2007-01-25 Werner Lemberg <wl@gnu.org>
  4443. * docs/release: Updated -- Savannah uses a new uploading scheme.
  4444. 2007-01-25 David Turner <david@freetype.org>
  4445. * src/cff/cffload.c (cff_index_get_pointers): Improve previous fix.
  4446. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  4447. <cff_op_callsubr, cff_op_callgsubr>: Fix sanity check for empty
  4448. functions.
  4449. * docs/CHANGES: Document light auto-hinting improvement.
  4450. 2007-01-25 Werner Lemberg <wl@gnu.org>
  4451. * src/cff/cffload.c (cff_index_get_pointers): Handle last entry
  4452. correctly in a sanity check. Since this function is only used to
  4453. load local and global functions, any charstring that called the last
  4454. local/global function would fail otherwise. This fixes Savannah bug
  4455. #18867.
  4456. * docs/CHANGES: Document it.
  4457. 2007-01-23 David Turner <david@freetype.org>
  4458. * src/truetype/ttobjs.c (tt_size_ready_bytecode): Fix typo that
  4459. prevented compilation when disabling both the unpatented and the
  4460. bytecode interpreter in the TrueType font driver.
  4461. Fix and enable the warper to improve `light' hinting mode. This is
  4462. not necessarily a final version, but it seems to work well.
  4463. * src/autofit/aflatin.c (af_latin_hints_init) [AF_USE_WARPER]:
  4464. Disable code.
  4465. (af_latin_hints_apply) [AF_USE_WARPER]: Handle FT_RENDER_MODE_LIGHT.
  4466. * src/autofit/aftypes.h: Activate AF_USE_WARPER.
  4467. * src/autofit/afwarp.c (AF_WarpScore): Tune table.
  4468. (af_warper_compute_line_best): Fix array size of `scores'.
  4469. (af_warper_compute): Better handling of border cases.
  4470. * src/autofit/afwarp.h (AF_WarperRec): Remove unused members `X1'
  4471. and `X2'.
  4472. 2007-01-21 Werner Lemberg <wl@gnu.org>
  4473. * ChangeLog: Split off older entries into...
  4474. * ChangeLog.22: This new file.
  4475. 2007-01-21 Werner Lemberg <wl@gnu.org>
  4476. * docs/CHANGES: Document SHZ fix.
  4477. 2007-01-21 George Williams <gww@silcom.com>
  4478. * src/truetype/ttinterp.c (Ins_SHZ): SHZ doesn't move phantom
  4479. points.
  4480. 2007-01-21 Werner Lemberg <wl@gnu.org>
  4481. * src/sfnt/ttmtx.c (tt_face_get_metrics)
  4482. [!FT_CONFIG_OPTION_OLD_INTERNALS]: Fix limit check.
  4483. 2007-01-17 Werner Lemberg <wl@gnu.org>
  4484. * Version 2.3.0 released.
  4485. =========================
  4486. Tag sources with `VER-2-3-0-FINAL'.
  4487. 2007-01-17 Werner Lemberg <wl@gnu.org>
  4488. * docs/release: Updated.
  4489. 2007-01-16 David Turner <david@freetype.org>
  4490. * src/autofit/aflatin.c (af_latin_hints_compute_segments),
  4491. src/cff/cffdriver.c (cff_ps_get_font_info), src/truetype/ttobjs.c
  4492. (tt_face_init), src/truetype/ttinterp.c (Ins_SHC): Fix compiler
  4493. warnings.
  4494. 2007-01-15 Detlef Würkner <TetiSoft@apg.lahn.de>
  4495. * builds/amiga/makefile, builds/amiga/makefile.os4,
  4496. builds/amiga/smakefile: Add `ftgasp.c' and `ftlcdfil.c'.
  4497. * builds/amiga/include/freetype/config/ftconfig.h: Synchronize.
  4498. 2007-01-14 Detlef Würkner <TetiSoft@apg.lahn.de>
  4499. Fix various compiler warnings.
  4500. * src/truetype/ttdriver.c (tt_size_select), src/cff/cffobjs.h,
  4501. src/cff/cffobjs.c (cff_size_request), src/type42/t42objs.h:
  4502. s/index/strike_index/.
  4503. * src/base/ftobjs.c (FT_Match_Size): s/index/size_index/.
  4504. * src/gxvalid/gxvmorx5.c
  4505. (gxv_morx_subtable_type5_InsertList_validate): s/index/table_index/.
  4506. * src/truetype/ttinterp.c (Compute_Point_Displacement),
  4507. src/pcf/pcfread.c (pcf_seek_to_table_type): Avoid possibly
  4508. uninitialized variables.
  4509. 2007-01-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4510. * docs/CHANGES, docs/INSTALL.MAC: Improvements.
  4511. 2007-01-13 Werner Lemberg <wl@gnu.org>
  4512. * src/type1/t1afm.c (T1_Read_Metrics): MS Windows allows PFM
  4513. versions up to 0x3FF without complaining.
  4514. 2007-01-13 Derek Clegg <dclegg@apple.com>
  4515. Add FT_Get_PS_Font_Info interface to CFF driver.
  4516. * src/cff/cfftypes.h: Include FT_TYPE1_TABLES_H.
  4517. (CFF_FontRec): Add `font_info' field.
  4518. * src/cff/cffload.c: Include FT_TYPE1_TABLES_H.
  4519. (cff_font_done): Free font->font_info if necessary.
  4520. * src/cff/cffdrvr.c (cff_ps_get_font_info): New function.
  4521. (cff_service_ps_info): Register cff_ps_get_font_info.
  4522. 2007-01-13 Werner Lemberg <wl@gnu.org>
  4523. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Fix compilation
  4524. with C++ compiler.
  4525. * src/autofit/afhints.c (af_glyph_hints_dump_segments,
  4526. af_glyph_hints_dump_edges): Ditto.
  4527. * src/base/rules.mk (BASE_SRC): Remove ftgasp.c (it's already in
  4528. `modules.cfg').
  4529. * src/sfnt/ttsbit0.h: Remove.
  4530. * src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c.
  4531. 2007-01-12 David Turner <david@freetype.org>
  4532. * src/base/ftbitmap.c (ft_bitmap_assure_buffer): Fix memory stomping
  4533. bug in the bitmap emboldener if the pitch of the source bitmap is
  4534. much larger than its width.
  4535. * src/truetype/ttinterp.c (Update_Max): Fix aliasing-related
  4536. compilation warning.
  4537. 2007-01-12 Werner Lemberg <wl@gnu.org>
  4538. * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
  4539. `automake' CVS module from sources.redhat.com.
  4540. 2007-01-11 Werner Lemberg <wl@gnu.org>
  4541. * src/type1/t1load.c (is_space): Removed.
  4542. (parse_encoding, parse_charstrings): Use IS_PS_DELIM.
  4543. (parse_charstrings): Use IS_PS_TOKEN.
  4544. * autogen.sh: Avoid bash specific syntax.
  4545. 2007-01-11 David Turner <david@freetype.org>
  4546. * docs/CHANGES: Small update.
  4547. * builds/unix/configure.raw (version_info): Set to 9:11:3.
  4548. * src/base/ftobjs.c (IsMacResource): Fix a small bug that caused a
  4549. crash with some Mac OS X .dfont files. Submitted by Masatake
  4550. Yamato.
  4551. * autogen.sh: Small fix to get it working on Mac OS X properly:
  4552. The issue is that GNU libtool is called `glibtool' on this platform,
  4553. and we must call `glibtoolize', since `libtoolize' doesn't exist.
  4554. 2007-01-10 David Turner <david@freetype.org>
  4555. * all-sources: Tag all sources with VER-2-3-0-RC1 and
  4556. VER-2-3-0.
  4557. * Jamfile (RefDoc), README, builds/win32/visualc/freetype.dsp,
  4558. builds/win32/visualc/freetype.vcproj, docs/VERSION.DLL: Update
  4559. version number to 2.3.0.
  4560. * include/freetype/freetype.h (FREETYPE_MINOR): Set to 3.
  4561. (FREETYPE_PATCH): Set to 0.
  4562. * include/freetype/ftchapters.h, include/freetype/ftgasp.h,
  4563. include/freetype/ftlcdfil.h: Update reference documentation with
  4564. GASP support and LCD filtering sections.
  4565. * src/pshinter/pshalgo.c (psh_glyph_compute_inflections): Fix a typo
  4566. which created an endless loop with some malformed font files.
  4567. 2007-01-10 Derek Clegg <dclegg@apple.com>
  4568. * src/type1/t1load.c (T1_Get_MM_Var): Always return fixed point
  4569. values.
  4570. 2007-01-08 David Turner <david@freetype.org>
  4571. * docs/CHANGES: Updated.
  4572. * include/freetype/ftgasp.h, src/base/ftgasp.c: New files which add
  4573. a new API `FT_Get_Gasp' to return entries of the `gasp' table
  4574. corresponding to a given character pixel size.
  4575. * src/sfnt/ttload.c (tt_face_load_gasp): Add version check for the
  4576. `gasp' table, in order to avoid potential problems with later
  4577. versions.
  4578. * include/freetype/config/ftheader.h (FT_GASP_H): New macro for
  4579. <freetype/ftgasp.h>.
  4580. * src/base/rules.mk (BASE_SRC), src/base/Jamfile (_sources),
  4581. modules.cfg (BASE_EXTENSIONS), builds/win32/visualc/freetype.dsp,
  4582. builds/win32/visualc/freetype.vcproj: Add src/base/ftgasp.c to the
  4583. default build.
  4584. 2007-01-07 Werner Lemberg <wl@gnu.org>
  4585. * src/cid/cidparse.c (cid_parser_new): Improve error message for
  4586. Type 11 fonts.
  4587. Scan for `/sfnts' token.
  4588. 2007-01-07 Werner Lemberg <wl@gnu.org>
  4589. * src/cid/cidparse.c (cid_parser_new): Reject Type 11 fonts.
  4590. 2007-01-06 Werner Lemberg <wl@gnu.org>
  4591. * src/cff/cffload.c (cff_index_init): Remove unused variable.
  4592. (cff_index_read_offset): s/perror/errorp/ to avoid global shadowing.
  4593. 2007-01-04 David Turner <david@freetype.org>
  4594. * src/pfr/pfrobjs.c (pfr_face_init): Detect non-scalable fonts
  4595. correctly. This fixes Savannah bug #17876.
  4596. Do not allocate interpreter-specific tables in memory if we are not
  4597. going to load glyphs with the bytecode interpreter anyway.
  4598. * src/truetype/ttgload.c (tt_loader_init): Load execution context
  4599. only if glyph is hinted.
  4600. Updated.
  4601. * src/truetype/ttobjs.h (TT_SizeRec): Add members `bytecode_ready'
  4602. and `cvs_ready'.
  4603. Add `tt_size_ready_bytecode' declaration.
  4604. * src/truetype/ttobjs.c (tt_size_done_bytecode,
  4605. tt_size_init_bytecode, tt_size_ready_bytecode): New functions.
  4606. (tt_size_init): Move most code into `tt_size_init_bytecode'.
  4607. (tt_size_done): Move most code into `tt_size_done_bytecode'.
  4608. (tt_size_reset): Move some code to `tt_size_ready_bytecode'.
  4609. Don't extract the metrics table from the SFNT font file. Instead,
  4610. reparse it on each glyph load. The runtime difference is not
  4611. noticeable, and it can save a lot of heap memory when memory-mapped
  4612. files are not used.
  4613. * include/freetype/internal/tttypes.h (TT_FaceRec): Add members
  4614. `horz_metrics_offset' and `vert_metrics_ofset'.
  4615. * src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_get_metrics):
  4616. Updated.
  4617. * src/sfnt/ttcmap.c (tt_cmap4_validate): Slight optimization.
  4618. Do not load the CFF index offsets into memory, since this wastes a
  4619. *lot* of heap memory with large Asian CFF fonts. There is no
  4620. significant performance loss.
  4621. * src/cff/cffload.h: Add `cff_charset_cid_to_gindex' declaration.
  4622. * src/cff/cfftypes.h (CFF_IndexRec): Add fields `start' and
  4623. `data_size'.
  4624. (CFF_CharsetRec): Add field `num_glyphs'.
  4625. * src/cff/cffload.c (cff_index_read_offset, cff_index_load_offsets,
  4626. cff_charset_cid_to_gindex): New functions.
  4627. (cff_new_index): Renamed to...
  4628. (cff_index_init): This. Update all callers.
  4629. Updated -- some code has been moved to `cff_index_load_offsets'.
  4630. (cff_done_index): Renamed to...
  4631. (cff_index_done): This. Update all callers.
  4632. (cff_index_get_pointers, cff_index_access_element): Updated to use
  4633. stream offsets.
  4634. (cff_charset_compute_cids): Set `num_glyphs' field.
  4635. (cff_encoding_load): Updated.
  4636. * src/cff/cffgload.c (cff_slot_load): Updated.
  4637. 2007-01-04 David Turner <david@freetype.org>
  4638. * docs/INSTALL.UNIX: Simplify some parts, add reference to
  4639. autogen.sh and pointer to README.CVS.
  4640. * README.CVS: Add common problem description and solution
  4641. when running autogen.sh.
  4642. * docs/INSTALL: Add reference to MacOS X.
  4643. * docs/MAKEPP, docs/INSTALL.MAC: New documentation files.
  4644. * docs/TODO: Remove obsolete items.
  4645. * src/raster/ftraster.c: (TRaster_Instance): Replace it with...
  4646. (TWorker): This.
  4647. Remove `count_table' and `memory'.
  4648. Make `grays' a pointer.
  4649. (TRaster): New structure.
  4650. (count_table): New static array.
  4651. (RAS_ARGS, RAS_ARG, RAS_VARS, RAS_VAR, FT_UNUSED_RASTER, cur_ras,
  4652. Vertical_Gray_Sweep_Step, ft_black_new, ft_black_done,
  4653. ft_black_set_mode, ft_black_render): Updated.
  4654. (ft_black_init): Don't initialize `count_table'.
  4655. (ft_black_reset): Use the render pool. This saves about 6KB of
  4656. heap space for each FT_Library instance.
  4657. * src/smooth/ftgrays.c (TRaster): Replaced with...
  4658. (TWorker): This.
  4659. Remove `memory'.
  4660. (TRaster): New structure.
  4661. (RAS_ARG_, RAS_ARG, RAS_VAR_, RAS_VAR, ras, gray_render_line,
  4662. gray_move_to, gray_line_to, gray_conic_to, gray_cubic_to,
  4663. gray_render_span, gray_raster_render): Updated.
  4664. (gray_raster_reset): Use the render pool. This saves about 6KB of
  4665. heap space for each FT_Library instance.
  4666. * src/sfnt/sfobjs.c, src/sfnt/ttkern.c, src/sfnt/ttkern.h,
  4667. src/sfnt/ttmtx.c, src/sfnt/ttsbit.c, src/sfnt/ttsbit.h,
  4668. src/truetype/ttpload.c, include/freetype/config/ftoption.h: Remove
  4669. FT_OPTIMIZE_MEMORY macro (and code for !FT_OPTIMIZE_MEMORY) since
  4670. the optimization is no longer experimental.
  4671. * src/pshinter/pshalgo.c (psh_glyph_interpolate_normal_points):
  4672. Remove a typo that results in no hinting and a memory leak with some
  4673. large Asian CFF fonts.
  4674. * src/base/ftobjs.c (FT_Done_Library): Remove a subtle memory leak
  4675. which happens when FT_Done_Library is called with still opened
  4676. CFF_Faces in it. We need to close all faces before destroying the
  4677. modules, or else some bad things (memory leaks) may happen.
  4678. 2007-01-02 Werner Lemberg <wl@gnu.org>
  4679. * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate):
  4680. Remove compiler warning.
  4681. 2007-01-02 David Turner <david@freetype.org>
  4682. * src/sfnt/sfobjs.c: Add documentation comment.
  4683. 2006-12-31 Masatake YAMATO <jet@gyve.org>
  4684. * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate): New
  4685. function.
  4686. Check uniqueness of the gid pairs.
  4687. (gxv_kern_subtable_fmt0_validate): Move some code to
  4688. `gxv_kern_subtable_fmt0_pairs_validate'.
  4689. 2006-12-22 David Turner <david@freetype.org>
  4690. * src/autofit/aflatin.c, src/truetype/ttgload.c: Remove compiler
  4691. warnings.
  4692. * builds/win32/visualc/freetype.vcproj: Add _CRT_SECURE_NO_DEPRECATE
  4693. to avoid deprecation warnings with Visual C++ 8.
  4694. 2006-12-16 Anders Kaseorg <anders@kaseorg.com>
  4695. * src/base/ftlcdfil.c (FT_Library_SetLcdFilter)
  4696. [FT_FORCE_LIGHT_LCD_FILTER]: Fix typo.
  4697. 2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4698. * include/freetype/internal/services/svotval.h: Add `volatile' to
  4699. sync with the modification by Jens Claudius on 2006-08-22; cf.
  4700. http://cvs.savannah.gnu.org/viewcvs/freetype/freetype2/src/otvalid/otvmod.c?r1=1.4&r2=1.5
  4701. 2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4702. * src/base/ftmac.c: Specialized for Mac OS X only.
  4703. * builds/unix/ftconfig.in: Fixed for ppc64 missing Carbon framework.
  4704. * builds/unix/configure.raw: Ditto. When explicit switches for
  4705. FSSpec/FSRef/QuickDraw/ATS availability are given to configure,
  4706. builds/mac/ftmac.c is used instead of default src/base/ftmac.c.
  4707. 2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4708. * builds/mac/ftmac.c: Copied src/base/ftmac.c for legacy system.
  4709. * builds/mac/FreeType.m68k_cfm.make.txt: Fix to use builds/mac/ftmac.c
  4710. instead of src/base/ftmac.c
  4711. * builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
  4712. * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
  4713. * builds/mac/FreeType.m68k_far.make.txt: Ditto, and exclude gxvalid.c
  4714. that cannot be built at present.
  4715. 2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4716. * src/base/ftobjs.c: Improvement of resource fork handler for
  4717. POSIX, cf.
  4718. http://lists.gnu.org/archive/html/freetype-devel/2006-10/msg00025.html
  4719. (Mac_Read_sfnt_Resource): Count only `sfnt' resource of suitcase font
  4720. format or .dfont, to simulate the face index number counted by ftmac.c.
  4721. (IsMacResource): Return the number of scalable faces correctly.
  4722. 2006-12-10 Werner Lemberg <wl@gnu.org>
  4723. * builds/toplevel.mk (version): Protect against `distclean' target.
  4724. 2006-12-09 Werner Lemberg <wl@gnu.org>
  4725. * builds/*/*def.mk, builds/*/detect.mk (CAT): Define to either `cat'
  4726. or `type'.
  4727. * builds/freetype.mk (version): Extracted from freetype.h, using
  4728. GNU make's built-in string functions.
  4729. (refdoc): Use $(version) instead of static version number.
  4730. 2006-12-08 Werner Lemberg <wl@gnu.org>
  4731. * builds/toplevel.mk (dist): Extract version number from freetype.h.
  4732. 2006-12-08 Vladimir Volovich <vvv@vsu.ru>
  4733. * src/tools/apinames.c (State): Remove final comma in structure --
  4734. xlc v5 under AIX 4.3 doesn't like this.
  4735. 2006-12-07 David Turner <david@freetype.org>
  4736. * src/autofit/afloader.c (af_loader_load_g): Small adjustment
  4737. to the spacing of auto-fitted glyphs. This only impacts rare
  4738. cases (e.g., Arial Bold at rather small character sizes).
  4739. 2006-12-03 Werner Lemberg <wl@gnu.org>
  4740. * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
  4741. 2006-12-01 Werner Lemberg <wl@gnu.org>
  4742. * src/sfnt/sfobjs.c (tt_face_get_name): All Unicode strings are
  4743. encoded in UTF-16BE. Patch from Rajeev Pahuja <rpahuja@esri.com>.
  4744. (tt_name_entry_ascii_from_ucs4): Removed.
  4745. * include/freetype/ftxf86.h: Fix and extend comment so that it
  4746. appears in the documentation.
  4747. * include/freetype/ftchapters.h: Add `font_format' section.
  4748. * src/tools/docmaker/tohtml.py (HtmlFormatter::index_exit): Add link
  4749. to TOC in index page.
  4750. 2006-11-28 David Turner <david@freetype.org>
  4751. * src/smooth/ftgrays.c (gray_raster_render): Return 0 when we are
  4752. trying to render into a zero-width/height bitmap, not an error code.
  4753. * src/truetype/ttobjs.c (tt_face_init): Fix typo in previous patch.
  4754. * src/smooth/ftgrays.c: Remove hard-coded error values; use FreeType
  4755. ones instead.
  4756. * src/autofit/afhints.c (af_glyph_hints_dump_segments): Remove unused
  4757. variable.
  4758. 2006-11-26 Pierre Hanser <hanser@club-internet.fr>
  4759. * src/truetype/ttobjs.c (tt_face_init): Protect against NULL pointer.
  4760. 2006-11-25 David Turner <david@freetype.org>
  4761. * src/autofit/afhints.c (af_glyph_hints_dump_points,
  4762. af_glyph_hints_dump_segments, af_glyph_hints_dumpedges) [!AF_DEBUG]:
  4763. Add stubs to link the `ftgrid' test program when debugging is
  4764. disabled in the auto-hinter.
  4765. 2006-11-23 David Turner <david@freetype.org>
  4766. * src/autofit/afhints.c, src/autofit/afhints.h, src/autofit/aflatin.c,
  4767. src/autofit/aftypes.h: Miscellaneous auto-hinter improvements.
  4768. * src/autofit/afhints.c (af_glyph_hints_dump_segments) [AF_DEBUG]:
  4769. Emit more sensible information.
  4770. * src/autofit/afhints.h (AF_SegmentRec): Add `height' member.
  4771. * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Improve
  4772. rounding of blue values.
  4773. (af_latin_hints_compute_segments): Hint segment heights.
  4774. (af_latin_hints_link_segments): Reduce `len_score' value.
  4775. (af_latin_hints_compute_edges): Increase `segment_length_threshold'
  4776. value and use `height' member for comparisons.
  4777. (af_latin_hint_edges): Extend logging message.
  4778. Improve handling of remaining edges.
  4779. 2006-11-22 Werner Lemberg <wl@gnu.org>
  4780. Fix Savannah bug #15553.
  4781. * src/truetype/ttgload.c (tt_loader_init): Re-execute the CVT
  4782. program after a change from mono to grayscaling (and vice versa).
  4783. Use correct constant for comparison to get `exec->grayscale'.
  4784. 2006-11-18 Werner Lemberg <wl@gnu.org>
  4785. Because FT_Load_Glyph expects CID values for CID-keyed fonts, the
  4786. test for a valid glyph index must be deferred to the font drivers.
  4787. This patch fixes Savannah bug #18301.
  4788. * src/base/ftobjs.c (FT_Load_Glyph): Don't check `glyph_index'.
  4789. * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/cff/cffgload.c
  4790. (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph),
  4791. src/pcf/pcfdrivr.c (PCF_Glyph_Load), src/pfr/pfrobjs.c
  4792. (pfr_slot_load), src/truetype/ttdriver.c (Load_Glyph),
  4793. src/type1/t1gload.c (T1_Load_Glyph), src/winfonts/winfnt.c
  4794. (FNT_Load_Glyph): Check validity of `glyph_index'.
  4795. 2006-11-13 David Turner <david@freetype.org>
  4796. * src/truetype/ttinterp.c (FIX_BYTECODE): Undefine. The interpreter
  4797. `enhancements' are still too buggy for general use.
  4798. * src/base/ftlcdfil.c: Add support for FT_FORCE_LIGHT_LCD_FILTER and
  4799. FT_FORCE_LEGACY_LCD_FILTER at compile time. Define these macros
  4800. when building the library to change the default LCD filter to be
  4801. used. This is only useful for experimentation.
  4802. * include/freetype/ftlcdfil.h: Update documentation.
  4803. 2006-11-10 David Turner <david@freetype.org>
  4804. * src/smooth/ftsmooth.c: API change for the LCD
  4805. filter. The FT_LcdFilter value is an enumeration describing which
  4806. filter to apply, with new values FT_LCD_FILTER_LIGHT and
  4807. FT_LCD_FILTER_LEGACY (the latter implements the LibXft original
  4808. algorithm which produces strong color fringes for everything
  4809. except very-well hinted text).
  4810. * include/freetype/ftlcdfil.h (FT_Library_SetLcdFilter): Change
  4811. second parameter to an enum type.
  4812. * src/base/ftlcdfil.c (USE_LEGACY): Define.
  4813. (_ft_lcd_filter): Rename to...
  4814. (_ft_lcd_filter_fir): This.
  4815. Update parameters.
  4816. (_ft_lcd_filter_legacy) [USE_LEGACY]: New filter function.
  4817. (FT_Library_Set_LcdFilter): Update parameters.
  4818. Handle new filter modes.
  4819. * include/internal/ftobjs.h: Include FT_LCD_FILTER_H.
  4820. (FT_Bitmap_LcdFilterFunc): Change third argument to `FT_Library'.
  4821. (FT_LibraryRec) [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Add filtering
  4822. callback and update other fields.
  4823. * src/smooth/ftsmooth.c (ft_smooth_render_generic)
  4824. [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Update.
  4825. Other minor improvements.
  4826. * src/autofit/aflatin.c: Various tiny improvements that drastically
  4827. improve the handling of serif fonts and of LCD/LCD_V hinting modes.
  4828. (af_latin_hints_compute_edges): Fix typo.
  4829. (af_latin_compute_stem_width): Take better care of diagonal stems.
  4830. 2006-11-09 David Turner <david@freetype.org>
  4831. * src/pshinter/pshalgo.c (psh_glyph_compute_inflections): Fix
  4832. typo which created a variable-used-before-initialized bug.
  4833. 2006-11-07 Zhe Su <james.su@gmail.com>
  4834. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout
  4835. also.
  4836. 2006-11-03 Werner Lemberg <wl@gnu.org>
  4837. * src/base/ftcalc.c: Don't use `long long' but `FT_Int64'.
  4838. 2006-11-02 David Turner <david@freetype.org>
  4839. Add a few tweaks to better handle serif fonts.
  4840. Add more debugging messages.
  4841. * src/autofit/aflatin.c (af_latin_hints_compute_edges): Ignore
  4842. segments that are less than 1.5 pixels high. This gets rid of
  4843. *many* corner cases with serifs.
  4844. (af_latin_align_linked_edge): Add logging message.
  4845. (af_latin_hint_edges): Use AF_HINTS_DO_BLUES.
  4846. Add logging messages.
  4847. Handle AF_EDGE_FLAG flag specially.
  4848. * src/autofit/afmodule.c [AF_DEBUG]: Add _af_debug,
  4849. _af_debug_disable_blue_hints, and _af_debug_hints variables.
  4850. * src/autofit/aftypes.h (AF_LOG) [AF_DEBUG]: Use _af_debug.
  4851. Update external declarations.
  4852. (af_corner_orientation, af_corner_is_flat): Replaced by...
  4853. * include/freetype/internal/ftcalc.h (ft_corner_orientation,
  4854. ft_corner_is_flat): These declarations.
  4855. * src/autofit/afangles.c (af_corner_orientation, af_corner_is_flat):
  4856. Comment out. Replaced by...
  4857. * src/base/ftcalc.h (ft_corner_orientation, ft_corner_is_flat):
  4858. These functions. Update all callers.
  4859. (FT_Add64) [!FT_LONG64]: Simplify.
  4860. * src/autofit/afhints.c: Include FT_INTERNAL_CALC_H.
  4861. (af_direction_compute): Add a missing FT_ABS call. This bug caused
  4862. production of garbage by missing lots of segments.
  4863. * src/autofit/afhints.h (AF_HINTS_DO_BLUES): New macro.
  4864. * src/autofit/afloader.c (af_loader_init, af_loader_done)
  4865. [AF_DEBUG]: Set _af_debug_hints.
  4866. * src/pshinter/pshalgo.c: Include FT_INTERNAL_CALC_H.
  4867. (psh_corner_is_flat, psh_corner_orientation): Use ft_corner_is_flat
  4868. and ft_corner_orientation.
  4869. * src/gzip/inftrees.c (huft_build): Remove compiler warning.
  4870. 2006-10-24 Werner Lemberg <wl@gnu.org>
  4871. * src/cff/cffload.c (cff_encoding_load): Remove unused variable.
  4872. * src/base/ftobjs.c (FT_Select_Charmap): Disallow FT_ENCODING_NONE
  4873. as argument.
  4874. 2006-10-23 Zhe Su <zsu@novell.com>
  4875. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Re-implement to
  4876. better deal with broken Asian fonts with strange glyphs, having
  4877. self-intersections and other peculiarities. The used algorithm is
  4878. based on the nonzero winding rule.
  4879. 2006-10-23 David Turner <david@freetype.org>
  4880. Speed up the CFF font loader. With some large CFF fonts,
  4881. FT_Open_Face is now more than three times faster.
  4882. * src/cff/cffload.c (cff_get_offset): Removed.
  4883. (cff_new_index): Inline functionality of `cff_get_offset'.
  4884. (cff_charset_compute_cids, cff_charset_free_cids): New functions.
  4885. (cff_charset_done): Call `cff_charset_free_cids'.
  4886. (cff_charset_load): Call `cff_charset_compute_cids'.
  4887. (cff_encoding_load) <Populate>: Ditto, to replace inefficient loop.
  4888. * src/sfnt/ttmtx.c (tt_face_load_hmtx): Replace calls to FT_GET_XXX
  4889. with FT_NEXT_XXX.
  4890. Speed up the Postscript hinter, with more than 100% speed increase
  4891. on my machine.
  4892. * src/pshinter/pshalgo.c (psh_corner_is_flat,
  4893. psh_corner_orientation): New functions.
  4894. (psh_glyph_compute_inflections): Merge loops for efficiency.
  4895. Use `psh_corner_orientation'.
  4896. (psh_glyph_init): Use `psh_corner_is_flat'.
  4897. (psh_hint_table_find_strong_point): Renamed to...
  4898. (psh_hint_table_find_strong_points): This.
  4899. Rewrite, adding argument to handle all points at once.
  4900. Update all callers.
  4901. (PSH_MAX_STRONG_INTERNAL): New macro.
  4902. (psh_glyph_interpolate_normal_points): Rewrite for efficiency.
  4903. 2006-10-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4904. * src/base/ftmac.c (FT_New_Face_From_FOND): Initialize variable
  4905. `error' with FT_Err_Ok.
  4906. 2006-10-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4907. * docs/INSTALL.CROSS: New document file for cross-building.
  4908. * builds/unix/configure.raw: Preliminary cross-building support.
  4909. Find native C compiler and pass it by CC_BUILD, and
  4910. find suffix for native executable and pass it by EXEEXT_BUILD.
  4911. Also suffix for target executable is passed by EXEEXT.
  4912. * builds/unix/unix-cc.in (CCraw_build, E_BUILD): New variables to
  4913. build `apinames' which runs on building system. They are set by
  4914. CC_BUILD and EXEEXT_BUILD.
  4915. * builds/exports.mk (APINAMES_EXE): Change the extension for
  4916. apinames from the suffix for target (E) to that for building host
  4917. (E_BUILD).
  4918. 2006-10-12 Werner Lemberg <wl@gnu.org>
  4919. * docs/INSTALL.UNX, docs/UPGRADE.UNX: Renamed to...
  4920. * docs/INSTALL.UNIX, docs/UPGRADE.UNIX: This. Update all documents
  4921. which reference those files.
  4922. 2006-10-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  4923. * builds/unix/configure.raw (FT2_EXTRA_LIBS): New variable. It is
  4924. embedded in freetype2.pc and freetype-config. Use it to record
  4925. Carbon dependency of MacOSX.
  4926. * builds/unix/freetype2.in: Embed FT2_EXTRA_LIBS.
  4927. * builds/unix/freetype-config.in: Ditto.
  4928. 2006-10-11 Werner Lemberg <wl@gnu.org>
  4929. * devel/ftoption.h (FT_CONFIG_OPTION_SUBPIXEL_RENDERING): Define for
  4930. development.
  4931. 2006-10-03 Jens Claudius <jens.claudius@yahoo.com>
  4932. * include/freetype/config/ftstdlib.h: Cast away volatileness from
  4933. argument to ft_setjmp.
  4934. * include/freetype/internal/ftvalid.h: Add comment that
  4935. ft_validator_run must not be used.
  4936. 2006-10-01 Werner Lemberg <wl@gnu.org>
  4937. * src/base/ftbase.c: Undo change from 2006-09-30.
  4938. * src/base/rules.mk (BASE_SRC): Remove `ftlcdfil.c'.
  4939. 2006-09-30 David Turner <david@freetype.org>
  4940. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec):
  4941. s/unpatented_hinting/ignore_unpatented_hinter/.
  4942. Update all callers.
  4943. * src/base/ftobjs.c (FT_Load_Glyph): Refine the algorithm whether
  4944. auto-hinting shall be used or not.
  4945. * src/truetype/ttobjs.c (tt_face_init): Ditto.
  4946. 2006-09-30 Werner Lemberg <wl@gnu.org>
  4947. * src/base/rules.mk (BASE_SRC): Remove `ftapi.c' (which is no longer
  4948. in use).
  4949. * src/base/ftbase.c: Include `ftlcdfil.c'.
  4950. 2006-09-29 Werner Lemberg <wl@gnu.org>
  4951. * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Fix algorithm for
  4952. overlapping segments. Bug reported by Stefan Koch.
  4953. 2006-09-28 David Turner <david@freetype.org>
  4954. Fix a bug in the automatic unpatented hinting support which prevents
  4955. normal bytecode hinting to work properly.
  4956. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec):
  4957. s/force_autohint/unpatented_hinting/. Update all callers.
  4958. * src/base/ftobjs.c (FT_Load_Glyph): Updated code.
  4959. * src/autofit/aftypes.h (AF_DEBUG): Undefine to get rid of traces.
  4960. 2006-09-27 David Turner <david@freetype.org>
  4961. * include/freetype/freetype.h (FT_FREETYPE_PATCH): Set to 2.
  4962. Add a new API to support color filtering of subpixel glyph bitmaps.
  4963. In a default build, the function `FT_Library_SetLcdFilter' returns
  4964. `FT_Err_Unimplemented_Feature'; you need to #define
  4965. FT_CONFIG_OPTION_SUBPIXEL_RENDERING in ftoption.h to compile the
  4966. real implementation.
  4967. * include/freetype/ftlcdfil.h, src/base/ftlcdfil.c: New files.
  4968. * include/freetype/internal/ftobjs.h (FT_Bitmap_LcdFilterFunc): New
  4969. typedef.
  4970. (FT_LibraryRec) [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: New members
  4971. `lcd_filter_weights' and `lcd_filter'.
  4972. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove arguments
  4973. `hmul' and `vmul'.
  4974. Handle subpixel rendering.
  4975. Simplify function.
  4976. (ft_smooth_render_lcd): Use `FT_RENDER_MODE_LCD'.
  4977. (ft_smooth_render_lcd_v): Use `FT_RENDER_MODE_LCD_V'.
  4978. * include/freetype/config/ftheader.h (FT_LCD_FILTER_H): New macro,
  4979. pointing to <freetype/ftlcdfil.h>.
  4980. * src/base/Jamfile (_sources), src/base/rules.mk (BASE_SRC),
  4981. vms_make.com: Add `ftlcdfil.c' to the list of compiled source files.
  4982. * modules.cfg (BASE_EXTENSIONS): Add ftlcdfil.c.
  4983. 2006-09-26 David Bustin
  4984. * src/pfr/pfrobjs.c (pfr_face_get_kerning): Skip adjustment bytes
  4985. correctly. Reported as Savannah bug #17843.
  4986. 2006-09-26 David Turner <david@freetype.org>
  4987. * src/autofit/afhints.h (AF_HINTS_DO_HORIZONTAL,
  4988. AF_HINTS_DO_VERTICAL, AF_HINTS_DO_ADVANCE): New macros to disable
  4989. horizontal and vertical hinting for the purpose of debugging the
  4990. auto-fitter.
  4991. * src/autofit/afmodule.c (_af_debug_disable_horz_hints,
  4992. _af_debug_disable_vert_hints) [AF_DEBUG]: New global variables.
  4993. * src/autofit/aftypes.h [AF_DEBUG]: Declare above variables.
  4994. * include/freetype/config/ftoption.h, devel/ftoption.h
  4995. (FT_CONFIG_OPTION_SUBPIXEL_RENDERING): New macro to control whether
  4996. we want to compile LCD-optimized rendering code (à la ClearType) or
  4997. not. The macro *must* be disabled in default builds of the library
  4998. for patent reasons.
  4999. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Disable
  5000. LCD-specific rendering when FT_CONFIG_OPTION_SUBPIXEL_RENDERING
  5001. isn't defined at compile time. This only changes the content of the
  5002. rendered glyph to match the one of normal gray-level rendering,
  5003. hence clients should not need to be modified.
  5004. * docs/CHANGES: Updated.
  5005. 2006-09-18 Garrick Meeker <garrick@digitalanarchy.com>
  5006. * src/base/ftmac.c (FT_New_Face_From_FOND): Fall back to SFNT if
  5007. LWFN fails and both are available.
  5008. 2006-09-11 David Turner <david@freetype.org>
  5009. * src/sfnt/sfobjs.c (tt_face_get_name): Support some fonts which
  5010. report their English names through an Apple Roman
  5011. (platform,encoding) pair, with language_id != English.
  5012. If the font uses another name entry with language_id == English, it
  5013. will be selected correctly, though.
  5014. * src/truetype/ttobjs.c (tt_face_init): Add unpatented hinting
  5015. selection for `mingli.ttf'.
  5016. 2006-09-05 Werner Lemberg <wl@gnu.org>
  5017. * src/truetype/ttpload.c (tt_face_load_hdmx): Handle `record_size'
  5018. values which have the upper two bytes set to 0xFF instead of 0x00
  5019. (as it happens in at least two CJKV fonts, `HAN NOM A.ttf' and
  5020. `HAN NOM B.ttf').
  5021. * src/smooth/ftgrays.c [GRAYS_USE_GAMMA]: Really remove all code.
  5022. 2006-09-05 David Turner <david@freetype.org>
  5023. Minor source cleanups and optimizations.
  5024. * src/smooth/ftgrays.c (GRAYS_COMPACT): Removed.
  5025. (TRaster): Remove `count_ex' and `count_ey'.
  5026. (gray_find_cell): Remove 2nd and 3rd argument.
  5027. (gray_alloc_cell): Merged with `gray_find_cell'.
  5028. (gray_record_cell): Simplify.
  5029. (gray_set_cell): Rewrite.
  5030. (gray_start_cell): Apply offsets to `ras.ex' and `ras.ey'.
  5031. (gray_render_span): Don't use FT_MEM_SET for small values.
  5032. (gray_dump_cells) [DEBUG_GRAYS]: New function.
  5033. (gray_sweep): Avoid buffer overwrites when to drawing the end of a
  5034. bitmap scanline.
  5035. (gray_convert_glyph): Fix speed-up.
  5036. 2006-09-04 David Turner <david@freetype.org>
  5037. * src/smooth/ftgrays.c (gray_convert_glyphs): Make it work with
  5038. 64bit processors.
  5039. 2006-09-03 Werner Lemberg <wl@gnu.org>
  5040. * devel/ftoption.h: Synchronize with
  5041. include/freetype/config/ftoption.h.
  5042. * src/smooth/ftgrays.c (gray_record_cell): Remove shadowing
  5043. variable declaration.
  5044. (gray_convert_glyph): Fix compiler warnings.
  5045. 2006-09-01 David Turner <david@freetype.org>
  5046. * src/truetype/ttobjs.c (tt_face_init): Update the TrueType loader
  5047. to recognize a few fonts that require the automatic unpatented
  5048. loader.
  5049. * src/smooth/ftgrays.c: Optmize the performance of the anti-aliased
  5050. rasterizer. The speed improvement is between 15% and 25%, depending
  5051. on the font data.
  5052. (GRAYS_USE_GAMMA, GRAYS_COMPACT): Removed, and all associated code.
  5053. (TCell): Redefine.
  5054. (TRaster): New members `buffer', `buffer_size', `ycells', `ycount'.
  5055. (gray_init_cells): Updated.
  5056. (gray_find_cell, gray_alloc_cell): New functions.
  5057. (gray_record_cell): Rewritten to use `gray_find_cell' and
  5058. `gray_alloc_cell'.
  5059. (PACK, LESS_THAN, SWAP_CELLS, DEBUG_SORT, QUICK_SORT, SHELL_SORT,
  5060. QSORT_THRESHOLD):
  5061. Removed.
  5062. (gray_shell_sort, gray_quick_sort, gray_check_sort,
  5063. gray_dump_cells): Removed.
  5064. (gray_sweep): Rewritten.
  5065. (gray_convert_glyph): Rewrite code which used one of the sorting
  5066. functions.
  5067. (gray_raster_render): Updated.
  5068. 2006-08-29 Dr. Werner Fink <werner@suse.de>
  5069. * configure: Make it possible to handle configure options which
  5070. have strings containing spaces.
  5071. 2006-08-27 David Turner <david@freetype.org>
  5072. * include/freetype/config/ftoption.h (TT_USE_BYTECODE_INTERPRETER):
  5073. New macro, defined if either TT_CONFIG_OPTION_BYTECODE_INTERPRETER
  5074. or TT_CONFIG_OPTION_UNPATENTED_HINTING is defined.
  5075. * include/freetype/internal/ftcalc.h, src/base/ftcalc.c,
  5076. src/truetype/truetype.c, src/truetype/ttdriver.c,
  5077. src/truetype/ttgload.c, src/truetype/ttgload.h,
  5078. src/truetype/ttinterp.c, src/truetype/ttobjs.c,
  5079. src/truetype/ttobjs.h, src/truetype/ttpload.c, src/type42/t42drivr.c:
  5080. s/TT_CONFIG_OPTION_BYTECODE_INTERPRETER/TT_USE_BYTECODE_INTERPRETER/.
  5081. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New
  5082. member `force_autohint'.
  5083. * src/base/ftobjs.c (FT_Load_Glyph): Use `force_autohint'.
  5084. * src/truetype/ttobjs.c (tt_face_init): Prepare code for testing
  5085. against a list of font names which need the bytecode interpreter.
  5086. 2006-08-27 Jens Claudius <jens.claudius@yahoo.com>
  5087. Fix miscellaneous compiler warnings.
  5088. * include/freetype/internal/ftobjs.h: Close comment with `*/' to
  5089. avoid `/* in comment' compiler warning.
  5090. * src/base/ftdbgmem.c (ft_mem_table_get_source): Turn cast
  5091. `(FT_UInt32)(void*)' into `(FT_UInt32)(FT_PtrDist)(void*)' since on
  5092. 64-bit platforms void* is larger than FT_UInt32.
  5093. * src/base/ftobjs.c (t_validator_error): Cast away
  5094. volatileness of argument to ft_longjmp. Spotted by Werner
  5095. `Putzfrau' Lemberg.
  5096. * src/bdf/bdflib.c (bdf_load_font): Initialize local
  5097. variable `lineno'.
  5098. * src/gxvalid/gxvmod.c (classic_kern_validate): Mark local variable
  5099. `error' as volatile.
  5100. 2006-08-27 Werner Lemberg <wl@gnu.org>
  5101. * builds/unix/ftconfig.in: Synchronize with main ftconfig.h.
  5102. Reported by Jens.
  5103. 2006-08-22 Jens Claudius <jens.claudius@yahoo.com>
  5104. Fix for previous commit, which caused many compiler warnings/errors
  5105. about addresses of volatile objects passed as function arguments as
  5106. non-volatile pointers.
  5107. * include/freetype/internal/ftvalid.h: Make FT_Validator typedef a
  5108. pointer to a volatile object.
  5109. * src/gxvalid/gxvmod.c (gxv_load_table): Make function argument
  5110. `table' a pointer to a volatile object.
  5111. * src/otvalid/otvmod.c (otv_load_table): Make function argument
  5112. `table' a pointer to a volatile object.
  5113. 2006-08-18 Jens Claudius <jens.claudius@yahoo.com>
  5114. * src/gxvalid/gxvmod.c (GXV_TABLE_DECL): Mark local variable `_sfnt'
  5115. as volatile since it must keep its value across a call to ft_setjmp.
  5116. (gxv_validate): Same for local variables `memory' and `valid'.
  5117. (classic_kern_validate): Same for local variables `memory',
  5118. `ckern', and `valid'.
  5119. * src/otvalid/otvmod.c (otv_validate): Same for function parameter
  5120. `face' and local variables `base', `gdef', `gpos', `gsub', `jstf',
  5121. and 'valid'.
  5122. * src/sfnt/ttcmap.c (tt_face_build_cmaps): Same for local variable
  5123. `cmap'.
  5124. 2006-08-16 David Turner <david@freetype.org>
  5125. * src/cid/cidgload.c (cid_slot_load_glyph): Remove compiler
  5126. warnings.
  5127. * src/base/ftobjs.c (ft_validator_run): Disable function; it is
  5128. buggy by design. Always return -1.
  5129. Improvements to native TrueType hinting. This is a first try,
  5130. controlled by the FIX_BYTECODE macro in src/truetype/ttinterp.c.
  5131. * include/freetype/internal/ftgloadr.h (FT_GlyphLoadRec): Add member
  5132. `extra_points2'.
  5133. * include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add member
  5134. `orus'.
  5135. * src/base/ftgloadr.c (FT_GlyphLoader_Reset,
  5136. FT_GlyphLoader_Adjust_Points, FT_GlyphLoader_CreateExtra,
  5137. FT_GlyphLoader_CheckPoints, FT_GlyphLoader_CopyPoints): Updated to
  5138. handle `extra_points2'.
  5139. * src/truetype/ttgload.c (tt_prepare_zone): Handle `orus'.
  5140. Remove compiler warning.
  5141. (cur_to_arg): Remove macro.
  5142. (TT_Hint_Glyph): Updated.
  5143. (TT_Process_Simple_Glyph): Handle `orus'.
  5144. * src/truetype/ttinterp.c (FIX_BYTECODE): New macro.
  5145. (Ins_MD, Ins_MDRP, Ins_IP) [FIX_BYTECODE]: Handle `orus'.
  5146. (LOC_Ins_IUP): Renamed to...
  5147. (IUP_WorkerRec): This.
  5148. Add `orus' member.
  5149. (Shift): Renamed to...
  5150. (_iup_worker_shift): This.
  5151. Updated.
  5152. (Interp): Renamed to...
  5153. (_iup_worker_interpolate): This.
  5154. Updated to handle `orus'.
  5155. (Ins_IUP): Updated.
  5156. * src/truetype/ttobjs.c (tt_glyphzone_done, tt_glyphzone_new):
  5157. Handle `orus'.
  5158. 2006-08-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  5159. * modules.cfg (BASE_EXTENSIONS): Compile in ftgxval.c by default to
  5160. build ftvalid in ft2demos. This has been inadvertedly changed
  5161. 2006-08-13.
  5162. 2006-08-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  5163. `ft_validator_run' wrapping `setjmp' can cause a crash, as found by
  5164. Jens:
  5165. http://lists.gnu.org/archive/html/freetype-devel/2006-08/msg00004.htm.
  5166. * src/otvalid/otvmod.c: Replace `ft_validator_run' by `ft_setjmp'.
  5167. It reverts the change introduced on 2005-08-20.
  5168. * src/gxvalid/gxvmod.c: Ditto.
  5169. 2006-08-13 Jens Claudius <jens.claudius@yahoo.com>
  5170. * finclude/freetype/internal/psaux.h: (T1_TokenType): Add
  5171. T1_TOKEN_TYPE_KEY.
  5172. (T1_FieldRec): Add `dict'.
  5173. (T1_FIELD_DICT_FONTDICT, T1_FIELD_DICT_PRIVATE): New macros.
  5174. (T1_NEW_XXX, T1_FIELD_XXX): Update to take the dictionary where a PS
  5175. keyword is expected as an additional argument.
  5176. * src/cid/cidload.c: (cid_field_records): Adjust invocations of
  5177. T1_FIELD_XXX.
  5178. * src/cid/cidtoken.h: Adjust invocations of T1_FIELD_XXX.
  5179. * src/psaux/psobjs.c: Add macro FT_COMPONENT for tracing.
  5180. (ps_parser_to_token): Report a PostScript key as T1_TOKEN_TYPE_KEY,
  5181. not T1_TOKEN_TYPE_ANY.
  5182. (ps_parser_load_field): Make sure a token that should be a string or
  5183. name is really a string or name.
  5184. Avoid memory leak if a keyword has been already encountered and its
  5185. value is overwritten.
  5186. * src/type1/t1load.c: (t1_keywords): Adjust invocations of
  5187. T1_FIELD_XXX.
  5188. (parse_dict): Ignore keywords that occur in the wrong dictionary
  5189. (e.g., in `Private' instead of `FontDict').
  5190. * src/type1/t1tokens.h: Adjust invocations of T1_FIELD_XXX.
  5191. * src/type42/t42parse.c: (t42_keywords): Adjust invocations of
  5192. T1_FIELD_XXX.
  5193. 2006-07-18 Jens Claudius <jens.claudius@yahoo.com>
  5194. Move creation of field `buildchar' of T1_DecoderRec out of
  5195. `t1_decoder_init' and let the caller of `t1_decoder_init' take care
  5196. of it.
  5197. Call the finisher for T1_Decoder in `cid_face_compute_max_advance'
  5198. and `T1_Compute_Max_Advance'.
  5199. * include/freetype/internal/psaux.h (T1_DecoderRec): Remove field
  5200. `face', add `len_buildchar'.
  5201. * include/freetype/internal/t1types.h (T1_FaceRec): Add field
  5202. `buildchar'.
  5203. * src/cid/cidgload.c (cid_face_compute_max_advance): Call finisher
  5204. for T1_Decoder.
  5205. (cid_slot_load_glyph): Do not ignore failure when initializing the
  5206. T1_Decoder.
  5207. * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Updated.
  5208. (t1_decoder_init): Remove initialization of fields `buildchar' and
  5209. `len_buildchar'.
  5210. (t1_decoder_done): Remove deallocation of field `buildchar'.
  5211. * freetype/src/type1/t1gload.c (T1_Compute_Max_Advance): Initialize
  5212. T1_Decoder's `buildchar' and `len_buildchar'; call finisher for
  5213. T1_Decoder.
  5214. (T1_Load_Glyph): Initialize T1_Decoder's `buildchar' and
  5215. `len_buildchar'; make sure to call finisher for T1_Decoder even in
  5216. case of error.
  5217. * src/type1/t1load.c (T1_Open_Face): Allocate new field `buildchar'
  5218. of T1_FaceRec.
  5219. * src/type1/t1objs.c (T1_Face_Done): Free new field `buildchar' of
  5220. T1_FaceRec.
  5221. 2006-07-14 Jens Claudius <jens.claudius@yahoo.com>
  5222. * include/freetype/internal/psaux.h: New macros IS_PS_NEWLINE,
  5223. IS_PS_SPACE, IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT,
  5224. and IS_PS_BASE85 (from src/psaux/psconv.h).
  5225. (T1_FieldLocation): Add T1_FIELD_LOCATION_LOADER,
  5226. T1_FIELD_LOCATION_FACE, and T1_FIELD_LOCATION_BLEND.
  5227. (T1_DecoderRec): New fields `buildchar' and `face'.
  5228. (IS_PS_TOKEN): New macro.
  5229. * include/freetype/internal/t1types.h (T1_FaceRec): New fields
  5230. `ndv_idx', `cdv_idx', and `len_buildchar'.
  5231. * include/freetype/t1tables.h (PS_BlendRec): New fields
  5232. `default_design_vector' and `num_default_design_vector'.
  5233. * src/psaux/psconv.h: Move macros IS_PS_NEWLINE, IS_PS_SPACE,
  5234. IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT, and
  5235. IS_PS_BASE85 to include/freetype/internal/psaux.h.
  5236. * src/psaux/psobjs.c (ps_parser_to_token_array): Allow `token'
  5237. argument to be NULL if we want only to count the number of tokens.
  5238. (ps_tocoordarray): Allow `coords' argument to be NULL if we just
  5239. want to skip the array.
  5240. (ps_tofixedarray): Allow `values' argument to be NULL if we just
  5241. want to skip the array.
  5242. * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add support
  5243. for (partially commented out) othersubrs 19-25, 27, and 28.
  5244. (t1_decoder_init): Initialize new fields `face' and `buildchar'.
  5245. (t1_decoder_done): Release new field `buildchar'.
  5246. * src/type1/t1load.c (parse_buildchar, parse_private): New
  5247. functions.
  5248. (t1_keywords): Register them.
  5249. (t1_allocate_blend): Updated.
  5250. (t1_load_keyword): Handle field types T1_FIELD_LOCATION_LOADER,
  5251. T1_FIELD_LOCATION_FACE and T1_FIELD_LOCATION_BLEND.
  5252. (parse_dict): Remove `keyword_flags' argument.
  5253. Use new macro IS_PS_TOKEN.
  5254. Changed function so that later PostScript definitions override
  5255. earlier ones.
  5256. (t1_init_loader): Initialize new field `keywords_encountered'.
  5257. (T1_Open_Face): Initialize new fields `ndv_idx', `cdv_idx', and
  5258. `len_buildchar'.
  5259. Remove `keywords_flags'.
  5260. * src/type1/t1load.h (T1_LoaderRect): New field
  5261. `keywords_encountered'.
  5262. (T1_PRIVATE, T1_FONTDIR_AFTER_PRIVATE): New macros.
  5263. * src/type1/t1tokens.h [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: New
  5264. entries for parsing /NDV, /CDV, and /DesignVector.
  5265. 2006-07-07 Werner Lemberg <wl@gnu.org>
  5266. Add many checks to protect against malformed PCF files.
  5267. * src/pcf/pcfdrivr.c (PCF_Face_Done): Protect against NULL pointers.
  5268. (PCF_Face_Init): Add calls to PCF_Face_Done in case of errors.
  5269. * src/pcf/pcfread.c (pcf_read_TOC): Protect against malformed table
  5270. data and check that tables don't overlap (using a simple
  5271. bubblesort).
  5272. (PCF_METRIC_SIZE, PCF_COMPRESSED_METRIC_SIZE, PCF_PROPERTY_SIZE):
  5273. New macros which give the size of data structures in the data
  5274. stream.
  5275. (pcf_get_properties): Use rough estimates to get array size limits.
  5276. Assign `face->nprops' and `face->properties' earlier so that a call
  5277. to PCF_Face_Done can do the clean-up in case of error.
  5278. Protect against invalid string offsets.
  5279. (pcf_get_metrics): Clean up code.
  5280. Adjust tracing message levels.
  5281. Use rough estimate to get array size limit.
  5282. (pcf_get_bitmaps): Clean up code.
  5283. Adjust tracing message levels.
  5284. Use rough estimates to get offset limits.
  5285. (pcf_get_encodings): Adjust tracing message level.
  5286. (pcf_get_accel): Clean up code.
  5287. 2006-06-26 Werner Lemberg <wl@gnu.org>
  5288. * src/bdf/bdfdrivr.c (BDF_Face_Init): Handle fonts correctly which
  5289. don't have a POINT_SIZE property. This fixes Savannah bug #16914.
  5290. 2006-06-26 Jens Claudius <jens.claudius@yahoo.com>
  5291. * src/psaux/t1decode.c (T1_Operator, t1_args_count): Add opcode 15.
  5292. (t1_decoder_parse_charstrings): Operator with
  5293. opcode 15 pops its two arguments.
  5294. Handle the case where the pops of an othersubr may be part of a
  5295. subroutine.
  5296. Handle unknown othersubrs gracefully: count their operands and let
  5297. the following pop operators push the operands as the results onto
  5298. the Type1 stack.
  5299. Improve handling of setcurrentpoint opcode.
  5300. 2006-06-25 Jens Claudius <jens.claudius@yahoo.com>
  5301. The Type 1 parser now skips over top-level procedures as required
  5302. for a `Simplified Parser'. This makes the parser more robust as it
  5303. doesn't poke around in PostScript code. Additionally, it makes the
  5304. FontDirectory hackery in src/type1/t1load.c unnecessary.
  5305. * src/psaux/psobjs.c (IS_OCTAL_DIGIT): New macro.
  5306. (skip_literal_string): Add FT_Error as return value.
  5307. Handle escapes better.
  5308. (skip_string): Add FT_Error as return value.
  5309. Don't set `parser->error' but return error code directly.
  5310. (skip_procedure): New function.
  5311. (ps_parser_skip_PS_token): Handle procedures.
  5312. Update code.
  5313. (ps_parser_to_token): Update code.
  5314. (ps_parser_load_field_table): Handle bbox entries also.
  5315. * src/type1/t1load.c (parse_dict): Remove FontDirectory hackery.
  5316. Add commented-out code for synthetic fonts.
  5317. 2006-06-24 Eugeniy Meshcheryakov <eugen@univ.kiev.ua>
  5318. Fix two hinting bugs as reported in
  5319. http://lists.gnu.org/archive/html/freetype-devel/2006-06/msg00057.html.
  5320. * include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add
  5321. `first_point' member.
  5322. * src/truetype/ttgload.c (tt_prepare_zone): Initialize
  5323. `first_point'.
  5324. (TT_Process_Composite_Glyph): Always untouch points.
  5325. * src/truetype/ttinterp.c (Ins_SHC): Fix computation of
  5326. `first_point' and `last_point' in case of composite glyphs.
  5327. (Ins_IUP): Fix computation of `end_point'.
  5328. 2006-06-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  5329. Insert EndianS16_BtoN and EndianS32_BtoN as workaround for Intel
  5330. Mac. The original patch was written by David Sachitano and Lawrence
  5331. Coopet, and modified by Sean McBride for MPW compatibility. Only
  5332. required data are converted; unused data are left in big endian.
  5333. * src/base/ftmac.c: Include <Endian.h> for byteorder macros for non
  5334. Mac OS X platforms.
  5335. (OS_INLINE): Undefine before definition.
  5336. (count_faces_sfnt): Insert EndianS16_BtoN to parse the header of
  5337. FontAssociation table in FOND resource.
  5338. (count_faces_scalable): Insert EndianS16_BtoN to parse the header
  5339. and fontSize at each entry of FontAssociation table in FOND
  5340. resource.
  5341. (parse_fond): Insert EndianS16_BtoN and EndianS32_BtoN to parse
  5342. ffStylOff of FamilyRecord header of FOND resource, the header,
  5343. fontSize, fontID at each entry of FontAssociation table, and
  5344. StyleMapping table.
  5345. (count_faces): Call `HUnlock' after all FOND utilization.
  5346. 2006-06-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  5347. Public API of TrueTypeGX, OpenType, and classic kern table validator
  5348. should return `FT_Err_Unimplemented_Feature' if validation service
  5349. is unavailable (disabled in `modules.cfg'). It is originally
  5350. suggested by David Turner, cf.
  5351. http://lists.gnu.org/archive/html/freetype-devel/2005-11/msg00078.html
  5352. * src/base/ftgxval.c (FT_TrueTypeGX_Validate): Return
  5353. FT_Err_Unimplemented_Feature if TrueTypeGX validation service is
  5354. unavailable.
  5355. (FT_ClassicKern_Validate): Return FT_Err_Unimplemented_Feature if
  5356. classic kern table validation service is unavailable.
  5357. * src/base/ftotval.c (FT_OpenType_Validate): Return
  5358. FT_Err_Unimplemented_Feature if OpenType validation service is
  5359. unavailable.
  5360. 2006-06-08 Werner Lemberg <wl@gnu.org>
  5361. * src/bdf/bdflib.c (bdf_load_font): Fix memory leaks in case of
  5362. errors.
  5363. 2006-06-07 David Turner <david@freetype.org>
  5364. * src/type1/t1afm.c (KERN_INDEX): Make it more robust.
  5365. (T1_Read_Metrics): Fix memory leak which happened when the metrics
  5366. file doesn't have kerning pairs. This fixes Savannah bug #16768.
  5367. 2006-06-06 David Turner <david@freetype.org>
  5368. Fix memory leak described in Savannah bug #16759.
  5369. We change `ps_unicodes_init' so that it also takes a
  5370. `free_glyph_name' callback to release the glyph names returned by
  5371. `get_glyph_name'
  5372. * include/freetype/internal/services/svpscmap.h (PS_Glyph_NameFunc):
  5373. Renamed to ...
  5374. (PS_GetGlyphNameFunc): This.
  5375. (PS_FreeGlyphNameFunc): New typedef.
  5376. (PS_Unicodes_InitFunc): Add variable for PS_FreeGlyphNameFunc.
  5377. * src/cff/cffcmap.c (cff_sid_to_glyph_name): Use `TT_Face' for first
  5378. argument.
  5379. (cff_sid_free_glyph_name): New function.
  5380. (cff_cmap_unicode_init): Updated.
  5381. * src/psaux/t1cmap.c (t1_cmap_unicode_init): Updated.
  5382. * src/psnames/psmodule.c (ps_unicodes_init): Add variable for
  5383. PS_FreeGlyphNameFunc and use it.
  5384. 2006-06-04 David Turner <david@freetype.org>
  5385. * src/base/ftutil.c (ft_mem_qrealloc): Fix the function to accept
  5386. `item_size == 0' as well -- though this sounds weird, it can
  5387. theoretically happen. This fixes Savannah bug #16669.
  5388. * src/pfr/pfrobjs.c (pfr_face_init): Fix the computation
  5389. of `face->num_glyphs' which missed the last glyph, due to
  5390. the offset-by-1 computation, since the PFR format doesn't
  5391. guarantee that glyph index 0 corresponds to the `missing
  5392. glyph. This fixes Savannah bug #16668.
  5393. 2006-05-25 Werner Lemberg <wl@gnu.org>
  5394. * builds/unix/unix-cc.in (LINK_LIBRARY): Don't comment out
  5395. `-no-undefined'. Reported by Christian Biesinger.
  5396. 2006-05-19 Brian Weed <bw@imaginengine.com>
  5397. * builds/win32/visualc/freetype.dsp: Release libraries no longer
  5398. have debug information, and debug libraries use `C7 compatible'
  5399. debug info.
  5400. 2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  5401. Apply patch by Derek Clegg to fix two memory leaks in the MacOS
  5402. resource fork handler. This fixes Savannah bug #16631.
  5403. * src/base/ftobjs.c (load_face_in_embedded_rfork): Replace
  5404. `FT_Stream_Close' by `FT_Stream_Free' to fix memory leak.
  5405. * src/base/ftrfrk.c (raccess_guess_linux_double_from_file_name):
  5406. Replace `FT_Stream_Close' by `FT_Stream_Free' to fix memory leak.
  5407. 2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  5408. * build/unix/configure.raw: Add a fallback to disable Carbon
  5409. dependency, if configured with no options on Mac OS X.
  5410. 2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  5411. * src/base/ftmac.c (open_face_from_buffer): Deallocate stream when
  5412. its content cannot be parsed as supported font. This fixes
  5413. the second part of Savannah bug #16590.
  5414. 2006-05-18 Werner Lemberg <wl@gnu.org>
  5415. * src/truetype/ttgload.c (TT_Load_Composite_Glyph)
  5416. [FT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Make it compilable again.
  5417. 2006-05-17 David Turner <david@freetype.org>
  5418. This is a major patch used to drastically improve the performance of
  5419. loading glyphs. This both speeds up loading the glyph vectors
  5420. themselves and the auto-fitter module.
  5421. We now use inline assembler code with GCC to implement `FT_MulFix',
  5422. which is probably the most important function related to the
  5423. engine's performance.
  5424. The resulting speed-up is about 25%.
  5425. * include/freetype/internal/tttypes.h (TT_LoaderRec): Add fields
  5426. `cursor' and `limit'.
  5427. * src/autofit/afangles.c (af_corner_is_flat, af_corner_orientation):
  5428. New functions.
  5429. (AF_ATAN_BITS, af_arctan, af_angle_atan): Comment out.
  5430. [TEST]: Remove.
  5431. * src/autofit/afcjk.c (AF_Script_UniRangeRec): Comment out test
  5432. code.
  5433. * src/autofit/afhints.c (af_axis_hints_new_segment): Don't call
  5434. `FT_ZERO'
  5435. (af_direction_compute, af_glyph_hints_compute_inflections): Rewritten.
  5436. (af_glyph_hints_reload: Rewrite recognition of weak points.
  5437. * src/autofit/aflatin.c (af_latin_hints_compute_segments): Move
  5438. constant values out of the loops.
  5439. * src/autofit/aftypes.h: Updated.
  5440. * src/base/ftcalc.c (FT_MulFix): Use inline assembler code.
  5441. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Use vector
  5442. product to get orientation.
  5443. * src/gzip/ftgzip.c (ft_get_uncompressed_size): New function.
  5444. (FT_Stream_OpenGzip): Use it to handle small files directly in
  5445. memory.
  5446. * src/psaux/psconv.c (PS_Conv_ASCIIHexDecode, PS_ConvEexecDecode):
  5447. Improve performance.
  5448. * src/truetype/ttgload.c (TT_Access_Glyph_Frame): Set `cursor' and
  5449. `limit'.
  5450. (TT_Load_Glyph_Header, TT_Load_Simple_Glyph,
  5451. TT_Load_Composite_Glyph): Updated. Add threshold to protect against
  5452. exceedingly large values of number of contours. Speed up by
  5453. reducing the number of loops.
  5454. * src/type1/t1gload.c (T1_Load_Glyph): Don't apply unit matrix.
  5455. * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change the threshold
  5456. used to detect rogue clients from 4 to 16. This is to prevent some
  5457. segmentation faults with fonts like `KozMinProVI-Regular.otf' which
  5458. comes from the Japanese Adobe Reader Asian Font pack.
  5459. 2007-05-17 Werner Lemberg <wl@gnu.org>
  5460. * src/cff/cffload.c (cff_font_done): Deallocate subfont array. This
  5461. fixes the first part of Savannah bug #16590.
  5462. 2006-05-16 Werner Lemberg <wl@gnu.org>
  5463. * docs/PROBLEMS: Updated icl issues.
  5464. ----------------------------------------------------------------------------
  5465. Copyright 2006, 2007, 2008, 2009, 2010 by
  5466. David Turner, Robert Wilhelm, and Werner Lemberg.
  5467. This file is part of the FreeType project, and may only be used, modified,
  5468. and distributed under the terms of the FreeType project license,
  5469. LICENSE.TXT. By continuing to use, modify, or distribute this file you
  5470. indicate that you have read the license and understand and accept it
  5471. fully.
  5472. Local Variables:
  5473. version-control: never
  5474. coding: utf-8
  5475. End: