PageRenderTime 67ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/src/freetype/ChangeLog

https://bitbucket.org/cabalistic/ogredeps/
#! | 4076 lines | 2728 code | 1348 blank | 0 comment | 0 complexity | 832c811345055c094e0e0cab5134e60b MD5 | raw file
Possible License(s): LGPL-3.0, BSD-3-Clause, CPL-1.0, Unlicense, GPL-2.0, GPL-3.0, LGPL-2.0, MPL-2.0-no-copyleft-exception, BSD-2-Clause, LGPL-2.1
  1. 2012-03-08 Werner Lemberg <wl@gnu.org>
  2. * Version 2.4.9 released.
  3. =========================
  4. Tag sources with `VER-2-4-9'.
  5. * docs/CHANGES: Updated.
  6. * docs/VERSION.DLL: Update documentation and bump version number to
  7. 2.4.9.
  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/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
  12. builds/win32/visualc/freetype.dsp,
  13. builds/win32/visualc/freetype.vcproj,
  14. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  15. builds/win32/visualce/freetype.vcproj,
  16. builds/win32/visualce/index.html,
  17. builds/wince/vc2005-ce/freetype.vcproj,
  18. builds/wince/vc2005-ce/index.html,
  19. builds/wince/vc2008-ce/freetype.vcproj,
  20. builds/wince/vc2008-ce/index.html: s/2.4.8/2.4.9/, s/248/249/.
  21. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 9.
  22. * builds/unix/configure.raw (version_info): Set to 14:1:8.
  23. 2012-03-08 Werner Lemberg <wl@gnu.org>
  24. [bdf] Add missing overflow check.
  25. * src/bdf/bdflib.c (_bdf_parse_glyphs) <BITMAP>: Add threshold for
  26. `glyph->bpr'.
  27. 2012-03-07 Vinnie Falco <vinnie.falco@gmail.com>
  28. Prepare source code for amalgamation.
  29. * src\autofit\aferrors.h, src\bdf\bdferror.h, src\bzip2\ftbzip2.c,
  30. src\cache\ftcerror.h, src\cff\cfferrs.h, src\cid\ciderrs.h,
  31. src\gxvalid\gxverror.h, src\gzip\ftgzip.c, src\lzw\ftlzw.c,
  32. src\otvalid\otverror.h, src\pcf\pcferror.h, src\pfr\pfrerror.h,
  33. src\psaux\psauxerr.h, src\pshinter\pshnterr.h,
  34. src\psnames\psnamerr.h, src\raster\rasterrs.h, src\sfnt\sferrors.h,
  35. src\smooth\ftsmerrs.h, src\truetype\tterrors.h,
  36. src\type1\t1errors.h, src\type42\t42error.h, src\winfonts\fnterrs.h:
  37. Add #undef FT_ERR_PREFIX before #define FT_ERR_PREFIX.
  38. 2012-03-03 Werner Lemberg <wl@gnu.org>
  39. Fix Savannah bug #35660.
  40. For some divisions, we use casts to 32bit entities. Always guard
  41. against division by zero with these casts also.
  42. * src/base/ftcalc.c (ft_div64by32): Remove redundant cast.
  43. (FT_MulDiv, FT_MulDiv_No_Round): Add 32bit cast.
  44. (FT_DivFix): Add 32bit cast (this omission triggered the bug).
  45. 2012-03-03 Werner Lemberg <wl@gnu.org>
  46. [psaux] Fix handling of track kerning.
  47. * src/psaux/afmparse.c (afm_parse_track_kern): Don't inverse sign
  48. for `min_kern'. It is indeed quite common that track kerning
  49. *increases* spacing for very small sizes.
  50. 2012-03-02 Werner Lemberg <wl@gnu.org>
  51. [truetype] Fix Savannah bug #35689.
  52. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check first outline
  53. point.
  54. 2012-03-01 Werner Lemberg <wl@gnu.org>
  55. [bdf] Fix Savannah bug #35656.
  56. * src/bdf/bdflib.c (_bdf_parse_glyphs) <_BDF_BITMAP>: Check validity
  57. of nibble characters instead of accessing `a2i' array.
  58. 2012-03-01 Werner Lemberg <wl@gnu.org>
  59. [winfonts] Fix Savannah bug #35659.
  60. * src/winfonts/winfnt.c (FNT_Face_Init): Check number of glyphs.
  61. 2012-03-01 Werner Lemberg <wl@gnu.org>
  62. [bdf] Fix Savannah bug #35658.
  63. * src/bdf/bdflib.c (_bdf_list_split): Initialize `field' elements
  64. properly.
  65. 2012-03-01 Werner Lemberg <wl@gnu.org>
  66. [psaux] Fix Savannah bug #35657.
  67. If in function `skip_spaces' the routine `skip_comment' comes to the
  68. end of buffer, `cur' is still increased by one, so we need to check
  69. for `p >= limit' and not `p == limit'.
  70. * src/psaux/psconv.c (PS_Conv_Strtol, PS_Conv_ToFixed,
  71. PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Fix boundary checking.
  72. 2012-03-01 Werner Lemberg <wl@gnu.org>
  73. [truetype] Fix Savannah bug #35646.
  74. * src/truetype/ttinterp.c (Ins_MIRP): Typo, present since ages. The
  75. code is now in sync with the other operators (e.g. MSIRP) which
  76. modify twilight points.
  77. 2012-03-01 Werner Lemberg <wl@gnu.org>
  78. [bdf] Fix Savannah bug #35643.
  79. * src/bdf/bdflib.c (_bdf_list_ensure): Bring code in sync with
  80. comment before `_bdf_list_split', this is, really allocate at least
  81. five `field' elements.
  82. 2012-03-01 Werner Lemberg <wl@gnu.org>
  83. [bdf] Fix Savannah bug #35641.
  84. * src/bdf/bdflib.c (_bdf_parse_glyphs) <DWIDTH, BBX>: Abort if
  85. _BDF_ENCODING isn't set. We need this because access to the `glyph'
  86. variable might be undefined otherwise.
  87. 2012-03-01 Werner Lemberg <wl@gnu.org>
  88. [truetype] Fix Savannah bug #35640.
  89. * src/truetype/ttinterp.c (SkipCode, TT_RunIns): Fix boundary check
  90. for NPUSHB and NPUSHW instructions.
  91. 2012-02-29 Werner Lemberg <wl@gnu.org>
  92. [truetype] Fix Savannah bug #35601.
  93. * src/truetype/ttinterp.c (Ins_SHZ): Use number of points instead of
  94. last point for loop.
  95. Also remove redundant boundary check.
  96. 2012-02-29 Werner Lemberg <wl@gnu.org>
  97. [truetype] Remove redundant check.
  98. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Remove redundant
  99. second check for ordered contour start points.
  100. 2012-02-29 Werner Lemberg <wl@gnu.org>
  101. [truetype] Make SHC instruction behave similar to MS rasterizer.
  102. * src/truetype/ttinterp.c (Ins_SHC): Handle virtual contour in
  103. twilight zone.
  104. 2012-02-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  105. Avoid modulo operators against a power-of-two denominator.
  106. * src/afcjk.c (af_hint_normal_stem), src/base/ftoutln.c
  107. (ft_contour_has), src/cff/cffgload.c (cff_decoder_parse_charstrings)
  108. <cff_op_vvcurveto, cff_op_hhcurveto, cff_op_hvcurveto>,
  109. src/gxvalid/gxvcommn.c (GXV_32BIT_ALIGNMENT_VALIDATE),
  110. src/gxvalid/gxvfeat.c (gxv_feat_setting_validate): Replace `%' with
  111. `&' operator.
  112. 2012-02-29 Werner Lemberg <wl@gnu.org>
  113. [autofit] Don't synchronize digit widths for light rendering mode.
  114. We don't hint horizontally in this mode.
  115. * src/autofit/afloader.c (af_loader_load_g) <Hint_Metrics>:
  116. Implement it.
  117. 2012-02-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  118. [type42] Minor code optimization (again).
  119. * src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
  120. 2012-02-26 Mateusz Jurczyk <mjurczyk@google.com>
  121. Werner Lemberg <wl@gnu.org>
  122. [smooth] Fix Savannah bug #35604.
  123. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use `FT_Pos'
  124. instead of `FT_UInt' for some variables and update comparisons
  125. accordingly. A detailed analysis can be found in the bug report.
  126. 2012-02-26 Alexei Podtelezhnikov <apodtele@gmail.com>
  127. [type42] Minor code optimization.
  128. * src/type42/t42parse.c (t42_parse_sfnts): Use bitmask instead of
  129. modulo operator.
  130. 2012-02-26 Werner Lemberg <wl@gnu.org>
  131. * docs/CHANGES: Updated.
  132. 2012-02-26 Werner Lemberg <wl@gnu.org>
  133. [type1] Fix Savannah bug #35608.
  134. * src/type1/t1parse.c (T1_Get_Private_Dict): Reject too short
  135. dictionaries.
  136. 2012-02-26 Werner Lemberg <wl@gnu.org>
  137. [bdf] Support `ENCODING -1 <n>' format.
  138. * src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Implement it.
  139. 2012-02-26 Werner Lemberg <wl@gnu.org>
  140. [bdf] Fix Savannah bug #35607.
  141. * src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Normalize
  142. negative encoding values.
  143. 2012-02-26 Werner Lemberg <wl@gnu.org>
  144. [type1] Fix Savannah bug #35606.
  145. * src/type1/t1load.c (parse_subrs): Add proper guards for `strncmp'.
  146. * src/psaux/psobjs.c (ps_parser_skip_PS_token): Emit error message
  147. only if cur < limit.
  148. 2012-02-25 Werner Lemberg <wl@gnu.org>
  149. [pcf] Fix Savannah bug #35603.
  150. * src/pcf/pcfread.c (pcf_get_properties): Assure final zero byte in
  151. `strings' array.
  152. 2012-02-25 Werner Lemberg <wl@gnu.org>
  153. [type42] Fix Savannah bug #35602.
  154. * src/type42/t42parse.c (t42_parse_sfnts): Check `string_size' more
  155. thoroughly.
  156. 2012-02-25 Werner Lemberg <wl@gnu.org>
  157. [bdf] Fix Savannah bugs #35599 and #35600.
  158. * src/bdf/bdflib.c (ACMSG16): New warning message.
  159. (_bdf_parse_glyphs) <_BDF_BITMAP>: Check line length.
  160. 2012-02-24 Werner Lemberg <wl@gnu.org>
  161. [bdf] Fix Savannah bugs #35597 and #35598.
  162. * src/bdf/bdflib.c (_bdf_is_atom): Fix handling of property value.
  163. 2012-02-24  Vinnie Falco <vinnie.falco@gmail.com>
  164. Prepare source code for amalgamation (6/6).
  165. * src/cff/cffdrivr.c: s/Load_Glyph/cff_glyph_load/.
  166. * src/cid/cidload.c: s/parse_font_matrix/cid_parse_font_matrix/.
  167. s/t1_init_loader/cid_init_loader/.
  168. s/t1_done_loader/cid_done_loader/.
  169. * src/pxaux/t1cmap.c: s/t1_get_glyph_name/psaux_get_glyph_name/.
  170. * src/truetype/ttdriver.c: s/Load_Glyph/tt_glyph_load/.
  171. * src/type1/t1load.c: s/parse_font_matrix/t1_parse_font_matrix/.
  172. 2012-02-24  Vinnie Falco <vinnie.falco@gmail.com>
  173. Prepare source code for amalgamation (5/6).
  174. * include/freetype/fterrors.h: Undefine FT_KEEP_ERR_PREFIX after
  175. using it.
  176. 2012-02-22  Vinnie Falco <vinnie.falco@gmail.com>
  177. Prepare source code for amalgamation (4/6).
  178. * src/smooth/ftgrays.c, src/raster/ftraster.c: Undefine RAS_ARG,
  179. RAS_ARGS, RAS_VAR, and RAS_VARS before defining it.
  180. * src/smooth/ftgrays.c: s/TRaster/black_TRaster/,
  181. s/PRaster/black_PRaster/.
  182. * src/raster/ftraster.c: s/TRaster/gray_TRaster/,
  183. s/PRaster/gray_PRaster/.
  184. 2012-02-20  Vinnie Falco <vinnie.falco@gmail.com>
  185. Prepare source code for amalgamation (3/6).
  186. * src/smooth/ftgrays.c: s/TWorker/black_TWorker/,
  187. s/PWorker/black_PWorker/.
  188. * src/raster/ftraster.c: s/TWorker/gray_TWorker/,
  189. s/PWorker/gray_PWorker/.
  190. 2012-02-20  Vinnie Falco <vinnie.falco@gmail.com>
  191. Prepare source code for amalgamation (2/6).
  192. * src/smooth/ftgrays.c, src/raster/ftraster.c: Undefine FLOOR,
  193. CEILING, TRUNC, and SCALED before defining it.
  194. 2012-02-20  Vinnie Falco <vinnie.falco@gmail.com>
  195. Prepare source code for amalgamation (1/6).
  196. See discussion starting at
  197. http://lists.gnu.org/archive/html/freetype-devel/2012-01/msg00037.html
  198. * src/smooth/ftgrays.c: s/TBand/gray_TBand/.
  199. * src/raster/ftraster.c: s/TBand/black_TBand/.
  200. 2012-02-17 Alexei Podtelezhnikov <apodtele@gmail.com>
  201. [autofit] Fix outline flags.
  202. * src/autofit/afloader.c (af_loader_load_g): Don't reassign
  203. `outline.flags' so that this information is preserved. See
  204. discussion starting at
  205. http://lists.gnu.org/archive/html/freetype-devel/2012-02/msg00046.html
  206. 2012-02-11 Werner Lemberg <wl@gnu.org>
  207. [truetype] Fix Savannah bug #35466.
  208. Jump instructions are now bound to the current function. The MS
  209. Windows rasterizer behaves the same, as confirmed by Greg Hitchcock.
  210. * src/truetype/ttinterp.h (TT_CallRec): Add `Cur_End' element.
  211. * src/truetype/ttobjs.h (TT_DefRecord): Add `end' element.
  212. * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF): Check upper
  213. bound of jump address.
  214. (Ins_FDEF, Ins_CALL, Ins_LOOPCALL, Ins_UNKNOWN, TT_RunIns): Updated.
  215. 2012-02-11 Werner Lemberg <wl@gnu.org>
  216. We don't use `extensions'.
  217. * include/freetype/internal/ftobjs.h (FT_DriverRec): Remove
  218. `extensions' field.
  219. 2012-02-11 Werner Lemberg <wl@gnu.org>
  220. Clean up `generic' fields.
  221. * include/freetype/internal/ftobjs.h (FT_ModuleRec, FT_LibraryRec):
  222. Remove `generic' field since users can't access it.
  223. * src/base/ftobjs.c (FT_Done_GlyphSlot): Call `generic.finalizer' as
  224. advertised in the documentation of FT_Generic.
  225. (Destroy_Module, FT_Done_Library): Updated to changes in `ftobjs.h'.
  226. 2012-02-07 Werner Lemberg <wl@gnu.org>
  227. [autofit] Harmonize function arguments.
  228. * src/autofit/afloader.c, src/autofit/afloader.h: Use `FT_Int32' for
  229. `load_flags'.
  230. 2012-02-07 Werner Lemberg <wl@gnu.org>
  231. * src/cff/cffobjs.c (cff_face_init): Remove unnecessary casts.
  232. 2012-01-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  233. [gxvalid] Fix Savannah bug #35286.
  234. Patch submitted by anonymous reporter.
  235. * src/gxvalid/gxvcommn.c (gxv_XStateTable_subtable_setup):
  236. gxv_set_length_by_ulong_offset() must be called with 3, not 4,
  237. the number of the subtables in the state tables; classTable,
  238. stateArray, entryTable.
  239. 2012-01-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  240. [raccess] Modify for PIC build.
  241. Based on the patch provided by Erik Dahlstrom <ed@opera.com>,
  242. http://lists.gnu.org/archive/html/freetype-devel/2012-01/msg00010.html
  243. Also `raccess_guess_table[]' and `raccess_rule_by_darwin_vfs()'
  244. are renamed with `ft_' suffixes.
  245. * src/base/ftbase.h: `raccess_rule_by_darwin_vfs()' is renamed
  246. to `ft_raccess_rule_by_darwin_vfs()'.
  247. * src/base/ftobjs.c: Ditto.
  248. * src/base/ftrfork.c: Declarations of FT_RFork_Rule,
  249. raccess_guess_rec, are moved to...
  250. * include/freetype/internal/ftrfork.h: Here.
  251. * include/freetype/internal/ftrfork.h:
  252. FT_RFORK_RULE_ARRAY_{BEGIN,ENTRY,END} macros are defined
  253. to replace raccess_guess_table[] in both of PIC and non-PIC
  254. modes.
  255. * src/base/ftrfork.c: raccess_guess_table[] array is rewritten
  256. by FT_RFORK_RULE_ARRAY_{BEGIN,ENTRY,END}.
  257. * src/base/basepic.h (BasePIC): Add `ft_raccess_guess_table'
  258. storage. (FT_RACCESS_GUESS_TABLE_GET): New macro to retrieve
  259. the function pointer from `ft_raccess_guess_table' storage in
  260. `BasePIC' structure.
  261. * src/base/ftrfork.c (FT_Raccess_Guess): Rewritten with
  262. FT_RACCESS_GUESS_TABLE_GET.
  263. (raccess_get_rule_type_from_rule_index): Add `library' as the
  264. first argument to the function, to retrieve the storage of
  265. `ft_raccess_guess_table' from it. Also `raccess_guess_table'
  266. is replaced by FT_RACCESS_GUESS_TABLE_GET.
  267. (ft_raccess_rule_by_darwin_vfs): Ditto.
  268. 2012-01-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  269. Remove trailing spaces.
  270. 2012-01-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  271. Formatting PIC related sources.
  272. * src/autofit/afpic.c: Harmonize to FT2 coding conventions.
  273. * src/base/basepic.c: Ditto.
  274. * src/base/ftpic.c: Ditto.
  275. * src/cff/cffpic.c: Ditto.
  276. * src/pshinter/pshpic.c: Ditto.
  277. * src/psnames/pspic.c: Ditto.
  278. * src/raster/rastpic.c: Ditto.
  279. * src/sfnt/sfntpic.c: Ditto.
  280. * src/smooth/ftspic.c: Ditto.
  281. * src/truetype/ttpic.c: Ditto.
  282. 2012-01-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  283. [autofit] Fix the inclusion of `aflatin2.h' in PIC file.
  284. * src/autofit/afpic.c: Include `aflatin2.h' when
  285. FT_OPTION_AUTOFIT2 is defined, as afglobal.c does so.
  286. Unconditionally inclusion causes declared but unimplemented
  287. warning by GCC 4.6.
  288. 2012-01-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  289. [cff] Remove redundant declarations of cff_cmap_XXX_class_rec.
  290. * src/cff/cffpic.c: The declarations of
  291. FT_Init_Class_cff_cmap_encoding_class_rec() and
  292. FT_Init_Class_cff_cmap_unicode_class_rec() are removed.
  293. They can be obtained by the inclusion of cffcmap.h.
  294. cffcmap.h invokes FT_DECLARE_CMAP_CLASS() and it declares
  295. FT_Init_Class_cff_cmap_encoding_class_rec() etc in PIC mode.
  296. 2012-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  297. Fix redundant declaration warning in PIC mode.
  298. Originally FT_DEFINE_{DRIVER,MODULE,RENDERER}() macros were
  299. designed to declare xxx_pic_{free,init} by themselves.
  300. Because these macros are used at the end of the module
  301. interface (e.g. ttdriver.c) and the wrapper source to build
  302. a module as a single object (e.g. truetype.c) includes
  303. the PIC file (e.g. ttpic.c) before the module interface,
  304. these macros are expanded AFTER xxx_pic_{free,init} body
  305. when the modules are built as single object.
  306. The declaration after the implementation causes the redundant
  307. declaration warnings, so the declarations are moved to module
  308. PIC headers (e.g. ttpic.h). Separating to other header files
  309. are needed for multi build.
  310. * include/freetype/internal/ftdriver.h (FT_DEFINE_DRIVER):
  311. Remove class_##_pic_free and class_##_pic_init declarations.
  312. * include/freetype/internal/ftobjs.h (FT_DEFINE_RENDERER,
  313. FT_DEFINE_MODULE): Ditto.
  314. * src/base/basepic.h: Insert a comment and fix coding style.
  315. * src/autofit/afpic.h: Declare autofit_module_class_pic_{free,
  316. init}.
  317. * src/cff/cffpic.h: Declare cff_driver_class_pic_{free,init}.
  318. * src/pshinter/pshpic.h: Declare pshinter_module_class_pic_{free,
  319. init}.
  320. * src/psnames/pspic.h: Declare psnames_module_class_pic_{free,
  321. init}.
  322. * src/raster/rastpic.h: Declare
  323. ft_raster{1,5}_renderer_class_pic_{free,init}
  324. * src/sfnt/sfntpic.h: Declare sfnt_module_class_pic_{free,init}.
  325. * src/smooth/ftspic.h: Declare
  326. ft_smooth_{,lcd_,lcdv_}renderer_class_pic_{free,init}.
  327. * src/truetype/ttpic.h: Declare tt_driver_class_pic_{free,init}.
  328. 2012-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  329. Make pspic.c to include module error header to fix multi build.
  330. * src/psnames/pspic.c: Include `psnamerr.h'.
  331. 2012-01-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  332. [base] Fix a dereference of uninitialized variable in PIC mode.
  333. * src/base/ftglyph.c (FT_Glyph_To_Bitmap): `glyph' must be
  334. set before derefering to obtain `library'. The initialization
  335. of `clazz', `glyph', `library' and NULL pointer check are
  336. reordered to minimize PIC conditonals.
  337. 2012-01-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  338. [base] Insert explicit cast for GCC 4.6 in PIC mode.
  339. * src/base/ftinit.c (FT_Add_Default_Modules): Under PIC
  340. configuration, FT_DEFAULT_MODULES_GET returns
  341. FT_Module_Class** pointer, GCC 4.6 warns that
  342. const FT_Module_Class* const* variable is warned as
  343. inappropriate to store it. To calm it, explicit cast is
  344. inserted. Also `library' is checked to prevent the NULL
  345. pointer dereference in FT_DEFAULT_MODULES_GET.
  346. 2012-01-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  347. Fix PIC build broken by d9145241fe378104ba4c12a42534549faacc92e6.
  348. Under PIC configuration, FT_{CFF,PSCMAPS,SFNT,TT}_SERVICES_GET
  349. take no arguments but derefer the variable named `library'
  350. internally.
  351. * src/cff/cffdrivr.c (cff_get_interface): Declare `library' and
  352. set it if non-NULL driver is passed.
  353. * src/truetype/ttdriver.c (tt_get_interface): Ditto.
  354. * src/sfnt/sfdriver.c (sfnt_get_interface): Declare `library'
  355. under PIC configuration, and set it if non-NULL module is given.
  356. * src/psnames/psmodule.c (psnames_get_interface): Ditto.
  357. 2012-01-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  358. Make PIC files include module error headers, to use the error codes
  359. with per-module prefix.
  360. * src/autofit/afpic.c: Include `aferrors.h'.
  361. * src/cff/cffpic.c: Include `cfferrs.h'.
  362. * src/pshinter/pshpic.c: Include `pshnterr.h'.
  363. * src/raster/rastpic.c: Include `rasterrs.h'.
  364. * src/sfnt/sfntpic.c: Include `sferrors.h'.
  365. * src/smooth/ftspic.c: Include `ftsmerrs.h'.
  366. * src/truetype/ttpic.c: Include `tterrors.h'.
  367. 2012-01-04 Tobias Ringström <tobias@ringis.se>
  368. [truetype] Fix IP instruction if x_ppem != y_ppem.
  369. * src/truetype/ttinterp.c (Ins_IP): Scale `orus' coordinates
  370. properly.
  371. 2012-01-02 Werner Lemberg <wl@gnu.org>
  372. Fix tracing message for `loca' table.
  373. * src/truetype/ttpload.c (tt_face_get_location): Don't emit a
  374. warning message if the last `loca' entry references an empty glyph.
  375. 2011-12-10 Werner Lemberg <wl@gnu.org>
  376. Add some variable initializations.
  377. Reported by Richard COOK <rscook@unicode.org>.
  378. * src/type1/t1driver.c (t1_ps_get_font_value): Initialize `val'.
  379. * src/smooth/ftgrays.c (gray_render_conic): Initialize `levels'
  380. earlier.
  381. 2011-12-08 Werner Lemberg <wl@gnu.org>
  382. Fix serious scaling bug in `FT_Get_Advances'.
  383. * src/base/ftadvanc.c (FT_Get_Advances): Advance values returned by
  384. `FT_Load_Glyph' must be simply multiplied by 1024.
  385. 2011-12-08 Werner Lemberg <wl@gnu.org>
  386. * src/bdf/bdflib.c (_bdf_parse_start): Drop redundant error tracing.
  387. 2011-12-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  388. [mac] Unify DARWIN_NO_CARBON with FT_MACINTOSH.
  389. Originally FT_MACINTOSH was a pure auto macro and DARWIN_NO_CARBON
  390. was a configurable macro to disable Carbon-dependent code. Because
  391. now configure script sets DARWIN_NO_CARBON by default and disables
  392. Darwin & Carbon-dependent codes, these macros can be unified.
  393. FT_MACINTOSH (undefined by default) is kept and DARWIN_NO_CARBON
  394. (defined by default) is removed, because DARWIN_NO_CARBON violates
  395. FT_XXX naming convention of public macros, and a macro configured by
  396. default is not portable for the building without configure (e.g.
  397. make devel).
  398. * builds/unix/configure.raw: Define FT_MACINTOSH if Carbon-based
  399. old Mac font support is requested and Carbon is available.
  400. * builds/unix/ftconfig.in: Undefine FT_MACINTOSH when the support
  401. for Mac OS X without Carbon (e.g. Mac OS X 10.4 for ppc64) is
  402. requested.
  403. * include/freetype/config/ftconfig.in: Ditto.
  404. * builds/vms/ftconfig.h: Ditto.
  405. * src/base/ftbase.h: Remove DARWIN_NO_CARBON.
  406. * src/base/ftbase.c: Ditto.
  407. * src/base/ftobjs.c: Ditto.
  408. * src/base/ftrfork.c: Ditto.
  409. * src/base/ftmac.c: Compile the body if FT_MACINTOSH is defined
  410. (same with TT_USE_BYTECODE_INTERPRETER in ttinterp.c).
  411. * builds/mac/ftmac.c: Ditto.
  412. * builds/mac/FreeType.m68k_cfm.make.txt: Define FT_MACINTOSH.
  413. * builds/mac/FreeType.m68k_far.make.txt: Ditto.
  414. * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
  415. * builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
  416. 2011-11-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  417. Fix Savannah bug #34728 (`make devel' on Mac OS X).
  418. * builds/toplevel.mk: Check `/dev/null' to identify the Unix-
  419. like systems without `init' nor `hurd' (e.g. Mac OS X >= 10.4).
  420. * builds/unix/detect.mk: Ditto.
  421. 2011-11-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  422. [apinames] Fix the overflow of signed integer hash.
  423. * src/tools/apinames.c (names_add): Change the type of `h' from
  424. int to unsigned int, to prevent undefined behaviour in the
  425. overflow of signed integers (overflow of unsigned int is defined
  426. to be wrap around). Found by clang test suggested by Sean
  427. McBride.
  428. 2011-11-30 Werner Lemberg <wl@gnu.org>
  429. [winfonts] Remove casts.
  430. * src/winfonts/winfnt.c (winfnt_driver_class): Remove all casts and
  431. update affected functions.
  432. (FNT_Size_Select): Fix number of arguments.
  433. 2011-11-30 Werner Lemberg <wl@gnu.org>
  434. [type42] Remove casts.
  435. * src/type42/t42driver.c (t42_driver_class): Remove all casts and
  436. update affected functions.
  437. * src/type42/t42objs.c, src/type42/t42objs.h: Updated for t42driver
  438. changes.
  439. 2011-11-30 Werner Lemberg <wl@gnu.org>
  440. [type1] Remove casts.
  441. * src/type1/t1driver.c (t1_driver_class): Remove all casts and
  442. update affected functions.
  443. * src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1objs.c:
  444. Updated for t1driver changes.
  445. src/type1/t1objs.h (T1_Driver): Remove unused typedef.
  446. Updated for t1driver changes.
  447. 2011-11-27 Werner Lemberg <wl@gnu.org>
  448. [bdf] Fix Savannah bug #34896.
  449. ENCODING now covers the whole Unicode range.
  450. Note, however, that this change is quite expensive since it
  451. increases the size of three arrays by almost 400kByte in total. The
  452. right fix is to replace the logic with something smarter.
  453. Additionally, there exist very old BDFs for three-byte CCCII
  454. encoding which exceeds the range of Unicode (another reason to have
  455. a smarter logic).
  456. * src/bdf/bdf.h (bdf_font_t): Increase size of `nmod' and `umod'
  457. arrays.
  458. * src/bdf/bdflib.c (bdf_parse_t): Increase size of `have' array.
  459. 2011-11-27 Werner Lemberg <wl@gnu.org>
  460. [bdf] Improve tracing.
  461. * src/bdf/bdflib.c (DBGMSG1, DBGMSG2): New macros.
  462. (_bdf_parse_glyphs): Use them.
  463. 2011-11-26 Werner Lemberg <wl@gnu.org>
  464. Improve tracing.
  465. * src/bdf/bdfdrivr.c (BDF_Face_Done), src/pcf/pcfdrivr.c
  466. (PCF_Face_Done): Remove tracing message.
  467. * src/bdf/bdfdrivr.c (BDF_Face_Init), src/cff/cffobjs.c
  468. (cff_face_init), src/cid/cidobjs.c (cid_face_init),
  469. src/pfr/pfrobjs.c (pfr_face_init), src/sfnt/sfobjs.c
  470. (sfnt_init_face), src/truetype/ttobjs.c (tt_face_init),
  471. src/type1/t1objs.c (T1_Face_Init), src/type42/t42objs.c
  472. (T42_Face_Init), src/winfonts/winfnt.c (FNT_Face_Init): Add
  473. `greeting' message.
  474. * src/sfnt/sfobjs.c (sfnt_open_font), src/type42/t42objs.c
  475. (T42_Open_Face): Improve tracing.
  476. 2011-11-26 Werner Lemberg <wl@gnu.org>
  477. [cid] Fix error code.
  478. * src/cid/cidparse.c (cid_parser_new): Do it.
  479. 2011-11-26 Werner Lemberg <wl@gnu.org>
  480. [cff] Fix error code.
  481. * src/cff/cffload.c (cff_font_load): Do it.
  482. 2011-11-26 Werner Lemberg <wl@gnu.org>
  483. Add new error code FT_Err_Missing_Module.
  484. Previously, FreeType misleadingly returned
  485. FT_Err_Unknown_File_Format if a module was missing (or a test was
  486. missing completely).
  487. * include/freetype/fterrdef.h (FT_Err_Missing_Module): Define.
  488. * src/cff/cffobjs.c (cff_face_init), src/cff/cffdrivr.c
  489. (cff_get_glyph_name), src/cid/cidobjs.c (cid_face_init),
  490. src/sfnt/sfobjs.c (sfnt_init_face), src/truetype/ttobjs.c
  491. (tt_face_init), src/type1/t1objs.c (T1_Face_Init),
  492. src/type42/t42objs.c (T42_Face_Init, T42_Driver_Init): Updated.
  493. * src/type1/t1afm.c (T1_Read_Metrics), src/type/t1objs.c
  494. (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Remove now
  495. redundant test for `psaux'.
  496. 2011-11-25 Werner Lemberg <wl@gnu.org>
  497. [bdf] Add more error messages.
  498. * src/bdf/bdflib.c (_bdf_set_default_spacing, _bdf_add_property):
  499. Add line number argument.
  500. Update all callers.
  501. (ERRMSG5, ERRMSG6, ERRMSG7, ERRMSG8, ERRMSG9): New macros.
  502. (_bdf_readstream, _bdf_set_default_spacing, _bdf_add_property,
  503. _bdf_parse_glyphs, _bdf_parse_start): Add error messages.
  504. 2011-11-24 Werner Lemberg <wl@gnu.org>
  505. * include/freetype/fterrors.h: Remove dead code.
  506. 2011-11-15 Werner Lemberg <wl@gnu.org>
  507. * docs/releases: Updated.
  508. 2011-11-15 Werner Lemberg <wl@gnu.org>
  509. * Version 2.4.8 released.
  510. =========================
  511. Tag sources with `VER-2-4-8'.
  512. * docs/CHANGES: Updated.
  513. * docs/VERSION.DLL: Update documentation and bump version number to
  514. 2.4.8.
  515. * README, Jamfile (RefDoc),
  516. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  517. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  518. builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
  519. builds/win32/visualc/freetype.dsp,
  520. builds/win32/visualc/freetype.vcproj,
  521. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  522. builds/win32/visualce/freetype.vcproj,
  523. builds/win32/visualce/index.html,
  524. builds/wince/vc2005-ce/freetype.vcproj,
  525. builds/wince/vc2005-ce/index.html,
  526. builds/wince/vc2008-ce/freetype.vcproj,
  527. builds/wince/vc2008-ce/index.html: s/2.4.7/2.4.8/, s/247/248/.
  528. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 8.
  529. * builds/unix/configure.raw (version_info): Set to 14:0:8.
  530. 2011-11-13 Chris Liddell <chris.liddell@artifex.com>
  531. Add FT_Get_PS_Font_Value() API.
  532. This allows a Type 1 font face to be interrogated to retrieve most
  533. of the dictionary keys (keys not relevant to FreeType's Type 1
  534. interpreter are not available).
  535. * include/freetype/internal/services/svpsinfo.h
  536. (PS_GetFontValueFunc): New typedef.
  537. (PSInfo): Add `ps_get_font_value'.
  538. (FT_DEFINE_SERVICE_PSINFOREC): Updated.
  539. * include/freetype/internal/t1types.h (T1_EncodingType): Moved to...
  540. * include/freetype/t1tables.h: Here.
  541. (PS_Dict_Keys): New enumeration.
  542. (FT_Get_PS_Font_Value): New declaration.
  543. * src/base/fttype1.c (FT_Get_PS_Font_Value): New function.
  544. * src/type1/t1driver.c (t1_ps_get_font_value): This new function
  545. does the real job.
  546. (t1_service_ps_info): Add it.
  547. * src/cff/cffdrivr.c (cff_service_ps_info), src/cid/cidriver.c
  548. (cid_service_ps_info), src/type42/t42drivr.c (t42_service_ps_info):
  549. Updated.
  550. 2011-11-08 Braden Thomas <bthomas@apple.com>
  551. [cid] Various loading fixes.
  552. * src/cid/cidload.c (cid_load_keyword) <default>,
  553. (parse_font_matrix, parse_expansion_factor): Correctly check number
  554. of dictionaries.
  555. (cid_read_subrs): Protect against invalid values of `num_subrs'.
  556. Assure that the elements of the `offsets' array are ascending.
  557. 2011-11-05 Werner Lemberg <wl@gnu.org>
  558. * README: We use copyright ranges also.
  559. According to
  560. http://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html
  561. this should be mentioned explicitly.
  562. 2011-10-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  563. [raccess] Supplement for previous fix.
  564. * src/base/ftbase.h (raccess_rule_by_darwin_vfs): Do not declare
  565. it on native Mac OS X.
  566. * src/base/ftrfork.c (raccess_get_rule_type_from_rule_index):
  567. Hide raccess_get_rule_type_from_rule_index() on native Mac OS X
  568. too.
  569. 2011-10-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  570. [raccess] Hide raccess_rule_by_darwin_vfs() on native Mac OS X.
  571. * src/base/ftrfork.c (raccess_rule_by_darwin_vfs): Do not
  572. compile on native Mac OS X because it is not used.
  573. 2011-10-25 Werner Lemberg <wl@gnu.org>
  574. [truetype] Fix MD instruction for twilight zone.
  575. * src/truetype/ttinterp.c (Ins_MD): Without this fix, the MD
  576. instruction applied to original coordinates of twilight points
  577. always returns zero.
  578. 2011-10-18 Werner Lemberg <wl@gnu.org>
  579. * Version 2.4.7 released.
  580. =========================
  581. Tag sources with `VER-2-4-7'.
  582. * docs/CHANGES: Updated.
  583. * docs/VERSION.DLL: Update documentation and bump version number to
  584. 2.4.7.
  585. * README, Jamfile (RefDoc),
  586. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  587. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  588. builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
  589. builds/win32/visualc/freetype.dsp,
  590. builds/win32/visualc/freetype.vcproj,
  591. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  592. builds/win32/visualce/freetype.vcproj,
  593. builds/win32/visualce/index.html,
  594. builds/wince/vc2005-ce/freetype.vcproj,
  595. builds/wince/vc2005-ce/index.html,
  596. builds/wince/vc2008-ce/freetype.vcproj,
  597. builds/wince/vc2008-ce/index.html: s/2.4.6/2.4.7/, s/246/247/.
  598. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 7.
  599. * builds/unix/configure.raw (version_info): Set to 13:2:7.
  600. 2011-10-15 Kal Conley <kcconley@gmail.com>
  601. Fix handling of transformations if no renderer is present.
  602. * src/base/ftobjs.c (FT_Load_Glyph): Thinko.
  603. 2011-10-15 Kal Conley <kcconley@gmail.com>
  604. Fix conditions for autohinting.
  605. * src/base/ftobjs.c (FT_Load_Glyph): Handle
  606. FT_LOAD_IGNORE_TRANSFORM.
  607. 2011-10-07 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  608. [gxvalid] Fix a bug to detect too large offset in morx table.
  609. * src/gxvalid/gxvmorx2.c
  610. (gxv_morx_subtable_type2_ligActionIndex_validate): Fix a bug
  611. that too large positive offset cannot be detected.
  612. 2011-10-01 Braden Thomas <bthomas@apple.com>
  613. Handle some border cases.
  614. * include/freetype/config/ftstdlib.h (FT_USHORT_MAX): New macro.
  615. * src/base/ftbitmap.c (FT_Bitmap_Convert): Protect against invalid
  616. value of `target->rows'.
  617. * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add check for
  618. flex start.
  619. * src/raster/ftrend1.c (ft_raster1_render): Check `width' and
  620. `height'.
  621. * src/truetype/ttgxvar.c (TT_Vary_Get_Glyph_Deltas): Protect against
  622. invalid values in `localpoints' array.
  623. 2011-10-01 Werner Lemberg <wl@gnu.org>
  624. [psnames] Handle zapfdingbats.
  625. Problem reported by Nicolas Rougier <Nicolas.Rougier@inria.fr>.
  626. * src/tools/glnames.py (adobe_glyph_list): Add data from AGL's
  627. `zapfdingbats.txt' file.
  628. * src/psnames/pstables.h: Regenerated.
  629. 2011-09-27 Simon Bünzli <zeniko@gmail.com>
  630. Fix Savannah bug #34189.
  631. * src/type1/t1load.c (T1_Open_Face): Initialize
  632. `face->len_buildchar'.
  633. 2011-09-26 Werner Lemberg <wl@gnu.org>
  634. [cff] Dump SIDs while tracing.
  635. * src/cff/cffobjs.c (cff_face_init): Do it.
  636. * src/cff/cffparse.c (cff_parser_run) [FT_DEBUG_LEVEL_TRACE]
  637. <cff_kind_string>: Identify as SID.
  638. 2011-09-17 Werner Lemberg <wl@gnu.org>
  639. Remove unused FT_ALIGNMENT macro.
  640. * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
  641. include/freetype/config/ftconfig.h: Do it.
  642. 2011-09-17 Alexei Podtelezhnikov <apodtele@gmail.com>
  643. [smooth] Slightly optimize conic and cubic flatterners.
  644. * src/smooth/ftgrays.c (gray_render_conic, gray_render_cubic): Move
  645. out some code from the main loop to speed it up.
  646. 2011-09-11 Tomas Hoger <thoger@redhat.com>
  647. Slightly improve LZW_CLEAR handling.
  648. * src/lzw/ftzopen.c (ft_lzwstate_io) <FT_LZW_PHASE_CODE>:
  649. Ensure that subsequent (modulo garbage byte(s)) LZW_CLEAR codes are
  650. handled as clear codes. This also re-sets old_code and old_char to
  651. predictable values, which is a little better than using `random'
  652. ones if the code following LZW_CLEAR is invalid.
  653. 2011-09-11 Tomas Hoger <thoger@redhat.com>
  654. Add explicit LZW decompression stack size limit.
  655. Stack larger than 1<<LZW_MAX_BITS is never needed if prefix table is
  656. constructed correctly. It's even less than that, see e.g.
  657. libarchive code comment for a better size upper bound:
  658. http://code.google.com/p/libarchive/source/browse/trunk/libarchive/archive_read_support_filter_compress.c?r=3635#121
  659. This patch adds explicit stack size limit, enforced when stack is
  660. realloced.
  661. An alternative is to ensure that code < state->prefix[code - 256]
  662. when traversing prefix table. Such check is less efficient and
  663. should not be required if prefix table is constructed correctly in
  664. the first place.
  665. * src/lzw/ftzopen.c (ft_lzwstate_stack_grow): Implement it.
  666. 2011-09-11 Tomas Hoger <thoger@redhat.com>
  667. Protect against loops in the prefix table.
  668. LZW decompressor did not sufficiently check codes read from the
  669. input LZW stream. A specially-crafted or corrupted input could
  670. create a loop in the prefix table, which leads to memory usage
  671. spikes, as there's no decompression stack size limit.
  672. * src/lzw/ftzopen.c (ft_lzwstate_io) <FT_LZW_PHASE_START>: First
  673. code in valid LZW stream must be 0..255.
  674. <FT_LZW_PHASE_CODE>: In the special KwKwK case, code == free_ent,
  675. code > free_ent is invalid.
  676. 2011-09-09 Werner Lemberg <wl@gnu.org>
  677. Better tracing of metrics.
  678. * src/base/ftobjs.c (FT_Request_Size, FT_Select_Size): Decorate with
  679. FT_TRACE.
  680. 2011-09-07 Werner Lemberg <wl@gnu.org>
  681. Fix Savannah bug #33816.
  682. * src/cff/cfftypes.h (CFF_FontRecDictRec): New member
  683. `has_font_matrix'.
  684. * src/cff/cffparse.c (cff_parse_font_matrix): Set it.
  685. Update tracing output.
  686. * src/cff/cffobjs.c (cff_face_init): Use it so that the heuristics
  687. can be removed.
  688. 2011-08-30 Werner Lemberg <wl@gnu.org>
  689. Better tracing of metrics.
  690. * src/base/ftobjs.c (FT_Select_Metrics, FT_Request_Metrics):
  691. Decorate with FT_TRACE.
  692. 2011-08-25 Werner Lemberg <wl@gnu.org>
  693. [cff] Better tracing of the parsing process.
  694. * src/cff/cffload.c (cff_subfont_load, cff_font_load): Decorate with
  695. FT_TRACE.
  696. * src/cff/cffparse.c (cff_parse_font_matrix, cff_parse_font_bbox,
  697. cff_parse_private_dict, cff_parse_cid_ros): Updated.
  698. (CFF_FIELD_NUM, CFF_FIELD_FIXED, CFF_FIELD_FIXED_1000,
  699. CFF_FIELD_STRING, CFF_FIELD_BOOL, CFF_FIELD_CALLBACK, CFF_FIELD,
  700. CFF_FIELD_DELTA): Add argument for ID.
  701. (cff_parser_run): Decorate with FT_TRACE.
  702. * src/cff/cffparse.h (CFF_Field_Handler) [FT_DEBUG_LEVEL_TRACE]: Add
  703. `id' member.
  704. * src/cff/cfftoken.h: Add IDs to all fields.
  705. 2011-08-16 Werner Lemberg <wl@gnu.org>
  706. Fix Savannah bug #34022.
  707. * README, docs/INSTALL: Remove references to UPGRADE.UNIX.
  708. 2011-08-15 Werner Lemberg <wl@gnu.org>
  709. Fix Savannah bug #34018.
  710. * docs/UPGRADE.UNIX: Removed. Obsolete.
  711. 2011-08-15 David Bevan <david.bevan@pb.com>
  712. Fix Savannah bug #33992.
  713. * src/base/ftstroke.c (FT_Stroker_ParseOutline): Fix border case.
  714. 2011-08-12 Werner Lemberg <wl@gnu.org
  715. [truetype] Fix degenerate case in S{P,F,DP}VTL opcodes.
  716. * src/truetype/ttinterp.c (Ins_SxVTL): Handle p1 == p2 specially.
  717. (Ins_SDPVTL): Handle v1 == v2 specially.
  718. 2011-08-09 Werner Lemberg <wl@gnu.org>
  719. Fix Savannah bug #33975.
  720. * src/cff/cffparse.c (cff_parse_font_matrix): Fix typo.
  721. 2011-07-29 Werner Lemberg <wl@gnu.org>
  722. * Version 2.4.6 released.
  723. =========================
  724. Tag sources with `VER-2-4-6'.
  725. * docs/CHANGES: Updated.
  726. * docs/VERSION.DLL: Update documentation and bump version number to
  727. 2.4.6.
  728. * README, Jamfile (RefDoc),
  729. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  730. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  731. builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
  732. builds/win32/visualc/freetype.dsp,
  733. builds/win32/visualc/freetype.vcproj,
  734. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  735. builds/win32/visualce/freetype.vcproj,
  736. builds/win32/visualce/index.html,
  737. builds/wince/vc2005-ce/freetype.vcproj,
  738. builds/wince/vc2005-ce/index.html,
  739. builds/wince/vc2008-ce/freetype.vcproj,
  740. builds/wince/vc2008-ce/index.html: s/2.4.5/2.4.6/, s/245/246/.
  741. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 6.
  742. * builds/unix/configure.raw (version_info): Set to 13:1:7.
  743. 2011-07-29 Werner Lemberg <wl@gnu.org>
  744. [cff] Add some more tracing infos.
  745. * src/cff/cffparse.c (cff_parse_font_matrix, cff_parse_font_bbox,
  746. cff_parse_cid_ros): Add tracing.
  747. 2011-07-22 Dirk Müller <dmueller@suse.de>
  748. [psaux, type1] Fix null pointer dereferences.
  749. Found with font fuzzying.
  750. * src/psaux/t1decode.c (t1_decoder_parse_charstrings): Check
  751. `decoder->buildchar'.
  752. * src/type1/t1load.c (t1_load_keyword): Check `blend->num_designs'.
  753. 2011-07-20 Chris Morgan <cmorgan@cybexintl.com>
  754. Add FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT.
  755. Useful for embedded systems which don't need file stream support.
  756. * src/base/ftsystem.c, src/base/ftobjs.c (FT_Stream_New): Implement
  757. it.
  758. 2011-07-20 Elton Chung <elton328@gmail.com>
  759. * src/base/ftpatent.c (FT_Face_SetUnpatentedHinting): Fix typo.
  760. 2011-07-16 Steven Chu <steven.f.chu@gmail.com>
  761. [truetype] Fix metrics on size request for scalable fonts.
  762. * src/truetype/ttdriver.c (tt_size_request): Fix copying metrics
  763. from TT_Size to FT_Size if scalable font.
  764. See
  765. http://lists.gnu.org/archive/html/freetype-devel/2011-07/msg00049.html
  766. for some comparison images.
  767. 2011-07-14 Matthias Drochner <M.Drochner@fz-juelich.de>.
  768. [psaux] Fix potential sign extension problems.
  769. When shifting right a signed value, it is not defined by the
  770. C standard whether one gets a sign extension or not. Use a macro to
  771. do an explicit cast from a signed short (assuming that this is
  772. 16bit) to an int.
  773. * src/psaux/t1decode.c (Fix2Int): New macro.
  774. Use it where appropriate.
  775. 2011-07-14 Werner Lemberg <wl@gnu.org>
  776. * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
  777. <op_callothersubr>: Better handling of subroutine index 0.
  778. From Matthias Drochner <M.Drochner@fz-juelich.de>.
  779. 2011-07-10 Алексей Подтележников <apodtele@gmail.com>
  780. [psaux] Optimize previous commit.
  781. * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
  782. <op_callothersubr>: Move error check down to avoid testing twice for
  783. good cases.
  784. 2011-07-08 Werner Lemberg <wl@gnu.org>
  785. [psaux] Add better argument check for `callothersubr'.
  786. * src/psaux/t1decode.c (t1_decoder_parse_charstrings)
  787. <op_callothersubr>: Reject negative arguments.
  788. 2011-07-07 Werner Lemberg <wl@gnu.org>
  789. [sfnt] Try harder to find non-zero values for ascender and descender.
  790. * src/sfnt/sfobjs.c (sfnt_load_face): Consult `OS/2' table in case
  791. the `hhea' table's values are zero.
  792. 2011-07-03 Werner Lemberg <wl@gnu.org>
  793. Fix previous commit.
  794. We want to unset FT_FACE_FLAG_SCALABLE only if there are bitmap
  795. strikes in the font.
  796. * src/truetype/ttobjs.c (tt_face_init): Implement it.
  797. * docs/CHANGES: Updated.
  798. 2011-07-02 Just Fill Bugs <mozbugbox@yahoo.com.au>
  799. Fix Savannah bug #33246.
  800. * src/truetype/ttobjs.c (tt_check_single_notdef): New function.
  801. (tt_face_init): Use it to test FT_FACE_FLAG_SCALABLE.
  802. 2011-07-02 Werner Lemberg <wl@gnu.org>
  803. * docs/CHANGES: Updated.
  804. 2011-07-02 David Bevan <david.bevan@pb.com>
  805. [ftstroke] Major revision.
  806. The main problems
  807. -----------------
  808. o If FT_STROKER_LINEJOIN_BEVEL was specified, unlimited miter
  809. joins (not bevel joins) were generated. Indeed, the meanings of
  810. `miter' and `bevel' were incorrectly reversed (consistently) in
  811. both the code and comments.
  812. o The way bevel joins were constructed (whether specified
  813. explicitly, or created as a result of exceeding the miter limit)
  814. did not match what is required for stroked text in PostScript or
  815. PDF.
  816. The main fixes
  817. --------------
  818. o The behaviour of FT_STROKER_LINEJOIN_BEVEL has been corrected.
  819. o A new line join style, FT_STROKER_LINEJOIN_MITER_FIXED, has been
  820. introduced to support PostScript and PDF miter joins.
  821. o FT_STROKER_LINEJOIN_MITER_VARIABLE has been introduced as an
  822. alias for FT_STROKER_LINEJOIN_MITER.
  823. Additionally, a variety of stroking errors have been fixed. These
  824. would cause various artifacts (including points `at infinity'),
  825. especially when stroking poor quality fonts.
  826. See
  827. http://lists.gnu.org/archive/html/freetype-devel/2011-07/msg00001.html
  828. for example documents. The FreeType stroker now produces results
  829. very similar to that produced by GhostScript and Distiller for these
  830. fonts.
  831. Other problems
  832. --------------
  833. The following problems have been resolved:
  834. o Inside corners could be generated incorrectly. Intersecting the
  835. inside corner could cause a missing triangular area and other
  836. effects.
  837. The intersection point can only be used if the join is between
  838. two lines and both lines are long enough. The `optimization'
  839. condition in `ft_stroker_inside' has been corrected; this
  840. requires the line length to be passed into various functions and
  841. stored in `FT_StrokerRec'.
  842. o Incorrect cubic curves could be generated. The angle
  843. calculations in `FT_Stroker_CubicTo' have been corrected to
  844. handle the case of the curve crossing the +/-PI direction.
  845. o If the border radius was greater than the radius of curvature of
  846. a curve, then the negative sector would end up outside (not
  847. inside) the border. This situation is now recognized and the
  848. negative sector is circumnavigated in the opposite direction.
  849. (If round line joins are being used, this code is disabled
  850. because the line join will always cover the negative sector.)
  851. o When a curve is split, the arcs may not join smoothly (especially
  852. if the curve turns sharply back on itself). Changes in
  853. direction between adjacent arcs were not handled. A round
  854. corner is now added if the deviation from one arc to the next is
  855. greater than a suitable threshold.
  856. o The current direction wasn't retained if a the outline contained
  857. a zero length lineto or a curve that was determined to be
  858. `basically a point'. This could cause a spurious join to be
  859. added.
  860. o Cubics with close control points could be mishandled. All eight
  861. cases are now distinguished correctly.
  862. Other improvements
  863. ------------------
  864. o Borders for cubic curves could be too `flat'.
  865. FT_SMALL_CUBIC_THRESHOLD has been reduced a little to prevent
  866. this.
  867. o The handling and use of movable points has been simplified a
  868. little.
  869. o Various values are now computed only if the results are actually
  870. needed.
  871. o The directions of the outer and inner borders have been swapped,
  872. as recommended by Graham Asher.
  873. * src/base/ftstroke.c: Revised.
  874. * include/freetype/ftstroke.h: Updated.
  875. 2011-06-30 İsmail Dönmez <ismail@namtrac.org>
  876. * builds/toplevel.mk: We use git, not CVS, thus skip `.gitignore'.
  877. 2011-06-29 Werner Lemberg <wl@gnu.org>
  878. Fix Savannah bug #33663.
  879. * src/bdf/bdflib.c (_bdf_parse_glyphs): Handle negative values for
  880. ENCODING correctly.
  881. * docs/CHANGES: Document it.
  882. 2011-06-24 Werner Lemberg <wl@gnu.org>
  883. * Version 2.4.5 released.
  884. =========================
  885. Tag sources with `VER-2-4-5'.
  886. * docs/CHANGES: Updated.
  887. * docs/VERSION.DLL: Update documentation and bump version number to
  888. 2.4.5
  889. * README, Jamfile (RefDoc),
  890. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  891. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  892. builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
  893. builds/win32/visualc/freetype.dsp,
  894. builds/win32/visualc/freetype.vcproj,
  895. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  896. builds/win32/visualce/freetype.vcproj,
  897. builds/win32/visualce/index.html,
  898. builds/wince/vc2005-ce/freetype.vcproj,
  899. builds/wince/vc2005-ce/index.html,
  900. builds/wince/vc2008-ce/freetype.vcproj,
  901. builds/wince/vc2008-ce/index.html: s/2.4.4/2.4.5/, s/244/245/.
  902. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
  903. * builds/unix/configure.raw (version_info): Set to 13:0:7.
  904. 2011-06-20 Werner Lemberg <wl@gnu.org>
  905. * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Fix change
  906. from 2011-05-04.
  907. 2011-06-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  908. [gxvalid] make the `prop' validation tracing verbose.
  909. * src/gxvalid/gxvprop.c: Add tracing messages for errors.
  910. 2011-06-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  911. [autogen.sh] Reflect environment variable LIBTOOLIZE.
  912. 2011-06-18 Werner Lemberg <wl@gnu.org>
  913. Update license documentation.
  914. * docs/GPL.TXT: Renamed to...
  915. * docs/GPLv2.TXT: This.
  916. * docs/LICENSE.TXT: Updated.
  917. 2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  918. Fix g++4.6 compiler warnings in module drivers.
  919. The background is same with previous commit.
  920. * src/truetype/ttgxvar.c (ft_var_readpackedpoints):
  921. Init `points'. (TT_Vary_Get_Glyph_Deltas): Init
  922. `delta_xy'. (TT_Get_MM_Var): Init `mmvar'.
  923. * src/type1/t1load.c (T1_Get_MM_Var): Ditto.
  924. * src/cff/cffdrivr.c (cff_ps_get_font_info): Init
  925. `font_info'.
  926. * src/cff/cffload.c (cff_index_get_pointers): Init `t'.
  927. (cff_font_load): Init `sub'.
  928. * src/cff/cffobjs.c (cff_size_init): Init `internal'.
  929. (cff_face_init): Init `cff'.
  930. * src/pfr/pfrload.c (pfr_extra_item_load_stem_snaps):
  931. Init `snaps'.
  932. * src/pcf/pcfread.c (pcf_get_properties): Init `properties'.
  933. (pcf_get_bitmaps): Init `offsets'. (pcf_get_encodings):
  934. Init `tmpEncoding'.
  935. * src/sfnt/ttload.c (tt_face_load_gasp): Init `gaspranges'.
  936. * src/sfnt/ttsbit.c (Load_SBit_Image): Init `components'.
  937. * src/cache/ftcmru.c (FTC_MruList_New): Init `node'.
  938. * src/gzip/ftgzip.c (FT_Stream_OpenGzip): Init `zip' and
  939. `zip_buff'.
  940. * src/lzw/ftlzw.c (FT_Stream_OpenLZW): Init `zip'.
  941. * src/bzip2/ftbzip2.c (FT_Stream_OpenBzip2): Init `zip'.
  942. 2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  943. [base] Fix g++4.6 compiler warnings in src/base/*.c.
  944. Passing uninitialized pointer to FT_NEW() families is
  945. not problematic theoretically (as far as the returned
  946. pointer is checked before writing), but g++4.6 dislikes
  947. it and warns by -Wuninitialized. Initialize them by NULL.
  948. * src/base/ftobjs.c (FT_Stream_New): Init `stream'.
  949. (new_memory_stream): Ditto.
  950. (FT_New_GlyphSlot): Init `slot'.
  951. (FT_CMap_New): Init `cmap'.
  952. (open_face_PS_from_sfnt_stream): Init `sfnt_ps'.
  953. (Mac_Read_POST_Resource): Init `pfb_data'.
  954. (Mac_Read_sfnt_Resource): Init `sfnt_data'.
  955. * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets):
  956. Init `offsets_internal' and `ref'.
  957. (raccess_guess_darwin_hfsplus): Init `newpath'.
  958. (raccess_guess_darwin_newvfs): Ditto.
  959. * src/base/ftbitmap.c (ft_bitmap_assure_buffer):
  960. Init `buffer'.
  961. * src/base/ftstroke.c (FT_Stroker_New): Init `stroker'.
  962. 2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  963. [gxvalid] Cleanup.
  964. Some invalid, overrunning, unrecommended non-zero values
  965. are cared in paranoid validation mode only. There are
  966. many lines looking like:
  967. if ( valid->root->level >= FT_VALIDATE_PARANOID )
  968. FT_INVALID_xxx;
  969. To simplify them, GXV_SET_ERR_IF_PARANOID( err ) is
  970. introduced for more paranoid validation in future.
  971. * src/gxvalid/gxvcommn.h (IS_PARANOID_VALIDATION):
  972. New macro to assure valid->root->level is more or
  973. equal to FT_VALIDATE_PARANOID. (GXV_SET_ERR_IF_PARANOID):
  974. New macro to raise an error if in paranoid validation.
  975. * src/gxvalid/gxvcommn.c: Use GXV_SET_ERR_IF_PARANOID().
  976. * src/gxvalid/gxvfeat.c: Ditto.
  977. * src/gxvalid/gxvjust.c: Ditto.
  978. * src/gxvalid/gxvkern.c: Ditto.
  979. * src/gxvalid/gxvmort.c: Ditto.
  980. * src/gxvalid/gxvmort0.c: Ditto.
  981. * src/gxvalid/gxvmort1.c: Ditto.
  982. * src/gxvalid/gxvmort2.c: Ditto.
  983. * src/gxvalid/gxvmorx1.c: Ditto.
  984. * src/gxvalid/gxvmorx2.c: Ditto.
  985. 2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  986. [gxvalid] Fix gcc4.6 compiler warnings in gxvtrak.c.
  987. * src/gxvalid/gxvtrak.c (gxv_trak_trackTable_validate):
  988. Check different entries pointing same traking value.
  989. (gxv_trak_validate): Remove unused variable `table_size'.
  990. 2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  991. [gxvalid] Fix gcc4.6 compiler warnings in gxvmorx*.c.
  992. * src/gxvalid/gxvmorx.c (gxv_morx_subtables_validate):
  993. Conditionalize unvalidated variable `subFeatureFlags'.
  994. (gxv_morx_chain_validate): Conditionalize unvalidated
  995. variable `defaultFlags'.
  996. * src/gxvalid/gxmorx0.c
  997. (gxv_morx_subtable_type0_entry_validate):
  998. Conditionalize unvalidated variables; `markFirst',
  999. `dontAdvance', `markLast', `verb'.
  1000. * src/gxvalid/gxmorx1.c
  1001. (gxv_morx_subtable_type1_entry_validate): Conditionalize
  1002. unvalidated variables; `setMark', `dontAdvance'.
  1003. * src/gxvalid/gxvmorx2.c
  1004. (gxv_morx_subtable_type2_ligActionOffset_validate):
  1005. Conditionalize unvalidated variables; `last', `store'.
  1006. Checking for overrunning offset is added.
  1007. (gxv_morx_subtable_type2_entry_validate):
  1008. Conditionalize unvalidated variables; `setComponent',
  1009. `dontAdvance', `performAction'.
  1010. (gxv_morx_subtable_type2_ligatureTable_validate):
  1011. Check if the GID for ligature does not exceed the
  1012. max GID in `maxp' table.
  1013. * src/gxvalid/gxvmort5.c
  1014. (gxv_morx_subtable_type5_InsertList_validate):
  1015. Conditionalize unvalidated loading of `insert_glyphID'
  1016. array. (gxv_morx_subtable_type5_entry_validate):
  1017. Conditionalize unvalidated variables; `setMark',
  1018. `dontAdvance', `currentIsKashidaLike',
  1019. `markedIsKashidaLike', `currentInsertBefore',
  1020. `markedInsertBefore'.
  1021. 2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1022. [gxvalid] Fix gcc4.6 compiler warnings in gxvmort*.c.
  1023. * src/gxvalid/gxvmort.c (gxv_mort_subtables_validate):
  1024. Conditionalize unvalidated variable `subFeatureFlags'.
  1025. (gxv_mort_chain_validate): Conditionalize unvalidated
  1026. variable `defaultFlags'.
  1027. * src/gxvalid/gxmort0.c
  1028. (gxv_mort_subtable_type0_entry_validate): Check the
  1029. conflict of the marks for the glyphs.
  1030. * src/gxvalid/gxmort1.c
  1031. (gxv_mort_subtable_type1_offset_to_subst_validate):
  1032. Local variables `min_gid', `max_gid' are replaced by
  1033. variables in the validator.
  1034. (gxv_mort_subtable_type1_entry_validate): Conditionalize
  1035. unvalidated variables; `setMark', `dontAdvance'.
  1036. (gxv_mort_subtable_type1_substTable_validate):
  1037. Validate the GID by the min/max GIDs in the validator.
  1038. * src/gxvalid/gxvmort2.c
  1039. (gxv_mort_subtable_type2_ligActionOffset_validate):
  1040. Conditionalize unvalidated variables; `last', `store'.
  1041. Checking for overrunning offset is added.
  1042. (gxv_mort_subtable_type2_entry_validate):
  1043. Conditionalize unvalidated variables; `setComponent',
  1044. `dontAdvance'.
  1045. (gxv_mort_subtable_type2_ligatureTable_validate):
  1046. Check if the GID for ligature does not exceed the
  1047. max GID in `maxp' table.
  1048. * src/gxvalid/gxvmort5.c
  1049. (gxv_mort_subtable_type5_InsertList_validate):
  1050. Conditionalize unvalidated loading of `insert_glyphID'
  1051. array. (gxv_mort_subtable_type5_entry_validate):
  1052. Conditionalize unvalidated variables; `setMark',
  1053. `dontAdvance', `currentIsKashidaLike',
  1054. `markedIsKashidaLike', `currentInsertBefore',
  1055. `markedInsertBefore'.
  1056. 2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1057. [gxvalid] Fix gcc4.6 compiler warnings in gxvkern.c.
  1058. * src/gxvalid/gxvkern.c
  1059. (gxv_kern_subtable_fmt0_pairs_validate): Conditionalize
  1060. unvalidated variable `kernValue'.
  1061. (gxv_kern_subtable_fmt1_entry_validate): Conditionalize
  1062. unvalidated variables; `push', `dontAdvance', `kernAction',
  1063. `kernValue'.
  1064. (gxv_kern_coverage_new_apple_validate): Conditionalize
  1065. trace-only variables; `kernVertical', `kernCrossStream',
  1066. `kernVariation'.
  1067. (gxv_kern_coverage_classic_apple_validate): Conditionalize
  1068. trace-only variables; `horizontal', `cross_stream'.
  1069. (gxv_kern_coverage_classic_microsoft_validate):
  1070. Conditionalize trace-only variables; `horizontal',
  1071. `minimum', `cross_stream', `override'.
  1072. (gxv_kern_subtable_validate): Conditionalize trace-only
  1073. variables; `version', `tupleIndex'.
  1074. 2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1075. [gxvalid] Fix gcc4.6 compiler warnings in gxvjust.c.
  1076. * src/gxvalid/gxvjust.c (gxv_just_check_max_gid):
  1077. New function to unify the checks of too large GID.
  1078. (gxv_just_wdp_entry_validate): Conditionalize unvalidated
  1079. variables; `beforeGrowLimit', `beforeShrinkGrowLimit',
  1080. `afterGrowLimit', `afterShrinkGrowLimit', `growFlags',
  1081. `shrinkFlags'. Additional check for non-zero values in
  1082. unused storage `justClass' is added.
  1083. (gxv_just_actSubrecord_type0_validate): Conditionalize
  1084. unvalidated variable `order'. GID is checked by
  1085. gxv_just_check_max_gid(). Additional check for upside-down
  1086. relationship between `lowerLimit' and `upperLimit' is added.
  1087. (gxv_just_actSubrecord_type1_validate): GID is checked by
  1088. gxv_just_check_max_gid().
  1089. (gxv_just_actSubrecord_type2_validate): Conditionalize
  1090. unvalidated variable `substThreshhold'. GID is checked by
  1091. gxv_just_check_max_gid().
  1092. (gxv_just_actSubrecord_type5_validate): GID is checked by
  1093. gxv_just_check_max_gid().
  1094. (gxv_just_classTable_entry_validate): Conditionalize
  1095. unvalidated variables; `setMark', `dontAdvance',
  1096. `markClass', `currentClass'.
  1097. 2011-06-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1098. [gxvalid] Preparation to fix gcc4.6 compiler warnings.
  1099. * src/gxvalid/gxvcommn.h (GXV_LOAD_TRACE_VARS): New macro to
  1100. conditionalize the variable which is only used for trace messages.
  1101. Automatically set by FT_DEBUG_LEVEL_TRACE.
  1102. (GXV_LOAD_UNUSED_VARS): New macro to conditionalize the loading of
  1103. unvalidated variables. Undefined by default to calm gcc4.6 warning.
  1104. (GXV_ValidatorRec.{min_gid,max_gid}): New variables to hold defined
  1105. GID ranges, for the comparison of GID ranges in different subtables.
  1106. 2011-06-08 Werner Lemberg <wl@gnu.org>
  1107. [autofit] Remove unused structure member.
  1108. * src/autofit/afhints.h (AF_SegmentRec): Remove `contour'.
  1109. * src/autofit/aflatin.c (af_latin_hints_compute_segments),
  1110. src/autofit/aflatin2.c (af_latin2_hints_compute_segments): Updated.
  1111. 2011-05-30 Werner Lemberg <wl@gnu.org>
  1112. Fix g++ 4.6 compilation.
  1113. * src/autofit/afhints.c (af_glyph_hints_dump_segments,
  1114. af_glyph_hints_dump_edges): Use cast.
  1115. 2011-05-30 Werner Lemberg <wl@gnu.org>
  1116. Fix gcc 4.6 compiler warnings.
  1117. * src/autofit/afcjk.c (af_cjk_metrics_init_blues): Use casts and
  1118. remove unused variables.
  1119. * src/autofit/aflatin.c (af_latin_hints_compute_edges): Comment out
  1120. `up_dir'.
  1121. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use `height_org'
  1122. and `width_org' conditionalized.
  1123. 2011-05-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1124. [mac] Conditionalize the inclusion of `AvailabilityMacros.h'.
  1125. The native SDK on earliest Mac OS X (10.0-10.1) did not have
  1126. `AvailabilityMacros.h'. To prevent the inclusion of missing
  1127. header file, ECANCELED (introduced in 10.2) in POSIX header
  1128. file <errno.h> is checked to detect the system version.
  1129. * include/freetype/config/ftconfig.h: Conditionalize the
  1130. inclusion of `AvailabilityMacros.h'.
  1131. * builds/unix/ftconfig.in: Ditto.
  1132. * builds/vms/ftconfig.h: Ditto.
  1133. 2011-05-27 Werner Lemberg <wl@gnu.org>
  1134. [autofit] Improve tracing of hinting process.
  1135. * src/autofit/aflatin.c (af_latin_hint_edges): Add tracing message
  1136. `ADJUST'.
  1137. 2011-05-26 Werner Lemberg <wl@gnu.org>
  1138. [autofit] Fix trace message.
  1139. * src/autofit/aflatin.c (af_latin_hint_edges): Show correct value in
  1140. tracing message.
  1141. 2011-05-24 Daniel Zimmermann <netzimme@googlemail.com>
  1142. Reduce warnings for MS Visual Studio 2010.
  1143. * src/autofit/afhints.c (af_glyph_hints_get_num_segments,
  1144. af_glyph_hints_get_segment_offset) [!FT_DEBUG_AUTOFIT]: Provide
  1145. return value.
  1146. * src/cff/cffgload.c (cff_slot_load): Add cast.
  1147. * src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids): Use proper
  1148. loop variable type.
  1149. 2011-05-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1150. Automake component `builds/unix/install-sh' is removed.
  1151. * builds/unix/install-sh: Removed. It is not needed to
  1152. include repository, because autogen.sh installs it.
  1153. * builds/unix/.gitignore: Register install-sh.
  1154. 2011-05-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1155. [autofit] Make trace message for CJK bluezone more verbose.
  1156. 2011-05-08 Just Fill Bugs <mozbugbox@yahoo.com.au>
  1157. suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1158. [autofit] Add bluezones for CJK Ideographs.
  1159. To remove extremas of vertical strokes of CJK Ideographs at
  1160. low resolution and make the top and bottom horizontal stems
  1161. aligned, bluezones for CJK Ideographs are calculated from
  1162. sample glyphs. At present, vertical bluezones (bluezones
  1163. to align vertical stems) are disabled by default. For detail, see
  1164. http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00070.html
  1165. http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00092.html
  1166. http://lists.gnu.org/archive/html/freetype-devel/2011-05/msg00001.html
  1167. * include/freetype/internal/fttrace.h: New trace component `afcjk'.
  1168. * src/autofit/afcjk.h (AF_CJK{Blue,Axis,Metric}Rec): Add CJK version
  1169. for AF_Latin{Blue,Axis,Metric}Rec.
  1170. (af_cjk_metrics_check_digits): Ditto, shared with Indic module.
  1171. (af_cjk_metrics_init_widths): Ditto.
  1172. (af_cjk_metrics_init): Take AF_CJKMetric instead of AF_LatinMetric.
  1173. (af_cjk_metrics_scale): Ditto (declaration).
  1174. (af_cjk_hints_init): Ditto (declaration).
  1175. (af_cjk_hints_apply): Ditto (declaration).
  1176. * src/autofit/afcjk.c (af_cjk_metrics_scale): Ditto (body).
  1177. (af_cjk_hints_init): Ditto (body).
  1178. (af_cjk_hints_apply): Ditto (body).
  1179. (af_cjk_metrics_init_widths): Duplicate af_latin_metrics_init_widths.
  1180. (af_cjk_metrics_check_digits): Duplicate af_latin_metrics_check_digits.
  1181. (af_cjk_metrics_init): Call CJK bluezone initializer.
  1182. (af_cjk_metrics_scale_dim): Add code to scale bluezones.
  1183. (af_cjk_hints_compute_blue_edges): New function, CJK version of
  1184. af_latin_hints_compute_blue_edges.
  1185. (af_cjk_metrics_init_blues): New function, CJK version of
  1186. af_latin_metrics_init_blues.
  1187. (af_cjk_hints_edges): Add code to align the edge stems to blue zones.
  1188. * src/autofit/afindic.c (af_indic_metrics_init): Take AF_CJKMetric
  1189. instead of AF_LatinMetric, and initialize as af_cjk_metrics_init.
  1190. However bluezones are not initialized.
  1191. (af_indic_metrics_scale): Take AF_CJKMetric instead of AF_LatinMetric.
  1192. (af_indic_hints_init): Ditto.
  1193. (af_indic_hints_apply): Ditto.
  1194. * docs/CHANGES: Note about CJK bluezone support.
  1195. 2011-05-06 Werner Lemberg <wl@gnu.org>
  1196. [autofit] Remove unused struct member.
  1197. * src/autofit/aflatin.h (AF_LatinAxis): Remove `control_overshoot'.
  1198. 2011-05-04 Werner Lemberg <wl@gnu.org>
  1199. * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Simplify.
  1200. 2011-05-01 Just Fill Bugs <mozbugbox@yahoo.com.au>
  1201. Werner Lemberg <wl@gnu.org>
  1202. [autofit] Add more debugging functions.
  1203. * src/autofit/afhints.c (af_glyph_hints_get_num_segments,
  1204. af_glyph_hints_get_segment_offset): New functions.
  1205. 2011-05-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1206. Add new option `--disable-mmap' to configure script.
  1207. * builds/unix/configure.raw: New option `--disable-mmap'
  1208. is added. It is for the developers to simulate the systems
  1209. without mmap() (like 4.3BSD, minix etc) on POSIX systems.
  1210. 2011-04-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1211. [truetype] Always recalculate the sfnt table checksum.
  1212. * src/truetype/ttobjs.c (tt_get_sfnt_checksum): Recalculate
  1213. the sfnt table checksum even if non-zero value is written in
  1214. the TrueType font header. Some bad PDF generators write
  1215. wrong values. For details see examples and benchmark tests
  1216. of the latency by recalculation:
  1217. http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00091.html
  1218. http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00096.html
  1219. 2011-04-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1220. [truetype] Register a set of tricky fonts, NEC FA family.
  1221. * src/truetype/ttobjs.c (tt_check_trickyness_sfnt_ids):
  1222. Add 8 checksum sets for NEC FA family. For the tricky fonts
  1223. without some tables (e.g. NEC FA fonts lack cvt table),
  1224. extra check is added to assure that a zero-length table in the
  1225. registry is not included in the font.
  1226. 2011-04-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1227. [truetype] Fix a bug in the sfnt table checksum getter.
  1228. * src/truetype/ttobjs.c (tt_get_sfnt_checksum): Check the
  1229. return value of face->goto_table() correctly.
  1230. 2011-04-28 Werner Lemberg <wl@gnu.org>
  1231. [autofit] Improve tracing messages.
  1232. * src/autofit/aflatin.c (af_latin_metrics_init_blues,
  1233. af_latin_align_linked_edge, af_latin_hint_edges): Do it.
  1234. 2011-04-25 Kan-Ru Chen <kanru@kanru.info>
  1235. [truetype] Always check the checksum to identify tricky fonts.
  1236. Because some PDF generators mangle the family name badly,
  1237. the trickyness check by the checksum should be invoked always.
  1238. For sample PDF, see
  1239. http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00073.html
  1240. * src/truetype/ttobjs.c (tt_check_trickyness): Even when
  1241. tt_check_trickyness_family() finds no trickyness,
  1242. tt_check_trickyness_sfnt_ids() is invoked.
  1243. 2011-04-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1244. [autofit] Add more Indic scripts with hanging baseline.
  1245. * src/autofit/afindic.c (af_indic_uniranges): Tibetan, Limbu,
  1246. Sundanese, Meetei Mayak, Syloti Nagri and Sharada scripts are
  1247. added.
  1248. 2011-04-21 Behdad Esfahbod <behdad@behdad.org>
  1249. Always ignore global advance.
  1250. This makes FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH redundant,
  1251. deprecated, and ignored. The new behavior is what every major user
  1252. of FreeType has been requesting. Global advance is broken in many
  1253. CJK fonts. Just ignoring it by default makes most sense.
  1254. * src/truetype/ttdriver.c (tt_get_advances),
  1255. src/truetype/ttgload.c (TT_Get_HMetrics, TT_Get_VMetrics,
  1256. tt_get_metrics, compute_glyph_metrics, TT_Load_Glyph),
  1257. src/truetype/ttgload.h: Implement it.
  1258. * docs/CHANGES: Updated.
  1259. 2011-04-21 rainy6144 <rainy6144@gmail.com>
  1260. [autofit] Blur CJK stems if too many to preserve their gaps.
  1261. When there are too many stems to preserve their gaps in the
  1262. rasterization of CJK Ideographs at a low resolution, blur the
  1263. stems instead of showing clumped stems. See
  1264. http://lists.gnu.org/archive/html/freetype-devel/2011-02/msg00011.html
  1265. http://lists.gnu.org/archive/html/freetype-devel/2011-04/msg00046.html
  1266. for details.
  1267. * src/autofit/afcjk.c (af_cjk_hint_edges): Store the position of
  1268. the previous stem by `has_last_stem' and `last_stem_pos', and skip
  1269. a stem if the current and previous stem are too near to preserve
  1270. the gap.
  1271. 2011-04-18 Werner Lemberg <wl@gnu.org>
  1272. Integrate autofitter debugging stuff.
  1273. * devel/ftoption.h, include/freetype/config/ftoption.h
  1274. (FT_DEBUG_AUTOFIT): New macro.
  1275. * include/freetype/internal/fttrace.h: Add trace components for
  1276. autofitter.
  1277. * src/autofit/aftypes.h (AF_LOG): Removed.
  1278. (_af_debug): Removed.
  1279. * src/autofit/*: s/AF_DEBUG/FT_DEBUG_AUTOFIT/.
  1280. s/AF_LOG/FT_TRACE5/.
  1281. Define FT_COMPONENT where necessary.
  1282. 2011-04-18 Werner Lemberg <wl@gnu.org>
  1283. Synchronize config files.
  1284. * builds/unix/ftconfig.in: Copy missing assembler routines from
  1285. include/freetype/config/ftconfig.h.
  1286. 2011-04-13 Werner Lemberg <wl@gnu.org>
  1287. Fix Savannah bug #33047.
  1288. Patch submitted by anonymous reporter.
  1289. * src/psaux/psobjs.c (ps_table_add): Use FT_PtrDist for pointer
  1290. difference.
  1291. 2011-04-11 Kan-Ru Chen <kanru@kanru.info>
  1292. Fix reading of signed integers from files on 64bit platforms.
  1293. Previously, signed integers were converted to unsigned integers, but
  1294. this can fail because of sign extension. For example, 0xa344a1eb
  1295. becomes 0xffffffffa344a1eb.
  1296. We now do the reverse which is always correct because the integer
  1297. size is the same during the cast from unsigned to signed.
  1298. * include/freetype/internal/ftstream.h, src/base/ftstream.c
  1299. (FT_Stream_Get*): Replace with...
  1300. (FT_Stream_GetU*): Functions which read unsigned integers.
  1301. Update all macros accordingly.
  1302. * src/gzip/ftgzip.c (ft_gzip_get_uncompressed_size): Updated.
  1303. 2011-04-07 Werner Lemberg <wl@gnu.org>
  1304. Update Unicode ranges for CJK autofitter; in particular, add Hangul.
  1305. * src/autofit/afcjk.c (af_cjk_uniranges): Update to Unicode 6.0.
  1306. 2011-04-04 Werner Lemberg <wl@gnu.org>
  1307. Fix formatting of autofit debug dumps.
  1308. * src/autofit/afhints.c (af_glyph_hints_dump_points,
  1309. af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Adjust
  1310. column widths.
  1311. 2011-03-30 Werner Lemberg <wl@gnu.org>
  1312. * src/autofit/aftypes.h (AF_OutlineRec): Removed, unused.
  1313. 2011-03-24 Werner Lemberg <wl@gnu.org>
  1314. * src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 256.
  1315. This limit is given on p. 37 of Adobe Technical Note #5014.
  1316. 2011-03-23 Werner Lemberg <wl@gnu.org>
  1317. * src/truetype/ttpload.c (tt_face_load_loca): Fix mismatch warning.
  1318. 2011-03-20 Werner Lemberg <wl@gnu.org>
  1319. * src/sfnt/sfobjs.c (sfnt_open_font): Check number of TTC subfonts.
  1320. 2011-03-19 Werner Lemberg <wl@gnu.org>
  1321. More C++ compilation fixes.
  1322. * src/autofit/afhints.c (af_glyph_hints_dump_points,
  1323. af_glyph_hints_dump_segments, af_glyph_hints_dump_edges)
  1324. [__cplusplus]: Protect with `extern "C"'.
  1325. 2011-03-18 Werner Lemberg <wl@gnu.org>
  1326. C++ compilation fixes.
  1327. * src/autofit/aflatin.c (af_latin_hints_apply), src/autofit/afcjk.c
  1328. (af_cjk_hints_apply): Use cast for `dim'.
  1329. 2011-03-17 Alexei Podtelezhnikov <apodtele@gmail.com>
  1330. A better fix for Savannah bug #32671.
  1331. * src/smooth/ftgrays.c (gray_render_conic): Clean up code and
  1332. replace WHILE loop with a more natural DO-WHILE construct.
  1333. 2011-03-16 Werner Lemberg <wl@gnu.org>.
  1334. * src/base/ftstroke.c (FT_StrokerRec): Remove unused `valid' field.
  1335. Suggested by Graham Asher.
  1336. 2011-03-09 Werner Lemberg <wl@gnu.org>
  1337. Make FT_Sfnt_Table_Info return the number of SFNT tables.
  1338. * src/sfnt/sfdriver.c (sfnt_table_info): Implement it.
  1339. * include/freetype/tttables.h: Update documentation.
  1340. * docs/CHANGES: Updated.
  1341. 2011-03-07 Bram Tassyns <bramt@enfocus.be>
  1342. Fix Savannah bug #27988.
  1343. * src/cff/cffobjs.c (remove_style): New function.
  1344. (cff_face_init): Use it to strip off the style part of the family
  1345. name.
  1346. 2011-03-07 Werner Lemberg <wl@gnu.org>
  1347. * docs/CHANGES: Updated.
  1348. 2011-03-07 Alexei Podtelezhnikov <apodtele@gmail.com>
  1349. Quick fix for Savannah bug #32671.
  1350. This isn't the optimal solution yet, but it restores the previous
  1351. rendering quality (more or less).
  1352. * src/smooth/ftgrays.c (gray_render_conic): Do more splitting.
  1353. 2011-03-06 Werner Lemberg <wl@gnu.org>
  1354. Fix autohinting fallback.
  1355. * src/base/ftobjs.c (FT_Load_Glyph): Assure that we only check TTFs,
  1356. ignoring CFF-based OTFs.
  1357. 2011-02-27 Werner Lemberg <wl@gnu.org>
  1358. Add AF_CONFIG_OPTION_USE_WARPER to control the autofit warper.
  1359. * devel/ftoption.h, include/freetype/config/ftoption.h
  1360. (AF_CONFIG_OPTION_USE_WARPER): New macro.
  1361. * src/autofit/aftypes.h (AF_USE_WARPER): Remove.
  1362. * src/autofit/*: s/AF_USE_WARPER/AF_CONFIG_OPTION_USE_WARPER/.
  1363. * src/autofit/afwarp.c [!AF_CONFIG_OPTION_USE_WARPER]: Replace dummy
  1364. variable assignment with a typedef.
  1365. 2011-02-26 Werner Lemberg <wl@gnu.org>
  1366. [autofit] Slight simplifications.
  1367. * src/autofit/aflatin.c (af_latin_hints_link_segments): Remove
  1368. test which always returns false.
  1369. (af_latin_hints_compute_blue_edges): Remove redundant assignment.
  1370. 2011-02-24 Werner Lemberg <wl@gnu.org>
  1371. * docs/PROBLEMS: Mention rendering differences on different
  1372. platforms.
  1373. Suggested and worded by Jason Owen <jason.a.owen@gmail.com>.
  1374. 2011-02-24 Werner Lemberg <wl@gnu.org>
  1375. [autofit] Comment out unused code.
  1376. * src/autofit/aflatin.c, src/autofit/aflatin2.c
  1377. (af_latin_hints_compute_edges): Do it.
  1378. 2011-02-24 Werner Lemberg <wl@gnu.org>
  1379. * src/autofit/afhints.h (AF_GlyphHints): Remove unused field.
  1380. 2011-02-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1381. [cache] Fix an off-by-one bug in `FTC_Manager_RemoveFaceID'.
  1382. Found by <ychen1392001@yahoo.com.cn>, see detail in
  1383. http://lists.gnu.org/archive/html/freetype/2011-01/msg00023.html
  1384. * src/cache/ftccache.c (FTC_Cache_RemoveFaceID): Check the node
  1385. buckets[cache->p + cache->mask] too.
  1386. 2011-02-19 Kevin Kofler <kevin.kofler@chello.at>
  1387. Fall back to autohinting if a TTF/OTF doesn't contain any bytecode.
  1388. This is Savannah patch #7471.
  1389. * src/base/ftobjs.c (FT_Load_Glyph): Implement it.
  1390. 2011-02-19 John Tytgat <John.Tytgat@esko.com>
  1391. [cff] Fix subset prefix removal.
  1392. This is Savannah patch #7465.
  1393. * src/cff/cffobjs.c (remove_subset_prefix): Update length after
  1394. subset prefix removal.
  1395. 2011-02-13 Bradley Grainger <bgrainger@logos.com>
  1396. Add inline assembly version of FT_MulFix for MSVC.
  1397. * include/freetype/config/ftconfig.h: Ported the FT_MulFix_i386
  1398. function from GNU inline assembly syntax (see #ifdef __GNUC__ block
  1399. above) to MASM syntax for Microsoft Visual C++.
  1400. 2011-02-13 Bradley Grainger <bgrainger@logos.com>
  1401. Add project and solution files in Visual Studio 2010 format.
  1402. * builds/win32/.gitignore: Ignore user-specific cache files.
  1403. * builds/win32/vc2010/: Add VS2010 project & solution files, created
  1404. by upgrading builds/win32/vc2008/freetype.vcproj.
  1405. * objs/.gitignore: Ignore Visual Studio output files.
  1406. 2011-02-01 Werner Lemberg <wl@gnu.org>
  1407. * src/autofit/afdummy.c: Include `aferrors.h'.
  1408. Problem reported by Chris Liddell <chris.liddell@artifex.com>.
  1409. 2011-02-01 Werner Lemberg <wl@gnu.org>
  1410. [cff] Ignore unknown operators in charstrings.
  1411. Patch suggested by Miles.Lau <sunliang_liu@foxitsoftware.com>.
  1412. * src/cff/cffgload.c (cff_decoder_parse_charstrings): Emit tracing
  1413. message for unknown operators and continue instead of exiting with a
  1414. syntax error.
  1415. 2011-02-01 Werner Lemberg <wl@gnu.org>
  1416. [truetype] FT_LOAD_PEDANTIC now affects `prep' and `fpgm' also.
  1417. * src/truetype/ttgload.c (tt_loader_init): Handle
  1418. `FT_LOAD_PEDANTIC'.
  1419. * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep,
  1420. tt_size_init_bytecode, tt_size_ready_bytecode): New argument to
  1421. handle pedantic mode.
  1422. * src/truetype/ttobjs.h: Updated.
  1423. 2011-01-31 Werner Lemberg <wl@gnu.org>
  1424. [truetype] Protect jump instructions against endless loops.
  1425. * src/truetype/interp.c (DO_JROT, DO_JMPR, DO_JROF): Exit with error
  1426. if offset is zero.
  1427. 2011-01-31 Werner Lemberg <wl@gnu.org>
  1428. [truetype] Improve handling of invalid references.
  1429. * src/truetype/interp.c: Set even more TT_Err_Invalid_Reference
  1430. error codes only if pedantic hinting is active. At the same time,
  1431. try to provide sane values which hopefully allow useful
  1432. continuation. Exception to this is CALL and LOOPCALL – due to
  1433. possible stack corruption it is necessary to bail out.
  1434. 2011-01-31 Werner Lemberg <wl@gnu.org>
  1435. [truetype] Improve handling of stack underflow.
  1436. * src/truetype/ttinterp.c (TT_RunIns, Ins_FLIPPT, Ins_DELTAP,
  1437. Ins_DELTAC): Exit with error only if `pedantic_hinting' is set.
  1438. Otherwise, try to do something sane.
  1439. 2011-01-30 Werner Lemberg <wl@gnu.org>
  1440. * src/sfnt/ttmtx.c (tt_face_load_hmtx): Fix tracing message.
  1441. 2011-01-30 LIU Sun-Liang <sunliang_liu@foxitsoftware.com>
  1442. [truetype]: Fix behaviour of MIAP for invalid arguments.
  1443. * src/truetype/ttinterp.c (Ins_MIAP): Set reference points even in
  1444. case of error.
  1445. 2011-01-18 Werner Lemberg <wl@gnu.org>
  1446. [truetype] Fix handling of MIRP instruction.
  1447. Thanks to Greg Hitchcock who explained the issue.
  1448. * src/truetype/ttinterp.c (Ins_MIRP): Replace a `>=' operator with
  1449. `>' since the description in the specification is incorrect.
  1450. This fixes, for example, glyph `two' in font `Helvetica Neue LT Com
  1451. 65 medium' at 15ppem.
  1452. 2011-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1453. Fix ARM assembly code in include/freetype/config/ftconfig.h.
  1454. * include/freetype/config/ftconfig.h (FT_MulFix_arm):
  1455. Copy the maintained code from builds/unix/ftconfig.in.
  1456. Old GNU binutils could not accept the reduced syntax
  1457. `orr %0, %2, lsl #16'. Un-omitted syntax like RVCT,
  1458. `orr %0, %0, %2, lsl #16' is better. Reported by
  1459. Johnson Y. Yan. The bug report by Qt developers is
  1460. considered too.
  1461. http://bugreports.qt.nokia.com/browse/QTBUG-6521
  1462. 2011-01-15 Werner Lemberg <wl@gnu.org>
  1463. [raster] Make bbox handling the same as with Microsoft's rasterizer.
  1464. Right before B/W rasterizing, the bbox gets simply rounded to
  1465. integers. This fixes, for example, glyph `three' in font `Helvetica
  1466. Neue LT Com 65 Medium' at 11ppem.
  1467. Thanks to Greg Hitchcock who explained this behaviour.
  1468. * src/raster/ftrend1.c (ft_raster1_render): Implement it.
  1469. 2011-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1470. Copy -mcpu=* & -march=* options from CFLAGS to LDFLAGS.
  1471. * builds/unix/configure.raw: Consider recent gcc-standard
  1472. flags to specify architecture in CFLAGS & LDFLAGS
  1473. harmonization. Requested by Savannah bug #32114, to
  1474. support multilib feature of BuildRoot SDK correctly.
  1475. 2011-01-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1476. Fix off-by-one bug in CFLAGS & LDFLAGS harmonizer.
  1477. * builds/unix/configure.raw: Some important options that
  1478. included in CFLAGS but not in LDFLAGS are copied to
  1479. LDFLAGS, but the last option in CFLAGS was not checked.
  1480. 2011-01-13 Werner Lemberg <wl@gnu.org>
  1481. [raster] Add undocumented drop-out rule to the other bbox side also.
  1482. * src/raster/ftraster.c (Vertical_Sweep_Drop,
  1483. Horizontal_Sweep_Drop): Implement it.
  1484. 2011-01-13 Werner Lemberg <wl@gnu.org>
  1485. [raster] Reduce jitter value.
  1486. This catches a rendering problem with glyph `x' from Tahoma at
  1487. 10ppem. It seems that the increase of the precision in the change
  1488. from 2009-06-11 makes a larger jitter value unnecessary.
  1489. * src/raster/ftraster.c (Set_High_Precision): Implement it.
  1490. 2011-01-13 Werner Lemberg <wl@gnu.org>
  1491. [raster] Handle drop-outs at glyph borders according to Microsoft.
  1492. If a drop-out rule would switch on a pixel outside of the glyph's
  1493. bounding box, use the right (or top) pixel instead. This is an
  1494. undocumented feature, but some fonts like `Helvetica Neue LT Com 65
  1495. Medium' heavily rely on it.
  1496. Thanks to Greg Hitchcock who explained this behaviour.
  1497. * src/raster/ftraster.c (Vertical_Sweep_Drop,
  1498. Horizontal_Sweep_Drop): Implement it.
  1499. 2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1500. [cache] Fix Savannah bug #31923, patch drafted by Harsha.
  1501. When a node comparator changes the cached nodes during the
  1502. search of a node matching with queried properties, the
  1503. pointers obtained before the function should be updated to
  1504. prevent the dereference to freed or reallocated nodes.
  1505. To minimize the rescan of the linked list, the update is
  1506. executed when the comparator notifies the change of cached
  1507. nodes. This change depends previous change:
  1508. 38b272ffbbdaae276d636aec4ef84af407d16181
  1509. * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Rescan the
  1510. top node if the cached nodes are changed.
  1511. * src/cache/ftccache.c (FTC_Cache_Lookup): Ditto.
  1512. 2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1513. [cache] Notice if a cache query induced the node list change.
  1514. Some node comparators (comparing the cache node contents and the
  1515. properties specified by the query) can flush the cache node to
  1516. prevent the cache inflation. The change may invalidate the pointers
  1517. to the node obtained before the node comparison, so it should be
  1518. noticed to the caller. The problem caused by the cache node
  1519. changing is reported by Harsha, see Savannah bug #31923.
  1520. * src/cache/ftccache.h (FTC_Node_CompareFunc): Add new argument
  1521. `FT_Bool* list_changed' to indicate the change of the cached nodes
  1522. to the caller.
  1523. (FTC_CACHE_LOOKUP_CMP): Watch the change of the cached nodes by
  1524. `_list_changed'.
  1525. (FTC_CACHE_TRYLOOP_END): Take new macro argument `_list_changed'
  1526. and update it when `FTC_Manager_FlushN' flushes any nodes.
  1527. * src/cache/ftccback.h (ftc_snode_compare): Updated to fit with new
  1528. FTC_Node_CompareFunc type.
  1529. (ftc_gnode_compare): Ditto.
  1530. * src/cache/ftcbasic.c: Include FT_INTERNAL_OBJECTS_H to use
  1531. TRUE/FALSE macros.
  1532. (ftc_basic_gnode_compare_faceid): New argument `FT_Bool*
  1533. list_changed' to indicate the change of the cache nodes (anyway, it
  1534. is always FALSE).
  1535. * src/cache/ftccmap.c: Include FT_INTERNAL_OBJECTS_H to use
  1536. TRUE/FALSE macros.
  1537. (ftc_cmap_node_compare): New argument `FT_Bool* list_changed' to
  1538. indicate the change of the cache nodes (anyway, it is always FALSE).
  1539. (ftc_cmap_node_remove_faceid): Ditto.
  1540. * src/cache/ftccache.c (FTC_Cache_NewNode): Pass a NULL pointer to
  1541. `FTC_CACHE_TRYLOOP_END', because the result is not needed.
  1542. (FTC_Cache_Lookup): Watch the change of the cache nodes by
  1543. `list_changed'.
  1544. (FTC_Cache_RemoveFaceID): Ditto.
  1545. * src/cache/ftcglyph.c: Include FT_INTERNAL_OBJECTS_H to use
  1546. TRUE/FALSE macros.
  1547. (ftc_gnode_compare): New argument `FT_Bool* list_changed' to
  1548. indicate the change of the cache nodes (anyway, it is always FALSE).
  1549. (FTC_GNode_Compare): New argument `FT_Bool* list_changed' to be
  1550. passed to `ftc_gnode_compare'.
  1551. * src/cache/ftcglyph.h (FTC_GNode_Compare): Ditto.
  1552. * src/cache/ftcsbits.c (ftc_snode_compare): New argument `FT_Bool*
  1553. list_changed' to indicate the change of the cache nodes, anyway. It
  1554. is updated by `FTC_CACHE_TRYLOOP'.
  1555. (FTC_SNode_Compare): New argument `FT_Bool* list_changed' to be
  1556. passed to `ftc_snode_compare'.
  1557. * src/cache/ftcsbits.h (FTC_SNode_Compare): Ditto.
  1558. 2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1559. [cache] Fit `FTC_GNode_Compare' to `FTC_Node_CompareFunc'.
  1560. * src/cache/ftcglyph.h (FTC_GNode_Compare): Add the 3rd
  1561. argument `FTC_Cache cache' to fit FTC_Node_CompareFunc
  1562. prototype.
  1563. * src/cache/ftcglyph.c (FTC_GNode_Compare): Ditto. Anyway,
  1564. `cache' is not used by its child `ftc_gnode_compare'.
  1565. 2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1566. [cache] Deduplicate the code to get the top node by a hash.
  1567. There are several duplicated code fragments getting the top node
  1568. from a cache by a given hash, like:
  1569. idx = hash & cache->mask;
  1570. if ( idx < cache->p )
  1571. idx = hash & ( cache->mask * 2 + 1 );
  1572. pnode = cache->buckets + idx;
  1573. To remove duplication, a cpp-macro to do same work
  1574. `FTC_NODE__TOP_FOR_HASH' is introduced. For non-inlined
  1575. configuration, non-`ftc_get_top_node_for_hash' is also introduced.
  1576. * src/cache/ftccache.h (FTC_NODE__TOP_FOR_HASH): Declare
  1577. and implement inlined version.
  1578. (FTC_CACHE_LOOKUP_CMP): Use `FTC_NODE__TOP_FOR_HASH'.
  1579. * src/cache/ftccache.c (ftc_get_top_node_for_hash): Non-inlined
  1580. version.
  1581. (ftc_node_hash_unlink): Use `FTC_NODE__TOP_FOR_HASH'.
  1582. (ftc_node_hash_link): Ditto.
  1583. (FTC_Cache_Lookup): Ditto.
  1584. 2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1585. [cache] inline-specific functions are conditionalized.
  1586. * src/cache/ftcglyph.c (FTC_GNode_Compare): Conditionalized for
  1587. inlined configuration. This function is a thin wrapper of
  1588. `ftc_gnode_compare' for inlined `FTC_CACHE_LOOKUP_CMP' (see
  1589. `nodecmp' argument). Under non-inlined configuration,
  1590. `ftc_gnode_compare' is invoked by `FTC_Cache_Lookup', via
  1591. `FTC_Cache->clazz.node_compare'.
  1592. * src/cache/ftcglyph.h (FTC_GNode_Compare): Ditto.
  1593. * src/cache/ftcsbits.c (FTC_SNode_Compare): Ditto, for
  1594. `ftc_snode_compare'.
  1595. * src/cache/ftcsbits.h (FTC_SNode_Compare): Ditto.
  1596. 2011-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1597. [cache] Correct a type mismatch under non-inlined config.
  1598. * src/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP): `FTC_GCache_Lookup'
  1599. takes the node via a pointer `FTC_Node*', differently from cpp-macro
  1600. `FTC_CACHE_LOOKUP_CMP'.
  1601. 2011-01-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1602. Update Jamfile to include Bzip2 support.
  1603. * Jamfile: Include src/bzip2 to project.
  1604. Comments for lzw, gzip, bzip2 are changed to clarify that
  1605. they are for compressed PCF fonts, not others.
  1606. (e.g. compressed BDF fonts are not supported yet)
  1607. 2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1608. Update Symbian project files to include Bzip2 support.
  1609. Currently, it provides `FT_Stream_OpenBzip2' that returns
  1610. unimplemented error always, to prevent unresolved symbol
  1611. error for the applications designed for Unix systems.
  1612. * builds/symbian/bld.inf: Include ftbzip2.h.
  1613. * builds/symbian/freetype.mmp: Include ftbzip2.c.
  1614. 2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1615. Update classic MacOS makefiles to include Bzip2 support.
  1616. Currently, it provides `FT_Stream_OpenBzip2' that returns
  1617. unimplemented error always, to prevent unresolved symbol
  1618. error for the applications designed for Unix systems.
  1619. * builds/mac/FreeType.m68k_cfm.make.txt: Include ftbzip2.c.o.
  1620. * builds/mac/FreeType.m68k_far.make.txt: Ditto.
  1621. * builds/mac/FreeType.ppc_carbon.make.txt: Include ftbzip2.c.x.
  1622. * builds/mac/FreeType.ppc_classic.make.txt: Ditto.
  1623. 2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1624. Update Amiga makefiles to include Bzip2 support.
  1625. Currently, it provides `FT_Stream_OpenBzip2' that returns
  1626. unimplemented error always, to prevent unresolved symbol
  1627. error for the applications designed for Unix systems.
  1628. * builds/amiga/makefile: Include bzip2.ppc.o built from ftbzip2.c.
  1629. * builds/amiga/makefile.os4: Include bzip2.o built from ftbzip2.c.
  1630. * builds/amiga/smakefile: Ditto.
  1631. 2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1632. Update pkg-config tools to reflect Bzip2 support.
  1633. * builds/unix/freetype-config.in: Include `-lbz2' to
  1634. --libs output, if built with Bzip2 support.
  1635. * builds/unix/freetype2.in: Ditto.
  1636. 2011-01-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1637. * builds/unix/configure.raw: Remove `SYSTEM_BZ2LIB' macro.
  1638. SYSTEM_ZLIB is used to switch the builtin zlib source
  1639. or system zlib source out of FreeType2. But ftbzip2
  1640. module has no builtin bzip2 library and always requires
  1641. system bzip2 library. Thus SYSTEM_BZ2LIB is always yes,
  1642. it is not used.
  1643. 2011-01-03 Werner Lemberg <wl@gnu.org>
  1644. */rules.mk: Handle `*pic.c' files.
  1645. 2010-12-31 Werner Lemberg <wl@gnu.org>
  1646. * src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 64.
  1647. Problem reported by Tom Bishop <wenlin@wenlin.com>.
  1648. 2010-12-31 Werner Lemberg <wl@gnu.org>
  1649. Improve bzip2 support.
  1650. * include/freetype/ftmoderr.h: Add bzip2.
  1651. * docs/INSTALL.ANY, docs/CHANGES: Updated.
  1652. * src/pcf/README: Updated.
  1653. * include/freetype/internal/pcftypes.h: Obsolete, removed.
  1654. 2010-12-31 Joel Klinghed <the_jk@yahoo.com>
  1655. Add bzip2 compression support to handle *.pcf.bz2 files.
  1656. * builds/unix/configure.raw: Test for libbz2 library.
  1657. * devel/ftoption.h, include/freetype/config/ftoption.h
  1658. (FT_CONFIG_OPTION_USE_BZIP2): Define.
  1659. * include/freetype/config/ftheader.h (FT_BZIP2_H): Define.
  1660. * include/freetype/ftbzip2.h: New file.
  1661. * src/bzip2/*: New files.
  1662. * src/pcf/pcf.h: s/gzip_/comp_/.
  1663. * src/pcf/pcfdrvr.c: Include FT_BZIP2_H.
  1664. s/gzip_/comp_/.
  1665. (PCF_Face_Init): Handle bzip2 compressed files.
  1666. * docs/formats.txt, modules.cfg: Updated.
  1667. 2010-12-25 Harsha <mm.harsha@gmail.com>
  1668. Apply Savannah patch #7422.
  1669. If we encounter a space in a string then the sbit buffer is NULL,
  1670. height and width are 0s. So the check in ftc_snode_compare will
  1671. always pass for spaces (comparision with 255). Here the comments
  1672. above the condition are proper but the implementation is not. When
  1673. we create an snode I think it is the proper way to initialize the
  1674. width to 255 and then put a check for being equal to 255 in snode
  1675. compare function.
  1676. * src/cache/ftcsbits.c (FTC_SNode_New): Initialize sbit widths with
  1677. value 255.
  1678. (ftc_snode_compare): Fix condition.
  1679. 2010-12-13 Werner Lemberg <wl@gnu.org>
  1680. Fix parameter handling of `FT_Set_Renderer'.
  1681. Reported by Kirill Tishin <siege@bk.ru>.
  1682. * src/base/ftobjs.c (FT_Set_Renderer): Increment `parameters'.
  1683. 2010-12-09 Werner Lemberg <wl@gnu.org>
  1684. [cff] Allow `hlineto' and `vlineto' without arguments.
  1685. We simply ignore such instructions. This is invalid, but it doesn't
  1686. harm; and indeed, there exist such subsetted fonts in PDFs.
  1687. Reported by Albert Astals Cid <aacid@kde.org>.
  1688. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  1689. [cff_op_hlineto]: Ignore instruction if there aren't any arguments
  1690. on the stack.
  1691. 2010-11-28 Werner Lemberg <wl@gnu.org>
  1692. * Version 2.4.4 released.
  1693. =========================
  1694. Tag sources with `VER-2-4-4'.
  1695. * docs/CHANGES: Updated.
  1696. * docs/VERSION.DLL: Update documentation and bump version number to
  1697. 2.4.4
  1698. * README, Jamfile (RefDoc),
  1699. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  1700. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  1701. builds/win32/visualc/freetype.dsp,
  1702. builds/win32/visualc/freetype.vcproj,
  1703. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  1704. builds/win32/visualce/freetype.vcproj,
  1705. builds/win32/visualce/index.html,
  1706. builds/wince/vc2005-ce/freetype.vcproj,
  1707. builds/wince/vc2005-ce/index.html,
  1708. builds/wince/vc2008-ce/freetype.vcproj,
  1709. builds/wince/vc2008-ce/index.html: s/2.4.3/2.4.4/, s/243/244/.
  1710. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
  1711. * builds/unix/configure.raw (version_info): Set to 12:2:6.
  1712. 2010-11-28 Alexei Podtelezhnikov <apodtele@gmail.com>
  1713. [ftsmooth]: Minor code simplification.
  1714. * src/smooth/ftgrays (gray_render_cubic): Do only one comparison
  1715. instead of two.
  1716. 2010-11-26 Johnson Y. Yan <yinsen_yan@foxitsoftware.com>
  1717. [truetype] Better multi-threading support.
  1718. * src/truetype/ttinterp.c (TT_Load_Context): Reset glyph zone
  1719. references.
  1720. 2010-11-23 John Tytgat <John.Tytgat@esko.com>
  1721. * src/psaux/t1decode.c (t1_decoder_parse_charstring): Expand
  1722. start_point, check_points, add_point, add_point1, close_contour
  1723. macros.
  1724. Remove add_contour macro.
  1725. Return error code from t1_builder_start_point and
  1726. t1_builder_check_points when there was one (instead of returning 0).
  1727. 2010-11-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1728. [truetype] Identify the tricky fonts by cvt/fpgm/prep checksums.
  1729. Some Latin TrueType fonts are still expected to be unhinted.
  1730. Fix Savannah bug #31645.
  1731. * src/truetype/ttobjs.c (tt_check_trickyness): Divided to...
  1732. (tt_check_trickyness_family): this checking family name, and
  1733. (tt_check_trickyness_sfnt_ids): this checking cvt/fpgm/prep.
  1734. (tt_get_sfnt_checksum): Function to retrieve the sfnt checksum
  1735. for specified subtable even if cleared by lazy PDF generators.
  1736. (tt_synth_sfnt_checksum): Function to calculate the checksum.
  1737. 2010-11-18 Werner Lemberg <wl@gnu.org>
  1738. [truetype] Fix `loca' handling for inconsistent number of glyphs.
  1739. Reported by Johnson Y. Yan <yinsen_yan@foxitsoftware.com>.
  1740. * src/truetype/ttpload.c (tt_face_load_loca): While sanitizing,
  1741. handle case where `loca' is the last table in the font.
  1742. 2010-11-18 Werner Lemberg <wl@gnu.org>
  1743. [sfnt] Ignore all errors while loading `OS/2' table.
  1744. Suggested by Johnson Y. Yan <yinsen_yan@foxitsoftware.com>.
  1745. * src/sfnt/sfobjs.c (sfnt_load_face): Do it.
  1746. 2010-11-18 Johnson Y. Yan <yinsen_yan@foxitsoftware.com>
  1747. [type1] Fix matrix normalization.
  1748. * src/type1/t1load.c (parse_font_matrix): Handle sign of scaling
  1749. factor.
  1750. 2010-11-18 Werner Lemberg <wl@gnu.org>
  1751. [type1] Improve guard against malformed data.
  1752. Based on a patch submitted by Johnson Y. Yan
  1753. <yinsen_yan@foxitsoftware.com>
  1754. * src/type1/t1load.c (read_binary_data): Check `size'.
  1755. 2010-11-17 Werner Lemberg <wl@gnu.org>
  1756. [sfnt] While tracing, output table checksums also.
  1757. * src/sfnt/ttload.c (tt_face_load_font_dir): Do it.
  1758. 2010-11-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1759. [UVS] Fix `find_variant_selector_charmap', Savannah bug #31545.
  1760. Since 2010-07-04, `find_variant_selector_charmap' returns
  1761. the first cmap subtable always under rogue-compatible
  1762. configuration, it causes NULL pointer dereference and
  1763. make UVS-related functions crashed.
  1764. * src/base/ftobjs.c (Fix find_variant_selector_charmap):
  1765. Returns UVS cmap correctly.
  1766. 2010-11-01 Alexei Podtelezhnikov <apodtele@gmail.com>
  1767. [ftsmooth] Improve rendering.
  1768. * src/smooth/ftsmooth.c (gray_render_conic): Since version 2.4.3,
  1769. cubic deviations have been estimated _after_ UPSCALE, whereas
  1770. conic ones have been evaluated _before_ UPSCALE, which produces
  1771. inferior rendering results. Fix this.
  1772. Partially undo change from 2010-10-15 by using ONE_PIXEL/4; this has
  1773. been tested with demo images sent to the mailing list. See
  1774. http://lists.gnu.org/archive/html/freetype-devel/2010-10/msg00055.html
  1775. and later mails in this thread.
  1776. 2010-10-28 Werner Lemberg <wl@gnu.org>
  1777. [ftraster] Minor fixes.
  1778. Reported by Tom Bishop <wenlin@wenlin.com>.
  1779. * src/raster/ftraster.c (ULong): Remove unused typedef.
  1780. (TWorker): Remove unused variable `precision_mask'.
  1781. 2010-10-28 Werner Lemberg <wl@gnu.org>
  1782. [ftraster] Fix rendering.
  1783. Problem reported by Tom Bishop <wenlin@wenlin.com>; see
  1784. thread starting with
  1785. http://lists.gnu.org/archive/html/freetype/2010-10/msg00049.html
  1786. * src/raster/ftraster.c (Line_Up): Replace FMulDiv with SMulDiv
  1787. since the involved multiplication exceeds 32 bits.
  1788. 2010-10-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1789. Revert a change of `_idx' type in `FTC_CACHE_LOOKUP_CMP'.
  1790. * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Revert
  1791. the type of `_idx' from FT_PtrDist (by previous change)
  1792. to original FT_UFast, to match with FT_CacheRec.
  1793. 2010-10-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1794. [cache] Change the hash types to FT_PtrDist.
  1795. On LLP64 platforms (e.g. Win64), FT_ULong (32-bit)
  1796. variables are inappropriate to calculate hash values
  1797. from the memory address (64-bit). The hash variables
  1798. are extended from FT_ULong to FT_PtrDist and new
  1799. hashing macro functions are introduced. The hash
  1800. values on 16-bit memory platforms are changed, but
  1801. ILP32 and LP64 are not changed. The hash value in
  1802. the cache subsystem is not reverted to the memory
  1803. address, so using signed type FT_PtrDist is safe.
  1804. * src/cache/ftccache.h (_FTC_FACE_ID_HASH): New hash
  1805. function to replace `FTC_FACE_ID_HASH' for portability.
  1806. * src/cache/ftcmanag.h (FTC_SCALER_HASH): Replace
  1807. `FTC_FACE_ID_HASH' by `_FTC_FACE_ID_HASH'.
  1808. * src/cache/ftccmap.c (FTC_CMAP_HASH): Ditto.
  1809. * src/cache/ftccache.h (FTC_NodeRec): The type of the
  1810. member `hash' is changed from FT_UInt32 to FT_PtrDist.
  1811. * src/cache/ftccache.h (FTC_Cache_Lookup): The type of the
  1812. argument `hash' is changed from FT_UInt32 to FT_PtrDist.
  1813. (FTC_Cache_NewNode): Ditto.
  1814. * src/cache/ftccache.c (ftc_cache_add): Ditto.
  1815. (FTC_Cache_Lookup): Ditto. (FTC_Cache_NewNode): Ditto.
  1816. * src/cache/ftcglyph.h (FTC_GCache_Lookup): Ditto.
  1817. * src/cache/ftcglyph.c (FTC_GCache_Lookup): Ditto.
  1818. * src/cache/ftcbasic.c (FTC_ImageCache_Lookup): The type
  1819. of the internal variable `hash' is changed to FT_PtrDist
  1820. from FT_UInt32. (FTC_ImageCache_LookupScaler): Ditto.
  1821. (FTC_SBitCache_Lookup): Ditto.
  1822. (FTC_SBitCache_LookupScaler): Ditto.
  1823. * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Ditto.
  1824. * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Ditto.
  1825. Also the type of the internal variable `_idx' is changed to
  1826. FT_PtrDist from FT_UFast for better pointer calculation.
  1827. 2010-10-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1828. [cache] Hide internal macros incompatible with LLP64.
  1829. `FT_POINTER_TO_ULONG', `FTC_FACE_ID_HASH', and
  1830. `FTC_IMAGE_TYPE_HASH' are enclosed by
  1831. FT_CONFIG_OPTION_OLD_INTERNALS and hidden from
  1832. normal clients.
  1833. For the history of these macros, see the investigation:
  1834. http://lists.gnu.org/archive/html/freetype/2010-10/msg00022.html
  1835. 2010-10-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1836. Change the type of `FT_MEM_VAL' from FT_ULong to FT_PtrDist.
  1837. On LLP64 platforms (e.g. Win64), unsigned long (32-bit)
  1838. cannot cover the memory address (64-bit). `FT_MEM_VAL' is
  1839. used for hashing only and not dereferred, so using signed
  1840. type FT_PtrDist is safe.
  1841. * src/base/ftdbgmem.c (FT_MEM_VAL): Change the type of the
  1842. return value from FT_ULong to FT_PtrDist.
  1843. (ft_mem_table_resize): The type of hash is changed to
  1844. FT_PtrDist. (ft_mem_table_get_nodep): Ditto.
  1845. 2010-10-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1846. Replace "%lx" for memory address by "%p", LLP64 platforms.
  1847. On LLP64 platforms (e.g. Win64), long (32-bit) cannot cover
  1848. the memory address (64-bit). Also the casts from the pointer
  1849. type to long int should be removed to preserve the address
  1850. correctly.
  1851. * src/raster/ftraster.c (New_Profile): Replace "%lx" by "%p".
  1852. (End_Profile) Ditto.
  1853. * src/truetype/ttinterp.c (Init_Context): Ditto.
  1854. 2010-10-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  1855. Fix thinko in spline flattening.
  1856. FT_MAX_CURVE_DEVIATION is dependent on the value of ONE_PIXEL.
  1857. * src/smooth/ftgrays.c (FT_MAX_CURVE_DEVIATION): Remove it and
  1858. replace it everywhere with ONE_PIXEL/8.
  1859. 2010-10-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1860. [raccess] Skip unrequired resource access rules by Darwin VFS.
  1861. When a resource fork access rule by Darwin VFS could open the
  1862. resource fork but no font is found in it, the rest of rules
  1863. by Darwin VFS are skipped. It reduces the warnings of the
  1864. deprecated resource fork access method by recent Darwin kernel.
  1865. Fix MacPorts ticket #18859:
  1866. http://trac.macports.org/ticket/18859
  1867. * src/base/ftobjs.c (load_face_in_embedded_rfork):
  1868. When `FT_Stream_New' returns FT_Err_Cannot_Open_Stream, it
  1869. means that the file is possible to be `fopen'-ed but zero-sized.
  1870. Also there is a case that the resource fork is not zero-sized,
  1871. but no supported font exists in it. If a rule by Darwin VFS
  1872. falls into such cases, there is no need to try other Darwin VFS
  1873. rules anymore. Such cases are marked by vfs_rfork_has_no_font.
  1874. If it is TRUE, the Darwin VFS rules are skipped.
  1875. 2010-10-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1876. [raccess] Grouping resource access rules based on Darwin VFS.
  1877. MacOS X/Darwin kernel supports a few tricky methods to access
  1878. a resource fork via ANSI C or POSIX interface. Current resource
  1879. fork accessor tries all possible methods to support all kernels.
  1880. But if a method could open a resource fork but no font is found,
  1881. there is no need to try other methods older than tested method.
  1882. To determine whether the rule index is for Darwin VFS, a local
  1883. function `ftrfork.c::raccess_rule_by_darwin_vfs' is introduced.
  1884. To use this function in ftobjs.c etc but it should be inlined,
  1885. it is exposed by ftbase.h.
  1886. * src/base/ftrfork.c (FT_RFork_Rule): New enum type to identify
  1887. the rules to access the resource fork.
  1888. (raccess_guess_rec): New structure to bind the rule function and
  1889. rule enum type.
  1890. (FT_Raccess_Guess): The list of the rule functions is replaced by
  1891. (raccess_guess_table): This. This is exposed to be used by other
  1892. intra module functions.
  1893. (raccess_rule_by_darwin_vfs): A function to return a boolean
  1894. if the rule specified by the rule index is based on Darwin VFS.
  1895. 2010-10-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1896. Prevent to open a FT_Stream for zero-sized file on non-Unix.
  1897. builds/unix/ftsystem.c prevents to open an useless stream from
  1898. zero-sized file and returns FT_Err_Cannot_Open_Stream, but the
  1899. stream drivers for ANSI C, Amiga and VMS return useless streams.
  1900. For cross-platform consistency, all stream drivers should act
  1901. same.
  1902. * src/base/ftsystem.c (FT_Stream_Open): If the size of the opened
  1903. file is zero, FT_Err_Cannot_Open_Stream is returned.
  1904. * builds/amiga/src/base/ftsystem.c (FT_Stream_Open): Ditto.
  1905. * src/vms/ftsystem.c (FT_Stream_Open): Ditto.
  1906. 2010-10-12 Werner Lemberg <wl@gnu.org>
  1907. Fix Savannah bug #31310.
  1908. * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Protect against
  1909. invalid `runcnt' values.
  1910. 2010-10-08 Chris Liddell <chris.liddell@artifex.com>
  1911. Fix Savannah bug #31275.
  1912. * src/sfnt/ttpost.c: Include FT_INTERNAL_DEBUG_H.
  1913. 2010-10-06 Werner Lemberg <wl@gnu.org>
  1914. [truetype] Improve error handling of `SHZ' bytecode instruction.
  1915. Problem reported by Chris Evans <scarybeasts@gmail.com>.
  1916. * src/truetype/ttinterp.c (Ins_SHZ): Check `last_point'.
  1917. 2010-10-05 Werner Lemberg <wl@gnu.org>
  1918. Fix Savannah bug #31253.
  1919. Patch submitted by an anonymous reporter.
  1920. * configure: Use `awk' instead of `sed' to manipulate output of `ls
  1921. -id'.
  1922. 2010-10-03 Werner Lemberg <wl@gnu.org>
  1923. * Version 2.4.3 released.
  1924. =========================
  1925. Tag sources with `VER-2-4-3'.
  1926. * docs/CHANGES: Updated.
  1927. * docs/VERSION.DLL: Update documentation and bump version number to
  1928. 2.4.3
  1929. * README, Jamfile (RefDoc),
  1930. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  1931. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  1932. builds/win32/visualc/freetype.dsp,
  1933. builds/win32/visualc/freetype.vcproj,
  1934. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  1935. builds/win32/visualce/freetype.vcproj,
  1936. builds/win32/visualce/index.html,
  1937. builds/wince/vc2005-ce/freetype.vcproj,
  1938. builds/wince/vc2005-ce/index.html,
  1939. builds/wince/vc2008-ce/freetype.vcproj,
  1940. builds/wince/vc2008-ce/index.html: s/2.4.2/2.4.3/, s/242/243/.
  1941. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
  1942. * builds/unix/configure.raw (version_info): Set to 12:1:6.
  1943. 2010-10-03 Werner Lemberg <wl@gnu.org>
  1944. Avoid `configure' issues with symbolic links.
  1945. Based on a patch from Alexander Stohr <Alexander.Stohr@gmx.de>.
  1946. * configure: Compare directories using `ls -id'.
  1947. Check existence of `reference' subdirectory before creating it.
  1948. 2010-10-02 Werner Lemberg <wl@gnu.org>
  1949. Fix Savannah bug #31088 (sort of).
  1950. * src/sfnt/ttload.c (tt_face_load_maxp): Always allocate at least 64
  1951. function entries.
  1952. 2010-10-02 Werner Lemberg <wl@gnu.org>
  1953. [smooth] Fix splitting of cubics for negative values.
  1954. Reported by Róbert Márki <gsmiko@gmail.com>; see
  1955. http://lists.gnu.org/archive/html/freetype/2010-09/msg00019.html.
  1956. * src/smooth/ftgrays.c (gray_render_cubic): Fix thinko.
  1957. 2010-10-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1958. Fix Savannah bug #31040.
  1959. * src/truetype/ttinterp.c (free_buffer_in_size): Remove.
  1960. (TT_RunIns): Updated.
  1961. 2010-09-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1962. [sfnt] Make error message filling NULL names less verbose.
  1963. * src/sfnt/ttpost.c (load_format_20): Showing 1 summary message
  1964. when we fill `post' names by NULL, instead of per-entry message.
  1965. 2010-09-20 Graham Asher <graham.asher@btinternet.com>
  1966. David Bevan <david.bevan@pb.com>
  1967. [smooth] Fix and improve spline flattening.
  1968. This fixes the flattening of cubic, S-shaped curves and speeds up
  1969. the handling of both the conic and cubic arcs.
  1970. See the discussions on the freetype-devel mailing list in late
  1971. August and September 2010 for details.
  1972. * src/smooth/ftgrays.c (FT_MAX_CURVE_DEVIATION): New macro.
  1973. (TWorker): Remove `conic_level' and `cubic_level' elements.
  1974. (gray_render_conic): Simplify algorithm.
  1975. (gray_render_cubic): New algorithm; details are given in the code
  1976. comments.
  1977. (gray_convert_glyph): Remove heuristics.
  1978. 2010-09-19 Werner Lemberg <wl@gnu.org>
  1979. Minor fixes.
  1980. * src/cff/cffload.c (cff_charset_compute_cids): `charset->sids[i]'
  1981. is `FT_UShort'.
  1982. (cff_index_access_element): Don't use additions in comparison.
  1983. * src/sfnt/ttpost.c (load_format_20): Make `post_limit' of type
  1984. `FT_Long'.
  1985. Don't use additions in comparison.
  1986. Improve tracing messages.
  1987. (load_format_25, load_post_names): Make `post_limit' of type
  1988. `FT_Long'.
  1989. 2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1990. [cff] Truncate the element length at the end of the stream.
  1991. See Savannah bug #30975.
  1992. * src/cff/cffload.c (cff_index_access_element): `off2', the offset
  1993. to the next element is truncated at the end of the stream to prevent
  1994. invalid I/O. As `off1', the offset to the requested element has
  1995. been checked by `FT_STREAM_SEEK', `off2' should be checked
  1996. similarly.
  1997. 2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1998. [cff] Ignore CID > 0xFFFFU.
  1999. See Savannah bug #30975.
  2000. * src/cff/cffload.c (cff_charset_compute_cids): Ignore CID if
  2001. greater than 0xFFFFU. CFF font spec does not mention maximum CID in
  2002. the font, but PostScript and PDF spec define that maximum CID is
  2003. 0xFFFFU.
  2004. 2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2005. [cff] Make trace message in` cff_charset_load' verbose.
  2006. See Savannah bug #30975.
  2007. * src/cff/cffload.c (cff_charset_load): Report the original `nleft'
  2008. and truncated `nleft'.
  2009. 2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2010. [cff] Correct `max_cid' from CID array length to max CID.
  2011. See Savannah bug #30975.
  2012. * src/cff/cffload.c (cff_charset_compute_cids): Don't increment
  2013. max_cid after detecting max CID. The array CFF_Charset->cids is
  2014. allocated by max_cid + 1.
  2015. (cff_charset_cid_to_gindex): Permit CID is less than or equal to
  2016. CFF_Charset->max_cid.
  2017. * src/cff/cffobjs.c (cff_face_init): FT_Face->num_glyphs is
  2018. calculated as CFF_Charset->max_cid + 1.
  2019. 2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2020. [truetype] Sanitize the broken offsets in `loca'.
  2021. See Savannah bug #31040.
  2022. * src/truetype/ttpload.c (tt_face_get_location): If `pos1', the
  2023. offset to the requested entry in `glyf' exceeds the end of the
  2024. table, return offset=0, length=0. If `pos2', the offset to the next
  2025. entry in `glyf' exceeds the end of the table, truncate the entry
  2026. length at the end of `glyf' table.
  2027. 2010-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2028. [sfnt] Prevent overrunning in `post' table parser.
  2029. See Savannah bug #31040.
  2030. * src/sfnt/ttpost.c (load_post_names): Get the length of `post'
  2031. table and pass the limit of `post' table to `load_format_20' and
  2032. `load_format_25'.
  2033. (load_format_20): Stop the parsing when we reached at the limit of
  2034. `post' table. If more glyph names are required, they are filled by
  2035. NULL names.
  2036. 2010-09-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2037. [truetype] Don't duplicate size->twilight structure to be freed.
  2038. See Savannah bug #31040 for detail.
  2039. * src/truetype/ttinterp.c (free_buffer_in_size): Don't duplicate
  2040. FT_GlyphZoneRec size->twilight to be freed. If duplicated,
  2041. `FT_FREE' erases the duplicated pointers only and leave original
  2042. pointers. They can cause the double-free crash when the burst
  2043. errors occur in TrueType interpreter and `free_buffer_in_size' is
  2044. invoked repeatedly.
  2045. 2010-09-15 Werner Lemberg <wl@gnu.org>
  2046. Make bytecode debugging with FontForge work again.
  2047. * src/truetype/ttinterp.c (TT_RunIns): Don't call
  2048. `free_buffer_in_size' in case of error if a debugger is active.
  2049. 2010-09-14 Werner Lemberg <wl@gnu.org>
  2050. Improve tracing messages.
  2051. * src/truetype/ttinterp.c (TT_RunIns): Improve wording of tracing
  2052. message.
  2053. * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Add
  2054. tracing message.
  2055. * src/truetype/ttgload.c (tt_loader_init): Add tracing message.
  2056. * src/cache/ftcsbits.c (ftc_snode_load): Emit tracing message if
  2057. glyph doesn't fit into a small bitmap container.
  2058. 2010-09-13 Werner Lemberg <wl@gnu.org>
  2059. Fix minor issues reported by <muktha.narayan@wipro.com>.
  2060. * src/autofit/aflatin.c (af_latin_compute_stem_width): Remove
  2061. redundant conditional check.
  2062. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Ditto.
  2063. * src/cff/cffload.c (cff_encoding_load): Remove conditional check
  2064. which always evaluates to `true'.
  2065. * src/pshinter/pshalgo.c (ps_glyph_interpolate_strong_points):
  2066. Ditto.
  2067. * src/truetype/ttinterp.c (Ins_IUP): Ditto.
  2068. * src/cid/cidgload.c (cid_slot_load_glyph): Don't check for NULL if
  2069. value is already dereferenced.
  2070. * src/winfonts/winfnt.c (FNT_Load_Glyph): Fix check of `face'.
  2071. 2010-08-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2072. Ignore the environmental setting of LIBTOOL.
  2073. Patch is suggested by Adrian Bunk, to prevent unexpected
  2074. reflection of environmental LIBTOOL. See:
  2075. http://savannah.nongnu.org/patch/?7290
  2076. * builds/unix/unix-cc.in: LIBTOOL is unconditionally set to
  2077. $(FT_LIBTOOL_DIR)/libtool. FT_LIBTOOL_DIR is set to $(BUILD_DIR)
  2078. by default.
  2079. * configure: When configured for the building out of source tee,
  2080. FT_LIBTOOL_DIR is set to $(OBJ_DIR).
  2081. 2010-08-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2082. [truetype] Decrease the trace level catching the interpreter error.
  2083. * src/truetype/ttinterp.c (TT_RunIns): Decrease the trace level
  2084. showing the error when the interpreter returns with an error,
  2085. from` FT_TRACE7' to `FT_TRACE1'.
  2086. 2010-08-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2087. [truetype] Prevent bytecode reuse after the interpretation error.
  2088. * src/truetype/ttinterp.c (free_buffer_in_size): New function to
  2089. free the buffer allocated during the interpretation of this glyph.
  2090. (TT_RunIns): Unset FT_Face->size->{cvt_ready,bytecode_ready} if
  2091. an error occurs in the bytecode interpretation. The interpretation
  2092. of invalid bytecode may break the function definitions and referring
  2093. them in later interpretation is danger. By unsetting these flags,
  2094. `fpgm' and `prep' tables are executed again in next interpretation.
  2095. This fixes Savannah bug #30798, reported by Robert Święcki.
  2096. 2010-08-29 Werner Lemberg <wl@gnu.org>
  2097. [ftraster] Pacify compiler.
  2098. * src/raster/ftraster.c (ft_black_new) [_STANDALONE_]: `memory' is
  2099. not used.
  2100. 2010-08-29 Werner Lemberg <wl@gnu.org>
  2101. [cff] Allow SIDs >= 65000.
  2102. * src/cff/cffload.c (cff_charset_load): Fix change from 2009-03-20:
  2103. The threshold for SIDs is not applicable here. I misinterpreted the
  2104. `SID values 65000 and above are available for implementation use'
  2105. sentence in the CFF specification.
  2106. Problem reported by Ivan Ninčić <inincic@pdftron.com>.
  2107. 2010-08-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2108. Force hinting when the font lacks its familyname.
  2109. In Type42 or Type11 font embedded in PostScript & PDF, TrueType sfnt
  2110. stream may lack `name' table because they are not required. Hinting
  2111. for nameless fonts is safer for PDFs including embedded Chinese
  2112. fonts. Written by David Bevan, see:
  2113. http://lists.gnu.org/archive/html/freetype-devel/2010-08/msg00021.html
  2114. http://lists.freedesktop.org/archives/poppler/2010-August/006310.html
  2115. * src/truetype/ttobjs.c (tt_check_trickyness): If a NULL pointer by
  2116. nameless font is given, TRUE is returned to enable hinting.
  2117. 2010-08-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2118. Register yet another tricky TrueType font.
  2119. * src/truetype/ttobjs.c (tt_check_trickyness): Add `HuaTianKaiTi?',
  2120. a Kaishu typeface paired with `HuaTianSongTi?' by Huatian
  2121. Information Industry.
  2122. 2010-08-17 Teijo Kinnunen <Teijo.Kinnunen@nuance.com>
  2123. Fix Savannah bug #30788.
  2124. * src/cache/ftccache.c (FTC_Cache_Clear): Check `cache->buckets' for
  2125. NULL too.
  2126. 2010-08-10 Werner Lemberg <wl@gnu.org>
  2127. Try to fix Savannah bug #30717 (and probably #30719 too).
  2128. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Add another
  2129. overflow test for `width' and `height'.
  2130. 2010-08-06 Werner Lemberg <wl@gnu.org>
  2131. * Version 2.4.2 released.
  2132. =========================
  2133. Tag sources with `VER-2-4-2'.
  2134. * docs/CHANGES: Updated.
  2135. * docs/VERSION.DLL: Update documentation and bump version number to
  2136. 2.4.2
  2137. * README, Jamfile (RefDoc),
  2138. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  2139. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  2140. builds/win32/visualc/freetype.dsp,
  2141. builds/win32/visualc/freetype.vcproj,
  2142. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  2143. builds/win32/visualce/freetype.vcproj,
  2144. builds/win32/visualce/index.html,
  2145. builds/wince/vc2005-ce/freetype.vcproj,
  2146. builds/wince/vc2005-ce/index.html,
  2147. builds/wince/vc2008-ce/freetype.vcproj,
  2148. builds/wince/vc2008-ce/index.html: s/2.4.1/2.4.2/, s/241/242/.
  2149. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
  2150. * builds/unix/configure.raw (version_info): Set to 12:0:6.
  2151. 2010-08-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2152. Fix Savannah bug #30648.
  2153. * src/base/ftobjs.c (FT_Done_Library): Specify the order of font
  2154. drivers during the face closing process. Type42 faces should be
  2155. closed before TrueType faces, because a Type42 face refers to
  2156. another internal TrueType face which is created from sfnt[] array on
  2157. the memory.
  2158. 2010-08-06 Yuriy Kaminskiy <yumkam@mail.ru>
  2159. [raster] Fix valgrind warning.
  2160. * src/raster/ftraster.c (Decompose_Curve) <default>: Access point[0]
  2161. only if we don't hit `limit'.
  2162. 2010-08-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2163. Fix Savannah bug #30658.
  2164. * src/base/ftobjs.c (Mac_Read_POST_Resource): Check that the total
  2165. length of collected POST segments does not overrun the allocated
  2166. buffer.
  2167. 2010-08-06 Yuriy Kaminskiy <yumkam@mail.ru>
  2168. Fix conditional usage of FT_MulFix_i386.
  2169. With -ansi flag, gcc does not define `i386', only `__i386__'.
  2170. * include/freetype/config/ftconfig.h, builds/unix/ftconfig.in:
  2171. s/i386/__i386__/.
  2172. 2010-08-05 Werner Lemberg <wl@gnu.org>
  2173. Fix Savannah bug #30657.
  2174. * src/truetype/ttinterp.c (BOUNDSL): New macro.
  2175. Change `BOUNDS' to `BOUNDSL' where appropriate.
  2176. * src/truetype/ttinterp.h (TT_ExecContextRec): Fix type of
  2177. `cvtSize'.
  2178. 2010-08-05 Werner Lemberg <wl@gnu.org>
  2179. Fix Savannah bug #30656.
  2180. * src/type42/t42parse.c (t42_parse_sfnts): Protect against negative
  2181. string_size.
  2182. Fix comparison.
  2183. 2010-08-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2184. [cff] Don't use any values in decoder after parsing error.
  2185. * src/cff/cffgload.c (cff_slot_load): Skip the evaluations
  2186. of the values in decoder, if `cff_decoder_parse_charstrings'
  2187. returns any error.
  2188. 2010-08-04 Werner Lemberg <wl@gnu.org>
  2189. Fix Savannah bug #30644.
  2190. * src/base/ftstream.c (FT_Stream_EnterFrame): Fix comparison.
  2191. 2010-08-04 Werner Lemberg <wl@gnu.org>
  2192. `make devel' fails if FT_CONFIG_OPTION_OLD_INTERNALS is set.
  2193. * devel/ftoption.h: Synchronize with
  2194. include/freetype/config/ftoption.h.
  2195. 2010-08-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2196. [cff] Improve stack overflow test.
  2197. * src/cff/cffgload.c (cff_decoder_parse_charstrings): Check stack
  2198. after execution of operations too.
  2199. 2010-07-18 Werner Lemberg <wl@gnu.org>
  2200. Add reference counters and to FT_Library and FT_Face objects.
  2201. * include/freetype/freetype.h (FT_Reference_Face): New function.
  2202. * include/freetype/ftmodapi.h (FT_Rererence_Library): New function.
  2203. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec,
  2204. FT_LibraryRec): New field `refcount'.
  2205. * src/base/ftobjs.c (FT_Open_Face, FT_New_Library): Handle
  2206. `refcount'.
  2207. (FT_Reference_Face, FT_Reference_Library): Implement new functions.
  2208. (FT_Done_Face, FT_Done_Library): Handle `refcount'.
  2209. * docs/CHANGES: Updated.
  2210. 2010-07-18 Werner Lemberg <wl@gnu.org>
  2211. * Version 2.4.1 released.
  2212. =========================
  2213. Tag sources with `VER-2-4-1'.
  2214. * docs/CHANGES: Updated.
  2215. * docs/VERSION.DLL: Update documentation and bump version number to
  2216. 2.4.1.
  2217. * README, Jamfile (RefDoc),
  2218. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  2219. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  2220. builds/win32/visualc/freetype.dsp,
  2221. builds/win32/visualc/freetype.vcproj,
  2222. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  2223. builds/win32/visualce/freetype.vcproj,
  2224. builds/win32/visualce/index.html,
  2225. builds/wince/vc2005-ce/freetype.vcproj,
  2226. builds/wince/vc2005-ce/index.html,
  2227. builds/wince/vc2008-ce/freetype.vcproj,
  2228. builds/wince/vc2008-ce/index.html: s/2.4.0/2.4.1/, s/240/241/.
  2229. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
  2230. * builds/unix/configure.raw (version_info): Set to 11:1:5.
  2231. 2010-07-17 Werner Lemberg <wl@gnu.org>
  2232. [cff] Final try to fix `hintmask' and `cntrmask' limit check.
  2233. Problem reported by Tobias Wolf <towolf@gmail.com>.
  2234. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  2235. <cff_op_hintmask>: Sigh. I'm apparently too silly to fix this
  2236. correctly in less than three tries.
  2237. 2010-07-12 Werner Lemberg <wl@gnu.org>
  2238. * Version 2.4.0 released.
  2239. =========================
  2240. Tag sources with `VER-2-4-0'.
  2241. * docs/CHANGES: Updated.
  2242. * docs/VERSION.DLL: Update documentation and bump version number to
  2243. 2.4.0.
  2244. * README, Jamfile (RefDoc),
  2245. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  2246. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  2247. builds/win32/visualc/freetype.dsp,
  2248. builds/win32/visualc/freetype.vcproj,
  2249. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  2250. builds/win32/visualce/freetype.vcproj,
  2251. builds/win32/visualce/index.html,
  2252. builds/wince/vc2005-ce/freetype.vcproj,
  2253. builds/wince/vc2005-ce/index.html,
  2254. builds/wince/vc2008-ce/freetype.vcproj,
  2255. builds/wince/vc2008-ce/index.html: s/2.3.12/2.4.0/, s/2312/240/.
  2256. * include/freetype/freetype.h (FREETYPE_MINOR): Set to 4.
  2257. (FREETYPE_PATCH): Set to 0.
  2258. * builds/unix/configure.raw (version_info): Set to 11:0:5.
  2259. 2010-07-12 Werner Lemberg <wl@gnu.org>
  2260. Remove C++ warnings.
  2261. */*: Initialize pointers where necessary to make g++ happy.
  2262. 2010-07-12 malc <av1474@comtv.ru>
  2263. Richard Henderson <rth@redhat.com>
  2264. Fix type-punning issues with C++.
  2265. * include/freetype/internal/ftmemory.h (FT_ASSIGNP) [__cplusplus]:
  2266. Emulate a `typeof' operator with an inline template which uses
  2267. `static_cast'.
  2268. 2010-07-11 Werner Lemberg <wl@gnu.org>
  2269. Fix C++ compilation issue.
  2270. * src/tools/apinames.c (names_dump) <OUTPUT_WATCOM_LBC>: Fix
  2271. type of `dot' variable.
  2272. 2010-07-10 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2273. Fix another case reported in Savannah bug #30373.
  2274. Permit a face for Type1, Type42 and CFF without charmap,
  2275. patch by Tor Andersson.
  2276. * src/type1/t1objs.c (T1_Face_Init): Reset the error if it
  2277. is FT_Err_No_Unicode_Glyph_Name.
  2278. * src/type42/t42objs.c (T42_Face_Init): Ditto.
  2279. * src/cff/cffobjs.c (cff_face_init): Ditto.
  2280. 2010-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2281. Use defined macros to set {platform,encoding}_id.
  2282. * src/bdf/bdfdrivr.c: Include ttnameid.h and use macros to
  2283. set charmap.{platfom,encoding}_id.
  2284. * src/pcf/pcfdrivr.c: Ditto.
  2285. * src/winfonts/winfnt.c: Ditto.
  2286. * src/type1/t1objs.c: Ditto.
  2287. * src/type42/t42objs.c: Ditto.
  2288. * src/cff/cffobjs.c: Ditto.
  2289. * src/pfr/pfrobjs.c: Ditto.
  2290. 2010-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2291. Fix Savannah bug #30373.
  2292. Too serious check of errors by `FT_CMap_New' since 2010-07-04
  2293. is fixed. Reported by Tor Andersson.
  2294. * include/freetype/fterrdef.h
  2295. (PSnames_Err_No_Unicode_Glyph_Name): New error code to
  2296. indicate the Unicode charmap synthesis failed because
  2297. no Unicode glyph name is found.
  2298. * src/psnames/psmodule.c (ps_unicodes_init): Return
  2299. PSnames_Err_No_Unicode_Glyph_Name when no Unicode glyph name
  2300. is found in the font.
  2301. * src/cff/cffcmap.c (cff_cmap_unicode_init): Return
  2302. CFF_Err_No_Unicode_Glyph_Name when no SID is available.
  2303. * src/type1/t1objs.c (T1_Face_Init): Proceed if `FT_CMap_New'
  2304. is failed by the lack of Unicode glyph name.
  2305. * src/type42/t42objs.c (T42_Face_Init): Ditto.
  2306. * src/cff/cffobjs.c (cff_face_init): Ditto.
  2307. 2010-07-09 Ken Sharp <ken.sharp@artifex.com>
  2308. Make ftraster.c compile in stand-alone mode with MSVC compiler.
  2309. * src/raster/ftmisc.h (FT_Int64) [_WIN32, _WIN64]: Fix typedef
  2310. since there is no `inttypes.h' for MSVC.
  2311. 2010-07-08 Werner Lemberg <wl@gnu.org>
  2312. Fix Savannah bug #30361.
  2313. * src/truetype/ttinterp.c (Ins_IUP): Fix bounds check.
  2314. 2010-07-06 Werner Lemberg <wl@gnu.org>
  2315. Pacify compiler.
  2316. * src/cff/cffload.c (cff_index_get_pointers): Initialize
  2317. `new_bytes'.
  2318. 2010-07-05 Eugene A. Shatokhin <spectre@ispras.ru>
  2319. Fix Savannah bug #27648.
  2320. * src/base/ftobjs.c (ft_remove_renderer, FT_Add_Module): Call
  2321. `raster_done' only if we have an outline glyph format.
  2322. 2010-07-05 Werner Lemberg <wl@gnu.org>
  2323. Fix Savannah bug #30030.
  2324. * builds/win32/*/freetype.vcproj: Add ftxf86.c.
  2325. 2010-07-05 Werner Lemberg <wl@gnu.org>
  2326. [cff] Next try to fix `hintmask' and `cntrmask' limit check.
  2327. Problem reported by malc <av1474@comtv.ru>.
  2328. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  2329. <cff_op_hintmask>: It is possible that there is just a single byte
  2330. after the `hintmask' or `cntrmask', e.g., a `return' instruction.
  2331. 2010-07-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2332. Restrict the number of the charmaps in a rogue-compatible mode.
  2333. Fix for Savannah bug #30059.
  2334. * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Replace `16' the
  2335. minimum character code passed by a legacy rogue client by...
  2336. * include/freetype/config/ftoption.h (FT_MAX_CHARMAP_CACHEABLE):
  2337. This. It is undefined when FT_CONFIG_OPTION_OLD_INTERNALS is
  2338. undefined (thus the rogue client compatibility is not required).
  2339. * src/cff/cffobjs.c (cff_face_init): Abort the automatic
  2340. selection or synthesis of Unicode cmap subtable when the charmap
  2341. index exceeds FT_MAX_CHARMAP_CACHEABLE.
  2342. * src/sfnt/ttcmap.c (tt_face_build_cmaps): Issue error message
  2343. when the charmap index exceeds FT_MAX_CHARMAP_CACHEABLE.
  2344. * src/base/ftobjs.c (find_unicode_charmap): When Unicode charmap
  2345. is found after FT_MAX_CHARMAP_CACHEABLE, ignore it and search
  2346. earlier one.
  2347. (find_variant_selector_charmap): When UVS charmap is found after
  2348. FT_MAX_CHARMAP_CACHEABLE, ignore it and search earlier one.
  2349. (FT_Select_Charmap): When a charmap matching with requested
  2350. encoding but after FT_MAX_CHARMAP_CACHEABLE, ignore and search
  2351. earlier one.
  2352. (FT_Set_Charmap): When a charmap matching with requested
  2353. charmap but after FT_MAX_CHARMAP_CACHEABLE, ignore and search
  2354. earlier one.
  2355. (FT_Get_Charmap_Index): When a requested charmap is found
  2356. after FT_MAX_CHARMAP_CACHEABLE, return the inverted charmap
  2357. index.
  2358. 2010-07-04 Werner Lemberg <wl@gnu.org>
  2359. TrueType hinting is no longer patented.
  2360. * include/freetype/config/ftoption.h, devel/ftoption.h
  2361. (TT_CONFIG_OPTION_BYTECODE_INTERPRETER): Define.
  2362. (TT_CONFIG_OPTION_UNPATENTED_HINTING): Undefine.
  2363. * docs/CHANGES, docs/INSTALL, include/freetype/freetype.h: Updated.
  2364. * docs/TRUETYPE, docs/PATENTS: Removed.
  2365. 2010-07-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2366. Check error value by `FT_CMap_New'.
  2367. * src/cff/cffobjs.c (cff_face_init): Check error value by
  2368. `FT_CMap_New'.
  2369. * src/pfr/pfrobjs.c (pfr_face_init): Ditto.
  2370. * src/type1/t1jobjs.c (T1_Face_Init): Ditto.
  2371. * src/type42/t42jobjs.c (T42_Face_Init): Ditto.
  2372. 2010-07-03 Werner Lemberg <wl@gnu.org>
  2373. Make ftgrays.c compile stand-alone again.
  2374. * src/smooth/ftgrays.c [_STANDALONE_]: Include `stddef.h'.
  2375. (FT_INT_MAX, FT_PtrDist)[_STANDALONE_]: Define.
  2376. 2010-07-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2377. Additional fix for Savannah bug #30306.
  2378. * src/base/ftobjs.c (Mac_Read_POST_Resource): If the type of the
  2379. POST fragment is 0, the segment is completely ignored. The declared
  2380. length of the segment is not cared at all. According to Adobe
  2381. Technical Note 5040, type 0 segment is a comment only and should not
  2382. be loaded for the interpreter. Reported by Robert Święcki.
  2383. 2010-07-01 Werner Lemberg <wl@gnu.org>
  2384. [truetype] Protect against code range underflow.
  2385. * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF): Don't allow
  2386. negative IP values.
  2387. 2010-07-01 Werner Lemberg <wl@gnu.org>
  2388. [truetype] Add rudimentary tracing for bytecode instructions.
  2389. * src/truetype/ttinterp.c (opcode_name) [FT_DEBUG_LEVEL_TRACE]: New
  2390. array.
  2391. (TT_RunIns): Trace opcodes.
  2392. 2010-06-30 Werner Lemberg <wl@gnu.org>
  2393. Fix Savannah bug #30263.
  2394. * src/smooth/ftgrays.c (gray_render_span): Use cast to `unsigned
  2395. int' to avoid integer overflow.
  2396. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Use smaller
  2397. threshold values for `width' and `height'. This is not directly
  2398. related to the bug fix but makes sense anyway.
  2399. 2010-07-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2400. Initial fix for Savannah bug #30306.
  2401. * src/base/ftobjs.c (Mac_Read_POST_Resource): Check `rlen', the
  2402. length of fragment declared in the POST fragment header, and prevent
  2403. an underflow in length calculation. Some fonts set the length to
  2404. zero in spite of the existence of a following 16bit `type'.
  2405. Reported by Robert Święcki.
  2406. 2010-07-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2407. Additional fix for Savannah bug #30248 and #30249.
  2408. * src/base/ftobjs.c (Mac_Read_POST_Resource): Check the buffer size
  2409. during gathering PFB fragments embedded in LaserWriter PS font for
  2410. Macintosh. Reported by Robert Święcki.
  2411. 2010-06-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  2412. Minor optimizations by avoiding divisions.
  2413. * src/sfnt/ttkern.c (tt_face_load_kern, tt_face_get_kerning):
  2414. Replace divisions with multiplication in comparisons.
  2415. 2010-06-29 Werner Lemberg <wl@gnu.org>
  2416. Fix minor tracing issues.
  2417. * src/cff/cffgload.c, src/truetype/ttgload.c: Adjust tracing levels.
  2418. 2010-06-27 Werner Lemberg <wl@gnu.org>
  2419. [cff] Really fix `hintmask' and `cntrmask' limit check.
  2420. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  2421. <cff_op_hintmask>: Fix thinko and handle tracing also.
  2422. 2010-06-27 Werner Lemberg <wl@gnu.org>
  2423. Fix valgrind warning.
  2424. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize
  2425. `result' array.
  2426. 2010-06-27 Werner Lemberg <wl@gnu.org>
  2427. [cff] Fix memory leak.
  2428. * src/cff/cffgload.c (cff_operator_seac): Free charstrings even in
  2429. case of errors.
  2430. 2010-06-27 Werner Lemberg <wl@gnu.org>
  2431. [cff] Protect against invalid `hintmask' and `cntrmask' operators.
  2432. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  2433. <cff_op_hintmask>: Ensure that we don't exceed `limit' while parsing
  2434. the bit masks of the `hintmask' and `cntrmask' operators.
  2435. 2010-06-26 Werner Lemberg <wl@gnu.org>
  2436. Fix PFR change 2010-06-24.
  2437. * src/pfr/pfrgload.c (pfr_glyph_load_simple): Really protect against
  2438. invalid indices.
  2439. 2010-06-26 Werner Lemberg <wl@gnu.org>
  2440. Improve PFR tracing messages.
  2441. * src/pfr/pfrgload.c (pfr_glyph_load_rec): Emit tracing messages for
  2442. simple and compound glyph offsets.
  2443. 2010-06-26 Werner Lemberg <wl@gnu.org>
  2444. Fix last PFR change.
  2445. * src/pfr/pfrobjs.c (pfr_face_init): Fix rejection logic.
  2446. 2010-06-26 Werner Lemberg <wl@gnu.org>
  2447. Fix Savannah bug #30262.
  2448. * src/sfnt/ttload.c (tt_face_load_maxp): Limit `maxComponentDepth'
  2449. arbitrarily to 100 to avoid stack exhaustion.
  2450. 2010-06-26 Werner Lemberg <wl@gnu.org>
  2451. Add some memory checks (mainly for debugging).
  2452. * src/base/ftstream.c (FT_Stream_EnterFrame): Exit with error
  2453. if the frame size is larger than the stream size.
  2454. * src/base/ftsystem.c (ft_ansi_stream_io): Exit with error if
  2455. seeking a position larger than the stream size.
  2456. 2010-06-25 Werner Lemberg <wl@gnu.org>
  2457. Fix Savannah bug #30261.
  2458. * src/pfr/pfrobjs.c (pfr_face_init): Reject fonts which contain
  2459. neither outline nor bitmap glyphs.
  2460. 2010-06-25 Werner Lemberg <wl@gnu.org>
  2461. Fix Savannah bug #30254.
  2462. * src/cff/cffload.c (cff_index_get_pointers): Do sanity check for
  2463. first offset also.
  2464. 2010-06-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2465. Initial fix for Savannah bug #30248 and #30249.
  2466. * src/base/ftobjs.c (Mac_Read_POST_Resource): Check the error during
  2467. reading a PFB fragment embedded in LaserWriter PS font for Macintosh.
  2468. Reported by Robert Święcki.
  2469. 2010-06-24 Werner Lemberg <wl@gnu.org>
  2470. Fix Savannah bug #30247.
  2471. * src/pcf/pcfread.c (pcf_get_metrics): Disallow (invalid) fonts with
  2472. zero metrics.
  2473. 2010-06-24 Graham Asher <graham.asher@btinternet.com>
  2474. * src/smooth/ftgrays.c (gray_render_cubic): Fix algorithm.
  2475. The previous version was too aggressive, as demonstrated in
  2476. http://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00020.html.
  2477. 2010-06-24 Werner Lemberg <wl@gnu.org>
  2478. */*: Use module specific error names where appropriate.
  2479. 2010-06-24 Werner Lemberg <wl@gnu.org>
  2480. Fix Savannah bug #30236.
  2481. * src/sfnt/ttcmap.c (tt_face_build_cmaps): Improve check for pointer
  2482. to `cmap_table'.
  2483. 2010-06-24 Werner Lemberg <wl@gnu.org>
  2484. Fix Savannah bug #30235.
  2485. * src/pfr/pfrgload.c (pfr_glyph_load_simple): Protect against
  2486. invalid indices if there aren't any coordinates for indexing.
  2487. 2010-06-24 Werner Lemberg <wl@gnu.org>
  2488. [bdf]: Font properties are optional.
  2489. * src/bdf/bdflib.c (_bdf_readstream): Use special error code to
  2490. indicate a redo operation.
  2491. (_bdf_parse_start): Handle `CHARS' keyword here too and pass current
  2492. input line to `_bdf_parse_glyph'.
  2493. 2010-06-23 Werner Lemberg <wl@gnu.org>
  2494. Fix Savannah bug #30220.
  2495. * include/freetype/fterrdef.h
  2496. (BDF_Err_Missing_Fontboundingbox_Field): New error code.
  2497. * src/bdf/bdflib.c (_bdf_parse_start): Check for missing
  2498. `FONTBOUNDINGBOX' field.
  2499. Avoid memory leak if there are multiple `FONT' lines (which is
  2500. invalid but doesn't hurt).
  2501. 2010-06-21 Werner Lemberg <wl@gnu.org>
  2502. Fix Savannah bug #30168.
  2503. * src/pfr/pfrgload.c (pfr_glyph_load_compound): Limit the number of
  2504. subglyphs to avoid endless recursion.
  2505. 2010-06-20 Werner Lemberg <wl@gnu.org>
  2506. Fix Savannah bug #30145.
  2507. * src/psaux/psobjs.c (t1_builder_add_contour): Protect against
  2508. `outline == NULL' which might happen in invalid fonts.
  2509. 2010-06-19 Werner Lemberg <wl@gnu.org>
  2510. Fix Savannah bug #30135.
  2511. * src/bdf/bdflib.c (_bdf_list_join): Don't modify value in static
  2512. string `empty'.
  2513. (_bdf_parse_glyph): Avoid memory leak in case of error.
  2514. 2010-06-15 Werner Lemberg <wl@gnu.org>
  2515. Fix Savannah bug #30108.
  2516. * src/autofit/afglobal.c (af_face_globals_compute_script_coverage):
  2517. Properly mask AF_DIGIT bit in comparison.
  2518. 2010-06-11 Werner Lemberg <wl@gnu.org>
  2519. Fix Savannah bug #30106.
  2520. Point numbers for FreeType's implementation of hinting masks are
  2521. collected before the final number of points of a glyph has been
  2522. determined; in particular, the code for handling the `endchar'
  2523. opcode can reduce the number of points.
  2524. * src/pshinter/pshalgo.c (psh_glyph_find_strong_points): Assure that
  2525. `end_point' is not larger than `glyph->num_points'.
  2526. 2010-06-11 Werner Lemberg <wl@gnu.org>
  2527. [cff]: Improve debugging output.
  2528. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  2529. <cff_op_hintmask>: Implement it.
  2530. 2010-06-10 Graham Asher <graham.asher@btinternet.com>
  2531. ftgrays: Speed up rendering of small cubic splines.
  2532. * src/smooth/ftgrays.c (gray_render_cubic): Implement new,
  2533. simplified algorithm to find out whether the spline can be replaced
  2534. with two straight lines. See this thread for more:
  2535. http://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00000.html
  2536. 2010-06-09 Werner Lemberg <wl@gnu.org>
  2537. Fix Savannah bug #30082.
  2538. * src/cff/cffgload.c (cff_decoder_parse_charstrings)
  2539. <cff_op_callothersubr>: Protect against stack underflow.
  2540. 2010-06-08 Werner Lemberg <wl@gnu.org>
  2541. Fix Savannah bug #30053.
  2542. * src/cff/cffparse.c (cff_parse_real): Handle border case where
  2543. `fraction_length' has value 10.
  2544. 2010-06-07 Werner Lemberg <wl@gnu.org>
  2545. Fix Savannah bug #30052.
  2546. This bug has been introduced with commit 2415cbf3.
  2547. * src/base/ftobjs.c (FT_Get_First_Char, FT_Get_Next_Char): Protect
  2548. against endless loop in case of corrupted font header data.
  2549. 2010-05-26 Werner Lemberg <wl@gnu.org>
  2550. Remove unused variable.
  2551. Found by Graham.
  2552. * src/autofit/afhints.c (af_glyph_hints_reload): Remove unused
  2553. variable `first' in first block.
  2554. 2010-05-22 Werner Lemberg <wl@gnu.org>
  2555. Fix various memory problems found by linuxtesting.org.
  2556. * src/base/ftgxval.c (FT_TrueTypeGX_Free, FT_ClassicKern_Free),
  2557. src/base/ftotval.c (FT_OpenType_Free), src/base/ftpfr.c
  2558. (ft_pfr_check): Check `face'.
  2559. * src/base/ftobjs.c (FT_Get_Charmap_Index): Check `charmap' and
  2560. `charmap->face'.
  2561. (FT_Render_Glyph): Check `slot->face'.
  2562. (FT_Get_SubGlyph_Info): Check `glyph->subglyphs'.
  2563. 2010-05-22 Werner Lemberg <wl@gnu.org>
  2564. autofit: Remove dead code.
  2565. Suggested by Graham.
  2566. * src/autofit/afhints.c (af_glyph_hints_compute_inflections):
  2567. Removed.
  2568. (af_glyph_hints_reload): Remove third argument.
  2569. Update all callers.
  2570. 2010-05-21 Bram Tassyns <bramt@enfocus.be>
  2571. Fix Savannah bug #27987.
  2572. * src/cff/cffobjs.c (remove_subset_prefix): New function.
  2573. (cff_face_init): Use it to adjust `cffface->family_name'.
  2574. 2010-05-20 Werner Lemberg <wl@gnu.org>
  2575. TrueType: Make FreeType ignore maxSizeOfInstructions in `maxp'.
  2576. Acroread does the same.
  2577. * src/truetype/ttgload.c (TT_Process_Composite_Glyph): Call
  2578. `Update_Max' to adjust size of instructions array if necessary and
  2579. add a rough safety check.
  2580. (load_truetype_glyph): Save `loader->byte_len' before recursive
  2581. call.
  2582. * src/truetype/ttinterp.h, src/truetype/ttinterp.c (Update_Max):
  2583. Declare it as FT_LOCAL.
  2584. 2010-05-18 Hongbo Ni <hongbo@njstar.com>
  2585. Apply Savannah patch #7196.
  2586. * src/cff/cffgload.c (cff_slot_load): Prevent crash if CFF subfont
  2587. index is out of range.
  2588. 2010-05-11 Werner Lemberg <wl@gnu.org>
  2589. * docs/formats.txt: Give pointer to PCF documentation.
  2590. Information provided by Alan Coopersmith
  2591. <alan.coopersmith@oracle.com>.
  2592. 2010-05-10 Ken Sharp <ken.sharp@artifex.com>
  2593. Fix Savannah bug #29846.
  2594. Previously we discovered fonts which used `setcurrentpoint' to set
  2595. the initial point of a contour to 0,0. This caused FreeType to
  2596. raise an error, because the `setcurrentpoint' operator is only
  2597. supposed to be used with the results from an OtherSubr subroutine.
  2598. This was fixed by simply ignoring the error and carrying on.
  2599. Now we have found a font which uses setcurrentpoint to actually
  2600. establish a non-zero point for a contour during the course of a
  2601. glyph program. FWIW, these files may be produced by an application
  2602. called `Intaglio' on the Mac, when converting TrueType fonts to
  2603. Type 1.
  2604. The fix allows the new invalid behaviour, the old invalid behaviour
  2605. and real proper usage of the operator to work the same way as Adobe
  2606. interpreters apparently do.
  2607. (t1_decoder_parse_charstrings): Make `setcurrentpoint' use the top
  2608. two elements of the stack to establish unconditionally the current x
  2609. and y coordinates.
  2610. Make the `flex' subroutine handling (OtherSubr 0) put the current
  2611. x,y coordinates onto the stack, instead of two dummy uninitialised
  2612. values.
  2613. 2010-04-14 Ken Sharp <ken.sharp@artifex.com>
  2614. Fix Savannah bug #29444.
  2615. * src/psaux/psobjs.c (t1_builder_start_point): Accept (invalid)
  2616. `lineto' immediately after `hsbw', in accordance with Acrobat, GS,
  2617. and others.
  2618. 2010-04-14 Michał Cichoń <thedmd@artifexmundi.com>
  2619. Fix Savannah bug #27999.
  2620. * src/cache/ftcmanag.c (FTC_Manager_RemoveFaceID): Only remove
  2621. selected entry, not all.
  2622. 2010-04-06 Jonathan Kew <jfkthame@gmail.com>
  2623. Add overflow check to `fvar' table.
  2624. * src/truetype/ttgxvar.c (TT_Get_MM_Var): Check axis and instance
  2625. count.
  2626. 2010-04-05 Ken Sharp <ken.sharp@artifex.com>
  2627. Fix Savannah bug #29335.
  2628. * src/raster/ftraster.c (Line_Up): Use slow multiplication to
  2629. prevent overflow. This shouldn't have any serious impact on speed,
  2630. however.
  2631. 2010-04-05 Werner Lemberg <wl@gnu.org>
  2632. Add new function `FT_Library_SetLcdFilterWeights'.
  2633. This is based on code written by Lifter
  2634. <http://unixforum.org/index.php?showuser=11691>. It fixes
  2635. FreeDesktop bug #27386.
  2636. * src/base/ftlcdfil.c (FT_Library_SetLcdFilterWeights): New
  2637. function.
  2638. * include/freetype/ftlcdfil.h: Updated.
  2639. * docs/CHANGES: Updated.
  2640. 2010-04-01 John Tytgat <John.Tytgat@esko.com>
  2641. Fix Savannah bug #29404.
  2642. * src/truetype/ttgload.c: Revert change 2752bd1a (check on bit 1
  2643. of `head' table of TrueType fonts).
  2644. 2010-03-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2645. Fix `multi build' for Tytgat's CFF driver improvement.
  2646. * src/base/cffload.h (cff_index_get_name): Added.
  2647. 2010-03-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2648. Remove duplicated inclusion of `FT_OUTLINE_H' in ftobjs.c.
  2649. * src/base/ftobjs.c: Remove 2nd inclusion of `FT_OUTLINE_H'.
  2650. 2010-03-11 Chris Liddell <chris.liddell@artifex.com>
  2651. Fix Savannah bug #27442.
  2652. * src/raster/ftraster.c (ft_black_reset): Fix `buffer_size'.
  2653. 2010-03-09 Werner Lemberg <wl@gnu.org>
  2654. Remove unused variable.
  2655. Reported by Graham.
  2656. * src/cff/cffparse.c (cff_parse_real): Remove `rest'.
  2657. 2010-03-02 John Tytgat <John.Tytgat@esko.com>
  2658. Improve CFF string (especially glyphname) lookup performance.
  2659. We do this by avoiding memory allocation and file I/O. This is
  2660. Savannah patch #7104.
  2661. * src/cff/cfftypes.h: Include PS cmaps service and
  2662. FT_INTERNAL_POSTSCRIPT_HINTS_H.
  2663. (CFF_SubFontRec): Remove `num_local_subrs'.
  2664. (CFF_FontRec): Add `num_strings', `strings', and `string_pool'
  2665. fields.
  2666. Remove `string_index' and `num_global_subrs' fields.
  2667. Use real types instead of `void' for `pshinter' and `psnames' fields.
  2668. * src/cff/cffload.c: Don't include PS cmaps service.
  2669. (cff_index_get_pointers): Add `pool' parameter which allows to
  2670. insert an extra NUL character for each String INDEX entry.
  2671. (cff_index_get_name): Make it a local function.
  2672. (cff_index_get_string): New function.
  2673. (cff_subfont_load): Updated.
  2674. (cff_font_load): Initialize `num_strings', `strings', and
  2675. `string_pool' fields in the `CFF_FontRec' structure.
  2676. (cff_index_get_sid_string): Use `cff_index_get_string' instead of
  2677. `cff_index_get_name'.
  2678. (cff_font_done): Updated.
  2679. * src/cff/cffload.h: Don't include PS cmaps service.
  2680. (cff_index_get_string): Added.
  2681. (cff_index_get_sid_string): Updated.
  2682. * src/cff/cffobjs.c: Don't include PS cmaps service and
  2683. FT_INTERNAL_POSTSCRIPT_HINTS_H.
  2684. (cff_size_get_globals_funcs, cff_slot_init): Updated.
  2685. (cff_face_init): Follow `cff_index_get_name',
  2686. `cff_index_get_string', and `cff_index_get_sid_string' changes.
  2687. * src/cff/cffcmap.c (cff_sid_free_glyph_name): Removed.
  2688. (cff_sid_to_glyph_name): Use `cff_index_get_cid_string'.
  2689. (cff_cmap_unicode_init): Updated.
  2690. * src/cff/cffdrivr.c: Don't include PS cmap service.
  2691. (cff_get_glyph_name): Avoid unnecessary lookup for POSTSCRIPT_CMAPS
  2692. service.
  2693. (cff_get_glyph_name, cff_ps_get_font_info, cff_get_ros): Follow API
  2694. `cff_index_get_sid_string' change.
  2695. (cff_get_name_index): Use `cff_index_get_string' instead of
  2696. `cff_index_get_name'.
  2697. * src/cff/cffgload.c: Don't include FT_INTERNAL_POSTSCRIPT_HINTS_H.
  2698. (cff_decoder_init, cff_decoder_prepare): Updated.
  2699. 2010-02-27 Werner Lemberg <wl@gnu.org>
  2700. Simplify code.
  2701. Suggested by Behdad.
  2702. * src/base/ftobjs.c (FT_Get_First_Char): Don't use a loop since we
  2703. call FT_Get_Next_Char anyway if necessary.
  2704. 2010-02-26 Behdad Esfahbod <behdad@behdad.org>
  2705. Improve handling of invalid glyph indices in char->index functions.
  2706. * src/base/ftobjs.c (FT_Get_First_Char, FT_Get_Next_Char): Use a
  2707. loop.
  2708. 2010-02-18 Chris Liddell <chris.liddell@artifex.com>
  2709. Fix Savannah bug #28905.
  2710. Initialize phantom points before calling the incremental interface
  2711. to update glyph metrics.
  2712. * src/truetype/ttgload.c (tt_get_metrics_incr_overrides)
  2713. [FT_CONFIG_OPTION_INCREMENTAL]: New function, split off from...
  2714. (tt_get_metrics): This.
  2715. Updated.
  2716. (load_truetype_glyph): Use tt_get_metrics_incr_overrides.
  2717. ----------------------------------------------------------------------------
  2718. Copyright 2010-2012 by
  2719. David Turner, Robert Wilhelm, and Werner Lemberg.
  2720. This file is part of the FreeType project, and may only be used, modified,
  2721. and distributed under the terms of the FreeType project license,
  2722. LICENSE.TXT. By continuing to use, modify, or distribute this file you
  2723. indicate that you have read the license and understand and accept it
  2724. fully.
  2725. Local Variables:
  2726. version-control: never
  2727. coding: utf-8
  2728. End: