🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5161 lines
158 KiB

2 years ago
  1. 2014-12-30 Werner Lemberg <wl@gnu.org>
  2. * Version 2.5.5 released.
  3. =========================
  4. Tag sources with `VER-2-5-5'.
  5. * docs/VERSION.DLL: Update documentation and bump version number to
  6. 2.5.5.
  7. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  8. builds/windows/vc2005/index.html,
  9. builds/windows/vc2008/freetype.vcproj,
  10. builds/windows/vc2008/index.html,
  11. builds/windows/vc2010/freetype.vcxproj,
  12. builds/windows/vc2010/index.html,
  13. builds/windows/visualc/freetype.dsp,
  14. builds/windows/visualc/freetype.vcproj,
  15. builds/windows/visualc/index.html,
  16. builds/windows/visualce/freetype.dsp,
  17. builds/windows/visualce/freetype.vcproj,
  18. builds/windows/visualce/index.html,
  19. builds/wince/vc2005-ce/freetype.vcproj,
  20. builds/wince/vc2005-ce/index.html,
  21. builds/wince/vc2008-ce/freetype.vcproj,
  22. builds/wince/vc2008-ce/index.html: s/2.5.4/2.5.5/, s/254/255/.
  23. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
  24. * builds/unix/configure.raw (version_info): Set to 17:4:11.
  25. * CMakeLists.txt (VERSION_PATCH): Set to 5.
  26. * docs/CHANGES: Updated.
  27. * builds/toplevel.mk (dist): Fix typos.
  28. 2014-12-24 Alexei Podtelezhnikov <apodtele@gmail.com>
  29. [base] Formatting and nanooptimizations.
  30. * src/base/ftcalc.c,
  31. * src/base/fttrigon.c: Revise sign restoration.
  32. 2014-12-13 Werner Lemberg <wl@gnu.org>
  33. * src/pcf/pcfread.c (pcf_read_TOC): Improve fix from 2014-12-08.
  34. 2014-12-11 Werner Lemberg <wl@gnu.org>
  35. * builds/toplevel.mk (dist): Use older POSIX standard for `tar'.
  36. Apparently, BSD tar isn't capable yet of handling POSIX-1.2001
  37. (contrary to GNU tar), so force the POSIX-1.1988 format.
  38. Problem reported by Stephen Fisher <sfisher@SDF.ORG>.
  39. 2014-12-11 Werner Lemberg <wl@gnu.org>
  40. * src/type42/t42parse.c (t42_parse_sfnts): Reject invalid TTF size.
  41. 2014-12-11 Werner Lemberg <wl@gnu.org>
  42. * src/base/ftobjs.c (FT_Get_Glyph_Name): Fix off-by-one check.
  43. Problem reported by Dennis Felsing <dennis@felsin9.de>.
  44. 2014-12-11 Werner Lemberg <wl@gnu.org>
  45. * src/type42/t42parse.c (t42_parse_sfnts): Check `string_size'.
  46. Problem reported by Dennis Felsing <dennis@felsin9.de>.
  47. 2014-12-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  48. [gxvalid] Fix a naming convention conflicting with ftvalid.
  49. See previous changeset for otvalid.
  50. * src/gxvalid/{gxvcommn.h, gxvmort.h, gxvmorx.h}: Replace
  51. `valid' by `gxvalid'.
  52. * src/gxvalid/{gxvbsln.c, gxvcommn.c, gxvfeat.c, gxvjust.c,
  53. gxvkern.c, gxvlcar.c, gxvmort.c, gxvmort0.c, gxvmort1.c,
  54. gxvmort2.c, gxvmort4.c, gxvmort5.c, gxvmorx.c, gxvmorx0.c,
  55. gxvmorx1.c, gxvmorx2.c, gxvmorx4.c, gxvmorx5.c, gxvopbd.c,
  56. gxvprop.c, gxvtrak.c}: Replace `valid' by `gxvalid' if
  57. it is typed as GXV_Validator.
  58. 2014-12-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  59. [otvalid] Fix a naming convention conflicting with ftvalid.
  60. Some prototypes in ftvalid.h use `valid' for the variables
  61. typed as FT_Validator. Their implementations in src/base/
  62. ftobjs.c and utilizations in src/sfnt/ttcmap.c do similar.
  63. Some macros in otvcommn.h assume the exist of the variable
  64. `valid' typed as OTV_Validator in the caller.
  65. Mixing these two conventions cause invalid pointer conversion
  66. and unexpected SEGV in longjmp. To prevent it, all variables
  67. typed as OTV_Validator are renamed to `otvalid'.
  68. * src/otvalid/otvcommn.h: Replace `valid' by `otvalid'.
  69. * src/otvalid/{otvcommn.c, otvbase.c, otvgdef.c, otvgpos.c,
  70. otvgsub.c, otvjstf.c, otvmath.c}: Replace `valid' by `otvalid'
  71. if it is typed as OTV_Validator.
  72. 2014-12-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  73. [ftvalid] Introduce FT_THROW() in FT_INVALID_XXX macros.
  74. Original patch is designed by Werner Lemberg. Extra part
  75. for otvalid and gxvalid are added by suzuki toshiya, see
  76. discussion:
  77. https://lists.nongnu.org/archive/html/freetype-devel/2014-12/msg00002.html
  78. https://lists.nongnu.org/archive/html/freetype-devel/2014-12/msg00007.html
  79. * include/internal/ftvalid.h: Introduce FT_THROW() in FT_INVALID_().
  80. * src/gxvalid/gxvcommn.h: Ditto.
  81. * src/otvalid/otvcommn.h: Ditto.
  82. 2014-12-08 Werner Lemberg <wl@gnu.org>
  83. [pcf] Fix Savannah bug #43774.
  84. Work around `features' of X11's `pcfWriteFont' and `pcfReadFont'
  85. functions. Since the PCF format doesn't have an official
  86. specification, we have to exactly follow these functions' behaviour.
  87. The problem was unveiled with a patch from 2014-11-06, fixing issue
  88. #43547.
  89. * src/pcf/pcfread.c (pcf_read_TOC): Don't check table size for last
  90. element. Instead, assign real size.
  91. 2014-12-07 Werner Lemberg <wl@gnu.org>
  92. Work around a bug in Borland's C++ compiler.
  93. See
  94. http://qc.embarcadero.com/wc/qcmain.aspx?d=118998
  95. for Borland's bug tracker entry.
  96. Reported by Yuliana Zigangirova <zigangirova@inbox.ru>,
  97. https://lists.gnu.org/archive/html/freetype-devel/2014-04/msg00001.html.
  98. * include/internal/ftvalid.h (FT_ValidatorRec), src/smooth/ftgrays.c
  99. (gray_TWorker_): Move `ft_jmp_buf' field to be the first element.
  100. 2014-12-07 Werner Lemberg <wl@gnu.org>
  101. */*: Decorate hex constants with `U' and `L' where appropriate.
  102. 2014-12-07 Werner Lemberg <wl@gnu.org>
  103. [truetype] Prevent memory leak for buggy fonts.
  104. * src/truetype/ttobjs.c (tt_size_done): Unconditionally call
  105. `tt_size_done_bytecode'.
  106. 2014-12-06 Werner Lemberg <wl@gnu.org>
  107. * Version 2.5.4 released.
  108. =========================
  109. Tag sources with `VER-2-5-4'.
  110. * docs/VERSION.DLL: Update documentation and bump version number to
  111. 2.5.4.
  112. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  113. builds/windows/vc2005/index.html,
  114. builds/windows/vc2008/freetype.vcproj,
  115. builds/windows/vc2008/index.html,
  116. builds/windows/vc2010/freetype.vcxproj,
  117. builds/windows/vc2010/index.html,
  118. builds/windows/visualc/freetype.dsp,
  119. builds/windows/visualc/freetype.vcproj,
  120. builds/windows/visualc/index.html,
  121. builds/windows/visualce/freetype.dsp,
  122. builds/windows/visualce/freetype.vcproj,
  123. builds/windows/visualce/index.html,
  124. builds/wince/vc2005-ce/freetype.vcproj,
  125. builds/wince/vc2005-ce/index.html,
  126. builds/wince/vc2008-ce/freetype.vcproj,
  127. builds/wince/vc2008-ce/index.html: s/2.5.3/2.5.4/, s/253/254/.
  128. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
  129. * builds/unix/configure.raw (version_info): Set to 17:3:11.
  130. * CMakeLists.txt (VERSION_PATCH): Set to 4.
  131. * docs/CHANGES: Updated.
  132. 2014-12-04 Werner Lemberg <wl@gnu.org>
  133. docs/CHANGES: Updated, formatted.
  134. 2014-12-04 Dave Arnold <darnold@adobe.com>
  135. [cff] Modify an FT_ASSERT.
  136. * src/cff/cf2hints.c (cf2_hintmap_map): After the fix for Savannah
  137. bug #43661, the test font `...aspartam.otf' still triggers an
  138. FT_ASSERT. Since hintmap still works with count==0, ...
  139. (cf2_glyphpath_lineTo, cf2_glyphpath_curveTo): ... add that term to
  140. suppress the assert.
  141. 2014-12-04 Dave Arnold <darnold@adobe.com>
  142. [cff] Fix Savannah bug #43661.
  143. * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdHSTEM,
  144. cf2_cmdVSTEM, cf2_cmdHINTMASK>: Don't append to stem arrays after
  145. hintmask is constructed.
  146. * src/cff/cf2hints.c (cf2_hintmap_build): Add defensive code to
  147. avoid reading past end of hintmask.
  148. 2014-12-03 Werner Lemberg <wl@gnu.org>
  149. docs/CHANGES: Updated.
  150. 2014-12-03 Werner Lemberg <wl@gnu.org>
  151. [autofit] Better fix for conversion specifiers in debug messages.
  152. Using `%ld' for pointer differences causes warnings on 32bit
  153. platforms. The correct type would be (the relatively new) `%td',
  154. however, this is missing on some important platforms.
  155. This patch improves the change from 2014-11-28.
  156. * src/autofit/afhints.c (AF_INDEX_NUM): Use `int' typecast. Our
  157. pointer differences are always sufficiently small.
  158. (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
  159. af_glyph_hints_dump_edge): Revert to `%d' and use `AF_INDEX_NUM'.
  160. 2014-12-03 Werner Lemberg <wl@gnu.org>
  161. FT_Sfnt_Tag: s/ft_sfnt_xxx/FT_SFNT_XXX/ for orthogonality.
  162. All public FreeType enumeration and flag values are uppercase...
  163. * include/tttables.h (FT_Sfnt_Tag): Implement it. For backward
  164. compatibility, retain the old values as macros.
  165. * src/base/ftfstype.c (FT_Get_FSType_Flags), src/sfnt/sfdriver.c
  166. (get_sfnt_table): Updated.
  167. 2014-12-02 Werner Lemberg <wl@gnu.org>
  168. * include/*: Improve structure of documentation.
  169. . Add and update many `<Order>' tags.
  170. . Apply various documentation fixes.
  171. . Remove details to deprecated (or never implemented) data.
  172. 2014-12-02 Werner Lemberg <wl@gnu.org>
  173. [docmaker] Always handle `<Order>' section elements.
  174. Previously, those elements were handled only for sections present in
  175. a `<Sections>' chapter element.
  176. * src/tools/docmaker/content.py (ContentProcessor::finish):
  177. Implement it.
  178. 2014-12-02 Werner Lemberg <wl@gnu.org>
  179. [docmaker] Properly handle empty rows in Synopsis.
  180. * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
  181. `&nbsp;' for empty fields.
  182. 2014-12-02 Werner Lemberg <wl@gnu.org>
  183. [docmaker] Thinko.
  184. * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
  185. Emit `/empty/' string for first element also.
  186. 2014-12-02 Werner Lemberg <wl@gnu.org>
  187. [docmaker] Honour empty lines in `<Order>' section element.
  188. This greatly improves the readability of the `Synopsis' links.
  189. * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
  190. Insert string `/empty/' between items.
  191. * src/tools/docmaker/formatter.py (Formatter::section_dump): Make it
  192. robust against nonexistent keys.
  193. * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Emit
  194. empty <td> elements for `/empty/'.
  195. 2014-12-02 Werner Lemberg <wl@gnu.org>
  196. [docmaker] Ensure Python 3 compatibility.
  197. * src/tools/docmaker/content.py (ContentProcessor::set_section,
  198. ContentProcessor::finish): Replace `has_key' function with `in'
  199. keyword.
  200. * src/tools/docmaker/formatter.py (Formatter::__init__): Replace
  201. sorting function with a key generator.
  202. (Formatter::add_identifier): Replace `has_key' function with `in'
  203. keyword.
  204. * src/tools/docmaker/tohtml.py (HtmlFormatter::html_source_quote):
  205. Replace `has_key' function with `in' keyword.
  206. (HtmlFormatter::index_exit, HtmlFormatter::section_enter): Use
  207. integer division.
  208. s/<>/>/.
  209. * src/tools/docmaker/utils.py: Import `itertools'.
  210. (index_sort): Replaced by...
  211. (index_key): ... this new key generator (doing exactly the same).
  212. 2014-11-29 Werner Lemberg <wl@gnu.org>
  213. [docmaker] Don't output a block multiple times.
  214. This bug was hidden by not processing all lines of `<Order>' blocks.
  215. * src/tools/docmaker/formatter.py (Formatter::section_dump): Filter
  216. out field names.
  217. 2014-11-29 Werner Lemberg <wl@gnu.org>
  218. [docmaker] Use field values as HTML link targets where possible.
  219. * src/tools/docmaker/tohtml.py (HtmlFormatter::make_block_url):
  220. Accept second, optional argument to specify a name.
  221. (HtmlFormatter::html_source_quote): Link to field ID if possible.
  222. (HtmlFormatter::print_html_field_list): Emit `id' attribute.
  223. 2014-11-29 Werner Lemberg <wl@gnu.org>
  224. [docmaker] Allow empty lines in `<Order>' blocks.
  225. Before this patch, the suggested order of entries stopped at the
  226. first empty line.
  227. Obviously, nobody noticed that this problem caused a much reduced
  228. set of links in the `Synopsis' sections; in particular, the
  229. `<Order>' blocks contain a lot of entries that wouldn't be listed
  230. otherwise...
  231. * src/tools/docmaker/content.py (DocBlock::get_markup_words_all):
  232. New function to iterate over all items.
  233. (DocSection::process): Use it.
  234. 2014-11-29 Werner Lemberg <wl@gnu.org>
  235. * src/tools/docmaker/sources.py (column) [Format 2]: Fix regexp.
  236. After the single asterisk there must be no other immediately following
  237. asterisk.
  238. 2014-11-29 Werner Lemberg <wl@gnu.org>
  239. * src/tools/docmaker/tohtml.py: Improve CSS for vertical spacing.
  240. 2014-11-29 Werner Lemberg <wl@gnu.org>
  241. [docmaker] Improve HTML code for table of contents.
  242. * src/tools/docmaker/tohtml.py: Introduce a new table class `toc',
  243. together with proper CSS.
  244. 2014-11-29 Werner Lemberg <wl@gnu.org>
  245. [docmaker] Provide higher-level markup and simplify HTML.
  246. * src/tools/docmaker/tohtml.py: Instead of using extraneous `<div>'
  247. elements, use CSS descendants (of class `section') to format the
  248. data.
  249. Also remove redundant <p> and <br> elements, replacing them with
  250. proper CSS.
  251. Globally reduce page width to 75%.
  252. (block_header): Rename <div> class to `section'.
  253. 2014-11-29 Werner Lemberg <wl@gnu.org>
  254. [docmaker] Add `top' links after blocks.
  255. * src/tools/docmaker/tohtml.py (block_footer_middle): Implement it.
  256. 2014-11-29 Werner Lemberg <wl@gnu.org>
  257. * src/tools/docmaker/tohtml.py: Improve CSS for fields.
  258. Make fields align horizontally relative to full line width.
  259. 2014-11-29 Werner Lemberg <wl@gnu.org>
  260. * src/tools/docmaker/tohtml.py: Fix index and TOC templates.
  261. This thinko was introduced 2014-11-27.
  262. 2014-11-28 Werner Lemberg <wl@gnu.org>
  263. [docmaker] Format field lists with CSS.
  264. This also simplifies the inserted HTML code.
  265. * src/tools/docmaker/tohtml.py
  266. (HtmlFormatter::print_html_field_list): Do it.
  267. 2014-11-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  268. Fix compiler warning to the comparison between signed and
  269. unsigned variable.
  270. * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Fix the comparison
  271. between `ypos + ysize' and FT_INT_{MAX,MIN}.
  272. 2014-11-28 Werner Lemberg <wl@gnu.org>
  273. [docmaker] Replace empty `<td>' with CSS.
  274. * src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Do
  275. it.
  276. 2014-11-28 Werner Lemberg <wl@gnu.org>
  277. [docmaker] Replace some `<table>' tags with `<h4>' and `<div>'.
  278. * src/tools/docmaker/tohtml.py (marker_*): Use `<h4>'.
  279. (source_*): Use `<div>'.
  280. (HtmlFormatter::block_enter): s/<h4>/<h3>/.
  281. 2014-11-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  282. Fix compiler warning to conversion specifiers in debug messages.
  283. * src/autofit/afhints.c (af_glyph_hints_dump_points): Add length
  284. modifier to dump long integers.
  285. (af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Ditto.
  286. 2014-11-27 Werner Lemberg <wl@gnu.org>
  287. * src/tools/docmaker/tohtml.py: Use more CSS for index.
  288. 2014-11-27 Werner Lemberg <wl@gnu.org>
  289. [docmaker] Replace `name' attribute of `<a>' with `id'.
  290. * src/tools/docmaker/tohtml.py (HtmlFormatter::block_enter): Do it.
  291. 2014-11-27 Werner Lemberg <wl@gnu.org>
  292. * src/tools/docmaker/tohtml.py: Remove remaining `width' attributes.
  293. For `Index' and `TOC' links, we now simply use the `text-align' CSS
  294. property of `<td>' to enforce flush-left and flush-right,
  295. eliminating the hack with an empty, full-width `<td>' element
  296. inbetween.
  297. The change also enforces the same (smaller) size for all index and
  298. TOC links.
  299. 2014-11-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  300. * src/cff/cf2font.c: Include `ftcalc.h' to use FT_MSB(),
  301. cf2font.c could not find it under `make multi' build.
  302. 2014-11-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  303. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove
  304. unrequired negative value check for `width' and `height'.
  305. 2014-11-27 Werner Lemberg <wl@gnu.org>
  306. * src/tools/docmaker/tohtml.py: More HTML table refactoring.
  307. Replace some `<table>' tags with `<div>' to simplify structure.
  308. Move `bgcolor' attribute to CSS.
  309. Replace most `width' attributes with CSS. The remaining instances
  310. (providing a similar effect as LaTeX's `\hfill' command) are removed
  311. in a later patch.
  312. 2014-11-27 Werner Lemberg <wl@gnu.org>
  313. * src/tools/docmaker/tohtml.py: Replace <font> with CSS.
  314. 2014-11-27 Werner Lemberg <wl@gnu.org>
  315. * src/tools/docmaker/tohtml.py: Center <table> with CSS.
  316. 2014-11-27 Werner Lemberg <wl@gnu.org>
  317. * src/tools/docmaker/tohtml.py: Replace `<center>' with `<div>'.
  318. 2014-11-27 Werner Lemberg <wl@gnu.org>
  319. * src/tools/docmaker/tohtml.py: Remove redundant `<center>' tags.
  320. This starts a series of commits into the direction of generating
  321. valid HTML 5 code, especially using much more CSS.
  322. 2014-11-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  323. Prevent too negative values (< FT_INT_MIN) in bitmap metrics,
  324. suggested by Alexei.
  325. * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Prevent too
  326. negative values in `xpos' and `ypos + ysize'.
  327. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Prevent
  328. too negative values in `x_left' and `y_top'. Either negative
  329. values in `width' and `height' are checked.
  330. 2014-11-27 Werner Lemberg <wl@gnu.org>
  331. [docmaker] Produce better HTML code.
  332. * src/tools/docmaker/tohtml.py: Always use double quotes for
  333. attribute values.
  334. (source_footer): Close `td' and `tr' groups.
  335. 2014-11-27 Werner Lemberg <wl@gnu.org>
  336. Use better way to disable creation of .pyc files for `make refdoc'.
  337. Python 2.6 was released in 2008...
  338. * builds/freetype.mk (refdoc): Use python's `-B' option.
  339. * builds/detect.mk (std_setup, dos_setup): Mention required python
  340. version for `refdoc' target.
  341. 2014-11-27 Werner Lemberg <wl@gnu.org>
  342. * src/tools/docmaker/sources.py (re_bold, re_italic): Use
  343. non-grouping parentheses.
  344. * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word):
  345. Updated.
  346. 2014-11-27 Werner Lemberg <wl@gnu.org>
  347. * src/base/ftobjs.c (FT_Get_Glyph_Name): Fix compiler warning.
  348. Introduced in previous change. Reported by Alexei.
  349. 2014-11-26 Werner Lemberg <wl@gnu.org>
  350. * src/*: Add checks for parameters of API functions where missing.
  351. `API functions' are functions tagged with `FT_EXPORT_DEF'.
  352. Besides trivial fixes, the following changes are included, too.
  353. * src/base/ftbdf.c (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property): Set
  354. error code if no service is available.
  355. * src/base/ftinit.c (FT_Done_FreeType): Change return value for
  356. invalid `library' parameter to `Invalid_Library_Handle'.
  357. * src/base/ftobjs.c (FT_New_Size): Change return value for invalid
  358. `asize' parameter to `Invalid_Argument'.
  359. * src/base/ftoutln.c (FT_Outline_Copy): Change return value for
  360. invalid `source' and `target' parameters to `Invalid_Outline'.
  361. (FT_Outline_Done_Internal): Change return value for invalid
  362. `outline' parameter to `Invalid_Outline'.
  363. 2014-11-26 Werner Lemberg <wl@gnu.org>
  364. * src/cache/ftcbasic.c: Use single calls to `FT_TRACE'.
  365. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  366. * src/base/ftobjs.c (Mac_Read_POST_Resource): Additional
  367. overflow check in the summation of POST fragment lengths,
  368. suggested by Mateusz Jurczyk <mjurczyk@google.com>.
  369. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  370. * src/base/ftobjs.c (Mac_Read_POST_Resource): Insert comments
  371. and fold too long tracing messages.
  372. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  373. Fix Savannah bug #43540.
  374. * src/base/ftmac.c (parse_fond): Prevent a buffer overrun
  375. caused by a font including too many (> 63) strings to store
  376. names[] table.
  377. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  378. * src/base/ftobjs.c (Mac_Read_POST_Resource): Use unsigned long
  379. variables to read the lengths in POST fragments. Suggested by
  380. Mateusz Jurczyk <mjurczyk@google.com>.
  381. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  382. Fix Savannah bug #43539.
  383. * src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
  384. by a broken POST table in resource-fork.
  385. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  386. Fix Savannah bug #43538.
  387. * src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
  388. by a broken POST table in resource-fork.
  389. 2014-11-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  390. * src/base/ftobjs.c (Mac_Read_POST_Resource): Avoid memory leak
  391. by a broken POST table in resource-fork. Return after freeing
  392. the buffered POST table when it is found to be broken.
  393. 2014-11-25 Werner Lemberg <wl@gnu.org>
  394. */*: s/Invalid_Argument/Invalid_Size_Handle/ where appropriate.
  395. 2014-11-25 Werner Lemberg <wl@gnu.org>
  396. */*: s/Invalid_Argument/Invalid_Stream_Handle/ where appropriate.
  397. 2014-11-25 Werner Lemberg <wl@gnu.org>
  398. */*: s/Invalid_Argument/Invalid_Library_Handle/ where appropriate.
  399. 2014-11-25 Werner Lemberg <wl@gnu.org>
  400. */*: s/Invalid_Argument/Invalid_Outline/ where appropriate.
  401. 2014-11-25 Werner Lemberg <wl@gnu.org>
  402. */*: s/Invalid_Argument/Invalid_Face_Handle/ where appropriate.
  403. 2014-11-24 Werner Lemberg <wl@gnu.org>
  404. [Savannah bug #43682] Adjust some renderer callbacks.
  405. * src/raster/ftraster.c (ft_black_set_mode): Change return type to
  406. `int' to stay in sync with `FT_Renderer_SetModeFunc' prototype.
  407. * src/smooth/ftgrays.c (gray_raster_set_mode): New dummy function
  408. for orthogonality.
  409. (ft_grays_raster): Use it.
  410. 2014-11-25 Werner Lemberg <wl@gnu.org>
  411. [Savannah bug #43682] Properly handle missing return errors.
  412. The functions in this patch *do* return non-trivial errors that must
  413. be taken care of.
  414. * src/autofit/afloader.c (af_loader_load_g), src/base/ftobjs.c
  415. (FT_Render_Glyph_Internal), src/base/ftoutln.c (FT_Outline_Render),
  416. src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_endchar>,
  417. src/psaux/psobjs.c (ps_parser_load_field_table), src/psaux/t1decode
  418. (t1_decoder_parse_charstrings) <op_endchar>, src/truetype/ttgload.c
  419. (load_truetype_glyph <subglyph loop>, tt_loader_init,
  420. TT_Load_Glyph), src/truetype/ttgxvar.c (TT_Set_MM_Blend),
  421. src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): Do it.
  422. 2014-11-25 Werner Lemberg <wl@gnu.org>
  423. [Savannah bug #43682] Add/remove `void' casts to some functions.
  424. We use a cast to indicate that we intentionally ignore a function's
  425. return value. However, this doesn't apply to API functions where
  426. errors can only happen for trivially invalid input.
  427. * src/base/ftstroke.c (FT_Glyph_Stroke, FT_Glyph_StrokeBorder),
  428. src/base/ftsynth.c (FT_GlyphSlot_Embolden), src/cff/cffgload.c
  429. (cff_slot_load), src/pfr/pfrdrivr.c (pfr_get_kerning),
  430. src/type1/t1load.c (parse_encoding), src/type42/t42parse.c
  431. (t42_parse_encoding): Do it.
  432. 2014-11-25 Werner Lemberg <wl@gnu.org>
  433. [Savannah bug #43682] Change some signatures to `void' return type.
  434. * include/internal/pshints.h (PSH_Globals_SetScaleFunc),
  435. include/internal/sfnt.h (TT_Get_Metrics_Func),
  436. src/pshinter/pshglob.c (psh_globals_set_scale),
  437. src/pshinter/pshrec.c (ps_hints_init), src/sfnt/ttmtx.c
  438. (tt_face_get_metrics), src/truetype/ttinterp.c (TT_Goto_CodeRange,
  439. TT_Set_CodeRange, TT_Clear_CodeRange, TT_Done_Context,
  440. TT_Save_Context): Do it.
  441. * src/pshinter/pshglob.h, src/pshinter/pshrec.h, src/sfnt/ttmtx.h,
  442. src/truetype/ttgload.c (TT_Hint_Glyph), src/truetype/ttinterp.c
  443. (TT_Run_Context), src/truetype/ttinterp.h, src/truetype/ttobjs.c
  444. (tt_size_run_fpgm, tt_size_run_prep): Updated.
  445. 2014-11-24 Werner Lemberg <wl@gnu.org>
  446. Remove all code related to FT_MAX_CHARMAP_CACHEABLE.
  447. This is no longer used.
  448. * src/base/ftobjs.c, src/cache/ftccmap.c, src/cff/cffobjs.c,
  449. src/sfnt/ttcmap.c: Do it.
  450. 2014-11-24 Werner Lemberg <wl@gnu.org>
  451. [sfnt] Fix Savannah bug #43680.
  452. This adds an additional constraint to make the fix from 2013-01-25
  453. really work.
  454. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_image) <index_format==4>:
  455. Check `p' before `num_glyphs'.
  456. 2014-11-24 Werner Lemberg <wl@gnu.org>
  457. [truetype] Fix Savannah bug #43679.
  458. * src/truetype/ttpload.c (tt_face_load_hdmx): Check minimum size of
  459. `record_size'.
  460. 2014-11-24 Jarkko Pöyry <jarkko.poyry@gmail.com>
  461. [cff, pfr, psaux, winfonts] Fix Savannah bug #43676.
  462. Don't cast cmap init function pointers to an incompatible type.
  463. Without this patch, the number of parameters between declaration and
  464. the real signature differs. Calling such a function results in
  465. undefined behavior.
  466. ISO/IEC 9899:TC3 (Committee Draft September 7, 2007)
  467. 6.5.2.2 Function calls
  468. 9 If the function is defined with a type that is not
  469. compatible with the type (of the expression) pointed to by
  470. the expression that denotes the called function, the
  471. behavior is undefined.
  472. On certain platforms (c -> js with emscripten) this causes
  473. termination of execution or invalid calls because in the emscripten
  474. implementation, function pointers of different types are stored in
  475. different pointer arrays. Incorrect pointer type here results in
  476. indexing of an incorrect array.
  477. * src/cff/cffcmap.c (cff_cmap_encoding_init, cff_cmap_unicode_init),
  478. src/pfr/pfrcmap.c (pfr_cmap_init), src/psaux/t1cmap.c
  479. t1_cmap_standard_init, t1_cmap_expert_init, t1_cmap_custom_init,
  480. t1_cmap_unicode_init), src/winfonts/winfnt.c (fnt_cmap_init): Fix
  481. signature.
  482. 2014-11-24 Werner Lemberg <wl@gnu.org>
  483. [sfnt] Fix Savannah bug #43672.
  484. * src/sfnt/ttkern.c (tt_face_load_kern): Use correct value for
  485. minimum table length test.
  486. 2014-11-24 Werner Lemberg <wl@gnu.org>
  487. [type1, type42] Another fix for Savannah bug #43655.
  488. * src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
  489. (t42_parse_charstrings): Add another boundary testing.
  490. 2014-11-24 Werner Lemberg <wl@gnu.org>
  491. [docmaker] Formatting, copyright, improved documentation.
  492. * src/tools/docmaker/*: No code changes besides trivial
  493. modifications.
  494. 2014-11-22 Werner Lemberg <wl@gnu.org>
  495. [bdf] Fix Savannah bug #43660.
  496. * src/bdf/bdflib.c (_bdf_parse_glyphs) <"ENDFONT">: Check
  497. `_BDF_GLYPH_BITS'.
  498. 2014-11-22 Werner Lemberg <wl@gnu.org>
  499. [type42] Allow only embedded TrueType fonts.
  500. This is a follow-up to Savannah bug #43659.
  501. * src/type42/t42objs.c (T42_Face_Init): Exclusively use the
  502. `truetype' font driver for loading the font contained in the `sfnts'
  503. array.
  504. 2014-11-22 Werner Lemberg <wl@gnu.org>
  505. [type42] Fix Savannah bug #43659.
  506. * src/type42/t42objs.c (T42_Open_Face): Initialize `face->ttf_size'.
  507. * src/type42/t42parse.c (t42_parse_sfnts): Always set
  508. `face->ttf_size' directly. This ensures a correct stream size in
  509. the call to `FT_Open_Face', which follows after parsing, even for
  510. buggy input data.
  511. Fix error messages.
  512. 2014-11-22 Werner Lemberg <wl@gnu.org>
  513. [cff] Fix Savannah bug #43658.
  514. * src/cff/cf2ft.c (cf2_builder_lineTo, cf2_builder_cubeTo): Handle
  515. return values of point allocation routines.
  516. 2014-11-22 Werner Lemberg <wl@gnu.org>
  517. [sfnt] Fix Savannah bug #43656.
  518. * src/sfnt/ttcmap.c (tt_cmap4_validate): Fix order of validity
  519. tests.
  520. 2014-11-21 Werner Lemberg <wl@gnu.org>
  521. [type1, type42] Fix Savannah bug #43655.
  522. * src/type1/t1load.c (parse_charstrings), src/type42/t42parse.c
  523. (t42_parse_charstrings): Fix boundary testing.
  524. 2014-11-21 Werner Lemberg <wl@gnu.org>
  525. * src/pcf/pcfread.c (pcf_get_metrics): Sanitize invalid metrics.
  526. 2014-11-21 Werner Lemberg <wl@gnu.org>
  527. [ftlcdfil] Obey flow direction.
  528. * src/base/ftlcdfil.c (_ft_lcd_filter_fir, _ft_lcd_filter_legacy):
  529. Handle `up' flow.
  530. 2014-11-21 Werner Lemberg <wl@gnu.org>
  531. * src/base/ftbitmap.c (FT_Bitmap_Convert): Improve.
  532. This commit completes argument checks and adds support for different
  533. flow directions.
  534. 2014-11-21 Werner Lemberg <wl@gnu.org>
  535. * src/base/ftbitmap.c (FT_Bitmap_Copy): Improve.
  536. This commit adds argument checks and support for different flow
  537. directions.
  538. 2014-11-20 Werner Lemberg <wl@gnu.org>
  539. * src/base/ftbitmap.c (FT_Bitmap_New): Check argument.
  540. 2014-11-19 Werner Lemberg <wl@gnu.org>
  541. Change some fields in `FT_Bitmap' to unsigned type.
  542. This doesn't break ABI.
  543. * include/ftimage.h (FT_Bitmap): Make `rows', `width', `num_grays',
  544. `pixel_mode', and `palette_mode' unsigned types.
  545. * src/base/ftbitmap.c: Updated.
  546. (FT_Bitmap_Copy): Fix casts.
  547. * src/cache/ftcsbits.c, src/raster/ftraster.c, src/sfnt/pngshim.c:
  548. Updated.
  549. 2014-11-19 Werner Lemberg <wl@gnu.org>
  550. Make `FT_Bitmap_Convert' correctly handle negative `pitch' values.
  551. * src/base/ftbitmap.c (FT_Bitmap_Convert): Always use positive value
  552. for the pitch while copying data.
  553. Correctly set pitch sign in target bitmap.
  554. 2014-11-19 Werner Lemberg <wl@gnu.org>
  555. Minor code improvement in `FT_Bitmap_Embolden'.
  556. * src/base/ftbitmap.c (FT_Bitmap_Embolden) <FT_PIXEL_MODE_GRAY[24]>:
  557. Fix thinko.
  558. 2014-11-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  559. * src/base/fttrigon.c: Use dedicated `FT_Angle' for arctan table.
  560. 2014-11-19 Behdad Esfahbod <behdad@behdad.org>
  561. Avoid compiler warnings on x86-64 for `FT_MulFix'.
  562. `FT_MulFix' takes `FT_Long' parameters as defined in `freetype.h',
  563. but several inline implementations of it in `ftcalc.h' take
  564. `FT_Int32' arguments. This is causing compiler warnings on x86-64:
  565. If parameters of type `FT_Fixed' (= `FT_Long') are passed to the
  566. inline implementation of this function, integer values are truncated
  567. from 64bit to 32bit.
  568. * include/internal/ftcalc.h (FT_MulFix) [FT_MULFIX_ASSEMBLER]: Add
  569. casts.
  570. 2014-11-15 Werner Lemberg <wl@gnu.org>
  571. [sfnt] Fix Savannah bug #43597.
  572. * src/sfnt/pngshim.c (Load_SBit_Png): Protect against too large
  573. bitmaps.
  574. 2014-11-12 Werner Lemberg <wl@gnu.org>
  575. [sfnt] Fix Savannah bug #43591.
  576. * src/sfnt/ttsbit.c (tt_sbit_decoder_init): Protect against addition
  577. and multiplication overflow.
  578. 2014-11-12 Werner Lemberg <wl@gnu.org>
  579. [sfnt] Fix Savannah bug #43590.
  580. * src/sfnt/ttload.c (check_table_dir, tt_face_load_font_dir):
  581. Protect against addition overflow.
  582. 2014-11-12 Werner Lemberg <wl@gnu.org>
  583. [sfnt] Fix Savannah bug #43589.
  584. * src/sfnt/sfobjs.c (woff_open_font): Protect against addition
  585. overflow.
  586. 2014-11-12 Werner Lemberg <wl@gnu.org>
  587. [sfnt] Fix Savannah bug #43588.
  588. * src/sfnt/ttcmap.c (tt_cmap8_validate, tt_cmap10_validate,
  589. tt_cmap12_validate, tt_cmap13_validate, tt_cmap14_validate): Protect
  590. against overflow in additions and multiplications.
  591. 2014-11-10 Alexei Podtelezhnikov <apodtele@gmail.com>
  592. [base] CORDIC improvements.
  593. The scaling between the hypotenuse and its CORDIC approximation is
  594. based on regression analysis. The smaller padding for `theta' is
  595. justified by its maximum error of less than 6.
  596. * src/base/fttrigon.c (ft_trig_downscale): Borrow code from
  597. ./ftcalc.c (ft_multo64), change linear intercept.
  598. (ft_trig_pseudo_polarize): Decrease `theta' padding.
  599. 2014-11-09 Werner Lemberg <wl@gnu.org>
  600. * src/base/ftstroke.c (ft_stroker_inside): Fix border intersections.
  601. One more place to check whether `radius' is zero.
  602. Problem reported by Marco Wertz <marco.wertz@gmx.de>.
  603. 2014-11-07 Werner Lemberg <wl@gnu.org>
  604. [bdf] Fix Savannah bug #43535.
  605. * src/bdf/bdflib.c (_bdf_strncmp): New macro that checks one
  606. character more than `strncmp'.
  607. s/ft_strncmp/_bdf_strncmp/ everywhere.
  608. 2014-11-06 Werner Lemberg <wl@gnu.org>
  609. [pcf] Fix Savannah bug #43548.
  610. * src/pcf/pcfread.c (pcf_get_encodings): Add sanity checks for row
  611. and column values.
  612. 2014-11-06 Werner Lemberg <wl@gnu.org>
  613. [pcf] Fix Savannah bug #43547.
  614. * src/pcf/pcfread.c (pcf_read_TOC): Check `size' and `offset'
  615. values.
  616. 2014-11-06 Werner Lemberg <wl@gnu.org>
  617. * src/pcf/pcfread.c (pcf_read_TOC): Avoid memory leak.
  618. 2014-11-03 Infinality <infinality@infinality.net>
  619. * src/truetype/ttsubpix.c (COMPATIBILITY_MODE_Rules): Updated.
  620. The previous commit deteriorates rendering of DejaVu and similar
  621. fonts; this gets compensated with this rule.
  622. 2014-11-03 Werner Lemberg <wl@gnu.org>
  623. * src/truetype/ttinterp.c (Ins_DELTAP): Fix subpixel hinting.
  624. Before this patch, it was impossible to ever call DELTAP[123] in
  625. subpixel hinting mode as described in the ClearType whitepaper; it
  626. only worked if in `compatibility mode'. However, compatibility mode
  627. essentially disables SHPIX, completely ruining hinting of
  628. ttfautohint output, for example.
  629. We now follow the whitepaper more closely so that DELTAP[123]
  630. instructions for touched points in the non-subpixel direction are
  631. executed.
  632. 2014-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
  633. [smooth] Improve code readability.
  634. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Rearrange code.
  635. 2014-10-31 Alexei Podtelezhnikov <apodtele@gmail.com>
  636. [smooth] Reduce outline translations during rendering.
  637. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Translate origin
  638. virtually by modifying cbox, actually translate outline if cumulative
  639. shift is not zero.
  640. 2014-10-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  641. [smooth] Fix Savannah bug #35604 (cont'd).
  642. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove checks and
  643. casts that became unnecessary after the variable type upgrades.
  644. 2014-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  645. [smooth] Improve code readability.
  646. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Rearrange code.
  647. 2014-10-29 Alexei Podtelezhnikov <apodtele@gmail.com>
  648. Unify hypotenuse approximations.
  649. * include/internal/ftcalc.h (FT_HYPOT): Move macro from here...
  650. * include/internal/ftobjs.h: ... to here, next to required `FT_ABS'.
  651. * src/smooth/ftgrays.c (gray_render_cubic): Use it here.
  652. 2014-10-25 Werner Lemberg <wl@gnu.org>
  653. [cff] Test valid darkening parameter macros in `ftoption.h'.
  654. We no longer need an otherwise unused typedef that can cause a gcc
  655. warning.
  656. Problem reported by Alexei.
  657. * src/cff/cffobjs.c (cff_driver_init): Use
  658. `CFF_CONFIG_OPTION_DARKENING_PARAMETER_XXX' macros directly.
  659. (SET_DARKENING_PARAMETERS): Removed.
  660. Compile time tests are now ...
  661. * devel/ftoption.h, include/config/ftoption.h: ... here.
  662. 2014-10-25 Alexei Podtelezhnikov <apodtele@gmail.com>
  663. Improve flat corner definition.
  664. * include/internal/ftcalc.h (FT_HYPOT): Macro to approximate Euclidean
  665. distance with the alpha max plus beta min algorithm.
  666. * src/base/ftcalc.c (ft_corner_is_flat): Use it instead of Taxicab
  667. metric.
  668. 2014-10-23 David Weiß <David.Weiss@ptvgroup.com>
  669. [build] Improve property file for vc2010.
  670. User-defined properties should be empty by default to prevent linker
  671. failures.
  672. * builds/windows/vc2010/freetype.user.props,
  673. builds/windows/vc2010/freetype.vcxproj:
  674. s/OptionsDirectory/UserOptionDirectory/.
  675. Comment out all user options.
  676. 2014-10-23 Werner Lemberg <wl@gnu.org>
  677. [cff] Work around bug in preprocessor of MSVC 2010.
  678. We have been hit by
  679. https://connect.microsoft.com/VisualStudio/feedback/details/718976/msvc-pr
  680. * devel/ftoption.h, include/config/ftoption.h: Replace
  681. `CFF_CONFIG_OPTION_DARKENING_PARAMETERS' with eight macros
  682. `CFF_CONFIG_OPTION_DARKENING_PARAMETER_{X,Y}{1,2,3,4}'.
  683. * src/cff/cffobjs.c (SET_DARKENING_PARAMETERS): Removed. We no
  684. longer need double expansion.
  685. (SET_DARKENING_PARAMETERS_0): Renamed to ...
  686. (SET_DARKENING_PARAMETERS): ... this.
  687. Update call.
  688. 2014-10-20 Werner Lemberg <wl@gnu.org>
  689. [sbit] Minor fixes.
  690. * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]:
  691. Accept overlay format also, but emit warning message in that case.
  692. (tt_sbit_decoder_load_metrics): Add missing newline to error
  693. message.
  694. (tt_sbit_load_sbix_image): Add `rgbl' graphic type (as used on iOS
  695. 7.1) to the list of unsupported formats.
  696. 2014-10-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  697. [truetype] Clean up bytecode rounding.
  698. Zero distance does not have to be treated specially if you follow
  699. specifications and check the sign as the very last step of rounding.
  700. * src/truetype/ttinterp.c (Round_None, Round_To_Grid,
  701. Round_Down_To_Grid, Round_Up_To_Grid, Round_To_Double_Grid): Use
  702. macros when available, do not check for non-zero distance.
  703. (Round_To_Half_Grid, Round_Super, Round_Super_45): Ditto, return phase
  704. if sign changed.
  705. 2014-10-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  706. [truetype] Unwrap engine compensation settings.
  707. * src/truetype/ttobjs.c (tt_size_init_bytecode): Updated.
  708. 2014-10-18 David Weiß <David.Weiss@ptvgroup.com>
  709. [build] Add property file to vc2010 project.
  710. This simplifies custom build configurations, especially for
  711. automated build environments.
  712. * builds/windows/vc2010/freetype.user.props: New configuration file.
  713. * builds/windows/vc2010/freetype.vcxproj: Include
  714. `freetype.user.props' and use its data fields.
  715. * builds/windows/vc2010/index.html: Updated.
  716. 2014-10-18 Werner Lemberg <wl@gnu.org>
  717. [autofit] Add blue-zone support for Telugu.
  718. This essentially moves the Telugu script from the `Indic' hinter to
  719. the `Latin' hinter.
  720. Note that this is a first shot and quite certainly needs
  721. refinements.
  722. * src/autofit/afblue.dat: Add blue zone data for Telugu.
  723. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  724. * src/autofit/afscript.h: Add Telugu standard characters and move
  725. data out of AF_CONFIG_OPTION_INDIC block.
  726. * src/autofit/afranges.c: Move Telugu data out of
  727. AF_CONFIG_OPTION_INDIC block.
  728. * src/autofit/afstyles.h: Update Telugu data; in particular, use
  729. AF_WRITING_SYSTEM_LATIN.
  730. 2014-10-18 David Wimsey <david@wimsey.us>
  731. [cmake] Add iOS build support.
  732. From Savannah patch #8497.
  733. * builds/cmake/iOS.cmake: New file. Universal binaries are built
  734. with both 32 and 64 bit arm architectures.
  735. * CMakeLists.txt (IOS_PLATFORM): New variable for running the iOS
  736. toolchain. Possible values are `OS' to build on iOS, or
  737. `SIMULATOR' to build on APPLE.
  738. 2014-10-16 Behdad Esfahbod <behdad@behdad.org>
  739. Werner Lemberg <wl@gnu.org>
  740. [cff] Add `CFF_CONFIG_OPTION_DARKENING_PARAMETERS' config macro.
  741. * devel/ftoption.h, include/config/ftoption.h
  742. (CFF_CONFIG_OPTION_DARKENING_PARAMETERS): New macro.
  743. * src/cff/cffobjs.c (SET_DARKENING_PARAMETERS,
  744. SET_DARKENING_PARAMETERS_0): New macros.
  745. (cff_driver_init): Use new macros.
  746. 2014-10-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  747. [truetype] Limit delta shift range.
  748. The valid range for delta shift is zero through six. Negative values
  749. are invalid according to
  750. https://developer.apple.com/fonts/TrueType-Reference-Manual/RM04/Chap4.html#delta%20shift
  751. * src/truetype/ttobjs.h (delta_shift, delta_base): Make unsigned.
  752. * src/truetype/ttinterp.h (DO_SDS): Throw an error if `delta_shift'
  753. is out of range.
  754. (Ins_DELTAP, Ins_DELTAC): Optimize for valid `delta_shift'.
  755. 2014-10-16 Werner Lemberg <wl@gnu.org>
  756. A better fix for Savannah bug #43392.
  757. Suggested by Doug Felt <dougfelt@gmail.com>.
  758. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Set
  759. `vertAdvance' to zero...
  760. * src/truetype/ttgload.c (TT_Load_Glyph): ... and set here a default
  761. value for `vertAdvance' based on `linearVertAdvance' in case
  762. `vertAdvance' is zero. Note that the previous computed ad-hoc value
  763. for `linearVertAdvance' was apparently not tested in a real-life
  764. situation.
  765. 2014-10-14 David Weiß <David.Weiss@ptvgroup.com>
  766. [build] Better optimization settings for vc2010 solution file.
  767. * builds/windows/vc2010/freetype.sln,
  768. builds/windows/vc2010/freetype.vcxproj: Updated.
  769. 2014-10-14 Werner Lemberg <wl@gnu.org>
  770. [autofit] Adjust Devanagari character range.
  771. * src/autofit/afranges.c (af_deva_uniranges): Omit characters that
  772. are common to all other Indic scripts.
  773. 2014-10-12 Werner Lemberg <wl@gnu.org>
  774. [sfnt] Fix Savannah bug #43392.
  775. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics): Don't let
  776. vertical metrics uninitialized.
  777. 2014-10-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  778. [base] Small bbox correction.
  779. * src/base/ftbbox.c (FT_Outline_Get_BBox): Start from nonsense bbox
  780. instead of initial point that could be `off' in conic outlines.
  781. 2014-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  782. [base] Fix Savannah bug #43356.
  783. * src/base/ftbbox.c (BBox_Move_To, BBox_Conic_To): Update bbox in case
  784. of implicit `to'.
  785. (BBox_Line_To): New emitter that does not update bbox.
  786. 2014-10-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  787. [base] Introduce and use new macro `FT_UPDATE_BBOX'
  788. * src/base/ftbbox.c (FT_UPDATE_BBOX): New macro.
  789. (FT_Outline_Get_BBox): Use it here.
  790. 2014-10-02 Alexei Podtelezhnikov <apodtele@gmail.com>
  791. [base] Significant optimization of `ft_div64by32'
  792. We shift as many bits as we can into the high register, perform
  793. 32-bit division with modulo there, then work through the remaining
  794. bits with long division. This optimization is especially noticeable
  795. for smaller dividends that barely use the high register.
  796. * src/base/ftcalc.c (ft_div64by32): Updated.
  797. 2014-10-02 Dave Arnold <darnold@adobe.com>
  798. [cff] Fix Savannah bug #43271.
  799. * src/cff/cf2font.c (cf2_computeDarkening): Change overflow
  800. detection to use logarithms and clamp `scaledStem'.
  801. 2014-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
  802. * src/base/ftcalc.c: Remove miscellaneous type casts.
  803. 2014-10-01 Alexei Podtelezhnikov <apodtele@gmail.com>
  804. [base] Use more common `FT_MSB' implementation with masks.
  805. * src/base/ftcalc.c (FT_MSB): Updated.
  806. 2014-09-30 Alexei Podtelezhnikov <apodtele@gmail.com>
  807. [base] Clean up.
  808. * src/base/ftcalc.c (FT_MOVE_SIGN): New macro for frequently used
  809. code.
  810. 2014-09-25 Alexei Podtelezhnikov <apodtele@gmail.com>
  811. [base] Avoid unnecessary long division.
  812. This applies to `FT_MulDiv' but not to `FT_DivFix', where overflows or
  813. lack thereof are predicted accurately.
  814. * src/base/ftcalc.c (ft_div64by32): Improve readability.
  815. (FT_MulDiv, FT_MulDiv_No_Round) [!FT_LONG64]: Use straight division
  816. when multiplication stayed within 32 bits.
  817. 2014-09-24 Werner Lemberg <wl@gnu.org>
  818. [autofit] Minor clean-ups.
  819. * src/autofit/afhints.c (AF_FLAGS): Remove obsolete values.
  820. * src/autofit/afhints.c (af_glyph_hints_dump_points,
  821. af_glyph_hints_align_strong_points): Updated.
  822. * src/autofit/aflatin.c (af_latin_hints_link_segments,
  823. af_latin_hints_compute_segments), src/autofit/afcjk.c
  824. (af_cjk_hints_link_segments), src/autofit/aflatin2.c
  825. (af_latin2_hints_link_segments, af_latin2_hints_compute_segments):
  826. There are no longer fake segments since more than 10 years...
  827. 2014-09-22 Werner Lemberg <wl@gnu.org>
  828. [autofit] Minor code streamlining.
  829. * src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant
  830. initialization.
  831. 2014-09-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  832. * src/base/ftcalc.c: Harmonize code.
  833. 2014-09-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  834. [base] Tighten the overflow check in `FT_MulDiv'.
  835. * src/base/ftcalc.c (FT_MulDiv) [!FT_LONG64]: Updated.
  836. 2014-09-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  837. Fix Savannah bug #43153.
  838. * src/psaux/psconv.c (PS_Conv_ToFixed): Add protection against
  839. overflow in `divider'.
  840. 2014-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  841. [base] Tighten the overflow check in `FT_DivFix'.
  842. This fixes a 13-year old bug. The original overflow check should have
  843. been updated when rounding was introduced into this function
  844. (c2cd00443b).
  845. * src/base/ftcalc.c (FT_DivFix) [!FT_LONG64]: Updated.
  846. * include/freetype.h (FT_DivFix): Updated documentation.
  847. 2014-09-03 Alexei Podtelezhnikov <apodtele@gmail.com>
  848. [base] Tighten the overflow check in `FT_MulFix'.
  849. * src/base/ftcalc.c (FT_MulFix) [!FT_LONG64]: Updated.
  850. 2014-09-02 Alexei Podtelezhnikov <apodtele@gmail.com>
  851. [truetype] Shortcut ppem calculations for square pixels.
  852. * src/truetype/ttinterp.h (TT_ExecContextRec): New field
  853. `cur_ppem_func' with a function pointer.
  854. * src/truetype/ttinterp.c (TT_RunIns): Initialize `cur_ppem_func'
  855. depending on the pixel geometry to either...
  856. (Current_Ppem_Stretched): ... this for stretched pixels.
  857. (Current_Ppem): ... or this for square pixels.
  858. (DO_MPPEM, DO_MPS, Ins_DELTAP, Ins_DELTAC): Use `cur_ppem_func'.
  859. 2014-08-31 Behdad Esfahbod <behdad@behdad.org>
  860. Don't use `register' keyword. Fixes compiler warnings.
  861. * src/base/ftcalc.c (FT_Add64) [!FT_LONG64]: Do it.
  862. * src/gzip/inftrees.c (huft_build): Ditto.
  863. * src/truetype/ttinterp.c (TT_MulFix14_arm): Ditto.
  864. 2014-08-24 Alexei Podtelezhnikov <apodtele@gmail.com>
  865. [truetype] Optimize DELTAP and DELTAC.
  866. * src/truetype/ttinterp.c (Ins_DELTAP, Ins_DELTAC): Move ppem
  867. calculations outside of the loop.
  868. 2014-08-21 Alexei Podtelezhnikov <apodtele@gmail.com>
  869. Fix Savannah bug #43033.
  870. * include/config/ftconfig.h, builds/unix/ftconfig.in,
  871. builds/vms/ftconfig.h [FT_LONG64]: Do not disable the macro when
  872. 64-bit type is `long'.
  873. 2014-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
  874. [base] Small optimization of `FT_MulFix'.
  875. * src/base/ftcalc.c (FT_MulFix): Loosen up the condition for direct
  876. 32-bit calculations.
  877. 2014-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  878. [base] Use unsigned calculation in `FT_MulDiv'.
  879. * src/base/ftcalc.c (FT_MulDiv): Updated to expand 32-bit range.
  880. 2014-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
  881. [base] Remove truncation in `FT_DivFix'.
  882. * src/base/ftcalc.c (FT_DivFix): Updated.
  883. 2014-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  884. Minor refactoring.
  885. * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round): Updated.
  886. 2014-08-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  887. Turn FT_MSB into a macro when using gcc builtins.
  888. * src/base/ftcalc.c, include/internal/ftcalc.h: Updated.
  889. 2014-08-12 Alexei Podtelezhnikov <apodtele@gmail.com>
  890. [base] Avoid undefined FT_MSB in `BBox_Cubic_Check'.
  891. * src/base/ftbbox.c (BBox_Cubic_Check): Update.
  892. (update_cubic_max): Replace with...
  893. (cubic_peak): ... this, which now handles upscaling.
  894. 2014-08-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  895. [base] Handle collapsed outlines to avoid undefined FT_MSB.
  896. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Update.
  897. 2014-08-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  898. [base] Restore FT_MulFix inlining.
  899. * include/freetype.h (FT_MulFix): Unconditionally defined.
  900. * src/base/ftcalc.c [FT_MULFIX_ASSEMBLER]: Move code from here...
  901. * include/internal/ftcalc.h [FT_MULFIX_ASSEMBLER]: ... to here,
  902. which conditionally replaces the function with an inline version
  903. through the macro.
  904. 2014-08-08 Alexei Podtelezhnikov <apodtele@gmail.com>
  905. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Refactor.
  906. 2014-07-26 Werner Lemberg <wl@gnu.org>
  907. [cff] Fix typo.
  908. * src/cff/cf2hints.c (cf2_glyphpath_computeOffset): Use correct
  909. offsets in third quadrant.
  910. Reported by maks <maksqwe1@ukr.net>.
  911. 2014-07-17 Werner Lemberg <wl@gnu.org>
  912. Fix Savannah bug #42788.
  913. * src/pfr/pfrobjs.c: Include `ftcalc.h'.
  914. 2014-07-16 Alexei Podtelezhnikov <apodtele@gmail.com>
  915. Replace `ft_highpow2' function.
  916. * src/pfr/pfrobjs.c (pfr_face_get_kerning): Use `FT_MSB' instead of
  917. `ft_highpow2'.
  918. * src/base/ftutil.c, include/internal/ftobjs.h (ft_highpow2): Remove
  919. it.
  920. 2014-07-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  921. * src/base/ftcalc.c (FT_MSB): Utilize gcc builtins.
  922. 2014-07-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  923. [base] Move assembler code back in the source file.
  924. FT_MulFix assembler used to reside in ftcalc.c before f47d263f1b.
  925. * include/config/ftconfig.h, builds/unix/ftconfig.in,
  926. builds/vms/ftconfig.h [FT_MULFIX_ASSEMBLER]: Move code from here...
  927. * src/base/ftcalc.c [FT_MULFIX_ASSEMBLER]: ... to here.
  928. 2014-07-14 Alexei Podtelezhnikov <apodtele@gmail.com>
  929. [base] Further clean up color bitmap conversion.
  930. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Stop
  931. using FT_MulFix and FT_DivFix since all calculations fit into 32 bits.
  932. 2014-07-13 Werner Lemberg <wl@gnu.org>
  933. [truetype] Improve handling of buggy `prep' tables.
  934. In case of an error in the `prep' table, no longer try to execute it
  935. again and again. This makes FreeType handle endless loops in buggy
  936. fonts much faster.
  937. * src/truetype/ttobjs.h (TT_SizeRec): The fields `bytecode_ready'
  938. and `cvt_ready' are now negative if not initialized yet, otherwise
  939. they indicate the error code of the last run.
  940. * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep,
  941. tt_size_done_bytecode, tt_size_init_bytecode,
  942. tt_size_ready_bytecode, tt_size_init, tt_size_done, tt_size_reset):
  943. Updated.
  944. * src/truetype/ttgload.c (tt_loader_init): Updated.
  945. * src/truetype/ttinterp.c (TT_RunIns): Force reexecution of `fpgm'
  946. and `prep' only if we are in the `glyf' table.
  947. 2014-07-12 Werner Lemberg <wl@gnu.org>
  948. * builds/vms/ftconfig.h: Synchronize.
  949. Problem reported by Alexei.
  950. 2014-07-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  951. [base] Clean up bitmap conversion.
  952. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
  953. appropriate FT_DivFix and remove superfluous upscaling.
  954. 2014-07-04 Alexei Podtelezhnikov <apodtele@gmail.com>
  955. [base] Small optimization of the ancient code.
  956. * src/base/ftcalc.c (FT_MulDiv, FT_MulDiv_No_Round): Loosen up the
  957. condition for direct 32-bit calculations.
  958. 2014-06-27 Werner Lemberg <wl@gnu.org>
  959. Fix Apple standard glyph names.
  960. * src/sfnt/ttpost.c (tt_post_default_names): Synchronize with
  961. `tools/glnames.py'
  962. Problem reported by Adam Twardoch <adam@fontlab.com>.
  963. 2014-06-17 Werner Lemberg <wl@gnu.org>
  964. Partially revert commit from 2014-06-13.
  965. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Move
  966. declaration of `p_first' and `p_last' out of the loop.
  967. 2014-06-17 Werner Lemberg <wl@gnu.org>
  968. * builds/unix/freetype2.m4: s/AC_PATH_PROG/AC_PATH_TOOL/.
  969. This simplifies cross-compiling.
  970. 2014-06-13 Werner Lemberg <wl@gnu.org>
  971. Fix more compiler warnings.
  972. Reported by Wojciech Mamrak <wmamrak@gmail.com>.
  973. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
  974. Make integer constant unsigned.
  975. * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
  976. <TT_SBIT_TABLE_TYPE_SBIX>: Fix types.
  977. (tt_sbit_decoder_load_compound, tt_face_load_sbix_image): Add proper
  978. casts.
  979. 2014-06-13 Werner Lemberg <wl@gnu.org>
  980. Fix compiler warnings.
  981. Reported by Wojciech Mamrak <wmamrak@gmail.com>.
  982. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage),
  983. src/autofit/afmodule.c (af_property_set): Fix `signed' vs.
  984. `unsigned' issues.
  985. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Make compiler
  986. happy.
  987. * src/base/ftlcdfil.c (_ft_lcd_filter_fir): Use only four elements
  988. for `fir'.
  989. Fix `signed' vs. `unsigned' issues.
  990. * src/sfnt/sfobjs.c (WRITE_BYTE): Removed, unused.
  991. (WRITE_USHORT, WRITE_ULONG): Add proper casts.
  992. * src/truetype/ttgload.c (TT_Get_VMetrics): Add proper casts.
  993. * src/truetype/ttinterp.c (Ins_DELTAP): Add proper casts for `B1'
  994. and `B2'.
  995. 2014-05-16 Alexey Petruchik <alexey.petruchik@gmail.com>
  996. [cmake] Add option to build OS X framework.
  997. * CMakeLists.txt: Update accordingly.
  998. * builds/mac/freetype-Info.plist: New file.
  999. 2014-05-13 Pavel Koshevoy <pkoshevoy@gmail.com>
  1000. * CMakeLists.txt (BASE_SRCS): Add missing `ftbdf.c'.
  1001. 2014-05-11 Werner Lemberg <wl@gnu.org>
  1002. [autofit] Fix variable initializations.
  1003. * src/autofit/afhints.c (af_glyph_hints_reload): Assign default
  1004. values to `in_dir' and `out_dir' for all points.
  1005. 2014-05-11 Werner Lemberg <wl@gnu.org>
  1006. [autofit] Fix crash with font `CabinSketch-Bold.ttf'.
  1007. Problem reported by Ralf S. Engelschall <rse@engelschall.com>.
  1008. * src/autofit/afhints.c (af_glyph_hints_reload): Fix threshold for
  1009. finding first non-near point.
  1010. Properly initialize non-near point deltas.
  1011. 2014-05-01 Werner Lemberg <wl@gnu.org>
  1012. [autofit] Add blue-zone support for Devanagari.
  1013. This essentially moves the Devanagari script from the `Indic' hinter
  1014. to the `Latin' hinter. Thanks to Girish Dalvi
  1015. <girish.dalvi@gmail.com> for guidance with blue zone characters!
  1016. * src/autofit/afblue.dat: Add blue zone data for Devanagari.
  1017. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  1018. * src/autofit/afscript.h: Add Devanagari standard characters and
  1019. move data out of AF_CONFIG_OPTION_INDIC block.
  1020. * src/autofit/afranges.c: Move Devanagari data out of
  1021. AF_CONFIG_OPTION_INDIC block.
  1022. Move U+20B9, (new) Rupee sign, from Latin to Devanagari.
  1023. * src/autofit/afstyles.h: Update Devanagari data; in particular, use
  1024. AF_WRITING_SYSTEM_LATIN.
  1025. 2014-05-01 Werner Lemberg <wl@gnu.org>
  1026. [autofit] Fix handling of neutral blue zones in stems.
  1027. * src/autofit/afhints.h (AF_Edge_Flags): New value
  1028. `AF_EDGE_NEUTRAL'.
  1029. * src/autofit/aflatin.c (af_latin_hints_compute_blue_edges): Trace
  1030. neutral blue zones with AF_EDGE_NEUTRAL.
  1031. (af_latin_hint_edges): Skip neutral blue zones if necessary.
  1032. 2014-04-28 Werner Lemberg <wl@gnu.org>
  1033. [autofit] Introduce neutral blue zones to the latin module.
  1034. Such blue zones match either the top or the bottom of a contour. We
  1035. need them for scripts where accent-like elements directly touch the
  1036. base character (for example, some vowel signs in Devanagari, cf.
  1037. U+0913 or U+0914).
  1038. * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_NEUTRAL): New
  1039. property.
  1040. * src/autofit/afblue.h: Regenerated.
  1041. * src/autofit/aflatin.h (AF_LATIN_IS_NEUTRAL_BLUE): New macro.
  1042. (AF_LATIN_BLUE_NEUTRAL): New enumeration value.
  1043. * src/autofit/aflatin.c (af_latin_metrics_init_blues,
  1044. af_latin_hints_compute_blue_edges): Handle neutral blue zones.
  1045. 2014-04-25 Werner Lemberg <wl@gnu.org>
  1046. * src/autofit/hbshim.c: Partially revert commit from 2014-04-17.
  1047. Using input glyph coverage data is simply wrong.
  1048. Problem reported by Nikolaus Waxweiler <madigens@gmail.com> and
  1049. Mantas Mikulėnas <grawity@gmail.com>.
  1050. 2014-04-23 Werner Lemberg <wl@gnu.org>
  1051. * src/raster/ftraster.c (Vertical_Sweep_Span): Use drop-out mode.
  1052. This spot has been missed while introducing support for various
  1053. drop-out modes years ago (including no drop-out mode, which this
  1054. commit fixes).
  1055. Problem reported by Patrick Thomas <pthomas505@gmail.com>.
  1056. 2014-04-22 Werner Lemberg <wl@gnu.org>
  1057. * src/sfnt/pngshim.c (error_callback): s/longjmp/ft_longjmp/.
  1058. 2014-04-20 Werner Lemberg <wl@gnu.org>
  1059. [autofit] Fix Savannah bug #42148.
  1060. The adaptation of the cjk auto-hinter module to blue stringsets in
  1061. 2013-08-25 had three severe bugs. Mea culpa.
  1062. 1. Contrary to the latin auto-hinter, characters for reference and
  1063. overshoot values of a blue zone are specified separately. Due to
  1064. the screwed-up change it didn't work at all.
  1065. 2. A boolean comparison was erroneously replaced with a cast,
  1066. causing invalid results with the `^' operator later on. The
  1067. visual artifact caused by this problem is the topic of the bug
  1068. report.
  1069. 3. Two flag values were inverted, causing incorrect assignment of
  1070. reference and overshoot values.
  1071. * src/autofit/afblue.dat: Fix CJK bluestrings, introducing a new
  1072. syntax to have both reference and overshoot characters in a single
  1073. string. This is error #1.
  1074. Add extensive comments.
  1075. * src/autofit/afblue.hin (AF_BLUE_PROPERTY_CJK_FILL): Removed, no
  1076. longer used.
  1077. (AF_BLUE_PROPERTY_CJK_TOP, AF_BLUE_PROPERTY_CJK_HORIZ): Fix values.
  1078. This is error #3.
  1079. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  1080. * src/autofit/afcjk.c (af_cjk_metrics_init_blues): Correct error #1.
  1081. Use character `|' to separate characters for reference and overshoot
  1082. values.
  1083. Improve tracing messages, synchronizing them with the latin
  1084. auto-hinter.
  1085. (af_cjk_hints_compute_blue_edges): Fix value of `is_top_right_blue'.
  1086. This is error #2.
  1087. (af_cjk_align_linked_edge): Add tracing message.
  1088. * src/autofit/afcjk.h (AF_CJK_IS_FILLED_BLUE): Removed, no longer
  1089. used.
  1090. 2014-04-17 Werner Lemberg <wl@gnu.org>
  1091. [autofit] More coverage fixes for complex scripts.
  1092. * src/autofit/hbshim.c (af_get_coverage): Merge input glyph coverage
  1093. of GSUB lookups into output coverage. Otherwise, ligatures are not
  1094. handled properly.
  1095. Don't check blue zone characters for default coverage.
  1096. 2014-04-17 Werner Lemberg <wl@gnu.org>
  1097. Make `FT_Get_SubGlyph_Info' actually work.
  1098. * src/base/ftobjs.c (FT_Get_SubGlyph_Info): Return FT_Err_Ok
  1099. if there is no error.
  1100. 2014-04-15 Werner Lemberg <wl@gnu.org>
  1101. [afblue.pl]: Minor improvements.
  1102. * src/tools/afblue.pl: Allow whitespace before comments.
  1103. Ignore whitespace in strings.
  1104. 2014-04-14 Werner Lemberg <wl@gnu.org>
  1105. [autofit] Improve coverage handling.
  1106. * src/autofit/hbshim.c (af_get_coverage): Don't exclude glyphs
  1107. appearing in the GPOS table if we are processing the default
  1108. coverage.
  1109. 2014-04-13 David Weber <weber.aulendorf@googlemail.com>
  1110. [smooth] Fix stand-alone compilation.
  1111. * src/smooth/ftgrays.c (FT_BEGIN_STMNT, FT_END_STMNT): Define.
  1112. 2014-04-12 Werner Lemberg <wl@gnu.org>
  1113. [autofit] Redesign the recognition algorithm of strong points.
  1114. In particular, local extrema without horizontal or vertical segments
  1115. are better recognized:
  1116. + A + D
  1117. \ /
  1118. \ /
  1119. \ /
  1120. \ /
  1121. \ + C
  1122. \ /
  1123. B +/
  1124. If the distances AB and CD are large, point B wasn't previously
  1125. detected as an extremum since the `ft_corner_is_flat' function
  1126. `swallowed' BC regardless of its direction, tagging point B as weak.
  1127. The next iteration started at B and made `ft_corner_is_flat' swallow
  1128. point C, tagging it as weak also, et voilà.
  1129. To improve that, another pass gets now performed before calling
  1130. `ft_corner_is_flat' to improve the `topology' of an outline: A
  1131. sequence of non-horizontal or non-vertical vectors that point into
  1132. the same quadrant are handled as a single, large vector.
  1133. Additionally, distances of near points are now accumulated, which
  1134. makes the auto-hinter handle them as if they were prepended to the
  1135. next non-near vector.
  1136. This generally improves the auto-hinter's rendering results.
  1137. * src/autofit/afhints.c (af_glyph_hints_reload): Implement it.
  1138. * src/autofit/afhints.h (AF_FLAGS): Remove no longer used flag
  1139. `AF_FLAG_NEAR'.
  1140. 2014-04-05 Werner Lemberg <wl@gnu.org>
  1141. [autofit] Improve scoring algorithm for identifying stems.
  1142. Problem reported by Karsten Lücke <karsten.luecke@kltf.de>.
  1143. The new algorithm takes care of the width of stems: If the distance
  1144. between two segments is larger than the largest stem width, the
  1145. demerits quickly increase for larger distances. This improves
  1146. hinting of slanted fonts (especially if the inner parts of serifs
  1147. have non-horizontal `shoulders'), avoiding false stem links.
  1148. * src/autofit/aflatin.c (af_latin_hints_link_segments): Use largest
  1149. stem width (if available) to compute better demerits for distances
  1150. between stems.
  1151. (af_latin_hints_detect_features): Pass stem width array and array
  1152. size.
  1153. (af_latin_metrics_init_widths): Updated to use original algorithm.
  1154. (af_latin_hints_apply): Updated to use new algorithm.
  1155. * src/autofit/aflatin.h: Updated.
  1156. * src/autofit/afcjk.c: Updated.
  1157. 2014-04-03 Werner Lemberg <wl@gnu.org>
  1158. Don't require `gzip' module for `sfnt'.
  1159. Reported by Preet <prismatic.project@gmail.com>.
  1160. * src/sfnt/sfobjs.c (woff_open_font): Guard use of
  1161. FT_Gzip_Uncompress with FT_CONFIG_OPTION_USE_ZLIB.
  1162. 2014-03-27 Werner Lemberg <wl@gnu.org>
  1163. Fix Savannah bug #38235.
  1164. Work around a bug in pkg-config version 0.28 and earlier: If a
  1165. variable value gets surrounded by doublequotes (in particular values
  1166. for the `prefix' variable), the prefix override mechanism fails.
  1167. * builds/unix/freetype2.in: Don't use doublequotes.
  1168. * builds/unix/unix-def.in (freetype.pc): Escape spaces in directory
  1169. names with backslashes.
  1170. 2014-03-24 Werner Lemberg <wl@gnu.org>
  1171. Fix Savannah bug #41946.
  1172. Based on a patch from Marek Kašík <mkasik@redhat.com>.
  1173. * builds/unix/configure.raw (LIBS_CONFIG): Remove.
  1174. * builds/unix/freetype-config.in (libs): Hard-code value.
  1175. * builds/unix/unix-def.in: Updated.
  1176. 2014-03-22 Werner Lemberg <wl@gnu.org>
  1177. Another revert for the change from 2014-03-18.
  1178. Problem reported by Nikolaus Waxweiler <madigens@gmail.com>.
  1179. * src/base/ftcalc.c (FT_MulFix): Ensure that an `FT_MulFix' symbol
  1180. gets always exported.
  1181. 2014-03-20 Werner Lemberg <wl@gnu.org>
  1182. CMakeLists.txt: Another fix for include directories.
  1183. Problem reported by Taylor Holberton <taylorcholberton@gmail.com>.
  1184. 2014-03-19 Werner Lemberg <wl@gnu.org>
  1185. CMakeLists.txt: Fix include directories.
  1186. Problem reported by Taylor Holberton <taylorcholberton@gmail.com>.
  1187. 2014-03-19 Werner Lemberg <wl@gnu.org>
  1188. Partially revert last commit.
  1189. Found by Alexei.
  1190. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initializing
  1191. those variables is plain wrong, since we are in a loop.
  1192. 2014-03-18 Sean McBride <sean@rogue-research.com>
  1193. Werner Lemberg <wl@gnu.org>
  1194. Fix clang warnings.
  1195. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Initialize
  1196. some variables.
  1197. * src/base/ftcalc.c (FT_MulFix): Only use code if
  1198. `FT_MULFIX_INLINED' is not defined.
  1199. * src/bdf/bdfdrivr.c (bdf_cmap_class), src/cache/ftcbasic.c
  1200. (ftc_basic_image_family_class, ftc_basic_image_cache_class,
  1201. ftc_basic_sbit_family_class, ftc_basic_sbit_cache_class),
  1202. src/cache/ftccmap.c (ftc_cmap_cache_class), src/cache/ftcmanag.c
  1203. (ftc_size_list_class, ftc_face_list_class), src/pcf/pcfdrivr.c
  1204. (pcf_cmap_class), src/pfr/pfrdrivr.c (pfr_metrics_service_rec): Make
  1205. function static.
  1206. * src/type1/t1driver.c (t1_ps_get_font_value): Remove redundant
  1207. code.
  1208. 2014-03-17 Werner Lemberg <wl@gnu.org>
  1209. Fix Savannah bug #41869.
  1210. This works around a problem with HarfBuzz (<= 0.9.26), which doesn't
  1211. validate glyph indices returned by
  1212. `hb_ot_layout_lookup_collect_glyphs'.
  1213. * src/autofit/hbshim.c (af_get_coverage): Guard `idx'.
  1214. * docs/CHANGES: Updated.
  1215. 2014-03-14 Werner Lemberg <wl@gnu.org>
  1216. * builds/unix/configure.raw: Don't show error messages of `which'.
  1217. 2014-03-09 Alan Coopersmith <alan.coopersmith@oracle.com>
  1218. Fix cppcheck 1.64 warning.
  1219. * src/autofit/afglobal.c (af_face_globals_new): Catch NULL pointer
  1220. dereference in case of error.
  1221. 2014-03-09 Sean McBride <sean@rogue-research.com>
  1222. * src/sfnt/ttcmap.c (tt_face_build_cmaps): Remove clang warning.
  1223. 2014-03-06 Werner Lemberg <wl@gnu.org>
  1224. * Version 2.5.3 released.
  1225. =========================
  1226. Tag sources with `VER-2-5-3'.
  1227. * docs/VERSION.DLL: Update documentation and bump version number to
  1228. 2.5.3.
  1229. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  1230. builds/windows/vc2005/index.html,
  1231. builds/windows/vc2008/freetype.vcproj,
  1232. builds/windows/vc2008/index.html,
  1233. builds/windows/vc2010/freetype.vcxproj,
  1234. builds/windows/vc2010/index.html,
  1235. builds/windows/visualc/freetype.dsp,
  1236. builds/windows/visualc/freetype.vcproj,
  1237. builds/windows/visualc/index.html,
  1238. builds/windows/visualce/freetype.dsp,
  1239. builds/windows/visualce/freetype.vcproj,
  1240. builds/windows/visualce/index.html,
  1241. builds/wince/vc2005-ce/freetype.vcproj,
  1242. builds/wince/vc2005-ce/index.html,
  1243. builds/wince/vc2008-ce/freetype.vcproj,
  1244. builds/wince/vc2008-ce/index.html: s/2.5.2/2.5.3/, s/252/253/.
  1245. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
  1246. * builds/unix/configure.raw (version_info): Set to 17:2:11.
  1247. * CMakeLists.txt (VERSION_PATCH): Set to 3.
  1248. * docs/CHANGES: Updated.
  1249. 2014-03-06 Werner Lemberg <wl@gnu.org>
  1250. Fixes for compilation with C++.
  1251. * src/autofit/hbshim.c (scripts): Change type to `hb_script_t'.
  1252. (af_get_coverage): Updated.
  1253. (COVERAGE): Add cast.
  1254. 2014-03-06 Sean McBride <sean@rogue-research.com>
  1255. Remove more clang analyzer warnings.
  1256. * src/bdf/bdflib.c (_bdf_readstream), src/truetype/ttgload.c
  1257. (TT_Load_Glyph): Remove dead stores.
  1258. 2014-03-05 Werner Lemberg <wl@gnu.org>
  1259. * builds/unix/configure.raw: Simplify.
  1260. 2014-03-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1261. Fix a bug in configure in library dependency setting
  1262. Reported in https://bugs.freedesktop.org/show_bug.cgi?id=75652.
  1263. * builds/unix/configure.raw: Use `x"${xxx}" != xno' style.
  1264. 2014-03-04 Werner Lemberg <wl@gnu.org>
  1265. Minor fix for `make devel'.
  1266. * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Don't use
  1267. pkg-config for bzip2 since not all GNU/Linux distributions have
  1268. `bzip2.pc' (and the header file `bzlib.h' is located in /usr/include
  1269. normally).
  1270. 2014-03-04 Sean McBride <sean@rogue-research.com>
  1271. Fix several clang static analyzer dead store warnings.
  1272. * src/autofit/afhints.c (af_glyph_hints_reload,
  1273. af_glyph_hints_align_weak_points): Remove unnecessary assignments.
  1274. * src/bdf/bdflib.c (bdf_font_load): Ditto.
  1275. * src/pshinter/pshalgo.c (psh_glyph_compute_extrema,
  1276. psh_glyph_interpolate_other_points): Ditto.
  1277. * src/type1/t1load.c (T1_Set_MM_Blend): Ditto.
  1278. 2014-03-03 Werner Lemberg <wl@gnu.org>
  1279. Rewrite library option handling in `configure'.
  1280. o Introduce `auto' value for `--with-XXX' library options; this is
  1281. now the default.
  1282. o First use `pkg-config' for library detection, then fall back to
  1283. other tests.
  1284. * builds/unix/configure.raw (--with-zlib, --with-bzip2, --with-png,
  1285. --with-harfbuzz): Rewrite.
  1286. Use new `xxx_reqpriv', `xxx_libpriv', and `xxx_libstaticconf'
  1287. variables to collect data for `freetype2.pc' and `freetype-config'.
  1288. (FT2_EXTRA_LIBS): Renamed to ...
  1289. (ft2_extra_libs): This since it gets no longer substituted.
  1290. (REQUIRES_PRIVATE, LIBS_PRIVATE, LIBS_CONFIG, LIBSSTATIC_CONFIG):
  1291. New output variables, replacing `XXX_PKG' and `LIBXXX'.
  1292. Add notice at the end of `configure' showing the library
  1293. configuration.
  1294. * builds/unix/freetype-config.in (--static): New command line
  1295. option.
  1296. (libs): Updated.
  1297. (staticlibs): New variable, to be used if `--static' is given.
  1298. * docs/freetype-config.1: Document `--static'.
  1299. * builds/unix/freetype2.in, builds/unix/unix-def.in: Updated.
  1300. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1301. Avoid `long long' warnings with older gcc compilers.
  1302. Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
  1303. * builds/unix/configure.raw: Don't use gcc's `-pedantic' flag for
  1304. versions < 4.6. This is especially needed for Max OS X since this
  1305. OS runs a gcc variant (or emulation) based on version 4.2.1.
  1306. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1307. * docs/INSTALL.CROSS: Revised and updated.
  1308. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1309. Make `make clean' remove `freetype2.pc'.
  1310. This is a generated file at build time, not configure time.
  1311. * builds/unix/unix-def.in (DISTCLEAN): Move `freetype2.pc' to ...
  1312. (CLEAN): This variable.
  1313. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1314. Use pkg-config for detecting libpng and libbz2 also.
  1315. * builds/unix/configure.raw (HAVE_PKG): New variable.
  1316. Search for libbz2 using `pkg-config'; s/BZ2/BZIP2/.
  1317. Search for libpng using `pkg-config'.
  1318. Fix definition of `LIBHARFBUZZ' variable.
  1319. * builds/unix/freetype-config.in ($libs): Updated.
  1320. * builds/unix/freetype2.in: Add `URL' field.
  1321. Update `Requires.private' and `Libs.private'.
  1322. * builds/unix/unix-def.in: Updated.
  1323. 2014-03-01 Werner Lemberg <wl@gnu.org>
  1324. Add configure support for HarfBuzz.
  1325. * builds/unix/pkg.m4: New file.
  1326. * builds/unix/configure.raw: Search for libharfbuzz using
  1327. `pkg-config'.
  1328. Add `--without-harfbuzz' option.
  1329. * builds/unix/freetype-config.in, builds/unix/freetype2.in,
  1330. builds/unix/unix-def.in (freetype-config, freetype2.pc): Handle
  1331. HarfBuzz.
  1332. * docs/INSTALL.UNIX: Document interdependency of FreeType with
  1333. HarfBuzz.
  1334. 2014-02-28 Alexei Podtelezhnikov <apodtele@gmail.com>
  1335. [cff] Math simplifications.
  1336. * src/cf2blues.c (cf2_blues_init): Use `FT_MulDiv'.
  1337. * src/cf2ft.c (cf2_getScaleAndHintFlag): Use simple division.
  1338. 2014-02-28 Dave Arnold <darnold@adobe.com>
  1339. [cff] Fix Savannah bug #41697, part 2.
  1340. * src/cff/cf2ft.c (cf2_initLocalRegionBuffer,
  1341. cf2_initGlobalRegionBuffer): It is possible for a charstring to call
  1342. a subroutine if no subroutines exist. This is an error but should
  1343. not trigger an assert. Split the assert to account for this.
  1344. 2014-02-28 Dave Arnold <darnold@adobe.com>
  1345. [cff] Fix Savannah bug #41697, part 1.
  1346. * src/cff/cf2hints.c (cf2_hintmap_build): Return when `hintMask' is
  1347. invalid. In this case, it is not safe to use the length of
  1348. `hStemHintArray'; the exception has already been recorded in
  1349. `hintMask'.
  1350. 2014-02-26 Werner Lemberg <wl@gnu.org>
  1351. [sfnt] Fix Savannah bug #41696.
  1352. * src/sfnt/ttcmap.c (tt_cmap0_validate, tt_cmap2_validate,
  1353. tt_cmap4_validate, tt_cmap14_validate): Fix limit tests.
  1354. 2014-02-26 Werner Lemberg <wl@gnu.org>
  1355. [winfnt] Fix Savannah bug #41694.
  1356. * src/winfonts/winfnt.c (FNT_Load_Glyph): Check glyph offset.
  1357. 2014-02-26 Werner Lemberg <wl@gnu.org>
  1358. [cff] Fix Savannah bug #41693.
  1359. * src/cff/cffload.c (CFF_Load_FD_Select): Reject empty array.
  1360. 2014-02-26 Werner Lemberg <wl@gnu.org>
  1361. [bdf] Fix Savannah bug #41692.
  1362. bdflib puts data from the input stream into a buffer in chunks of
  1363. 1024 bytes. The data itself gets then parsed line by line, simply
  1364. increasing the current pointer into the buffer; if the search for
  1365. the final newline character exceeds the buffer size, more data gets
  1366. read.
  1367. However, in case the current line's end is very near to the buffer
  1368. end, and the keyword to compare with is longer than the current
  1369. line's length, an out-of-bounds read might happen since `memcmp'
  1370. doesn't stop properly at the string end.
  1371. * src/bdf/bdflib.c: s/ft_memcmp/ft_strncmp/ to make comparisons
  1372. stop at string ends.
  1373. 2014-02-17 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1374. [autofit] Fix `make multi' compilation.
  1375. * src/autofit/hbshim.c: Include `afglobal.h' and `aftypes.h'.
  1376. 2014-02-19 Werner Lemberg <wl@gnu.org>
  1377. Simon Bünzli <zeniko@gmail.com>
  1378. Fix Savannah bug #32902.
  1379. Patch taken from
  1380. https://code.google.com/p/sumatrapdf/source/browse/trunk/ext/_patches/freetype2.patch?spec=svn8620&r=8620#87
  1381. with slight modifications.
  1382. * src/type1/t1parse.c (T1_Get_Private_Dict): Add heuristic test to
  1383. handle fonts that incorrectly use \r at the beginning of an eexec
  1384. block.
  1385. 2014-02-19 Simon Bünzli <zeniko@gmail.com>
  1386. Fix Savannah bug #41590.
  1387. * src/type1/t1load.c (parse_encoding): Protect against invalid
  1388. number.
  1389. 2014-02-12 Dave Arnold <darnold@adobe.com>
  1390. [cff] Optimize by using `FT_MulDiv'.
  1391. Suggested by Alexei.
  1392. * src/cff/cf2font.c (cf2_computeDarkening): Do it.
  1393. 2014-02-12 Werner Lemberg <wl@gnu.org>
  1394. Fix Savannah bug #41465.
  1395. * builds/unix/unix-def.in (CLEAN): Add `freetype-config'.
  1396. (DISTCLEAN): Remove `freetype-config'.
  1397. 2014-02-08 Sean McBride <sean@rogue-research.com>
  1398. Fix clang static analyzer and compiler warnings.
  1399. * src/autofit/afhints.c (af_glyph_hints_align_weak_points),
  1400. src/autofit/afloader (af_loader_load_g) <FT_GLYPH_FORMAT_COMPOSITE>,
  1401. src/base/ftcalc.c (FT_MSB), src/base/ftoutln.c
  1402. (FT_Outline_Decompose), src/bdf/bdfdrivr.c (bdf_interpret_style),
  1403. src/cff/cffparse.c (cff_parse_integer), src/cid/cidparse.c
  1404. (cid_parser_new), src/pfr/pfrload.c (pfr_phy_font_load),
  1405. src/raster/ftraster.c (Decompose_Curve), src/sfnt/sfdriver.c
  1406. (sfnt_get_ps_name), src/sfnt/ttcmap.c (tt_cmap12_next,
  1407. tt_cmap13_next), src/smooth/ftgrays.c (gray_hline): Remove dead
  1408. code.
  1409. * src/autofit/afmodule.c (af_property_get_face_globals,
  1410. af_property_set, af_property_get), src/base/ftbitmap.c
  1411. (ft_gray_for_premultiplied_srgb_bgra): Make functions static.
  1412. * src/base/ftobjs.c (ft_remove_renderer): Protect against
  1413. library == NULL.
  1414. (ft_property_do): Make function static.
  1415. * src/base/ftrfork.c: Include `ftbase.h'.
  1416. * src/sfnt/ttsbit.c (tt_face_load_sbix_image)
  1417. [!FT_CONFIG_OPTION_USE_PNG], src/type1/t1gload.c
  1418. (T1_Compute_Max_Advance): Avoid compiler warning.
  1419. * src/truetype/ttinterp.c (TT_New_Context): Reduce scope of
  1420. variable.
  1421. 2014-02-08 Werner Lemberg <wl@gnu.org>
  1422. Fix Windows build directories.
  1423. The build target is now `windows' instead of `win32'.
  1424. Problem reported by Nickolas George <darknova.clan@gmail.com>.
  1425. * builds/modules.mk: Don't use `win32' and `win16' (!) but
  1426. `windows'.
  1427. * builds/windows/detect.mk, builds/windows/win32-def.mk:
  1428. s/win32/windows/.
  1429. 2014-02-08 Eugen Sawin <esawin@mozilla.com>
  1430. Fix Savannah bug #41507.
  1431. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap)
  1432. [!FT_CONFIG_OPTION_USE_PNG] <17, 17, 19>: Fix error handling.
  1433. 2014-02-08 Dave Arnold <darnold@adobe.com>
  1434. [cff] Fix minor performance bug.
  1435. * src/cff/cf2font.c (cf2_font_setup): Darkening amount and blue zone
  1436. calculations are now cached and not recomputed on each glyph.
  1437. 2014-02-05 Werner Lemberg <wl@gnu.org>
  1438. Fix problems with perl 5.8.8 as distributed with current MinGW.
  1439. * src/tools/afblue.pl: Work-around for Perl bug #63402.
  1440. (string_re): Avoid `possessive quantifiers', which have been
  1441. introduced in Perl version 5.10.
  1442. 2014-02-04 Werner Lemberg <wl@gnu.org>
  1443. Fix compilation with MinGW.
  1444. Right now, compilation out of the box with latest MinGW is broken
  1445. due to bugs in header files of mingwrt 4.0.3 in strict ANSI mode,
  1446. cf.
  1447. https://sourceforge.net/p/mingw/bugs/2024/
  1448. https://sourceforge.net/p/mingw/bugs/2046/
  1449. * builds/unix/configure.raw: Don't set `-ansi' flag for MinGW.
  1450. 2014-02-04 Werner Lemberg <wl@gnu.org>
  1451. [autofit] Minor fix.
  1452. * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
  1453. src/autofit/aflatin.c (af_latin_metrics_init_widths): Fix handling
  1454. of alternative standard characters.
  1455. This also fixes a compilation warning in non-debug mode.
  1456. 2014-02-03 Werner Lemberg <wl@gnu.org>
  1457. [cff] Fix Savannah bug #41363.
  1458. * src/cff/cf2ft.c (cf2_checkTransform): Convert assertion into
  1459. parameter check.
  1460. (cf2_decoder_parse_charstrings): Call `cf2_checkTransform' only if
  1461. we are scaling the outline.
  1462. (cf2_getPpemY): Remove problematic assertion.
  1463. 2014-01-26 Werner Lemberg <wl@gnu.org>
  1464. [autofit] Introduce two more slots for standard characters.
  1465. This is useful for OpenType features like `c2sc' (caps to small
  1466. caps) that don't have lowercase letters by definition, or other
  1467. features that mainly operate on numerals.
  1468. * src/autofit/afscript.h: Add more standard characters.
  1469. * src/autofit/aftypes.h: Update use of `SCRIPT' macro.
  1470. (AF_ScriptClassRec): Add members to hold two more standard
  1471. characters.
  1472. (AF_DEFINE_SCRIPT_CLASS): Updated.
  1473. * src/autofit/afglobal.c, src/autofit/afglobal.h,
  1474. * src/autofit/afpic.c, src/autofit/afranges.h, src/autofit/hbshim.c:
  1475. Update use of `SCRIPT' macro.
  1476. * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
  1477. src/autofit/aflatin.c (af_latin_metrics_init_widths): Scan two more
  1478. standard characters.
  1479. 2014-01-24 Werner Lemberg <wl@gnu.org>
  1480. Fix Savannah bug #41320.
  1481. * src/autofit/aflatin.c (af_latin_metrics_init_blues)
  1482. <AF_LATIN_IS_LONG_BLUE>: Avoid negative index of `last'.
  1483. 2014-01-23 Werner Lemberg <wl@gnu.org>
  1484. Fix Savannah bug #41310.
  1485. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap) <glyph_format==5>:
  1486. Don't check metrics, which this format doesn't have.
  1487. This is another correction to the commit from 2013-11-21.
  1488. 2014-01-23 Werner Lemberg <wl@gnu.org>
  1489. Fix Savannah bug #41309.
  1490. * src/type1/t1load.c (t1_parse_font_matrix): Properly handle result
  1491. of `T1_ToFixedArray'.
  1492. * src/cid/cidload.c (cid_parse_font_matrix): Synchronize with
  1493. `t1_parse_font_matrix'.
  1494. * src/type42/t42parse.c (t42_parse_font_matrix): Synchronize with
  1495. `t1_parse_font_matrix'.
  1496. (t42_parse_encoding): Synchronize with `t1_parse_encoding'.
  1497. * src/psaux/psobjs.c (ps_parser_load_field) <T1_FIELD_TYPE_BBOX>,
  1498. <T1_FIELD_TYPE_MMOX>: Properly handle result of `ps_tofixedarray'.
  1499. 2014-01-22 Werner Lemberg <wl@gnu.org>
  1500. * src/autofit/hbshim.c (af_get_coverage): Fix memory leaks.
  1501. 2014-01-16 Werner Lemberg <wl@gnu.org>
  1502. [autofit] Improve tracing of style coverages.
  1503. * include/internal/fttrace.h: Add `afglobal' for tracing style
  1504. coverages.
  1505. * src/autofit/afglobal.c: Include FT_INTERNAL_DEBUG_H.
  1506. (FT_COMPONENT): Define.
  1507. (af_face_globals_compute_style_coverage): Trace `gstyles' array
  1508. data.
  1509. 2014-01-09 Werner Lemberg <wl@gnu.org>
  1510. Fix Savannah bug #41158.
  1511. * builds/unix/install.mk (install): Create man page directory.
  1512. 2014-01-08 Chongyu Zhu <lembacon@gmail.com>
  1513. [arm] Fix Savannah bug #41138, part 2.
  1514. * builds/unix/ftconfig.in (FT_MulFix_arm), include/config/ftconfig.h
  1515. (FT_MulFix_arm), src/truetype/ttinterp.c (TT_MulFix14_arm): Fix
  1516. preprocessor conditionals for `add.w'.
  1517. 2014-01-08 Werner Lemberg <wl@gnu.org>
  1518. [autofit] Fix Savannah bug #41138, part 1.
  1519. * src/tools/afblue.pl <Handling #endif>: Produce correct auxiliary
  1520. enumeration names for generated `#else'.
  1521. * src/autofit/afblue.h: Regenerated.
  1522. 2014-01-06 Werner Lemberg <wl@gnu.org>
  1523. Add manual page for `freetype-config'.
  1524. Contributed by Nis Martensen <nis.martensen@web.de>.
  1525. * docs/freetype-config.1: New file.
  1526. * builds/unix/unix-def.in (mandir): Define.
  1527. * builds/unix/install.mk (install, uninstall): Handle manpage.
  1528. 2014-01-05 Werner Lemberg <wl@gnu.org>
  1529. [autofit] Minor fixes for `afblue.pl'.
  1530. * src/tools/afblue.pl (aux_name): Don't use `reverse'.
  1531. <Handling #endif>: Use proper indentation for generated `#else'.
  1532. * src/autofit/afblue.h: Regenerated.
  1533. 2014-01-04 Werner Lemberg <wl@gnu.org>
  1534. [autofit] Fix Indic scripts.
  1535. Split the single, incorrect Indic entry into separate scripts so
  1536. that the covered ranges are the same: Bengali, Devanagari, Gujarati,
  1537. Gurmukhi, Kannada, Limbu, Malayalam, Oriya, Sinhala, Sundanese,
  1538. Syloti Nagri, Tamil, Telugu, and Tibetan. At the same time, remove
  1539. entries for Meetei Mayek and Sharada – the Unicode ranges were
  1540. incorrect (and nobody has complained about that), fonts are scarce
  1541. for those scripts, and the Indic auto-hinter support is rudimentary
  1542. anyways.
  1543. * src/autofit/afscript.h: Updated, using AF_CONFIG_OPTION_INDIC and
  1544. AF_CONFIG_OPTION_CJK.
  1545. * src/autofit/afstyles.h (STYLE_DEFAULT_INDIC): New auxiliary macro.
  1546. Use it, together with AF_CONFIG_OPTION_INDIC and
  1547. AF_CONFIG_OPTION_CJK, to update.
  1548. * src/autofit/afranges.c [AF_CONFIG_OPTION_INDIC]: Updated.
  1549. [!AF_CONFIG_OPTION_INDIC, !AF_CONFIG_OPTION_CJK]: Removed.
  1550. Sort entries by tags.
  1551. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1552. [autofit] Thinko.
  1553. * src/autofit/hbshim.c (af_get_char_index): Similar to
  1554. `af_get_coverage', reject glyphs which are not substituted.
  1555. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1556. [autofit] Fix handling of default coverages.
  1557. With this commit, the implementation of coverage handling is
  1558. completed.
  1559. * src/autofit/hbshim.c (af_get_coverage): Exit early if nothing to
  1560. do.
  1561. Reject coverages which don't contain appropriate glyphs for blue
  1562. zones.
  1563. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1564. [autofit] Fix handling of default coverages.
  1565. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
  1566. First handle non-default coverages, then the default coverage of the
  1567. default script, and finally the other default coverages.
  1568. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1569. [autofit] Fix scaling of HarfBuzz shaping.
  1570. * src/autofit/hbshim.c (af_get_char_index): Scale to units per EM.
  1571. 2014-01-03 Werner Lemberg <wl@gnu.org>
  1572. [autofit] Better ftgrid support.
  1573. * src/autofit/afhints.c (af_glyph_hints_get_segment_offset): Add
  1574. parameters `is_blue' and `blue_offset'.
  1575. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1576. [autofit] Remove some styles.
  1577. * src/autofit/afcover.h: Remove coverages for alternative fractions,
  1578. denominators, numerators, and fractions.
  1579. * src/autofit/afstyles.h (META_STYLE_LATIN): Updated.
  1580. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1581. [autofit] Add more styles.
  1582. * src/autofit/afstyles.h (STYLE_LATIN, META_STYLE_LATIN): New
  1583. auxiliary macros; use them to define styles for Cyrillic, Greek, and
  1584. Latin.
  1585. * src/autofit/afcover.h: Remove coverage for oldstyle figures.
  1586. Since those digits are used in combination with ordinary letters, it
  1587. makes no sense to handle them separately.
  1588. * src/autofit/afglobal.c (af_face_globals_get_metrics): Don't limit
  1589. `options' parameter to 4 bits.
  1590. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1591. [autofit] Fix style assignments to glyphs.
  1592. * src/autofit/hbshim.c (af_get_coverage)
  1593. [FT_CONFIG_OPTION_USE_HARFBUZZ]: Scan GPOS coverage of features also
  1594. so that we can skip glyphs that have both GSUB and GPOS data.
  1595. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1596. * src/autofit/hbshim.c: s/{lookups,glyphs}/gsub_{lookups,glyphs}/.
  1597. 2014-01-01 Werner Lemberg <wl@gnu.org>
  1598. [autofit] Implement and use `af_get_char_index' with HarfBuzz.
  1599. * src/autofit/hbshim.c (COVERAGE) [FT_CONFIG_OPTION_USE_HARFBUZZ]:
  1600. Redefine to construct HarfBuzz features.
  1601. (af_get_char_index) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Rewritten.
  1602. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Use
  1603. `y_offset' to adjust `best_y'.
  1604. 2013-12-31 Werner Lemberg <wl@gnu.org>
  1605. [autofit] s/AF_STYLE_...._DEFAULT/AF_STYLE_...._DFLT/i.
  1606. 2013-12-31 Werner Lemberg <wl@gnu.org>
  1607. [autofit] Fix interface of `af_get_char_index'.
  1608. * src/autofit/hbshim.c (af_get_char_index): Return error value.
  1609. Add argument for y offset (to be used in a yet-to-come patch).
  1610. * src/autofit/hbshim.h, src/autofit/afcjk.c,
  1611. src/autofit/aflatin.c: Updated.
  1612. 2013-12-30 Werner Lemberg <wl@gnu.org>
  1613. [autofit] Don't combine multiple features into one set.
  1614. Combining them, as originally envisioned, would lead to much more
  1615. complicated code, as investigations have shown meanwhile. The major
  1616. drawback is that we run out of available style slots much earlier.
  1617. However, this is only a theoretical issue since we don't support a
  1618. large number of scripts currently.
  1619. * src/autofit/afcover.h: Replace `COVERAGE_{1,2,3}' macros with
  1620. a single-element `COVERAGE' macro, sort the elements by the feature
  1621. tags, and add entry for `ruby'.
  1622. * src/autofit/aftypes.h: Updated.
  1623. * src/autofit/hbshim.c: Updated.
  1624. 2013-12-28 Werner Lemberg <wl@gnu.org>
  1625. [autofit] Code shuffling to reduce use of cpp macros.
  1626. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
  1627. Call `af_get_coverage' unconditionally.
  1628. * src/autofit/autofit.c: Include `hbshim.c' unconditionally.
  1629. * src/autofit/hbshim.c (af_get_coverage)
  1630. [!FT_CONFIG_OPTION_USE_HARFBUZZ]: Provide dummy function.
  1631. * src/autofit/hbshim.h: Provide function declarations
  1632. unconditionally.
  1633. 2013-12-28 Werner Lemberg <wl@gnu.org>
  1634. [autofit] Add wrapper function for `FT_Get_Char_Index'.
  1635. Yet-to-come changes will provide HarfBuzz functionality for the new
  1636. function.
  1637. * src/autofit/hbshim.c (af_get_char_index): New function.
  1638. * src/autofit/hbshim.h: Updated.
  1639. * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
  1640. af_cjk_metrics_init_blues, af_cjk_metrics_check_digits): Updated.
  1641. * src/autofit/aflatin.c (af_latin_metrics_init_widths,
  1642. af_latin_metrics_init_blues, af_latin_metrics_check_digits):
  1643. Updated.
  1644. 2013-12-28 Werner Lemberg <wl@gnu.org>
  1645. [autofit] Use `global' HarfBuzz font object.
  1646. We now use `hb_font' instead of `hb_face' since yet-to-come changes
  1647. need this.
  1648. * src/autofit/afglobal.h: Include `hbshim.h'.
  1649. (AF_FaceGlobalsRec) [FT_CONFIG_OPTION_USE_HARFBUZZ]: New member
  1650. `hb_font'.
  1651. * src/autofit/afglobal.c (af_face_globals_new)
  1652. [FT_CONFIG_OPTION_USE_HARFBUZZ]: Create `hb_font'.
  1653. (af_face_globals_free) [FT_CONFIG_OPTION_USE_HARFBUZZ]: Destroy
  1654. `hb_font'.
  1655. * src/autofit/hbshim.h: Include HarfBuzz headers.
  1656. * src/autofit/hbshim.c: Include `hbshim.h' instead of HarfBuzz
  1657. headers.
  1658. (af_get_coverage): Updated.
  1659. 2013-12-27 Werner Lemberg <wl@gnu.org>
  1660. [autofit] Handle `DFLT' OpenType script for coverages.
  1661. * include/ftautoh.h: Document new `default-script' property.
  1662. * src/autofit/hbshim.c (af_get_coverage): Use `AF_FaceGlobals' for
  1663. type of first parameter.
  1664. (script_tags): Add one more element.
  1665. (af_get_coverage): Adjust `script_tags' to handle `DFLT' script tag.
  1666. * src/autofit/hbshim.h: Updated.
  1667. * src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
  1668. Updated.
  1669. * src/autofit/afglobal.h (AF_SCRIPT_DEFAULT): New macro.
  1670. * src/autofit/afmodule.h (AF_ModuleRec): New `default_script'
  1671. member.
  1672. * src/autofit/afmodule.c (af_property_set, af_property_get): Handle
  1673. `default-script' property.
  1674. (af_autofitter_init): Updated.
  1675. 2013-12-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1676. [ftrfork] Fix the face order difference between POSIX and Carbon.
  1677. The fragmented resources in Suitcase and .dfont should be reordered
  1678. when `POST' resource for Type1 is being restored, but reordering of
  1679. sfnt resources induces the different face order. Now the ordering
  1680. is restricted to `POST' resource only, to prevent the different
  1681. order issue (e.g. the face index in the fontconfig cache generated
  1682. with Carbon framework is incompatible with that by FreeType 2
  1683. without Carbon framework.) Found by Khaled Hosny and Hin-Tak Leung.
  1684. https://lists.gnu.org/archive/html/freetype-devel/2013-02/msg00035.html
  1685. https://lists.gnu.org/archive/html/freetype-devel/2013-12/msg00027.html
  1686. * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Add a switch
  1687. `sort_by_res_id' to control the fragmented resource ordering.
  1688. * include/internal/ftrfork.h: Declare new switch.
  1689. * src/base/ftobjs.c (IsMacResource): Enable the sorting for `POST'
  1690. resource, and disable the sorting for `sfnt' resource.
  1691. 2013-12-25 Werner Lemberg <wl@gnu.org>
  1692. Fix Savannah bug #40997.
  1693. * src/bdf/bdfdrivr.c (BDF_Face_Init): Only use OR operator to
  1694. adjust face flags since FT_FACE_FLAG_EXTERNAL_STREAM might already
  1695. be set.
  1696. * src/cff/cffobjs.c (cff_face_init): Ditto.
  1697. * src/cid/cidobjs.c (cid_face_init): Ditto.
  1698. * src/pcf/pcfread.c (pcf_load_font): Ditto.
  1699. * src/pfr/pfrobjs.c (pfr_face_init): Ditto.
  1700. * src/type1/t1objs.c (T1_Face_Init): Ditto.
  1701. * src/type42/t42objs.c (T42_Face_Init): Ditto.
  1702. * src/winfonts/winfnt.c (FNT_Face_Init): Ditto.
  1703. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1704. [autofit] Introduce `coverages'.
  1705. Coverages are the interface to the HarfBuzz library to access
  1706. OpenType features for handling glyphs not addressable by the cmap.
  1707. Right now, compilation of HarfBuzz is only added to the development
  1708. build. A solution for standard build mode will be delayed until
  1709. HarfBuzz gets split into two libraries to avoid mutual dependencies
  1710. between FreeType and HarfBuzz.
  1711. Note that this is only a first step in handling coverages, basically
  1712. providing the framework only. Code for handling selected OpenType
  1713. features (this is, actually using the data in `afcover.h') will
  1714. follow.
  1715. * devel/ftoption.h, include/config/ftoption.h
  1716. (FT_CONFIG_OPTION_USE_HARFBUZZ): New macro.
  1717. * src/autofit/hbshim.c, src/autofit/hbshim.h, src/autofit/afcover.h:
  1718. New files.
  1719. * src/autofit/afscript.h: Add HarfBuzz script name tags.
  1720. * src/autofit/afstyles.h: Add default coverage enumeration values.
  1721. * src/autofit/aftypes.h: Update use of `SCRIPT' and `STYLE' macros.
  1722. (AF_Coverage): New enumeration (generated by `afcover.h').
  1723. (AF_StyleClassRec): New member `coverage'.
  1724. (AF_DEFINE_STYLE_CLASS): Updated.
  1725. * include/internal/fttrace.h: Add `afharfbuzz' for tracing coverage
  1726. data.
  1727. * src/autofit/afglobal.h: Update use of `SCRIPT' and `STYLE' macros.
  1728. (AF_SCRIPT_FALLBACK): Renamed to ...
  1729. (AF_STYLE_FALLBACK): ... this.
  1730. * src/autofit/afglobal.c: Include `hbshim.c'.
  1731. Update use of `SCRIPT' and `STYLE' macros.
  1732. (af_face_globals_compute_style_coverage)
  1733. [FT_CONFIG_OPTION_USE_HARFBUZZ]: Call `af_get_coverage'.
  1734. Update.
  1735. * src/autofit/afmodule.h (AF_ModuleRec):
  1736. s/fallback_script/fallback_style/.
  1737. * src/autofit/afmodule.c (af_property_set): Adapt handling of
  1738. `fallback-script' property to set a fallback style.
  1739. (af_property_get, af_autofitter_init): Updated.
  1740. * src/autofit/afpic.c: Update use of `SCRIPT' and `STYLE' macros.
  1741. * src/autofit/afranges.h: Update use of `SCRIPT' macro.
  1742. * src/autofit/autofit.c [FT_CONFIG_OPTION_USE_HARFBUZZ]: Include
  1743. `hbshim.c'.
  1744. * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `hbshim.c'.
  1745. (AUTOF_DRV_H): Add `afcover.h'.
  1746. * builds/freetype.mk (INCLUDE_FLAGS) [DEVEL_DIR]: Use pkg-config for
  1747. all libraries needed by FreeType.
  1748. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1749. Fix Savannah bug #40975 (sort of).
  1750. * src/truetype/ttinterp.c (Ins_IP): Fix sign typo to make FreeType
  1751. behave the same as the Windows TrueType engine for the invalid case.
  1752. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1753. [autofit] Make PIC mode work actually.
  1754. * src/autofit/afpic.h (AFModulePIC): Fix array sizes to fit the
  1755. enumeration values automatically generated by including `afscript.h'
  1756. and friends.
  1757. * src/autofit/afpic.c (autofit_module_class_pic_init): Updated.
  1758. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1759. Fix PIC linking.
  1760. * include/internal/ftrfork.h (CONST_FT_RFORK_RULE_ARRAY_BEGIN): Fix
  1761. generated function name.
  1762. * src/base/basepic.c (FT_Init_Table_raccess_guess_table): Rename
  1763. to ...
  1764. (FT_Init_Table_ft_raccess_guess_table): ... this so that the
  1765. function name correctly corresponds to what the macro framework
  1766. expects.
  1767. * src/psnames/rules.mk (PSNAMES_DRV_SRC_S): Use correct file name so
  1768. that PIC functions are compiled also.
  1769. 2013-12-21 Werner Lemberg <wl@gnu.org>
  1770. [base] Add missing dependencies to Makefile.
  1771. * src/base/rules.mk (BASE_SRC): Add `basepic.c' and `ftpic.c'.
  1772. (BASE_H): Add `basepic.h'.
  1773. 2013-12-20 Werner Lemberg <wl@gnu.org>
  1774. [autofit] Fix PIC compilation.
  1775. * src/autofit/afcjk.c (af_cjk_metrics_init_widths),
  1776. src/autofit/aflatin.c (af_latin_metrics_init_widths)
  1777. [FT_CONFIG_OPTION_PIC]: Declare `globals'.
  1778. * src/autofit/afglobal.c: Always call AF_DEFINE_SCRIPT_CLASS, and
  1779. AF_DEFINE_STYLE_CLASS.
  1780. * src/autofit/afpic.c: Include `afglobal.h'.
  1781. (autofit_module_class_pic_init): Typo.
  1782. * src/autofit/aftypes.h (AF_DEFINE_SCRIPT_CLASS,
  1783. AF_DEFINE_STYLE_CLASS): Don't use the same identifier for macro
  1784. parameter and structure member.
  1785. 2013-12-20 Werner Lemberg <wl@gnu.org>
  1786. [autofit] Introduce `styles'.
  1787. This is the new top-level structure for handling glyph input data;
  1788. scripts are now defined separately.
  1789. * src/autofit/aftypes.h (SCRIPT): Updated.
  1790. (AF_ScriptClassRec): Move `blue_stringset' and `writing_system'
  1791. members to ...
  1792. (AF_Style_ClassRec): ... this new structure.
  1793. (AF_Style): New enumeration.
  1794. (AF_StyleMetricsRec): Replace `script' enumeration with
  1795. `style_class' pointer.
  1796. (AF_DEFINE_SCRIPT_CLASS, AF_DECLARE_SCRIPT_CLASS): Updated.
  1797. (AF_DEFINE_STYLE_CLASS, AF_DECLARE_STYLE_CLASS): New macros.
  1798. * src/autofit/afstyles.h: New file, using data from `afscript.h'.
  1799. * src/autofit/afscript.h: Updated.
  1800. * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
  1801. af_cjk_metrics_init_blues, af_cjk_hint_edges): Updated.
  1802. * src/autofit/afglobal.c (SCRIPT): Updated.
  1803. (STYLE): Redefine macro to load `afstyles.h'.
  1804. (af_script_names) [FT_DEBUG_LEVEL_TRACE]: Replace with...
  1805. (af_style_names): ... this array.
  1806. (af_face_globals_compute_script_coverage): Renamed to...
  1807. (af_face_globals_compute_style_coverage): ... this.
  1808. Updated.
  1809. (af_face_globals_new, af_face_globals_free,
  1810. af_face_globals_get_metrics): Updated.
  1811. * src/autofit/afglobal.h (SCRIPT): Updated.
  1812. (STYLE): Redefine macro to load `afstyles.h'.
  1813. (AF_SCRIPT_FALLBACK): Update definition. This will get more
  1814. refinements with later on.
  1815. (AF_SCRIPT_UNASSIGNED): Replace with...
  1816. (AF_STYLE_UNASSIGNED): ... this macro.
  1817. (AF_FaceGlobalsRec): Updated.
  1818. * src/autofit/aflatin.c (af_latin_metrics_init_widths,
  1819. af_latin_metrics_init_blues, af_latin_metrics_scale_dim,
  1820. af_latin_hint_edges): Updated.
  1821. * src/autofit/aflatin2.c (af_latin2_metrics_init_widths): Updated.
  1822. (af_ltn2_uniranges): Removed.
  1823. * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
  1824. Updated.
  1825. * src/autofit/afpic.c (autofit_module_class_pic_init): Updated.
  1826. * src/autofit/afpic.h (AF_STYLE_CLASSES_GET): New macro.
  1827. (AFModulePIC): Add `af_style_classes' and `af_style_classes_rec'
  1828. members.
  1829. * src/autofit/afranges.h: Updated.
  1830. * src/autofit/rules.mk (AUTOF_DRV_H): Add `afstyles.h'.
  1831. 2013-12-19 Werner Lemberg <wl@gnu.org>
  1832. [autofit] Factor scripts and uniranges out of writing system files.
  1833. * src/autofit/afranges.c, src/autofit/afranges.h: New files.
  1834. * src/autofit/afscript.h: Extend `SCRIPT' macro with more
  1835. parameters, taking data from the writing system files.
  1836. * src/autofit/aftypes.h: Updated.
  1837. * src/autofit/afglobal.c: Include `afranges.h'.
  1838. Load `afscript.h' to call AF_DEFINE_SCRIPT_CLASS.
  1839. * src/autofit/afglobal.c: Include `afranges.h'.
  1840. Load `afscript.h' to call AF_DECLARE_SCRIPT_CLASS.
  1841. * src/autofit/afcjk.c, src/autofit/afcjk.h: Updated.
  1842. * src/autofit/afdummy.c, src/autofit/afdummy.h: Updated.
  1843. * src/autofit/afindic.c, src/autofit/afindic.h: Updated.
  1844. * src/autofit/aflatin.c, src/autofit/aflatin.h: Updated.
  1845. * src/autofit/aflatin2.c, src/autofit/aflatin2.h: Updated.
  1846. * src/autofit/afpic.c: Updated.
  1847. * src/autofit/autofit.c: Include `afranges.c'.
  1848. * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afranges.c'.
  1849. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1850. [autofit] More code orthogonality.
  1851. * src/autofit/aftypes.h (AF_StyleMetrics): Replace `script_class'
  1852. pointer to an `AF_ScriptClass' structure with `script' index of type
  1853. `AF_Script'.
  1854. Move some code around.
  1855. * src/autofit/afcjk.c: Include `afpic.h'.
  1856. (af_cjk_metrics_init_widths, af_cjk_metrics_init_blues,
  1857. af_cjk_hint_edges): Updated.
  1858. * src/autofit/aflatin.c: Include `afpic.h'.
  1859. (af_latin_metrics_init_widths, af_latin_metrics_init_blues,
  1860. af_latin_metrics_scale_dim, af_latin_hint_edges): Updated.
  1861. * src/autofit/afglobal.c (af_face_globals_get_metrics): Updated.
  1862. * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
  1863. Updated.
  1864. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1865. [autofit] s/ScriptMetrics/StyleMetrics/.
  1866. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1867. [autofit] s/script_{metrics,hints}/style_{metrics,hints}/
  1868. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1869. [autofit] s/gscripts/gstyles/.
  1870. 2013-12-18 Werner Lemberg <wl@gnu.org>
  1871. [autofit] s/glyph_scripts/glyph_styles/.
  1872. This is the first commit of a series to create a new top-level
  1873. structure (a `style') for handling scripts, writing_systems, and
  1874. soon-to-be-added coverages.
  1875. 2013-12-17 Werner Lemberg <wl@gnu.org>
  1876. [autofit] s/AF_Script_/AF_WritingSystem_/ where appropriate.
  1877. 2013-12-11 Infinality <infinality@infinality.net>
  1878. [truetype] Simplify logic of rendering modes.
  1879. This patch unifies the subpixel and non-subpixel cases.
  1880. * src/truetype/ttinterp.h (TT_ExecContextRec): Remove
  1881. `grayscale_hinting'; all code should refer to `grayscale' instead.
  1882. Remove unused `native_hinting' member.
  1883. Rename `subpixel_hinting' member to `subpixel.
  1884. * src/truetype/ttgload.c (TT_LOADER_SET_PP): Updated.
  1885. (tt_loader_init): Updated.
  1886. * src/truetype/ttinterp.c (Ins_GETINFO): Simplify.
  1887. Updated.
  1888. 2013-12-11 Werner Lemberg <wl@gnu.org>
  1889. [documentation] Add section how to include FreeType header files.
  1890. Problem reported by David Kastrup <dak@gnu.org>.
  1891. Surprisingly, a description how to do that was completely missing in
  1892. the API reference.
  1893. * include/freetype.h, include/ftchapters.h: New documentation
  1894. section `header_inclusion'.
  1895. 2013-12-10 Werner Lemberg <wl@gnu.org>
  1896. [autofit] s/DFLT/NONE/, s/dflt/none/.
  1897. 2013-12-10 Werner Lemberg <wl@gnu.org>
  1898. [autofit] s/AF_SCRIPT_NONE/AF_SCRIPT_UNASSIGNED/.
  1899. 2013-12-10 Werner Lemberg <wl@gnu.org>
  1900. [truetype] Fix scaling of vertical phantom points.
  1901. * src/truetype/ttgload.c (load_truetype_glyph): Scale pp3.x and
  1902. pp4.x also.
  1903. 2013-12-10 Werner Lemberg <wl@gnu.org>
  1904. [truetype] Fix positioning of composite glyphs.
  1905. Problem reported by Nigel Tao <nigeltao@golang.org>.
  1906. * src/truetype/ttgload.c (TT_Hint_Glyph): Remove code that shifts
  1907. the glyph (component) by a fractional value computed from the LSB
  1908. phantom point. This is wrong, since the horizontal phantom points
  1909. get rounded horizontally later on.
  1910. 2013-12-08 Werner Lemberg <wl@gnu.org>
  1911. * Version 2.5.2 released.
  1912. =========================
  1913. Tag sources with `VER-2-5-2'.
  1914. * docs/VERSION.DLL: Update documentation and bump version number to
  1915. 2.5.2.
  1916. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  1917. builds/windows/vc2005/index.html,
  1918. builds/windows/vc2008/freetype.vcproj,
  1919. builds/windows/vc2008/index.html,
  1920. builds/windows/vc2010/freetype.vcxproj,
  1921. builds/windows/vc2010/index.html,
  1922. builds/windows/visualc/freetype.dsp,
  1923. builds/windows/visualc/freetype.vcproj,
  1924. builds/windows/visualc/index.html,
  1925. builds/windows/visualce/freetype.dsp,
  1926. builds/windows/visualce/freetype.vcproj,
  1927. builds/windows/visualce/index.html,
  1928. builds/wince/vc2005-ce/freetype.vcproj,
  1929. builds/wince/vc2005-ce/index.html,
  1930. builds/wince/vc2008-ce/freetype.vcproj,
  1931. builds/wince/vc2008-ce/index.html: s/2.5.1/2.5.2/, s/251/252/.
  1932. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
  1933. * builds/unix/configure.raw (version_info): Set to 17:1:11.
  1934. * CMakeLists.txt (VERSION_PATCH): Set to 2.
  1935. * docs/CHANGES: Updated.
  1936. 2013-12-07 Werner Lemberg <wl@gnu.org>
  1937. [truetype] Next round in phantom point handling.
  1938. Greg Hitchcock provided very interesting insights into the
  1939. complicated history of the horizontal positions of the TSB and BSB
  1940. phantom points.
  1941. * src/truetype/ttgload.c (TT_LOADER_SET_PP)
  1942. [TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Use `subpixel_hinting' and
  1943. `grayscale_hinting' flags as conditionals for the x position of TSB
  1944. and BSB.
  1945. 2013-12-05 Werner Lemberg <wl@gnu.org>
  1946. * builds/freetype.mk (FT_CC): Removed. Unused.
  1947. 2013-12-04 Werner Lemberg <wl@gnu.org>
  1948. [sfnt] Fix handling of embedded bitmap strikes.
  1949. This corrects the commit from 2013-11-21. Problem reported by
  1950. Andrey Panov <panov@canopus.iacp.dvo.ru>.
  1951. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Fix logic to
  1952. detect excessive bytes for bit-aligned bitmaps.
  1953. 2013-12-03 Werner Lemberg <wl@gnu.org>
  1954. [truetype] Remove dead code.
  1955. Reported by Nigel Tao <nigeltao@golang.org>.
  1956. * include/internal/tttypes.h (TT_LoaderRec): Remove unused
  1957. `preserve_pps' field.
  1958. * src/truetype/ttgload.c (TT_Hint_Glyph): Updated.
  1959. 2013-12-03 Werner Lemberg <wl@gnu.org>
  1960. [truetype] Fix phantom point handling.
  1961. This is a further improvement to the changes from 2013-11-06.
  1962. * src/truetype/ttgload.c (TT_Hint_Glyph): Horizontal phantom points
  1963. are rounded horizontally, vertical ones are rounded vertically.
  1964. (TT_LOADER_SET_PP): The horizontal position of vertical phantom
  1965. points in pre-ClearType mode is zero, as shown in the OpenType
  1966. specification.
  1967. 2013-12-02 Werner Lemberg <wl@gnu.org>
  1968. [truetype] Fix change from 2013-11-20.
  1969. Problem reported by Akira Kakuto <kakuto@fuk.kindai.ac.jp>.
  1970. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Protect call to
  1971. `Update_Max' with both a TT_USE_BYTECODE_INTERPRETER guard and a
  1972. `IS_HINTED' clause.
  1973. Also remove redundant check using `maxSizeOfInstructions' – in
  1974. simple glyphs, the bytecode data comes before the outline data, and
  1975. a validity test for this is already present.
  1976. 2013-11-27 Werner Lemberg <wl@gnu.org>
  1977. [autofit] Fix use of dumping functions in `ftgrid' demo program.
  1978. * src/autofit/afhints.c (AF_DUMP) [FT_DEBUG_AUTOFIT]: New macro.
  1979. (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
  1980. af_glyph_hints_dump_edges) [FT_DEBUG_AUTOFIT]: Add parameter to
  1981. handle output to stdout.
  1982. Use AF_DUMP.
  1983. (af_glyph_hints_dump_points, af_glyph_hints_dump_segments,
  1984. af_glyph_hints_dump_edges) [!FT_DEBUG_AUTOFIT]: Removed.
  1985. 2013-11-25 Werner Lemberg <wl@gnu.org>
  1986. * Version 2.5.1 released.
  1987. =========================
  1988. Tag sources with `VER-2-5-1'.
  1989. * docs/VERSION.DLL: Update documentation and bump version number to
  1990. 2.5.1.
  1991. * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
  1992. builds/windows/vc2005/index.html,
  1993. builds/windows/vc2008/freetype.vcproj,
  1994. builds/windows/vc2008/index.html,
  1995. builds/windows/vc2010/freetype.vcxproj,
  1996. builds/windows/vc2010/index.html,
  1997. builds/windows/visualc/freetype.dsp,
  1998. builds/windows/visualc/freetype.vcproj,
  1999. builds/windows/visualc/index.html,
  2000. builds/windows/visualce/freetype.dsp,
  2001. builds/windows/visualce/freetype.vcproj,
  2002. builds/windows/visualce/index.html,
  2003. builds/wince/vc2005-ce/freetype.vcproj,
  2004. builds/wince/vc2005-ce/index.html,
  2005. builds/wince/vc2008-ce/freetype.vcproj,
  2006. builds/wince/vc2008-ce/index.html: s/2.5.0/2.5.1/, s/250/251/.
  2007. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
  2008. * builds/unix/configure.raw (version_info): Set to 17:0:11.
  2009. * CMakeLists.txt (VERSION_PATCH): Set to 1.
  2010. * docs/CHANGES, docs/release: Updated.
  2011. 2013-11-23 Werner Lemberg <wl@gnu.org>
  2012. [truetype]: Add tricky font names `hkscsiic.ttf' and `iicore.ttf'.
  2013. * src/truetype/ttobjs.c (TRICK_NAMES_MAX_CHARACTERS,
  2014. TRICK_NAMES_COUNT): Updated.
  2015. (trick_names): Add family name for the two fonts.
  2016. 2013-11-23 Werner Lemberg <wl@gnu.org>
  2017. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Typo.
  2018. 2013-11-21 Werner Lemberg <wl@gnu.org>
  2019. [sfnt] Typo.
  2020. Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
  2021. * src/sfnt/sfobjs.c (sfnt_load_face): Return correct `bsize->width'
  2022. value if the font lacks an `OS/2' table.
  2023. 2013-11-21 Werner Lemberg <wl@gnu.org>
  2024. [sfnt] Improve handling of buggy embedded bitmap strikes.
  2025. We are now able to successfully load `AppleMyoungJo.ttf'.
  2026. Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>.
  2027. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bitmap): Don't trust glyph
  2028. format.
  2029. 2013-11-20 Werner Lemberg <wl@gnu.org>
  2030. [truetype] Don't trust `maxp's `maxSizeOfInstructions'.
  2031. Problem reported by Hin-Tak Leung <htl10@users.sourceforge.net>; see
  2032. https://lists.nongnu.org/archive/html/freetype-devel/2013-08/msg00005.html
  2033. for details.
  2034. * src/base/ftobjs.c (FT_Load_Glyph): Check size of `fpgm' and `prep'
  2035. tables also for setting `autohint'.
  2036. * src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use code from
  2037. `TT_Process_Composite_Glyph' for handling unreliable values of
  2038. `maxSizeOfInstructions'.
  2039. 2013-11-16 Werner Lemberg <wl@gnu.org>
  2040. [sfnt] Fix `OS/2' table version 5 support.
  2041. We now follow the `official' announcement from Microsoft (on the
  2042. OpenType mailing list, which unfortunately hasn't a public archive).
  2043. * include/freetype/tttables.h (TT_OS2):
  2044. s/usLowerPointSize/usLowerOpticalPointSize/,
  2045. s/usUpperPointSize/usUpperOpticalPointSize/.
  2046. * src/sfnt/ttload.c (tt_face_load_os2): Update, and set correct
  2047. default values.
  2048. 2013-11-13 Werner Lemberg <wl@gnu.org>
  2049. * builds/unix/ft2unix.h: Remove. No longer necessary.
  2050. * builds/unix/install.mk (install): Updated.
  2051. 2013-11-13 Werner Lemberg <wl@gnu.org>
  2052. Simplify header file hierarchy.
  2053. This large patch changes the header file directory layout from
  2054. `include/freetype/...' to `include/...', effectively removing one
  2055. level. Since the file `ft2build.h' is also located in `include'
  2056. (and it stays there even after installation), all FreeType header
  2057. files are now in a single directory.
  2058. Applications that use (a) `freetype-config' or FreeType's
  2059. `pkg-config' file to get the include directory for the compiler, and
  2060. (b) the documented way for header inclusion like
  2061. #include <ft2build.h>
  2062. #include FT_FREETYPE_H
  2063. ...
  2064. don't need any change to the source code.
  2065. * include/freetype/*: Move up to...
  2066. * include/*: ... this directory.
  2067. * builds/amiga/include/freetype/*: Move up to...
  2068. * builds/amiga/include/*: ... this directory.
  2069. */*: Essentially do `s@/freetype/@/@' where appropriate.
  2070. * CMakeLists.txt: Simplify.
  2071. * builds/unix/freetype-config.in, builds/unix/freetype2.in: For
  2072. `--cflags', return a single directory.
  2073. * builds/unix/install.mk (install): No longer try to remove `cache'
  2074. and `internal' subdirectories; instead, remove the `freetype'
  2075. subdirectory.
  2076. 2013-11-12 Werner Lemberg <wl@gnu.org>
  2077. [truetype] Fix last `truetype' commit.
  2078. * src/truetype/ttgload.c (tt_get_metrics): Preserve stream position.
  2079. Return error value.
  2080. (load_truetype_glyph): Updated.
  2081. 2013-11-10 Werner Lemberg <wl@gnu.org>
  2082. * docs/CMAKE: New dummy file.
  2083. 2013-11-08 Dave Arnold <darnold@adobe.com>
  2084. [cff] Fix for hints that touch.
  2085. * src/cff/cf2hints.c (cf2_hintmap_insertHint): Fix condition for
  2086. finding index value of insertion point.
  2087. 2013-11-06 Werner Lemberg <wl@gnu.org>
  2088. [truetype] Fix handling of phantom points in composite glyphs.
  2089. Problem reported by Nigel Tao <nigeltao@golang.org>.
  2090. This is a follow-up commit to the previous one.
  2091. * src/truetype/ttgload.c (load_truetype_glyph): Call
  2092. `tt_get_metrics' after loading the glyph header.
  2093. 2013-11-06 Werner Lemberg <wl@gnu.org>
  2094. [truetype] Improve emulation of vertical metrics.
  2095. This commit also improves the start values of vertical phantom
  2096. points. Kudos to Greg Hitchcock for help.
  2097. * src/truetype/ttgload.c (TT_Get_VMetrics): Add parameter to pass
  2098. `yMax' value. Replace code with fixed Microsoft definition.
  2099. (tt_get_metrics): Updated.
  2100. (TT_LOADER_SET_PP): Add explanation how to initialize phantom
  2101. points, taken from both the OpenType specification and private
  2102. communication with Greg (which will eventually be added to the
  2103. standard).
  2104. Fix horizontal position of `pp3' and `pp4'.
  2105. * src/truetype/ttgload.h: Updated.
  2106. * src/truetype/ttdriver.c (tt_get_advances): Updated.
  2107. * docs/CHANGES: Updated.
  2108. 2013-11-05 Werner Lemberg <wl@gnu.org>
  2109. * builds/windows/vc2010/freetype.vcxproj: s/v110/v100/.
  2110. PlatformToolSet version 110 is for VC2012.
  2111. Problem reported (with solution) by Dave Arnold <darnold@adobe.com>.
  2112. 2013-11-05 Werner Lemberg <wl@gnu.org>
  2113. [truetype] Correctly reset point tags for glyph components.
  2114. Problem reported by Nigel Tao <nigeltao@golang.org>.
  2115. * src/truetype/ttgload.c (TT_Process_Composite_Glyph): Fix loop.
  2116. 2013-11-02 Werner Lemberg <wl@gnu.org>
  2117. [truetype] Fix GETINFO opcode handling of subpixel hinting bits.
  2118. * src/truetype/ttinterp.c (Ins_GETINFO): Don't request bit 6 set to
  2119. get info on subpixel hinting.
  2120. * docs/CHANGES: Updated.
  2121. 2013-11-02 Werner Lemberg <wl@gnu.org>
  2122. Fix Savannah bug #40451.
  2123. Simply apply the patch from the bug report.
  2124. * builds/unix/ftconfig.in, builds/vms/ftconfig.h,
  2125. include/freetype/config/ftconfig.h: The used #pragma directives only
  2126. work with gcc versions 4.6 and higher.
  2127. 2013-11-01 Werner Lemberg <wl@gnu.org>
  2128. * docs/CHANGES: Updated.
  2129. 2013-11-01 Werner Lemberg <wl@gnu.org>
  2130. [truetype] Minor code refactoring.
  2131. Two benefits: The allocated FDEF (and IDEF) array gets slightly
  2132. smaller, and the `ttdebug' demo program has access to function
  2133. numbers without additional costs.
  2134. Fortunately, no changes to FontForge are necessary – this is the
  2135. only external TrueType debugger I know of, but others may exist and
  2136. should check the code accordingly.
  2137. * src/truetype/ttinterp.h (TT_CallRec): Replace `Cur_Restart' and
  2138. `Cur_End' with a pointer to the corresponding `TT_DefRecord'
  2139. structure.
  2140. * src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF, Ins_ENDF,
  2141. Ins_CALL, Ins_LOOPCALL, Ins_UNKNOWN, TT_RunIns <Invalid_Opcode>):
  2142. Updated.
  2143. 2013-10-27 Werner Lemberg <wl@gnu.org>
  2144. [sfnt] Implement support for `OS/2' table version 5.
  2145. See
  2146. http://typedrawers.com/discussion/470/new-microsoft-size-specific-design-selection-mechanism
  2147. for the announcement.
  2148. * include/freetype/tttables.h (TT_OS2): Add fields
  2149. `usLowerPointSize' and `usUpperPointSize'. Since FreeType returns
  2150. this structure only as a pointer through `FT_Get_Sfnt_Table', there
  2151. shouldn't be any ABI problems.
  2152. * src/sfnt/ttload.c (tt_face_load_os2): Implement it.
  2153. * docs/CHANGES: Updated.
  2154. 2013-10-24 Werner Lemberg <wl@gnu.org>
  2155. * README.git, docs/CHANGES, docs/INSTALL: Updated.
  2156. 2013-10-24 John Cary <cary@txcorp.com>
  2157. Provide cmake support.
  2158. * CMakeLists.txt: New file.
  2159. 2013-10-23 Kenneth Miller <kennethadammiller@yahoo.com>
  2160. Werner Lemberg <wl@gnu.org>
  2161. Provide support for x64 builds in Visual C++ project files.
  2162. * src/builds/win32: Renamed to...
  2163. * src/builds/windows: This.
  2164. * src/builds/windows/vc2010/*: Updated to handle x64 target.
  2165. * src/builds/windows/*.mk, docs/INSTALL.GNU: s/win32/windows/ where
  2166. appropriate.
  2167. 2013-10-22 Werner Lemberg <wl@gnu.org>
  2168. * src/base/md5.c, src/base/md5.h: Updated to recent version.
  2169. * src/base/ftobjs.c: Updated; `md5.c' no longer uses `free'.
  2170. The canonical URL to get updates for this file is
  2171. https://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/popa3d/popa3d/md5/
  2172. as the author told me in private communication.
  2173. 2013-10-19 Werner Lemberg <wl@gnu.org>
  2174. [autofit] s/SMALL_TOP/X_HEIGHT/.
  2175. * src/autofit/afblue.dat: Updated.
  2176. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  2177. * src/autofit/aflatin.c, src/autofit/aflatin.h,
  2178. src/autofit/aflatin2.c: Updated.
  2179. 2013-10-19 Werner Lemberg <wl@gnu.org>
  2180. * src/autofit/afblue.dat: s/MINOR/DESCENDER/.
  2181. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  2182. 2013-10-16 Werner Lemberg <wl@gnu.org>
  2183. [autofit] Add description strings to script entries.
  2184. Currently, this is unused.
  2185. * src/autofit/afscript.h: Do it.
  2186. * src/autofit/afglobal.c, src/autofit/afpic.c,
  2187. src/autofit/aftypes.h: Updated.
  2188. 2013-10-16 Werner Lemberg <wl@gnu.org>
  2189. [autofit] Improve tracing message for extra light flag.
  2190. * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Do it.
  2191. 2013-10-15 Chongyu Zhu <lembacon@gmail.com>
  2192. [arm] Fix thumb2 inline assembly under LLVM.
  2193. When using `ADD' with an immediate operand, the instruction is
  2194. actually `ADD Rd, Rn, #<imm12>', that is, the maximum of the
  2195. immediate operand cannot exceed 4095. It will fail to compile with
  2196. LLVM.
  2197. However, in GCC, due to some legacy compatibility considerations,
  2198. `ADD.W' will be automatically emitted when the immediate operand is
  2199. larger than 4095.
  2200. * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
  2201. (FT_MulFix_arm) [__GNUC__]: Support clang compiler.
  2202. * src/truetype/ttinterp.c (TT_MulFix14_arm) [__GNUC__]: Ditto.
  2203. 2013-10-12 Werner Lemberg <wl@gnu.org>
  2204. [autofit] Improve tracing of `latin' hinter.
  2205. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Report blue
  2206. zone types.
  2207. (af_latin_metrics_scale_dim): Report scaling changes due to x height
  2208. alignment.
  2209. Report scaled stroke width and blue zone values.
  2210. 2013-10-03 Dave Arnold <darnold@adobe.com>
  2211. * src/cff/cf2font.c (cf2_computeDarkening): Avoid division by zero.
  2212. Note that the old code avoided using a region of the piecewise
  2213. linear function where the slope was zero. The recovery was to use a
  2214. different section of the function, which produced a different,
  2215. incorrect amount of darkening.
  2216. 2013-10-02 Darrell Bellert <darrell.bellert@hl.konicaminolta.us>
  2217. * src/sfnt/ttload.c (tt_face_load_pclt): Fix `pclt_fields'.
  2218. 2013-10-02 Dave Arnold <darnold@adobe.com>
  2219. * src/cff/cf2font.c (cf2_computeDarkening): Initialize darkenAmount.
  2220. This line was lost in commit 89ca1fd6 (from 2013-06-25). The effect
  2221. is to use a previous darkening amount when producing an unhinted,
  2222. unscaled outline. This can cause autohint samples in ftgrid and
  2223. ftview to be based on darkened CFF outlines instead of unhinted,
  2224. undarkened ones.
  2225. 2013-09-29 Dave Arnold <darnold@adobe.com>
  2226. Fix Savannah bug #39295.
  2227. The bug was caused by switching to the initial hintmap (the one in
  2228. effect when `moveto' executes) just before drawing the final element
  2229. in the charstring. This ensured that the path was closed (in both
  2230. Character Space and Device Space). But if the final element was a
  2231. curve and if the final hintmap was different enough from the initial
  2232. one, then the curve was visibly distorted.
  2233. The first part of the fix is to draw the final curve using the final
  2234. hintmap as specified by the charstring. This corrects the
  2235. distortion but does not ensure closing in Device Space. It may
  2236. require the rasterizer to automatically generate an extra closing
  2237. line. Depending on the hintmap differences, this line could be from
  2238. zero to a couple pixels in length.
  2239. The second part of the fix covers the case where the charstring
  2240. subpath is closed with an explicit line. We now modify that line's
  2241. end point to avoid the distortion.
  2242. Some glyphs in the bug report font (TexGyreHeros-Regular) that show
  2243. the change are:
  2244. 25ppem S (98)
  2245. 24ppem eight (52)
  2246. 25.5ppem p (85)
  2247. Curves at the *end* of a subpath are no longer distorted. However,
  2248. some of these glyphs have bad hint substitutions in the middle of a
  2249. subpath, and these are not affected.
  2250. The patch has been tested with a set of 106 fonts that shipped with
  2251. Adobe Creative Suite 4, together with 756 Open Source CFF fonts from
  2252. Google Fonts. There are 1.5 million glyphs, of which some 20k are
  2253. changed with the fix. A sampling of a few hundred of these changes
  2254. have been examined more closely, and the changes look good (or at
  2255. least acceptable).
  2256. * src/cff/cf2hints.h (CF2_GlyphPathRec): New element `pathIsClosing'
  2257. to indicate that we synthesize a closepath line.
  2258. * src/cff/cf2hints.c (cf2_glyphpath_init): Updated.
  2259. (cf2_glyphpath_pushPrevElem): If closing, use first hint map (for
  2260. `lineto' operator) and adjust hint zone.
  2261. For synthesized closing lines, use end point in first hint zone.
  2262. (cf2_glyphpath_lineTo): Take care of synthesized closing lines. In
  2263. particular, shift the detection of zero-length lines from character
  2264. space to device space.
  2265. (cf2_glyphpath_closeOpenPath): Remove assertion.
  2266. Updated.
  2267. 2013-09-25 Werner Lemberg <wl@gnu.org>
  2268. * src/autofit/aflatin.c (af_{grek,cyrl}_uniranges): Fix arrays.
  2269. 2013-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2270. [bdf, pcf] Refuse non-zero face_index.
  2271. Suggested by Akira Tagoh, see
  2272. https://lists.gnu.org/archive/html/freetype/2013-09/msg00030.html
  2273. * src/bdf/bdfdrivr.c (BDF_Face_Init): Return `Invalid_Argument'
  2274. error if the font could be opened but non-zero `face_index' is
  2275. given.
  2276. * src/pcf/pcfdrivr.c (PCF_Face_Init): Ditto.
  2277. * src/type42/t42objs.c (T42_Face_Init): Remove unrequired FT_UNUSED
  2278. macro for `face_index' because it is validated later.
  2279. 2013-09-23 Werner Lemberg <wl@gnu.org>
  2280. Fix Savannah bug #40090.
  2281. * src/autofit/afcjk.c (af_cjk_metrics_scale): Revert commit
  2282. 306f8c5d (from 2013-08-25) affecting this function.
  2283. 2013-09-22 Werner Lemberg <wl@gnu.org>
  2284. [autofit] Disunify Cyrillic and Greek handling from Latin.
  2285. * src/autofit/afscript.h: Add Cyrillic and Greek.
  2286. * src/autofit/afblue.dat (AF_BLUE_STRINGSET_GREK,
  2287. AF_BLUE_STRINGSET_CYRL): Add blue zones for Greek and Cyrillic.
  2288. (AF_BLUE_STRINGSET_LATN): Fix typo.
  2289. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  2290. * src/autofit/aflatin.c (af_grek_uniranges, af_cyrl_uniranges): New
  2291. arrays.
  2292. (af_grek_script_class, af_cyrl_script_class): New scripts.
  2293. * src/autofit/aflatin.h: Updated.
  2294. 2013-09-20 Werner Lemberg <wl@gnu.org>
  2295. * docs/CHANGES: Updated.
  2296. 2013-09-20 Behdad Esfahbod <behdad@behdad.org>
  2297. Fix vertical size of emboldened glyphs.
  2298. Cf. https://bugzilla.gnome.org/show_bug.cgi?id=686709
  2299. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Adjust `horiBearingY'
  2300. also.
  2301. 2013-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
  2302. * include/freetype/ftoutln.h: Correct FT_Outline_Get_Orientation
  2303. algorithm description.
  2304. 2013-09-11 Werner Lemberg <wl@gnu.org>
  2305. [autofit] Improve Hebrew rendering.
  2306. This change introduces a new blue zone property
  2307. `AF_BLUE_PROPERTY_LATIN_LONG' to make the auto-hinter ignore short
  2308. top segments.
  2309. * src/autofit/afblue.dat: Fix Hebrew blue strings.
  2310. Use AF_BLUE_PROPERTY_LATIN_LONG for AF_BLUE_STRING_HEBREW_TOP.
  2311. * src/autofit/afblue.hin (AF_BLUE_PROPERTY_LATIN_LONG): New macro.
  2312. * src/autofit/afblue.c, src/autofit/afblue.h: Updated.
  2313. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Handle
  2314. `AF_LATIN_IS_LONG_BLUE'.
  2315. * src/autofit/aflatin.h (AF_LATIN_IS_LONG_BLUE): New macro.
  2316. 2013-08-28 Behdad Esfahbod <behdad@google.com>
  2317. [sfnt] Fix frame access while reading WOFF table directory.
  2318. * src/sfnt/sfobjs.c (woff_open_font): Using single memory frame
  2319. while reading the directory entries for the whole loop.
  2320. 2013-08-29 Werner Lemberg <wl@gnu.org>
  2321. Behdad Esfahbod <behdad@google.com>
  2322. Implement support for WOFF containers.
  2323. We simply synthesize a SFNT from the WOFF, create a memory stream
  2324. for the new data, and load the SFNT as usual.
  2325. Does NOT add any API to access WOFF metadata or private blocks.
  2326. * include/freetype/internal/tttypes.h (WOFF_HeaderRec,
  2327. WOFF_TableRec): New structures.
  2328. * include/freetype/tttags.h (TTAG_wOFF): New macro.
  2329. * src/base/ftobjs.c (FT_Open_Face): Set `stream' after calling
  2330. `open_face'.
  2331. * src/sfnt/sfobjs.c [FT_CONFIG_OPTION_SYSTEM_ZLIB]: Include
  2332. `FT_GZIP_H'.
  2333. (WRITE_BYTE, WRITE_USHORT, WRITE_ULONG): New temporary macros for
  2334. writing to a stream.
  2335. (sfnt_stream_close, compare_offsets, woff_open_font): New functions.
  2336. (sfnt_open_font): Handle `TTAG_wOFF'.
  2337. (sfnt_init_face): Set `stream' after calling `sfnt_open_font'.
  2338. * src/truetype/ttobjs.c (tt_face_init): Set `stream' after calling
  2339. `sfnt->init_face'.
  2340. * src/base/ftobjs.c (open_face): Use a pointer to FT_Stream as an
  2341. argument so that a changed stream survives.
  2342. Update callers.
  2343. 2013-08-28 Werner Lemberg <wl@gnu.org>
  2344. [gzip] New function `FT_Gzip_Uncompress'.
  2345. This is modeled after zlib's `uncompress' function. We need this
  2346. for WOFF support.
  2347. * include/freetype/ftgzip.h, src/gzip/ftgzip.c (FT_Gzip_Uncompress):
  2348. New function.
  2349. * src/gzip/rules.mk: Rewrite to better reflect dependencies.
  2350. 2013-08-28 Werner Lemberg <wl@gnu.org>
  2351. [autofit] Fix `make multi' compilation.
  2352. * src/autofit/afblue.cin, src/autofit/afblue.c: Don't include
  2353. `afblue.h' but `aftypes.h'.
  2354. * src/autofit/afcjk.c: Don't include `aftypes.h' but `afglobal.h'.
  2355. 2013-08-28 Werner Lemberg <wl@gnu.org>
  2356. [autofit] Fix C++ compilation.
  2357. * src/autofit/afglobal.c (af_face_globals_get_metrics),
  2358. src/autofit/afdummy.c (af_dflt_script_class), src/autofit/afindic.c
  2359. (af_deva_script_class): Use proper casts.
  2360. 2013-08-27 Behdad Esfahbod <behdad@google.com>
  2361. * src/sfnt/ttload.c (tt_face_load_font_dir): Fix sign typos.
  2362. 2013-08-27 Behdad Esfahbod <behdad@google.com>
  2363. FT_Open_Face: Improve external stream handling.
  2364. If the font's `clazz->init_face' function wants to swap to new
  2365. stream, handling of whether original stream was external could
  2366. result to either memory leak or double free. Mark externality into
  2367. face flags before calling `init_face' such that the clazz can handle
  2368. external streams properly.
  2369. * src/base/ftobjs.c (FT_Open_Face): Move code to set
  2370. FT_FACE_FLAG_EXTERNAL_STREAM to...
  2371. (open_face): This function.
  2372. 2013-08-27 Werner Lemberg <wl@gnu.org>
  2373. Remove `FT_SqrtFixed' function.
  2374. It's no longer used.
  2375. * include/freetype/internal/ftcalc.h, src/base/ftcalc.c: Do it.
  2376. 2013-08-27 Werner Lemberg <wl@gnu.org>
  2377. [autofit] While tracing, report script names instead of ID values.
  2378. * src/autofit/afglobal.c (af_script_names) [FT_DEBUG_LEVEL_TRACE]:
  2379. New array.
  2380. * src/autofit/afglobal.h: Updated.
  2381. * src/autofit/afcjk.c (af_cjk_metrics_init_widths,
  2382. af_cjk_hint_edges): Use `af_script_names'.
  2383. * src/autofit/aflatin.c (af_latin_metrics_init_widths,
  2384. af_latin_hint_edges): Ditto.
  2385. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2386. [autofit] Report used script while hinting a glyph.
  2387. * src/autofit/afcjk.c (af_cjk_hint_edges), src/autofit/aflatin.c
  2388. (af_latin_hint_edges): Implement it.
  2389. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2390. [autofit] Add support for Hebrew script.
  2391. * src/autofit/afblue.dat: Add blue strings for Hebrew.
  2392. * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
  2393. * src/autofit/aflatin.c (af_hebr_uniranges): New array.
  2394. (af_hebr_script_class): New script.
  2395. * src/autofit/aflatin.h, src/autofit/afscript.h: Updated.
  2396. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2397. [autofit] Improve tracing messages.
  2398. * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Mention script
  2399. ID in tracing message.
  2400. (af_cjk_metrics_init_blues): Initialize `axis' outside of the inner
  2401. loop.
  2402. Improve tracing messages.
  2403. (af_cjk_hint_edges) [FT_DEBUG_LEVEL_TRACE]: New variable
  2404. `num_actions' to count hinting actions.
  2405. Improve tracing messages.
  2406. * src/autofit/aflatin.c (af_latin_metrics_init_widths): Mention
  2407. script ID in tracing message.
  2408. (af_latin_metrics_init_blues, af_latin_hint_edges): Improve tracing
  2409. messages.
  2410. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2411. Better tracing of loaded glyphs.
  2412. Previously, the loading of a glyph was traced at level 4, if at all.
  2413. With this change, all font loading routines emit a tracing message
  2414. at level 1, making it easier to select tracing output (for example
  2415. using F2_DEBUG="any:1 afhints:7 aflatin:7").
  2416. * src/bdf/bdfdrivr.c (BDF_Glyph_Load): Add tracing message.
  2417. * src/cff/cffdrivr.c (cff_glyph_load): Ditto.
  2418. * src/cff/cffgload.c (cff_decoder_prepare): Improve tracing
  2419. messages.
  2420. * src/cid/cidgload.c (cid_load_glyph): Use level 1 for tracing
  2421. message.
  2422. * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Ditto.
  2423. * src/pfr/pfrobjs.c (pfr_slot_load): Add tracing message.
  2424. * src/truetype/ttgload.c (TT_Load_Glyph): Ditto.
  2425. * src/type1/t1gload.c (T1_Load_Glyph): Ditto.
  2426. * src/type42/t42objs.c (T42_GlyphSlot_Load): Ditto.
  2427. * src/winfonts/winfnt.c (FNT_Load_Glyph): Ditto.
  2428. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2429. [autofit] Fix script selection.
  2430. * src/autofit/afglobal.c (af_face_globals_get_metrics): Use
  2431. `AF_SCRIPT_DFLT', not value 0.
  2432. Simplify code.
  2433. * src/autofit/afscript.h: Sort by script name.
  2434. 2013-08-26 Werner Lemberg <wl@gnu.org>
  2435. [autofit] Make `dummy' hinter work as expected.
  2436. * src/autofit/afdummy.c (af_dummy_hints_init): Properly set scaling
  2437. information.
  2438. (af_dummy_hints_apply): Scale the glyphs.
  2439. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2440. [autofit] Make `cjk' module use blue stringsets.
  2441. * src/autofit/afcjk.c (AF_CJK_MAX_TEST_CHARACTERS): Removed.
  2442. (af_cjk_hani_blue_chars): Removed.
  2443. (AF_CJK_BLUE_TYPE_*): Removed.
  2444. (af_cjk_metrics_init_blues): Replace AF_CJK_MAX_TEST_CHARACTERS with
  2445. AF_BLUE_STRING_MAX_LEN.
  2446. Change loops to use offsets (in file `afblue.h') into the new arrays
  2447. `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c').
  2448. Instead of three dimensions (as used in the old blue string array)
  2449. we now use properties to do the same, saving one loop nesting level.
  2450. * src/autofit/afcjk.h: Remove old enumeration values superseded by
  2451. the new data in `afblue.h'.
  2452. (AF_CJK_IS_TOP_BLUE, AF_CJK_IS_HORIZ_BLUE, AF_CJK_IS_FILLED_BLUE,
  2453. AF_CJK_IS_RIGHT_BLUE): New macros, to be used in
  2454. `af_cjk_metrics_init_blues'.
  2455. (AF_CJK_BLUE_IS_RIGHT): Remove this now redundant enum value.
  2456. (AF_CJK_BLUE_IS_TOP): Renamed to...
  2457. (AF_CJK_BLUE_TOP): This.
  2458. (AF_CJK_MAX_BLUES): Remove.
  2459. (AF_CJKAxisRec): Updated.
  2460. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2461. [autofit] Typo.
  2462. * src/autofit/afblue.hin, src/autofit/afblue.c (GET_UTF8_CHAR): Use
  2463. cast.
  2464. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2465. [autofit] Synchronize `cjk' with `latin' module (and vice versa).
  2466. * src/autofit/afcjk.c (af_cjk_metrics_init_widths): Add tracing
  2467. messages.
  2468. (af_cjk_metrics_init_blues): Don't pass blue string array as
  2469. argument but use the global array directly.
  2470. Use `outline' directly.
  2471. Update and add tracing messages.
  2472. (af_cjk_metrics_init): Simplify code.
  2473. (af_cjk_metrics_scale_dim): Improve tracing message.
  2474. (af_cjk_metrics_scale): Synchronize.
  2475. * src/autofit/aflatin.c (af_latin_metrics_init_widths,
  2476. af_latin_metrics_init_blues): Improve and add tracing messages.
  2477. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2478. [autofit] Make `latin' module use blue stringsets.
  2479. * src/autofit/aflatin.c (AF_LATIN_MAX_TEST_CHARACTERS): Removed.
  2480. (af_latin_blue_chars): Removed.
  2481. (af_latin_metrics_init_blues): Replace AF_LATIN_MAX_TEST_CHARACTERS
  2482. with AF_BLUE_STRING_MAX_LEN.
  2483. Change loops to use offsets (in file `afblue.h') into the new arrays
  2484. `af_blue_stringsets' and `af_blue_strings' (in file `afblue.c').
  2485. Use `AF_LATIN_IS_SMALL_TOP_BLUE' macro.
  2486. * src/autofit/aflatin.h: Remove old enumeration values superseded by
  2487. the new data in `afblue.h'.
  2488. (AF_LATIN_IS_TOP_BLUE): Updated definition.
  2489. (AF_LATIN_IS_SMALL_TOP_BLUE): New macro.
  2490. (AF_LATIN_MAX_BLUES): Remove.
  2491. (AF_LatinAxisRec): Updated.
  2492. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2493. [autofit] Add blue stringsets.
  2494. * src/autofit/aftypes.h: Include `afblue.h'.
  2495. (AF_ScriptClassRec): Add `blue_stringset' field.
  2496. (AF_DEFINE_SCRIPT_CLASS): Updated.
  2497. * src/autofit/autofit.c: Include `afblue.c'.
  2498. * src/autofit/afcjk.c (af_hani_script_class), src/autofit/afdummy.c
  2499. (af_dflt_script_class), src/autofit/afindic.c
  2500. (af_deva_script_class), src/autofit/aflatin.c
  2501. (af_latn_script_class), src/autofit/aflatin2.c
  2502. (af_ltn2_script_class): Updated.
  2503. * src/autofit/rules.mk (AUTOF_DRV_SRC): Add `afblue.c'.
  2504. 2013-08-25 Werner Lemberg <wl@gnu.org>
  2505. [autofit] Introduce data file for blue strings.
  2506. The idea is to have a central file which gets processed by a Perl
  2507. script to create proper `.c' and `.h' files using templates. There
  2508. are two other reasons to do that:
  2509. . The data file should be easily readable. We use UTF-8 encoding
  2510. which then gets converted to single bytes.
  2511. . Since the number of supported scripts will increase soon, the
  2512. current usage of blue string arrays is a waste of space. Using
  2513. the Perl script it is possible to imitate jagged arrays,
  2514. defining enumeration constants as offsets into the arrays.
  2515. This commit only adds files without changing any functionality.
  2516. * src/autofit/afblue.dat: New data file.
  2517. * src/tools/afblue.pl: New Perl script for processing `afblue.dat'.
  2518. * src/autofit/afblue.cin, src/autofit/afblue.hin: New template files
  2519. for...
  2520. * src/autofit/afblue.c, src/autofit/afblue.c: New source files.
  2521. To avoid a dependency on Perl, we add them too.
  2522. 2013-08-19 Alexei Podtelezhnikov <apodtele@gmail.com>
  2523. [base] Enable new algorithm for `BBox_Cubic_Check'.
  2524. * src/base/ftbbox.c: Enable new BBox_Cubic_Check algorithm, remove
  2525. the old one.
  2526. Improve comments.
  2527. 2013-08-18 Werner Lemberg <wl@gnu.org>
  2528. * builds/unix/unix-def.in (freetype2.pc): Don't set executable bit.
  2529. 2013-08-18 Werner Lemberg <wl@gnu.org>
  2530. Fix Savannah bug #39804.
  2531. * builds/unix/configure.raw (LIBPNG): Define and export.
  2532. * builds/unix/freetype-config.in, builds/unix/freetype2.in: Handle
  2533. libpng.
  2534. 2013-08-17 Alexei Podtelezhnikov <apodtele@gmail.com>
  2535. [base] Clean up BBox_Conic_Check.
  2536. * src/base/ftbbox.c (BBox_Conic_Check): Remove redundant checks for
  2537. extremum at the segment ends, which are already within the bbox.
  2538. Slightly modify calculations.
  2539. 2013-08-15 Alexei Podtelezhnikov <apodtele@gmail.com>
  2540. [base] Finish experimental (disabled) BBox_Cubic_Check implementation.
  2541. * src/base/ftbbox.c (BBox_Cubic_Check): Scale arguments to improve
  2542. accuracy and avoid overflows.
  2543. 2013-08-13 Alexei Podtelezhnikov <apodtele@gmail.com>
  2544. [base] Refactor experimental (disabled) BBox_Cubic_Check.
  2545. * src/base/ftbbox.c (BBox_Cubic_Check): Implement the minimum search
  2546. as the mirror image of the maximum search implemented here...
  2547. (update_max): New function.
  2548. 2013-08-06 John Tytgat <John.Tytgat@esko.com>
  2549. Fix Savannah bug #39702.
  2550. * src/cff/cffload.c (cff_index_get_pointers): Check for `cur_offset
  2551. != 0'; this stronger test is mandated by the CFF specification.
  2552. Fix test for INDEX structures which have one or more empty entries
  2553. at the end.
  2554. 2013-08-05 Werner Lemberg <wl@gnu.org>
  2555. Fix gcc pragmas, part 2.
  2556. * src/truetype/ttinterp.c (TT_MulFix14_long_long,
  2557. TT_DotFix14_long_long): `#pragma gcc diagnostic {push,pop}' has been
  2558. introduced with gcc version 4.6.
  2559. 2013-08-05 Werner Lemberg <wl@gnu.org>
  2560. Fix gcc pragmas.
  2561. * src/truetype/ttinterp.c (TT_MulFix14_long_long,
  2562. TT_DotFix14_long_long): Older gcc versions don't accept diagnostic
  2563. pragmas within a function body.
  2564. 2013-08-05 Werner Lemberg <wl@gnu.org>
  2565. Fix Savannah bug #39700.
  2566. * builds/unix/ftconfig.h: Synchronize with
  2567. `include/freetype/config/ftconfig.h'.
  2568. * builds/vms/ftconfig.h: Ditto.
  2569. Make the differences to the master `ftconfig.h' file as small as
  2570. possible for easier maintenance.
  2571. 2013-08-05 Werner Lemberg <wl@gnu.org>
  2572. [autofit] Improve handling of `near' points.
  2573. Points which are very near to each other are now marked as such.
  2574. The `weak' flag is then computed by using the `in' vector of the
  2575. first and the `out' vector of the last point of a group of near
  2576. points.
  2577. For example, this fixes the rendering of glyph `Oslash' in
  2578. `Roboto-Thin.ttf'.
  2579. * src/autofit/afhints.h (AF_Flags): New value `AF_FLAGS_NEAR'.
  2580. * src/autofit/afhints.c (af_glyph_hints_reload): Introduce
  2581. the heuristic value `near_limit' to decide whether the current point
  2582. is near to the previous one, then set `AF_FLAG_NEAR' accordingly.
  2583. Store good `in' vector (of last non-near point) in
  2584. `last_good_in_{x,y}' and use it as an argument to
  2585. `ft_corner_is_flat' if necessary.
  2586. 2013-08-02 Werner Lemberg <wl@gnu.org>
  2587. * include/freetype/ftcffdrv.h: Improve documentation.
  2588. This is based on blog entries from David Lemon and Dave Arnold (both
  2589. from Adobe) with kind permission. Dave also helped in
  2590. proof-reading.
  2591. 2013-08-02 Werner Lemberg <wl@gnu.org>
  2592. [autofit] Move declaration of scripts into separate file.
  2593. This has the benefit that we don't need to duplicate the data at
  2594. different places.
  2595. * src/autofit/afscript.h: New file.
  2596. * src/autofit/aftypes.h (AF_Script): Include `afscript.h' to define
  2597. the enumeration values.
  2598. * src/autofit/afglobal.c: Include `afscript.h' to get the script
  2599. specific header files.
  2600. (af_script_classes): Include `afscript.h' to fill this array.
  2601. * src/autofit/afpic.c: Include `afscript.h' to get the script
  2602. specific header files.
  2603. (autofit_module_class_pic_init): Include `afscript.h' for
  2604. initialization.
  2605. * src/autofit/afpic.h (AF_SCRIPT_CLASSES_COUNT,
  2606. AF_SCRIPT_CLASSES_REC_COUNT): Removed. Use `AF_SCRIPT_MAX' instead.
  2607. * src/autofit/rules.mk (AUTOF_DRV_H): Updated.
  2608. 2013-08-02 Werner Lemberg <wl@gnu.org>
  2609. [autofit] Move declaration of writing systems into separate file.
  2610. This has the benefit that we don't need to duplicate the data at
  2611. different places.
  2612. * src/autofit/afwrtsys.h: New file.
  2613. * src/autofit/aftypes.h (AF_WritingSystem): Include `afwrtsys.h' to
  2614. define the enumeration values.
  2615. * src/autofit/afglobal.c: Include `afwrtsys.h' to get the writing
  2616. system specific header files.
  2617. Include `afpic.h'.
  2618. (af_writing_system_classes): Include `afwrtsys.h' to fill this
  2619. array.
  2620. * src/autofit/afpic.c: Include `afwrtsys.h' to get the writing
  2621. system specific header files.
  2622. (autofit_module_class_pic_init): Include `afwrtsys.h' for
  2623. initialization.
  2624. * src/autofit/afpic.h (AF_WRITING_SYSTEM_CLASSES_COUNT,
  2625. AF_WRITING_SYSTEM_CLASSES_REC_COUNT): Removed. Use
  2626. `AF_WRITING_SYSTEM_MAX' instead.
  2627. 2013-08-02 Werner Lemberg <wl@gnu.org>
  2628. [sfnt] Fix compilation with g++.
  2629. * src/sfnt/pngshim.c (error_callback, read_data_from_FT_stream): Use
  2630. cast.
  2631. (Load_SBit_Png): Pacify compiler.
  2632. 2013-08-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2633. Werner Lemberg <wl@gnu.org>
  2634. [autofit] Fix `make multi'.
  2635. * include/freetype/config/ftconfig.h (FT_LOCAL_ARRAY,
  2636. FT_LOCAL_ARRAY_DEF): New macros.
  2637. * src/autofit/afglobal.c (af_writing_system_classes,
  2638. af_script_classes): Use FT_LOCAL_ARRAY_DEF.
  2639. * src/autofit/afglobal.h: Declare `af_writing_system_classes' and
  2640. `af_script_classes'.
  2641. * src/autofit/afloader.c: Include `afpic.h'.
  2642. 2013-08-01 Werner Lemberg <wl@gnu.org>
  2643. Another round of cppcheck nitpicks.
  2644. The call was (from the top-level of the FreeType tree):
  2645. cppcheck --force \
  2646. --enable=all \
  2647. -I /usr/include \
  2648. -I /usr/local/include \
  2649. -I /usr/lib/gcc/i586-suse-linux/4.7/include \
  2650. -I include \
  2651. -I include/freetype \
  2652. -I include/freetype/config \
  2653. -I include/freetype/internal \
  2654. -DFT2_BUILD_LIBRARY \
  2655. . &> cppcheck.log
  2656. using cppcheck git commit f7e93f99.
  2657. Note that cppcheck still can't handle `#include FOO' (with `FOO' a
  2658. macro).
  2659. */* Improve variable scopes.
  2660. */* Remove redundant initializations which get overwritten.
  2661. * src/gxvalid/*: Comment out redundant code or guard it with
  2662. FT_DEBUG_LEVEL_TRACE.
  2663. 2013-07-30 Werner Lemberg <wl@gnu.org>
  2664. [autofit] Introduce `writing systems'.
  2665. This patch adds a new top level to the auto-hinter's script class
  2666. hierarchy. It defines `writing systems' which can contain multiple
  2667. scripts.
  2668. For example, the `latin' writing system (in file `aflatin.c') is
  2669. able to support scripts like Latin, Cyrillic, Armenian, etc., which
  2670. can be handled similarly.
  2671. Scripts are now named using four-letter OpenType tags.
  2672. * src/autofit/aftypes.h (AF_ScriptClassRec): Move relevant members
  2673. to...
  2674. (AF_WritingSystemClassRec): This new structure. It holds pointers
  2675. to functions which can be shared among related scripts.
  2676. (AF_WritingSystem): New enumeration.
  2677. (AF_Script): Revised values using four-letter tags.
  2678. (AF_DEFINE_WRITING_SYSTEM_CLASS): New macro.
  2679. (AF_DEFINE_SCRIPT_CLASS): Updated.
  2680. * src/autofit/afglobal.c (af_writing_system_classes): New global,
  2681. constant array.
  2682. (af_script_classes): Updated.
  2683. (af_face_globals_free): Updated.
  2684. Remove assertion.
  2685. (af_face_globals_get_metrics): Updated.
  2686. * src/autofit/afglobal.h (AF_SCRIPT_FALLBACK)
  2687. [!AF_CONFIG_OPTION_CJK]: Handle this case.
  2688. * src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
  2689. Updated.
  2690. * src/autofit/afpic.c (autofit_module_class_pic_init): Updated;
  2691. initialize structures for both writing systems and scripts.
  2692. * src/autofit/afpic.h: Updated.
  2693. (AF_WRITING_SYSTEM_CLASSES_GET): New macro.
  2694. * src/autofit/afcjk.c (af_cjk_writing_system_class): New writing
  2695. system.
  2696. (af_cjk_uniranges): Renamed to...
  2697. (af_hani_uniranges): This.
  2698. (af_cjk_script_class): Reduced and renamed to...
  2699. (af_hani_script_class): This.
  2700. * src/autofit/afcjk.h: Updated.
  2701. * src/autofit/afdummy.c (af_dummy_writing_system_class): New writing
  2702. system.
  2703. (af_dummy_script_class): Reduced and renamed to...
  2704. (af_dflt_script_class): This.
  2705. * src/autofit/afdummy.h: Updated.
  2706. * src/autofit/afindic.c (af_indic_writing_system_class): New writing
  2707. system.
  2708. (af_indic_uniranges): Renamed to...
  2709. (af_deva_uniranges): This.
  2710. (af_indic_script_class): Reduced and renamed to...
  2711. (af_deva_script_class): This.
  2712. * src/autofit/afcjk.h: Updated.
  2713. * src/autofit/aflatin.c (af_latin_writing_system_class): New writing
  2714. system.
  2715. (af_latin_uniranges): Renamed to...
  2716. (af_latn_uniranges): This.
  2717. (af_latin_script_class): Reduced and renamed to...
  2718. (af_latn_script_class): This.
  2719. * src/autofit/aflatin.h: Updated.
  2720. * src/autofit/aflatin2.c (af_latin2_writing_system_class): New
  2721. writing system.
  2722. (af_latin2_uniranges): Renamed to...
  2723. (af_ltn2_uniranges): This.
  2724. Synchronize ranges with `latin'.
  2725. (af_latin2_script_class): Reduced and renamed to...
  2726. (af_ltn2_script_class): This.
  2727. * src/autofit/aflatin2.h: Updated.
  2728. 2013-07-30 Werner Lemberg <wl@gnu.org>
  2729. [autofit] Variable renaming.
  2730. * src/autofit/aftypes.h (AF_ScriptMetricsRec):
  2731. s/clazz/script_class/.
  2732. Update all users.
  2733. 2013-07-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2734. Ignore libpng-config under cross-building configuration,
  2735. because it will return the flags for the hosting environment.
  2736. * builds/unix/configure.raw: Ignore libpng-config when
  2737. `cross_compiling' == yes.
  2738. 2013-07-30 Behdad Esfahbod <behdad@google.com>
  2739. Prevent division by zero by a transparent color.
  2740. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra):
  2741. Return 0 immediately, when alpha channel is zero.
  2742. 2013-07-25 Behdad Esfahbod <behdad@google.com>
  2743. Add FT_FACE_FLAG_COLOR and FT_HAS_COLOR.
  2744. Also disambiguate Google's color bitmap tables.
  2745. * include/freetype/freetype.h (FT_FACE_FLAG_COLOR, FT_HAS_COLOR):
  2746. New macros.
  2747. * include/freetype/internal/tttypes.h (TT_SbitTableType): Add
  2748. TT_SBIT_TABLE_TYPE_CBLC.
  2749. * src/sfnt/sfobjs.c (sfnt_load_face): Handle FT_FACE_FLAG_COLOR.
  2750. * src/sfnt/ttsbit.c (tt_face_load_sbit,
  2751. tt_face_load_strike_metrics, tt_face_load_sbit_image): Handle
  2752. TT_SBIT_TABLE_TYPE_CBLC.
  2753. 2013-07-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  2754. [sfnt] Fix for `make multi' target.
  2755. * src/sfnt/pngshim.c (Load_SBit_Png): Use FT_LOCAL_DEF().
  2756. 2013-07-20 Werner Lemberg <wl@gnu.org>
  2757. * docs/INSTALL.GNU: Updated.
  2758. 2013-07-20 Behdad Esfahbod <behdad@google.com>
  2759. [sfnt] Fix `sbix' table version handling.
  2760. * src/sfnt/ttsbit.c (tt_face_load_sbit) [TT_SBIT_TABLE_TYPE_SBIX]:
  2761. USHORT version numbers are to be considered as `minor'.
  2762. 2013-07-19 Werner Lemberg <wl@gnu.org>
  2763. [autofit] Fix segment classification for blue zones.
  2764. The old code (essentially unchanged since the very beginning)
  2765. incorrectly handled this configuration
  2766. x -o- x
  2767. / \
  2768. / \
  2769. / \
  2770. o o
  2771. as flat and this
  2772. o o
  2773. / /
  2774. x| x|
  2775. | |
  2776. o---------------o
  2777. as round. (`o' and `x' are on and off points, respectively).
  2778. This is a major change which should improve the rendering results
  2779. enormously for many TrueType fonts, especially in the range approx.
  2780. 20-40ppem, fixing the appearance of many overshoots.
  2781. * src/autofit/aflatin.c (af_latin_metrics_init_blues): Look at the
  2782. first and last points of the segment, not the points right before
  2783. and after.
  2784. 2013-07-19 Behdad Esfahbod <behdad@google.com>
  2785. [sfnt] `sbix' fix-ups.
  2786. * src/sfnt/sfobjs.c (sfnt_load_face): Apple's `sbix' color bitmaps
  2787. are rendered scaled and then the `glyf' outline rendered on top. We
  2788. don't support that yet, so just ignore the `glyf' outline and
  2789. advertise it as a bitmap-only font.
  2790. * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
  2791. [TT_SBIT_TABLE_TYPE_SBIX]: Return metrics in 26.6 units.
  2792. (tt_face_load_sbix_image): Typo.
  2793. 2013-07-18 Behdad Esfahbod <behdad@google.com>
  2794. [sfnt] Add support for Apple's `sbix' color bitmap table.
  2795. * include/freetype/internal/tttypes.h (TT_SBit_MetricsRec): Widen
  2796. fields to FT_Short and FT_UShort, respectively.
  2797. (TT_SbitTableType): New enumeration.
  2798. (TT_FaceRec): Add `sbit_table_type' field.
  2799. * include/freetype/tttags.h (TTAG_sbix): New macro.
  2800. * src/sfnt/pngshim.c (Load_SBit_Png): Pass a more generic
  2801. FT_GlyphSlot argument instead FT_Bitmap.
  2802. Add flag to control map and metrics handling.
  2803. Update all users.
  2804. * src/sfnt/ttsbit.c: Include `ttmtx.h'.
  2805. (tt_face_load_eblc): Renamed to...
  2806. (tt_face_load_sbit): This.
  2807. Handle `sbix' bitmaps.
  2808. (tt_face_free_eblc): Renamed to...
  2809. (tt_face_load_sbit): This.
  2810. Updated.
  2811. (tt_face_load_strike_metrics): Handle `sbix' bitmaps.
  2812. (tt_face_load_sbix_image): New function.
  2813. (tt_sbit_decoder_alloc_bitmap, tt_sbit_decoder_load_image,
  2814. tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned,
  2815. tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png,
  2816. tt_sbit_decoder_load_image, tt_sbit_decoder_load_bitmap): Don't pass
  2817. and handle load flags.
  2818. (tt_sbit_decoder_load_bitmap) [!FT_CONFIG_OPTION_USE_PNG]: Better
  2819. handle formats 17-19.
  2820. Move color to grayscale conversion to...
  2821. (tt_face_load_sbit_image): Here.
  2822. Handle `sbix' bitmaps.
  2823. * src/sfnt/pngshim.h: Updated.
  2824. * src/sfnt/ttsbit.h: Updated.
  2825. * src/sfnt/sfdriver.c: Updated.
  2826. 2013-07-18 Werner Lemberg <wl@gnu.org>
  2827. [sfnt] Ignore invalid magic number in `head' or `bhed'.
  2828. Other font engines seem to ignore it also. Problem reported by
  2829. Hin-Tak Leung <htl10@users.sourceforge.net>.
  2830. * src/sfnt/ttload.c (check_table_dir): Don't abort but warn only if
  2831. we have an invalid magic number.
  2832. 2013-07-16 Werner Lemberg <wl@gnu.org>
  2833. [smooth] Fix segfault caused by previous commit.
  2834. * src/smooth/ftgrays.c (gray_set_cell): Always compute
  2835. `ras.invalid'.
  2836. 2013-07-16 David Turner <digit@google.com>
  2837. [smooth] Improve performance.
  2838. Provide a work-around for an ARM-specific performance bug in GCC.
  2839. This speeds up the rasterizer by more than 5%.
  2840. Also slightly optimize `set_gray_cell' and `gray_record_cell' (which
  2841. also improves performance on other platforms by a tiny bit (<1%).
  2842. * src/smooth/ftgrays.c (FT_DIV_MOD): New macro.
  2843. Use it where appropriate.
  2844. (gray_record_cell, gray_set_cell, gray_move_to,
  2845. gray_convert_glyph_inner): Streamline condition handling.
  2846. 2013-07-16 David Turner <digit@google.com>
  2847. [truetype] Add assembler code for TT_MulFix14 and TT_DotFix14.
  2848. This patch provides slightly optimized versions for ARM, x86, and
  2849. x86_64 CPUs if built with GCC.
  2850. Also remove some dead code.
  2851. * src/truetype/ttinterp.c (TT_MulFix14_arm, TT_MulFix14_long_long,
  2852. TT_DotFix14_long_long): New functions.
  2853. 2013-07-16 David Turner <digit@google.com>
  2854. Optimize FT_MulFix for x86_64 GCC builds.
  2855. This patch provides an optimized `FT_MulFix' implementation for
  2856. x86_64 machines when FreeType is built with GCC, or compatible
  2857. compilers like Clang.
  2858. Example:
  2859. bin/ftbench -p -t 5 -s 14 -f 0008 Arial.ttf
  2860. Before:
  2861. Load 4.863 us/op
  2862. Load_Advances (Normal) 4.816 us/op
  2863. Load_Advances (Fast) 0.028 us/op
  2864. Render 2.753 us/op
  2865. Get_Glyph 0.463 us/op
  2866. Get_CBox 0.077 us/op
  2867. Get_Char_Index 0.023 us/op
  2868. Iterate CMap 13.898 us/op
  2869. New_Face 12.368 us/op
  2870. Embolden 0.028 us/op
  2871. Get_BBox 0.302 us/op
  2872. After:
  2873. Load 4.617 us/op
  2874. Load_Advances (Normal) 4.645 us/op
  2875. Load_Advances (Fast) 0.027 us/op
  2876. Render 2.789 us/op
  2877. Get_Glyph 0.460 us/op
  2878. Get_CBox 0.077 us/op
  2879. Get_Char_Index 0.024 us/op
  2880. Iterate CMap 13.403 us/op
  2881. New_Face 12.278 us/op
  2882. Embolden 0.028 us/op
  2883. Get_BBox 0.301 us/op
  2884. * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
  2885. (FT_MulFix_x86_64): New function.
  2886. 2013-07-16 David Turner <digit@google.com>
  2887. Speed up ARMv7 support.
  2888. When building for ARMv7 with thumb2 instructions, the optimized
  2889. `FT_MulFix_arm' assembly routine was not being used.
  2890. The reason for this is in the `ftconfig.h' header, namely:
  2891. - The assembly routine uses the `smull' instruction which is not
  2892. available when generating Thumb-1 machine code. It is available
  2893. in Thumb-2 mode, though.
  2894. - The header was written a long time ago before Thumb-2 became
  2895. widely popular (e.g. with Android). So it simply doesn't use the
  2896. assembly routine if the `__thumb__' built-in macro is defined.
  2897. - When compiling in Thumb-2 mode, the compiler will define both
  2898. `__thumb__' and `__thumb2__'.
  2899. By checking for `(__thumb2__ || !__thumb__)', we ensure that the
  2900. assembly routine is only avoided when generating Thumb-1 code.
  2901. Given that this is performance-sensitive function, this improves
  2902. `ftbench' as follows on a Galaxy Nexus:
  2903. Before (us/op) After (us/op)
  2904. - loading Arial.ttf glyphs at 14 ppem [1]
  2905. Load 34.285 33.098
  2906. - same operation with the light auto-hinter [2]
  2907. Load 31.317 29.590
  2908. - same operation without hinting [3]
  2909. Load 6.143 5.376
  2910. - loading Arial.ttf advances at 14 ppem [4]
  2911. Load_Advances (normal) 34.216 33.016
  2912. Load_Advances (fast) 0.176 0.176
  2913. [1] ftbench -t 5 -p -s 14 -b a -f 0008 Arial.ttf
  2914. [2] ftbench -t 5 -p -s 14 -b a -r 1 -f 0028 Arial.ttf
  2915. [3] ftbench -t 5 -p -s 14 -b a -f 000a Arial.ttf
  2916. [4] ftbench -t 5 -p -s 14 -b b -f 0008 Arial.ttf
  2917. * builds/unix/ftconfig.in, include/freetype/config/ftconfig.h
  2918. (FT_MULFIX_ASSEMBLER): Fix handling for ARMv7.
  2919. 2013-06-28 Werner Lemberg <wl@gnu.org>
  2920. * docs/CHANGES: Updated.
  2921. 2013-06-27 Werner Lemberg <wl@gnu.org>
  2922. * src/winfonts/winfnt.c (FNT_Load_Glyph): Fix bitmap width guard.
  2923. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2924. [cff] Add darkening limit to `darkening-parameters'.
  2925. * src/cff/cffdrivr.c (cff_property_set): Add check.
  2926. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2927. [cff] Add `darkening-parameters' property.
  2928. * include/freetype/ftcffdrv.h: Document it.
  2929. * src/cff/cffdrivr.c (cff_property_set, cff_property_get): Handle
  2930. `darkening-parameters' property.
  2931. * src/cff/cf2font.h (CF2_FontRec): Add `darkenParams' array.
  2932. * src/cff/cf2font.c (cf2_computeDarkening): Add `darkenParams'
  2933. argument and use it.
  2934. Update all callers.
  2935. * src/cff/cf2ft.c (cf2_decoder_parse_charstrings): Copy
  2936. `darken_params' values.
  2937. * src/cff/cffobjs.h (CFF_DriverRec): Add `darken_params' array.
  2938. * src/cff/cffobjs.c (cff_driver_init): Set default values for
  2939. `darken_params'.
  2940. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2941. [docmaker] Code shuffling.
  2942. * src/tools/docmaker/tohtml.py (re_url): Move regexp...
  2943. * src/tools/docmaker/sources.py: ... to this file.
  2944. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2945. [docmaker] Remove unused functions.
  2946. * src/tools/docmaker/content.py (DocMarkup.get_start,
  2947. DocBlock.get_markup_name): Removed.
  2948. * src/tools/docmaker/tohtml.py (html_quote0, dump_html_code,
  2949. HtmlFormatter.make_html_words): Removed.
  2950. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2951. * builds/freetype.mk (dll): Remove target.
  2952. Problem reported by Jörg Günnewig <joerg.guennewig@googlemail.com>.
  2953. 2013-06-25 Werner Lemberg <wl@gnu.org>
  2954. [docmaker] Recognise URLs.
  2955. * src/tools/docmaker/tohtml.py (re_url): New regular expression.
  2956. (make_html_para): Use it.
  2957. 2013-06-19 Werner Lemberg <wl@gnu.org>
  2958. * Version 2.5.0.1 released.
  2959. ===========================
  2960. Tag sources with `VER-2-5-0-1'.
  2961. * include/freetype/config/ftoption.h: Undefine
  2962. CFF_CONFIG_OPTION_OLD_ENGINE.
  2963. * devel/ftoption.h: Define CFF_CONFIG_OPTION_OLD_ENGINE.
  2964. 2013-06-19 Werner Lemberg <wl@gnu.org>
  2965. * builds/unix/install.mk (install): Don't create `cache' directory.
  2966. Found by Peter Breitenlohner <peb@mppmu.mpg.de>.
  2967. 2013-06-19 Werner Lemberg <wl@gnu.org>
  2968. * Version 2.5.0 released.
  2969. =========================
  2970. Tag sources with `VER-2-5-0'.
  2971. * docs/VERSION.DLL: Update documentation and bump version number to
  2972. 2.5.0.
  2973. * README, Jamfile (RefDoc),
  2974. builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
  2975. builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
  2976. builds/win32/vc2010/freetype.vcxproj, builds/win32/vc2010/index.html,
  2977. builds/win32/visualc/freetype.dsp,
  2978. builds/win32/visualc/freetype.vcproj,
  2979. builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
  2980. builds/win32/visualce/freetype.vcproj,
  2981. builds/win32/visualce/index.html,
  2982. builds/wince/vc2005-ce/freetype.vcproj,
  2983. builds/wince/vc2005-ce/index.html,
  2984. builds/wince/vc2008-ce/freetype.vcproj,
  2985. builds/wince/vc2008-ce/index.html: s/2.4.12/2.5.0/, s/2412/250/.
  2986. * include/freetype/freetype.h (FREETYPE_MINOR): Set to 5.
  2987. (FREETYPE_PATCH): Set to 0.
  2988. * builds/unix/configure.raw (version_info): Set to 16:2:10.
  2989. * src/base/ftobjs.c (FT_Open_Face): Pacify compiler.
  2990. * src/truetype/ttinterp.c (Ins_MSIRP, Ins_MIRP): Ditto.
  2991. 2013-06-18 Werner Lemberg <wl@gnu.org>
  2992. Fix Savannah bug #39269.
  2993. * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Free memory in
  2994. case of reallocation failures.
  2995. 2013-06-18 Andrew Church <achurch+savannah@achurch.org>
  2996. Fix Savannah bug #39266.
  2997. If memory allocations fail at certain points while opening a font,
  2998. FreeType can either crash due to a NULL dereference or leak memory.
  2999. * include/freetype/internal/ftobjs.c (FT_Face_InternalRec,
  3000. FT_LibraryRec): Make `refcount' a signed integer. If, for example,
  3001. FT_Open_Face() fails in a memory allocation before the face's
  3002. reference count is set to 1, a subsequent `FT_Done_Library' call
  3003. would otherwise loop over `FT_Done_Face' 2^32 times before freeing
  3004. the face.
  3005. * src/base/ftobjs.c (open_face): Initialize `stream' and friends
  3006. earlier.
  3007. (FT_Open_Face) <Fail>: Behave correctly if `node' is NULL.
  3008. (FT_Destroy_Module) <Fail>: Check that `renderer_clazz' is valid.
  3009. 2013-06-14 Werner Lemberg <wl@gnu.org>
  3010. * src/smooth/ftgrays.c One final pragma to silence 64-bit MSVC.
  3011. 2013-06-06 Dave Arnold <darnold@adobe.com>
  3012. Werner Lemberg <wl@gnu.org>
  3013. [cff] Add code to Adobe's engine to handle ppem > 2000.
  3014. * src/cff/cffgload.c (cff_slot_load): If we get
  3015. FT_Err_Glyph_Too_Big, retry unhinted and scale up later on.
  3016. 2013-06-12 Werner Lemberg <wl@gnu.org>
  3017. Another try on pragmas.
  3018. * include/freetype/internal/ftdebug.h: Move pragmas to...
  3019. * include/freetype/internal/internal.h: ... this file since it gets
  3020. included by all source files.
  3021. * include/freetype/internal/ftserv.h: Remove pragma which has no
  3022. effect.
  3023. 2013-06-12 Werner Lemberg <wl@gnu.org>
  3024. * include/freetype/internal/ftdebug.h: Disable MSVC warning C4127.
  3025. This partially undoes commit 3f6e0e0c.
  3026. 2013-06-12 Werner Lemberg <wl@gnu.org>
  3027. More compiler warning fixes.
  3028. */*: Use cast to `FT_Bool' (or `Bool') where appropriate.
  3029. 2013-06-10 Werner Lemberg <wl@gnu.org>
  3030. [truetype] Improve handling of broken sbit advance widths.
  3031. * src/truetype/ttgload.c (TT_Load_Glyph): Use the glyph's (scaled)
  3032. `linearHoriAdvance' if the sbit's `horiAdvance' value is zero.
  3033. Cf. font `Fixedsys Excelsior' v3.01 (FSEX300.ttf), glyph A, 16ppem.
  3034. 2013-06-10 Werner Lemberg <wl@gnu.org>
  3035. [sfnt] Improve embedded bitmap tracing.
  3036. * src/base/ftobjs.c (FT_Request_Size): Move trace message regarding
  3037. bitmap strike match to...
  3038. (FT_Match_Size): This function.
  3039. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_metrics,
  3040. tt_sbit_decoder_load_byte_aligned, tt_sbit_decoder_load_bit_aligned,
  3041. tt_sbit_decoder_load_compound, tt_sbit_decoder_load_png,
  3042. tt_sbit_decoder_load_image): Decorate with tracing messages.
  3043. 2013-06-10 Werner Lemberg <wl@gnu.org>
  3044. Fix Savannah bug #39160.
  3045. * src/truetype/ttinterp.c (Ins_SDPVTL): Set projection vector too
  3046. for the degenerate case.
  3047. 2013-06-09 David Turner <digit@google.com>
  3048. * src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush.
  3049. This code, present since eight(!) years in the unused `CACHE'
  3050. branch, has been forgotten to apply to the master branch. It's
  3051. really amazing that noone has ever complained since
  3052. `FTC_Manager_Reset' is pretty useless without flushing the cache.
  3053. 2013-06-07 Werner Lemberg <wl@gnu.org>
  3054. Add and improve pragmas for MSVC compiler.
  3055. * include/freetype/internal/ftdebug.h: Remove pragmas.
  3056. * include/freetype/internal/ftserv.h: Use push and pop for pragmas.
  3057. * include/freetype/internal/ftvalid.h: Handle warning C4324.
  3058. * src/base/ftobjs.c: Use push and pop for pragmas.
  3059. * src/gzip/ftgzip.c: Handle warning C4244.
  3060. 2013-06-07 Werner Lemberg <wl@gnu.org>
  3061. [cff] s/cf2_getGlyphWidth/cf2_getGlyphOutline/.
  3062. * src/cff/cf2font.c, src/cff/cf2font.h, src/cff/cf2ft.c: Do it.
  3063. 2013-06-06 Dave Arnold <darnold@adobe.com>
  3064. [cff] Add early exit feature for width-only calls.
  3065. This is for `FT_Get_Advance'.
  3066. There are 7 places where the spec says the width can be defined:
  3067. hstem/hstemhm
  3068. vstem/vstemhm
  3069. cntrmask/hintmask
  3070. hmoveto
  3071. vmoveto
  3072. rmoveto
  3073. endchar
  3074. * src/cff/cf2intrp.c (cf2_doStems): Exit early for width-only calls,
  3075. if possible.
  3076. (cf2_interpT2CharString) <cf2_cmdHSTEM>, <cf2_cmdVSTEM>,
  3077. <cf2_cmdVMOVETO>, <cf2_cmdENDCHAR>, <cf2_cmdHINTMASK>,
  3078. <cf2_cmdRMOVETO>, <cf2_cmdHMOVETO>: Exit early for width-only calls.
  3079. 2013-06-06 Werner Lemberg <wl@gnu.org>
  3080. Next round of compiler fixes.
  3081. * builds/win32/ftdebug.c, builds/wince/ftdebug.c (ft_debug_init):
  3082. Add proper cast.
  3083. * include/freetype/internal/ftserv.h (FT_SERVICE_UNAVAILABLE): Fix
  3084. cast.
  3085. * include/freetype/internal/ftstream.h: Decorate stream and frame
  3086. macros with `FT_Long' and `FT_ULong' as appropriate.
  3087. * src/base/ftrfork.c (raccess_guess_darwin_hfsplus,
  3088. raccess_guess_darwin_newvfs): Use cast.
  3089. * src/bdf/bdflib.c (_bdf_set_default_spacing): Use cast.
  3090. * src/cache/ftcmanag.c (FTC_Manager_Check): Fix cast.
  3091. * src/cache/ftcmanag.h (FTC_ManagerRec): Ditto.
  3092. * src/cff/cf2arrst.c (cf2_arrstack_setNumElements): Use cast.
  3093. * src/cff/cf2ft.c (cf2_freeSeacComponent): Ditto.
  3094. * src/cff/cffobjs.c (remove_subset_prefix, remove_style): Ditto.
  3095. * src/cid/cidparse.c (cid_parser_new): Use cast.
  3096. * src/pcf/pcfdrivr.c (PCF_Glyph_Load): Use cast.
  3097. * src/psaux/psobjs.c (reallocate_t1_table): Fix argument type.
  3098. * src/raster/ftraster.c (ft_black_reset): Use cast.
  3099. * src/truetype/ttgxvar.c (FT_Stream_FTell): Use cast.
  3100. (ALL_POINTS): Fix cast.
  3101. * src/type1/t1driver.c (t1_ps_get_font_value): Add casts.
  3102. * src/type1/t1parse.c (T1_Get_Private_Dict): Add cast.
  3103. 2013-06-05 Dave Arnold <darnold@adobe.com>
  3104. Fix more MSVC Win32 compiler warnings.
  3105. * src/base/ftobjs.c: Fix typo in MS pragma.
  3106. * src/base/bdflib.c (_bdf_set_default_spacing, _bdf_add_property):
  3107. `lineno' is only used in debug mode.
  3108. * src/cff/cf2ft.c (cf2_builder_moveTo): `params' is only used in
  3109. debug mode.
  3110. 2013-06-05 Werner Lemberg <wl@gnu.org>
  3111. Fix compiler warnings.
  3112. * include/freetype/internal/ftmemory.h: Decorate memory allocation
  3113. macros with `FT_Long' where appropriate.
  3114. Remove duplicate of FT_MEM_QRENEW_ARRAY definition.
  3115. * src/base/ftbitmap.c (ft_gray_for_premultiplied_srgb_bgra): Use
  3116. cast.
  3117. * src/base/ftobjs.c: Add warning disabling pragma for MSVC while
  3118. including `md5.c'.
  3119. * src/cff/cf2intrp.c (cf2_interpT2CharString) <cf2_cmdESC>: Add
  3120. cast.
  3121. * src/sfnt/ttsbit.c (tt_sbit_decoder_load_compound): Fix casts.
  3122. (tt_sbit_decoder_load_bitmap): Beautification.
  3123. * src/smooth/ftsmooth.c (ft_smooth_render_generic): Initialize
  3124. variables (earlier).
  3125. * src/truetype/ttgload.c (TT_Process_Simple_Glyph): Pacify compiler.
  3126. * src/truetype/ttgxvar.c (TT_Get_MM_Var): Use unsigned constants
  3127. where appropriate.
  3128. * src/type1/t1load.c (T1_Get_MM_Var): Ditto.
  3129. 2013-06-04 Werner Lemberg <wl@gnu.org>
  3130. * src/cff/cf2font.c (cf2_getGlyphWidth): Initialize `advWidth'.
  3131. Problem reported by Ingmar Sittl <ingmar.sittl@elektrobit.com>.
  3132. 2013-06-04 Werner Lemberg <wl@gnu.org>
  3133. Apply fixes for cppcheck nitpicks.
  3134. https://cppcheck.sourceforge.net/
  3135. The call was (from the top-level of the FreeType tree):
  3136. cppcheck --force \
  3137. --enable=all \
  3138. -I include \
  3139. -I include/freetype/ \
  3140. -I include/freetype/config/ \
  3141. -I include/freetype/internal/ \
  3142. . &> cppcheck.log
  3143. Note that the current version heavily chokes on FreeType, delivering
  3144. many wrong results. I will report those issues to the cppcheck team
  3145. so that a newer version gives improved results hopefully.
  3146. */* Improve variable scopes.
  3147. */* Remove redundant initializations which get overwritten.
  3148. * src/base/ftmac.c, builds/mac/ftmac.c (count_faces_scalable):
  3149. Remove unused variable.
  3150. * src/base/ftdbgmem.c (ft_mem_table_destroy): `table' can't be zero.
  3151. * src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt1_entry_validate):
  3152. Remove functionless code.
  3153. * src/tools/ftrandom.c (main): Fix memory leak.
  3154. 2013-06-03 Werner Lemberg <wl@gnu.org>
  3155. Add CFF_CONFIG_OPTION_OLD_ENGINE configuration option.
  3156. This controls whether the old FreeType CFF engine gets compiled into
  3157. FreeType. It is now disabled by default.
  3158. * devel/ftoption.h, include/freetype/config/ftoption.h
  3159. (CFF_CONFIG_OPTION_OLD_ENGINE): New macro.
  3160. * src/cff/cffdrivr.c (cff_property_set), src/cff/cffgload.c
  3161. (CFF_Operator, cff_argument_counts, cff_builder_add_point,
  3162. cff_operator_seac, cff_decoder_parse_charstrings, cff_slot_load),
  3163. src/cff/cffgload.h, src/cff/cffobjs.c (cff_driver_init): Use
  3164. CFF_CONFIG_OPTION_OLD_ENGINE to guard the affected code.
  3165. * docs/CHANGES: Updated.
  3166. 2013-06-02 Werner Lemberg <wl@gnu.org>
  3167. Fix PNG library handling.
  3168. * builds/unix/configure.raw: Don't use LIBPNG_LIBS but
  3169. LIBPNG_LDFLAGS.
  3170. 2013-05-23 Behdad Esfahbod <behdad@google.com>
  3171. Add support for color embedded bitmaps (eg. color emoji).
  3172. A new load flag, FT_LOAD_COLOR, makes FreeType load color
  3173. embedded-bitmaps, following this draft specification
  3174. https://color-emoji.googlecode.com/git/specification/v1.html
  3175. which defines two new SFNT tables, `CBDT' and `CBLC' (named and
  3176. modeled after `EBDT' and `EBLC', respectively). The color bitmaps
  3177. are stored in the new FT_PIXEL_MODE_BGRA format to represent BGRA
  3178. pre-multiplied sRGB images. If PNG support is available, PNG color
  3179. images as defined in the same proposed specification are supported
  3180. also.
  3181. Note that color bitmaps are converted to grayscale if client didn't
  3182. ask for color.
  3183. * builds/unix/configure.raw: Search for libpng.
  3184. Add `--without-png' option.
  3185. * devel/ftoption.h, include/freetype/config/ftoption.h
  3186. (FT_CONFIG_OPTION_USE_PNG): New macro.
  3187. * include/freetype/freetype.h (FT_LOAD_COLOR): New load flag.
  3188. * include/freetype/ftimage.h (FT_Pixel_Mode): Add
  3189. `FT_PIXEL_MODE_BGRA'.
  3190. * include/freetype/tttags.h (TTAG_CBDT, TTAG_CBLC): New tags.
  3191. * src/base/ftbitmap.c (FT_Bitmap_Embolden): Updated.
  3192. (ft_gray_for_premultiplied_srgb_bgra): New function.
  3193. (FT_Bitmap_Convert): Handle FT_PIXEL_MODE_BGRA.
  3194. * src/sfnt/pngshim.c, src/sfnt/pngshim.h: New files.
  3195. * src/sfnt/sfnt.c: Include `pngshim.c'.
  3196. * src/sfnt/ttsbit.c: Include FT_BITMAP_H and `pngshim.h'
  3197. (tt_face_load_eblc): Load `CBLC'.
  3198. (tt_sbit_decoder_init): Load `CBDT'.
  3199. (tt_sbit_decoder_alloc_bitmap): Pass load flags to select between
  3200. color and grayscale bitmaps.
  3201. Set `num_grays'. This is used by `ftview' to choose the blending
  3202. algorithm.
  3203. (tt_sbit_decoder_load_byte_aligned,
  3204. tt_sbit_decoder_load_bit_aligned, tt_sbit_decoder_load_compound,
  3205. tt_sbit_decoder_load_image): Pass load flag.
  3206. s/write/pwrite/.
  3207. Don't call `tt_sbit_decoder_alloc_bitmap'.
  3208. Updated.
  3209. (tt_sbit_decoder_load_png) [FT_CONFIG_OPTION_USE_PNG]: New function.
  3210. (tt_sbit_decoder_load_bitmap): Pass load flag.
  3211. Handle new glyph formats 17, 18, and 19.
  3212. Call `tt_sbit_decoder_alloc_bitmap'.
  3213. Flatten color bitmaps if necessary.
  3214. (tt_face_load_sbit_image): Updated.
  3215. * src/sfnt/rules.mk (SFNT_DRV_SRC): Add `pngshim.c'.
  3216. * docs/CHANGES: Updated.
  3217. 2013-05-24 Guenter <info@gknw.net>
  3218. Apply Savannah patch #8055.
  3219. Make `apinames' create an import file for NetWare.
  3220. * src/tools/apinames.c (PROGRAM_VERSION): Set to 0.2.
  3221. (OutputFormat): Add `OUTPUT_NETWARE_IMP'.
  3222. (names_dump): Handle it.
  3223. (usage): Updated.
  3224. (main): Handle new command line flag `-wN'.
  3225. 2013-05-23 Behdad Esfahbod <behdad@behdad.org>
  3226. Compilation fix.
  3227. * src/truetype/ttinterp.c (TT_RunIns)
  3228. [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]: Make it work.
  3229. 2013-05-22 Infinality <infinality@infinality.net>
  3230. [truetype] Formatting and an additional subpixel tweak.
  3231. * src/truetype/ttinterp.c (Ins_SHPIX): Formatting fix.
  3232. * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules):
  3233. Revert previous modification for Verdana clones.
  3234. 2013-05-22 Infinality <infinality@infinality.net>
  3235. [truetype] Adjust subpixel zp2 moves and tweak rules.
  3236. These modifications fix thin diagonal stems in some legacy fonts.
  3237. * src/truetype/ttinterp.c (Direct_Move_X): Remove unused macro.
  3238. (Move_Zp2_Point): Don't always disable x moves for subpixel rendering.
  3239. (Ins_SHP): Disable x moves here for subpixel rendering.
  3240. (Ins_SHPIX): Only disable x moves in compatibility mode.
  3241. Split out zp2 move reversals and reorder conditional respectively.
  3242. * src/truetype/ttsubpix.c (SKIP_NONPIXEL_Y_MOVES_Rules): Fix oversight.
  3243. Only adjust Verdana clones for 17 ppem.
  3244. (SKIP_NONPIXEL_Y_MOVES_Rules_Exceptions): Add Courier New.
  3245. (ALWAYS_SKIP_DELTAP_Rules): Found additional cases for Arial `s'.
  3246. 2013-05-20 Infinality <infinality@infinality.net>
  3247. [truetype] Simplify and improve subpixel function detection.
  3248. Some small enhancements have allowed the removal of many macros and
  3249. the simplification of existing rules in `ttsubpix.c'.
  3250. * src/truetype/ttsubpix.h (SPH_TWEAK_ALLOW_X_DMOVEX,
  3251. SPH_TWEAK_ALLOW_X_MOVE_ZP2,
  3252. SPH_TWEAK_DELTAP_SKIP_EXAGGERATED_VALUES,
  3253. SPH_TWEAK_SKIP_INLINE_DELTAS, SPH_TWEAK_MIRP_CVT_ZERO): Removed.
  3254. (SPH_TWEAK_SKIP_NONPIXEL_Y_MOVES_DELTAP): New rule macro.
  3255. * src/truetype/ttsubpix.c: Updated affected rules.
  3256. * src/truetype/ttinterp.c (Direct_Move_X): Updated.
  3257. (INS_FDEF): Add additional function detection.
  3258. (INS_ENDF): Set runtime flag.
  3259. (Ins_CALL): Skip the call under certain conditions.
  3260. Remove bad code.
  3261. (Ins_LOOPCALL): Skip the call under certain conditions.
  3262. Remove bad code.
  3263. (Move_Zp2_Point): Updated.
  3264. (Ins_SHPIX): Updated.
  3265. Skip the move under some situations.
  3266. (Ins_MIAP): Improve conditions.
  3267. (Ins_MIRP): Updated.
  3268. (Ins_DELTAP): Skip move under certain conditions.
  3269. Simplify conditions.
  3270. (TT_RunIns): Updated.
  3271. Add code to handle new function detection.
  3272. Trace messages.
  3273. 2013-05-17 Werner Lemberg <wl@gnu.org>
  3274. Update more FT_Err_XXX macros using FT_ERR and FT_THROW;
  3275. * builds/amiga/src/base/ftsystem.c, builds/mac/ftmac.c,
  3276. builds/unix/ftsystem.c, builds/vms/ftsystem.c: Do it.
  3277. 2013-05-15 Werner Lemberg <wl@gnu.org>
  3278. [truetype] Add `interpreter-version' property.
  3279. This makes the option TT_CONFIG_OPTION_SUBPIXEL_HINTING controllable
  3280. at runtime.
  3281. * include/freetype/ftttdrv.h: New file.
  3282. * include/freetype/config/ftheader.h (FT_TRUETYPE_DRIVER_H): New
  3283. macro.
  3284. * src/truetype/ttdriver.c: Include FT_TRUETYPE_DRIVER_H.
  3285. (tt_property_set, tt_property_get): Fill templates.
  3286. * src/truetype/ttobjs.h (TT_DriverRec): Add `interpreter_version'
  3287. member.
  3288. Remove unused `extension_component' member.
  3289. * src/truetype/ttgload.c: Include FT_TRUETYPE_DRIVER_H.
  3290. (tt_get_metrics, TT_Hint_Glyph, TT_Process_Simple_Glyph,
  3291. compute_glyph_metrics, tt_loader_init): Use `interpreter_version'.
  3292. * src/truetype/ttinterp.c: Include FT_TRUETYPE_DRIVER_H.
  3293. (SUBPIXEL_HINTING): New macro to check `interpreter_version' flag.
  3294. Update all affected functions to use it.
  3295. Use TT_INTERPRETER_VERSION_XXX where appropriate.
  3296. * src/truetype/ttobjs.c: Include FT_TRUETYPE_DRIVER_H.
  3297. (tt_driver_init): Initialize `interpreter_version'.
  3298. * src/truetype/ttsubpix.c: Include FT_TRUETYPE_DRIVER_H.
  3299. Use TT_INTERPRETER_VERSION_XXX where appropriate.
  3300. 2013-05-13 Werner Lemberg <wl@gnu.org>
  3301. [truetype] Avoid empty source file.
  3302. * src/truetype/ttsubpix.c [!TT_CONFIG_OPTION_SUBPIXEL_HINTING]:
  3303. Provide dummy typedef.
  3304. 2013-05-13 Werner Lemberg <wl@gnu.org>
  3305. * src/cff/cf2font.c (cf2_getGlyphWidth): Fix uninitialized variable.
  3306. Fix suggested by Vaibhav Nagarnaik <vnagarnaik@gmail.com>.
  3307. 2013-05-13 Brian Nixon <bnixon@yahoo.com>
  3308. Fix Savannah bug #38970.
  3309. * src/base/ftdebug.c, builds/win32/ftdebug.c,
  3310. builds/wince/ftdebug.c, builds/amiga/src/base/ftdebug.c
  3311. (ft_debug_init): Don't read past the environment variable FT2_DEBUG.
  3312. 2013-05-12 Werner Lemberg <wl@gnu.org>
  3313. [truetype] Add framework for TrueType properties.
  3314. * src/truetype/ttdriver.c: Include FT_SERVICE_PROPERTIES_H.
  3315. (tt_property_set, tt_property_get): New functions, still empty.
  3316. Define `tt_service_properties' service.
  3317. Update `tt_services'.
  3318. * src/truetype/ttpic.h: Include FT_SERVICE_PROPERTIES_H.
  3319. (TT_SERVICE_PROPERTIES_GET): New macro.
  3320. (TTModulePIC): Add `tt_service_properties'.
  3321. 2013-05-12 Werner Lemberg <wl@gnu.org>
  3322. Fix Savannah bug #38967.
  3323. * src/base/ftcalc.c (FT_DivFix) [FT_LONG64]: Fix cast.
  3324. 2013-05-12 Werner Lemberg <wl@gnu.org>
  3325. Introduce unsigned 64bit type (if available).
  3326. * include/freetype/config/ftconfig.h: Define FT_UINT64 if available.
  3327. [FT_LONG64]: Provide FT_UInt64.
  3328. * builds/unix/ftconfig.in: Synchronized.
  3329. 2013-05-12 Werner Lemberg <wl@gnu.org>
  3330. Fix Savannah bug #38968.
  3331. * include/freetype/ftmodapi.h: Add `FT_EXPORT' to
  3332. FT_Property_{Set,Get}.
  3333. * src/base/ftobjs.c: Add `FT_EXPORT_DEF' to
  3334. FT_Property_{Set,Get}.
  3335. 2013-05-10 Werner Lemberg <wl@gnu.org>
  3336. [sfnt] Clean up bitmap code.
  3337. * src/sfnt/ttsbit.c: Deleted.
  3338. * src/sfnt/ttsbit0.c: Renamed to `ttsbit.c'.
  3339. * rules.mk (SFNT_DRV_H): Updated.
  3340. 2013-05-10 Werner Lemberg <wl@gnu.org>
  3341. */* [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove macro and guarded code.
  3342. ----------------------------------------------------------------------------
  3343. Copyright (C) 2013-2022 by
  3344. David Turner, Robert Wilhelm, and Werner Lemberg.
  3345. This file is part of the FreeType project, and may only be used, modified,
  3346. and distributed under the terms of the FreeType project license,
  3347. LICENSE.TXT. By continuing to use, modify, or distribute this file you
  3348. indicate that you have read the license and understand and accept it
  3349. fully.
  3350. Local Variables:
  3351. version-control: never
  3352. coding: utf-8
  3353. End: