🛠️🐜 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.

2837 lines
98 KiB

2 years ago
  1. 2006-05-12 Werner Lemberg <wl@gnu.org>
  2. * Version 2.2.1 released.
  3. =========================
  4. Tag sources with `VER-2-2-1'.
  5. 2006-05-12 Werner Lemberg <wl@gnu.org>
  6. * src/tools/docmaker/sources.py (re_source_keywords): Add word
  7. boundary markers.
  8. * src/tools/docmaker/content.py (re_field): Allow `.' in field names
  9. (but not at the beginning or end).
  10. * src/tools/docmaker/tohtml.py (html_header_1): Use `utf-8' charset.
  11. (block_footer): Split into...
  12. (block_footer_start, block_footer_middle, block_footer_end): This to
  13. add navigation buttons.
  14. (HtmlFormatter::block_exit): Updated.
  15. * include/freetype/*: Many minor documentation improvements (adding
  16. links, spelling errors, etc.).
  17. 2006-05-11 Werner Lemberg <wl@gnu.org>
  18. * README: Minor updates.
  19. * include/freetype/*: s/scale/scaling value/ where appropriate.
  20. Many other minor documentation improvements.
  21. * src/tools/docmaker/sources.py (re_italic, re_bold): Handle
  22. trailing punctuation.
  23. * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word): Add
  24. warning message for undefined cross references.
  25. Update handling of re_italic and re_bold.
  26. 2006-05-11 Masatake YAMATO <jet@gyve.org>
  27. * builds/unix/ftsystem.c (FT_Stream_Open): Check errno only if
  28. read system call returns -1.
  29. Remove a redundant parenthesis.
  30. 2006-05-10 Werner Lemberg <wl@gnu.org>
  31. * builds/unix/ftsystem.c (FT_Stream_Open): Avoid infinite loop if
  32. given an empty, un-mmap()able file. Reported and suggested fix in
  33. Savannah bug #16555.
  34. * builds/freetype.mk (refdoc): Write-protect the `docmaker'
  35. directory to suppress generation of .pyc files. According to the
  36. Python docs there isn't a more elegant solution (currently).
  37. * builds/toplevel.mk (dist): New target which builds .tar.gz,
  38. .tar.bz2, and .zip files. Note that the version number is still
  39. hard-coded.
  40. (do-dist): Sub-target of `dist'.
  41. (CONFIG_GUESS, CONFIG_SUB): New variables.
  42. (.PHONY): Updated.
  43. 2006-05-09 Rajeev Pahuja <rpahuja@esri.com>
  44. * builds/win32/visualc/freetype.sln,
  45. builds/win32/visualc/freetype.vcproj: Upgraded to VS.NET 2005 from
  46. VS.NET 2003
  47. Added files ftbbox.c, fttype1.c, ftwinfnt.c, ftsynth.c.
  48. * builds/win32/visualc/index.html: Updated.
  49. 2006-05-07 Werner Lemberg <wl@gnu.org>
  50. Put version information into the configure script. Reported by Paul
  51. Watson <pwatson@redlinepy.com>.
  52. * builds/unix/configure.ac: Renamed to...
  53. * builds/unix/configure.raw: This which now serves (with appropriate
  54. modifications) as a template for configure.ac.
  55. * version.sed: New script.
  56. * autogen.sh: Generate configure.ac from configure.raw, using
  57. FREETYPE_MAJOR, FREETYPE_MINOR, and FREETYPE_PATCH from freetype.h.
  58. 2006-05-06 Werner Lemberg <wl@gnu.org>
  59. * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
  60. * builds/unix/configure.ac (version_info): Set to 9:10:3.
  61. * builds/win32/visualc/index.html,
  62. builds/win32/visualc/freetype.dsp,
  63. builds/win32/visualc/freetype.vcproj, builds/freetype.mk (refdoc),
  64. Jamfile (RefDoc), README: s/220/221/, s/2.2.0/2.2.1/.
  65. Minor updates.
  66. * docs/CHANGES, docs/VERSION.DLL, docs/PROBLEMS, README.CVS:
  67. Updated.
  68. * builds/unix/install-sh: Updated from `texinfo' CVS module at
  69. savannah.gnu.org.
  70. * devel/ftoption.h: Synchronize with
  71. include/freetype/config/ftoption.h.
  72. 2006-05-04 Werner Lemberg <wl@gnu.org>
  73. * src/lzw/ftlzw2.c: Renamed to...
  74. * src/lzw/ftlzw.c: This.
  75. * src/lzw/Jamfile, src/lzw/rules.mk: Updated.
  76. * builds/mac/FreeType.m68k_cfm.make.txt,
  77. builds/mac/FreeType.m68k_far.make.txt,
  78. builds/mac/FreeType.ppc_carbon.make.txt,
  79. builds/mac/FreeType.ppc_classic.make.txt: Updated.
  80. 2006-05-03 David Turner <david@freetype.org>
  81. Allow compilation again with C++ compilers.
  82. * include/freetype/internal/ftmemory.h (FT_ASSIGNP,
  83. FT_ASSIGNP_INNER): New macros which do the actual assignment, and
  84. which exist in two variants (for C and C++).
  85. Update callers accordingly.
  86. 2006-05-03 Werner Lemberg <wl@gnu.org>
  87. * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): Removed.
  88. 2006-05-02 Werner Lemberg <wl@gnu.org>
  89. * include/freetype/internal/ftmemory.h: s/new/newsz/ (for C++).
  90. (FT_ALLOC): Remove redundant redefinition.
  91. * builds/compiler/gcc-dev.mk (CFLAGS) [g++]: Don't use
  92. `-Wstrict-prototypes'.
  93. * src/base/ftstream.c (FT_Stream_EnterFrame): Add cast.
  94. * include/freetype/config/ftconfig.h (FT_BASE_DEF) [__cplusplus]:
  95. Remove `extern'.
  96. 2006-05-02 David Turner <david@freetype.org>
  97. Update the memory management functions and macros to safely deal
  98. with array size buffer overflows. This corresponds to attempts to
  99. allocate arrays that are too large. For an example, consider the
  100. following code:
  101. count = read_uint32_from_file(); array = malloc( sizeof ( Item ) *
  102. count ); for ( nn = 0; nn < count; nn++ )
  103. array[nn] = read_item_from_file();
  104. If `count' is larger than `FT_UINT_MAX/sizeof(Item)', the
  105. multiplication overflows, and the array allocated os smaller than
  106. the data read from the file. In this case, the heap will be
  107. trashed, and this can be used as a denial-of-service attack, or make
  108. the engine crash later.
  109. The FT_ARRAY_NEW and FT_ARRAY_RENEW macros now ensure that the new
  110. count is no larger than `FT_INT_MAX/item_size', otherwise a new
  111. error code `FT_Err_Array_Too_Large' will be returned.
  112. Note that the memory debugger now works again when FT_DEBUG_MEMORY
  113. is defined. FT_STRICT_ALIASING has disappeared; the corresponding
  114. code is now the default.
  115. * include/freetype/config/ftconfig.h (FT_BASE_DEF) [!__cplusplus]:
  116. Don't use `extern'.
  117. * include/freetype/fterrdef.h (FT_Err_Array_Too_Large): New error
  118. code.
  119. * include/freetype/internal/ftmemory.h (FT_DEBUG_INNER)
  120. [FT_DEBUG_MEMORY]: New macro.
  121. (ft_mem_realloc, ft_mem_qrealloc): Pass new object size count also.
  122. (ft_mem_alloc_debug, ft_mem_qalloc_debug, ft_mem_realloc_debug,
  123. ft_mem_qrealloc_debug, ft_mem_free_debug): Removed.
  124. (FT_MEM_ALLOC, FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC,
  125. FT_MEM_FREE): Redefine.
  126. (FT_MEM_NEW_ARRAY, FT_MEM_RENEW_ARRAY, FT_MEM_QNEW_ARRAY,
  127. FT_MEM_QRENEW_ARRAY): Redefine.
  128. (FT_ALLOC_MULT, FT_REALLOC_MULT, FT_MEM_QALLOC_MULT,
  129. FT_MEM_QREALLOC_MULT): New macros. Update callers where
  130. appropriate.
  131. (FT_MEM_SET_ERROR): Slightly redefine.
  132. * src/base/ftdbgmem.c (_ft_debug_file, _ft_debug_lineno)
  133. [FT_DEBUG_MEMORY]: New global variables, replacing...
  134. (FT_MemTableRec) [FT_DEBUG_MEMORY]: Remove `filename' and
  135. `line_no'. Update all callers.
  136. (ft_mem_debug_alloc) [FT_DEBUG_MEMORY]: Avoid possible integer
  137. overflow.
  138. (ft_mem_alloc_debug, ft_mem_realloc_debug, ft_mem_qalloc_debug,
  139. ft_mem_qrealloc_debug, ft_mem_free_debug): Removed.
  140. * src/base/ftmac.c (read_lwfn): Catch integer overflow.
  141. * src/base/ftrfork.c (raccess_guess_darwin_hfsplus): Ditto.
  142. * src/base/ftutil.c: Remove special code for FT_STRICT_ALIASING.
  143. (ft_mem_alloc, ft_mem_realloc, ft_mem_qrealloc): Rewrite.
  144. * include/freetype/ftstream.h (FT_FRAME_ENTER, FT_FRAME_EXIT,
  145. FT_FRAME_EXTRACT, FT_FRAME_RELEASE): Use FT_DEBUG_INNER to report the
  146. place where the frames were entered, extracted, exited or released
  147. in the memory debugger.
  148. * src/base/ftstream.c (FT_Stream_ReleaseFrame) [FT_DEBUG_MEMORY]:
  149. Call ft_mem_free.
  150. (FT_Stream_EnterFrame) [FT_DEBUG_MEMORY]: Use ft_mem_qalloc.
  151. (FT_Stream_ExitFrame) [FT_DEBUG_MEMORY]: Use ft_mem_free.
  152. 2006-04-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  153. * src/base/ftobjs.c (Mac_Read_POST_Resource): Correct pfb_pos
  154. initialization, remove extra cast to copy to pfb_lenpos. This fixes
  155. parsing of PFB fonts with MacOS resource fork (bug introduced
  156. 2003-09-11). Patch provided by Huib-Jan Imbens <ft@imbens.nl>.
  157. 2006-04-29 Werner Lemberg <wl@gnu.org>
  158. Further C library abstraction. Based on a patch from
  159. msn2@bidyut.com.
  160. * include/freetype/config/ftstdlib.h (FT_CHAR_BIT, FT_FILE,
  161. ft_fopen, ft_fclose, ft_fseek, ft_ftell, ft_fread, ft_smalloc,
  162. ft_scalloc, ft_srealloc, ft_sfree, ft_labs): New wrapper macros for
  163. C library functions. Update all users accordingly (and catch some
  164. other places where the C library function was used instead of the
  165. wrapper functions).
  166. * src/base/ftsystem.c: Don't include stdio.h and stdlib.h.
  167. * src/gzip/zutil.h [MSDOS && !(__TURBOC__ || __BORLANDC__)]: Don't
  168. include malloc.h.
  169. * builds/unix/unix-def.in (datarootdir): Define, for autoconf 2.59c
  170. and forthcoming versions.
  171. 2006-04-28 Werner Lemberg <wl@gnu.org>
  172. * src/lzw/ftlzw.c, src/lzw/zopen.c, src/lzw/zopen.h: Removed,
  173. obsolete.
  174. 2006-04-27 yi luo <luoyi.ly@gmail.com>
  175. * builds/win32/visualc/freetype.vcproj: Updated.
  176. 2006-04-26 David Turner <david@freetype.org>
  177. * Version 2.2 released.
  178. =======================
  179. Tag sources with `VER-2-2-0'.
  180. 2006-04-26 Werner Lemberg <wl@gnu.org>
  181. * src/psaux/psobjs.c (shift_elements): Don't use FT_Long but
  182. FT_PtrDist for `delta'. Reported by Céline PILLET
  183. <Celine.Pillet@Tagginfo.com>.
  184. 2006-04-21 David Turner <david@freetype.org>
  185. * include/freetype/ftincrem.h: Documentation updates.
  186. (FT_Incremental_Interface): New typedef.
  187. * include/freetype/ftmodapi.h, include/freetype/ftglyph.h:
  188. Documentation updates.
  189. * include/freetype/freetype.h: Documentation update.
  190. (FT_HAS_FAST_GLYPHS): Always set to 0.
  191. * include/freetype/ftstroke.h, src/base/ftstroke.c (FT_Stroker_New):
  192. Take an FT_Library argument instead of FT_Memory.
  193. * src/sfnt/ttcmap.c: Remove compiler warnings (gcc-4.0.2).
  194. 2006-04-13 David Turner <david@freetype.org>
  195. * src/autofit/afloader.c (af_loader_init, af_loader_load_g): Remove
  196. superfluous code in the auto-fitter's loader.
  197. 2006-04-05 Detlef Würkner <TetiSoft@apg.lahn.de>
  198. * builds/amiga/makefile, builds/amiga/makefile.os4,
  199. builds/amiga/smakefile: Added FT2_BUILD_LIBRARY define.
  200. 2006-04-03 luoyi <luoyi.ly@gmail.com>
  201. * builds/compiler/intelc.mk (TE): New variable.
  202. (ANSIFLAGS): Updated.
  203. 2006-04-03 Werner Lemberg <wl@gnu.org>
  204. * builds/exports.mk (clean_symbols_list, clean_apinames): Removed.
  205. (CLEAN): Add $(EXPORTS_LIST) and $(APINAMES_EXE).
  206. (.PHONY): Updated.
  207. * configure.ac: Minor fixes to improve --help output.
  208. * docs/PROBLEMS: New file.
  209. 2006-04-01 David Turner <david@freetype.org>
  210. * docs/CHANGES: Updated.
  211. * include/freetype/ftcache.h, include/freetype/config/ftheader.h:
  212. Update documentation comments.
  213. 2006-04-01 Werner Lemberg <wl@gnu.org>
  214. * builds/unix/install.mk (uninstall): Don't handle `cache'
  215. directory which no longer exists.
  216. 2006-03-29 Detlef Würkner <TetiSoft@apg.lahn.de>
  217. * src/psaux/psconv.c: Changed some variables which are expected to
  218. hold negative values from `char' to `FT_Char' to allow building with
  219. a compiler where `char' is unsigned by default.
  220. 2006-03-27 David Turner <david@freetype.org>
  221. * src/sfnt/ttkern.c (tt_face_get_kerning): Fix a serious bug that
  222. causes some programs to go into an infinite loop when dealing with
  223. fonts that don't have a properly sorted kerning sub-table.
  224. 2006-03-26 Werner Lemberg <wl@gnu.org>
  225. * src/bdf/bdflib.c (ERRMSG4): New macro.
  226. (_bdf_parse_glyphs): Handle invalid BBX values.
  227. * include/freetype/fterrdef.h (FT_Err_Bbx_Too_Big): New error
  228. macro.
  229. 2006-03-23 Werner Lemberg <wl@gnu.org>
  230. * docs/CHANGES: Updated.
  231. * src/tools/docmaker/tohtml.py (html_header_2): Add horizontal
  232. padding between table elements.
  233. (html_header_1): The `DOCTYPE' comment must be in uppercase.
  234. (make_html_para): Convert `...' quotations into real left and
  235. right single quotes.
  236. Use `para_header' and `para_footer'.
  237. * src/tools/docmaker/sources.py (re_bold, re_italic): Accept "'"
  238. also.
  239. 2006-03-23 David Turner <david@freetype.org>
  240. Add FT_Get_SubGlyph_Info API to retrieve subglyph data. Note that
  241. we do not expose the FT_SubGlyphRec structure.
  242. * include/freetype/internal/ftgloadr.h (FT_SUBGLYPH_FLAGS_*): Moved
  243. to...
  244. * include/freetype/freetype.h (FT_SUBGLYPH_FLAGS_*): Here.
  245. (FT_Get_SubGlyph_Info): New declaration.
  246. * src/base/ftobjs.c (FT_Get_SubGlyph_Info): New function.
  247. * src/autofit/afloader.c (af_loader_load_g): Compute lsb_delta and
  248. rsb_delta correctly in edge cases.
  249. 2006-03-22 Werner Lemberg <wl@gnu.org>
  250. * src/cache/ftccache.c, (ftc_node_mru_up, FTC_Cache_Lookup)
  251. [!FTC_INLINE]: Compile conditionally.
  252. * src/cache/ftccache.h: Updated.
  253. * src/cache/ftcglyph.c (FTC_GNode_Init, FTC_GNode_UnselectFamily,
  254. FTC_GNode_Done, FTC_GNode_Compare, FTC_Family_Init, FTC_GCache_New):
  255. s/FT_EXPORT/FT_LOCAL/.
  256. (FTC_GCache_Init, FTC_GCache_Done): Commented out.
  257. (FTC_GCache_Lookup) [!FTC_INLINE]: Compile conditionally.
  258. s/FT_EXPORT/FT_LOCAL/.
  259. * src/cache/ftcglyph.h: Updated.
  260. * src/cache/ftcimage.c (FTC_INode_Free, FTC_INode_New):
  261. s/FT_EXPORT/FT_LOCAL/.
  262. (FTC_INode_Weight): Commented out.
  263. * src/cache/ftcimage.h: Updated.
  264. * src/cache/ftcmanag.c (FTC_Manager_Compress,
  265. FTC_Manager_RegisterCache, FTC_Manager_FlushN):
  266. s/FT_EXPORT/FT_LOCAL/.
  267. * src/cache/ftcmanag.h: Updated.
  268. * src/cache/ftcsbits.c (FTC_SNode_Free, FTC_SNode_New,
  269. FTC_SNode_Compare): s/FT_EXPORT/FT_LOCAL/.
  270. (FTC_SNode_Weight): Commented out.
  271. * src/cache/ftcsbits.h: Updated.
  272. 2006-03-22 Werner Lemberg <wl@gnu.org>
  273. * src/cache/ftccache.c, src/cache/ftccache.h (FTC_Node_Destroy):
  274. Remove, unused.
  275. * src/cache/ftccmap.h: Remove, unused.
  276. * src/cache/rules.mk (CACHE_DRV_H): Remove ftccmap.h.
  277. 2006-03-21 Zhe Su <james.su@gmail.com>
  278. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Improve
  279. algorithm.
  280. 2006-03-21 Werner Lemberg <wl@gnu.org>
  281. * src/cff/cfftypes.h (CFF_CharsetRec): Add `max_cid' member.
  282. * src/cff/cffload.c (cff_charset_load): Set `charset->max_cid'.
  283. * src/cff/cffgload.c (cff_slot_load): Change type of third parameter
  284. to `FT_UInt'.
  285. Check range of `glyph_index'.
  286. * src/cff/cffgload.h: Updated.
  287. * src/sfnt/ttcmap.c (tt_face_build_cmaps): Handle invalid offset
  288. correctly.
  289. * builds/freetype.mk (refdoc), docs/CHANGES, Jamfile (RefDoc),
  290. README: s/2.1.10/2.2/.
  291. 2006-03-21 David Turner <david@freetype.org>
  292. * src/autofit/aflatin.c (af_latin_metrics_scale): Fix small bug
  293. that crashes the auto-hinter (introduced by previous patch).
  294. 2006-03-20 Werner Lemberg <wl@gnu.org>
  295. * builds/freetype.mk (CACHE_DIR, CACHE_H): Remove.
  296. (FREETYPE_H): Updated.
  297. * src/cache/rules.mk (CACHE_H_DIR): Remove.
  298. (CACHE_DRV_H): Updated.
  299. 2006-03-20 David Turner <david@freetype.org>
  300. * include/freetype/cache/ftccache.h,
  301. include/freetype/cache/ftccmap.h, include/freetype/cache/ftcglyph.h
  302. include/freetype/cache/ftcimage.h include/freetype/cache/ftcmanag.h
  303. include/freetype/cache/ftcmru.h include/freetype/cache/ftcsbits.h:
  304. Move to...
  305. * src/cache/ftccache.h, src/cache/ftcglyph.h, src/cache/ftcimage.h,
  306. src/cache/ftcsbits.h, src/cache/ftcmanag.h, src/cache/ftccmap.h,
  307. src/cache/ftcmru.h: This new location.
  308. Update declarations according to the changes in the corresponding
  309. source files.
  310. Note that these files are not used by FreeType clients; all public
  311. APIs of the cache module have been already moved to
  312. `include/freetype/ftcache.h', and all FT_CACHE_INTERNAL_XXXX_H
  313. macros resolve to it.
  314. Reason for the move is to allow modifications of the internals
  315. without interferences with rogue clients. Note that there are no
  316. known clients that access the cache internals at the moment.
  317. * builds/unix/install.mk (install): Don't install headers from
  318. $(CACHE_H).
  319. Remove `freetype/cache' from the target directory.
  320. * include/freetype/config/ftheader.h (FT_CACHE_MANAGER_H,
  321. FT_CACHE_INTERNAL_MRU_H, FT_CACHE_INTERNAL_MANAGER_H,
  322. FT_CACHE_INTERNAL_CACHE_H, FT_CACHE_INTERNAL_GLYPH_H,
  323. FT_CACHE_INTERNAL_IMAGE_H, FT_CACHE_INTERNAL_SBITS_H): Point to
  324. FT_CACHE_H.
  325. * src/cache/ftcbasic.c, src/cache/ftccache.h, src/cache/ftccback.h,
  326. src/cache/ftccmap.c, src/cache/ftcglyph.c, src/cache/ftcglyph.h,
  327. src/cache/ftcimage.c, src/cache/ftcimage.h, src/cache/ftcmanag.c,
  328. src/cache/ftcmanag.h, src/cache/ftcmru.h, src/cache/ftcsbits.c,
  329. src/cache/ftcsbits.h: Don't use the FT_CACHE_INTERNAL_XXX_H macros
  330. but include the headers directly (which are now in `src/cache').
  331. * src/cache/ftccache.c: Don't use the FT_CACHE_INTERNAL_XXX_H
  332. macros but include the headers directly.
  333. (FTC_Cache_Init, FTC_Cache_Done, FTC_Cache_NewNode,
  334. FTC_Cache_Lookup, FTC_Cache_RemoveFaceID): Declare as FT_LOCAL_DEF.
  335. * src/cache/ftccache.c: Don't use the FT_CACHE_INTERNAL_XXX_H
  336. macros but include the headers directly.
  337. (FTC_MruNode_Prepend, FTC_MruNode_Up, FTC_MruNode_Remove,
  338. FTC_MruList_Init, FTC_MruList_Reset, FTC_MruList_Done,
  339. FTC_MruList_New, FTC_MruList_Remove, FTC_MruList_RemoveSelection):
  340. Declare as FT_LOCAL_DEF.
  341. (FTC_MruList_Find, FTC_MruList_Lookup) [!FTC_INLINE]: Compile
  342. conditionally.
  343. Declare as FT_LOCAL_DEF.
  344. * builds/win32/visualc/freetype.dsp: Update project file, add
  345. missing base source files (ftstroke.c, ftxf86.c, etc.).
  346. * src/autofit/afcjk.c, src/autofit/aflatin.c, src/base/ftobjs.c,
  347. src/cff/cffobjs.c, src/cid/cidobjs.c, src/pfr/pfrobjs.c,
  348. src/sfnt/sfobjs.c, src/sfnt/ttmtx.c, src/type1/t1afm.c,
  349. src/type1/t1objs.c: Remove compiler warnings when building with
  350. Visual C++ 6 and /W4.
  351. * src/autofit/aflatin.c (af_latin_hints_init): Disable horizontal
  352. hinting for italic/oblique fonts.
  353. * src/truetype/ttpload.c, src/truetype/ttpload.h
  354. (tt_face_get_device_metrics): Change second argument to `FT_UInt'.
  355. 2006-03-06 David Turner <david@freetype.org>
  356. * src/cache/ftcmanag.c (FTC_Manager_Lookup_Size): Prevent crashes in
  357. Mozilla/FireFox print preview in Ubuntu Hoary.
  358. 2006-02-28 Chia-I Wu <b90201047@ntu.edu.tw>
  359. * src/base/ftutil.c (ft_mem_qalloc) [FT_STRICT_ALIASING]: Do not
  360. return error when size == 0.
  361. 2006-02-28 Chia-I Wu <b90201047@ntu.edu.tw>
  362. * src/base/ftobjs.c (FT_Done_Library): Remove modules in reverse
  363. order so that type42 module is removed before truetype module. This
  364. avoids double free in some occasions.
  365. 2006-02-28 David Turner <david@freetype.org>
  366. * Release candidate VER-2-2-0-RC4.
  367. ----------------------------------
  368. * docs/CHANGES: Documentation updates.
  369. 2006-02-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  370. * modules.cfg (BASE_EXTENSIONS): Compile in ftgxval.c by default to
  371. build ftvalid in ft2demos. It works as dummy ABI if gxvalid is not
  372. built.
  373. 2006-02-27 Werner Lemberg <wl@gnu.org>
  374. * include/freetype/cache/ftccache.h
  375. [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove declaration of
  376. ftc_node_done.
  377. * src/cache/ftccache.c (ftc_node_destroy)
  378. [!FT_CONFIG_OPTION_OLD_INTERNALS]: Mark as FT_LOCAL_DEF. This
  379. should now fix all possible compilation options.
  380. 2006-02-27 David Turner <david@freetype.org>
  381. * src/base/ftutil.c (ft_mem_alloc, ft_mem_qalloc, ft_mem_realloc,
  382. ft_mem_qrealloc): Return an error if a negative size is passed in
  383. parameters.
  384. * src/cache/ftccache.c (ftc_node_destroy): Mark as FT_BASE_DEF since
  385. it needs to be exported for rogue clients.
  386. * src/pshinter/pshglob.c (psh_blues_set_zones_0): Prevent problems
  387. with malformed fonts which have an odd number of blue values (these
  388. are broken according to the specs).
  389. * src/cff/cffload.c (cff_subfont_load), src/type1/t1load.c
  390. (T1_Open_Face): Modify the loaders to force even-ness of
  391. `num_blue_values'.
  392. (cff_index_access_element): Ignore invalid entries in index files.
  393. 2006-02-27 Chia-I Wu <b90201047@ntu.edu.tw>
  394. * src/base/ftobjs.c (FT_Set_Char_Size): Check the case where width
  395. or height is 0.
  396. 2006-02-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  397. * builds/mac/FreeType.m68k_cfm.make.txt,
  398. builds/mac/FreeType.m68k_far.make.txt,
  399. builds/mac/FreeType.ppc_carbon.make.txt,
  400. builds/mac/FreeType.ppc_classic.make.txt: Update to new header
  401. inclusion introduced on 2006-02-16.
  402. 2006-02-27 Chia-I Wu <b90201047@ntu.edu.tw>
  403. * src/base/ftobjs.c (GRID_FIT_METRICS): New macro.
  404. (ft_glyphslot_grid_fit_metrics, FT_Load_Glyph) [GRID_FIT_METRICS]:
  405. Re-enable glyph metrics grid-fitting. It is now done in the base
  406. layer.
  407. (FT_Set_Char_Size, FT_Set_Pixel_Sizes): Make sure the width and
  408. height are not too small or too large, just like we were doing in
  409. 2.1.10.
  410. * src/autofit/afloader.c (af_loader_load_g): The vertical metrics
  411. are not scaled.
  412. 2006-02-26 Werner Lemberg <wl@gnu.org>
  413. * docs/release: Minor additions and clarifications.
  414. * docs/CHANGES: Updated to reflect many fixes for backward
  415. compatibility. Still incomplete.
  416. 2006-02-26 David Turner <david@freetype.org>
  417. * src/base/ftobjs.c (ft_recompute_scaled_metrics): Re-enable
  418. conservative rounding of metrics to avoid breaking clients like
  419. Pango (see https://bugzilla.gnome.org/show_bug.cgi?id=327852).
  420. 2006-02-25 Werner Lemberg <wl@gnu.org>
  421. * devel/ftoption.h: Synchronize with
  422. include/freetype/config/ftoption.h.
  423. * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF (again).
  424. 2006-02-25 David Turner <david@freetype.org>
  425. Fix compiler warnings as well as C++ compilation problems.
  426. Add missing prototypes.
  427. * src/autofit/afcjk.c, src/base/ftobjs.c, src/base/ftutil.c,
  428. src/bdf/bdfdrivr.c, src/cff/cffcmap.c, src/cff/cffobjs.c,
  429. src/psaux/afmparse.c,, src/psaux/t1cmap.c, src/smooth/ftgrays.c
  430. src/tools/apinames.c, src/truetype/ttdriver.c: Add various casts,
  431. initialize variables, and decorate functions with FT_CALLBACK_DEF,
  432. etc., to fix compiler warnings (and C++ compiling errors).
  433. * src/cache/ftcbasic.c: Fix `-Wmissing-prototypes' warnings with
  434. gcc.
  435. * builds/unix/ftsystem.c: Don't include FT_INTERNAL_OBJECTS_H but
  436. FT_INTERNAL_STREAM_H.
  437. * src/base/ftsystem.c: Include FT_INTERNAL_STREAM_H.
  438. * include/freetype/config/ftheader.h (FT_PFR_H): New macro.
  439. * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): Don't
  440. define for C++.
  441. * include/freetype/internal/services/svotval.h: Don't include
  442. FT_OPENTYPE_VALIDATE_H but FT_INTERNAL_VALIDATE_H.
  443. * include/freetype/internal/services/svpfr.h: Include FT_PFR_H.
  444. * src/gzip/ftgzip.c: Include FT_GZIP_H.
  445. * src/lzw/ftlzw.c, src/lzw/ftlzw2.c: Include FT_LZW_H.
  446. * src/sfnt/ttbdf.c (tt_face_load_bdf_props): Rearrange code.
  447. 2006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
  448. * src/base/ftoutln.c (FT_OUTLINE_GET_CONTOUR, ft_contour_has,
  449. ft_contour_enclosed, ft_outline_get_orientation): Commented out. We
  450. have to wait until `FT_GlyphSlot_Own_Bitmap' is stabilized.
  451. (FT_Outline_Embolden): Use `FT_Outline_Get_Orientation'.
  452. 2006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
  453. * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Update
  454. documentation.
  455. * include/freetype/ftsynth.h (FT_GlyphSlot_Own_Bitmap),
  456. src/base/ftsynth.c (FT_GlyphSlot_Own_Bitmap): New function to make
  457. sure a glyph slot owns its bitmap. It is also marked experimental
  458. and due to change.
  459. (FT_GlyphSlot_Embolden): Undo the last change. It turns out that
  460. rendering the outline confuses some applications.
  461. 2006-02-24 David Turner <david@freetype.org>
  462. * Release candidate VER-2-2-0-RC3.
  463. ----------------------------------
  464. * src/cache/ftcbasic.c: Correct compatibility hack bug.
  465. 2006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
  466. * include/freetype/freetype.h (FT_Size_RequestRec): Change the type
  467. of `width' and `height' to `FT_Long'.
  468. (enum FT_Size_Request_Type), src/base/ftobjs.c (FT_Request_Metrics):
  469. New request type `FT_SIZE_REQUEST_TYPE_SCALES' to specify the scales
  470. directly.
  471. 2006-02-23 David Turner <david@freetype.org>
  472. Two BDF patches from Debian libfreetype6 for 2.1.10.
  473. * src/bdf/bdflib.c (_bdf_parse_glyphs): Fix a bug with zero-width
  474. glyphs.
  475. Fix a problem with large encodings.
  476. Fix binary compatibility issues for gnustep-back (GNUstep backend
  477. module) which still crashes under Sarge.
  478. * src/cache/ftccmap.c (FTC_OldCMapType, FTC_OldCMapIdRec,
  479. FTC_OldCMapDesc) [FT_CONFIG_OPTION_OLD_INTERNALS]: New data
  480. structures and enumerations.
  481. (FTC_CMapCache_Lookup) [FT_CONFIG_OPTION_OLD_INTERNALS]: New
  482. compatibility code.
  483. * src/cache/ftcbasic.c: Fix a silly bug that prevented our `hack' to
  484. support rogue clients compiled against 2.1.7 to work correctly.
  485. This probably explains the GNUstep crashes with the second release
  486. candidate.
  487. 2006-02-23 Chia-I Wu <b90201047@ntu.edu.tw>
  488. * include/freetype/ftoutln.h (enum FT_Orientation): New value
  489. `FT_ORIENTATION_NONE'.
  490. * src/base/ftoutln.c (FT_OUTLINE_GET_CONTOUR, ft_contour_has,
  491. ft_contour_enclosed, ft_outline_get_orientation): Another version of
  492. `FT_Outline_Get_Orientation'. This version differs from the public
  493. one in that each part (contour not enclosed in another contour) of the
  494. outline is checked for orientation.
  495. (FT_Outline_Embolden): Use `ft_outline_get_orientation'.
  496. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Render the outline and
  497. use bitmap's embolden routine when the outline one failed.
  498. 2006-02-22 Chia-I Wu <b90201047@ntu.edu.tw>
  499. * modules.cfg: Compile in ftotval.c and ftxf86.c by default for ABI
  500. compatibility.
  501. * src/sfnt/sfobjs.c (sfnt_done_face): Fix a memory leak.
  502. * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_bit_aligned,
  503. tt_sbit_decoder_load_byte_aligned) [FT_OPTIMIZE_MEMORY]: Fix sbit
  504. loading. (Only tested with bit aligned sbit with x_pos == 0.)
  505. * src/truetype/ttpload.c (tt_face_load_hdmx,
  506. tt_face_get_device_metrics) [FT_OPTIMIZE_MEMORY]: `hdmx' is not
  507. actually used.
  508. 2006-02-21 David Turner <david@freetype.org>
  509. Add a new API named FT_Get_TrueType_Engine_Type to determine whether
  510. we have a patented, unpatented, or unimplemented TrueType bytecode
  511. interpreter.
  512. The FT_Get_Module_Flags API was removed consequently.
  513. * include/freetype/ftmodapi.h (FT_Module_Get_Flags): Removed.
  514. Replaced with...
  515. (FT_Get_TrueType_Engine_Type): This.
  516. (FT_TrueTypeEngineType): New enumeration.
  517. * include/freetype/internal/ftserv.h (FT_SERVICE_TRUETYPE_ENGINE_H):
  518. New macro.
  519. * src/base/ftobjs.c: Include FT_SERVICE_TRUETYPE_ENGINE_H.
  520. (FT_Module_Get_Flags): Removed. Replaced with...
  521. (FT_Get_TrueType_Engine_Type): This.
  522. * src/truetype/ttdriver.c: Include FT_SERVICE_TRUETYPE_ENGINE_H.
  523. (tt_service_truetype_engine): New service structure.
  524. (tt_services): Register it.
  525. * include/freetype/internal/services/svtteng.h: New file.
  526. * src/sfnt/sfobjs.c (sfnt_load_face): Fix silly bug that prevented
  527. embedded bitmaps from being correctly listed and used.
  528. * src/sfnt/ttmtx.c (tt_face_load_hmtx): Disable memory optimization
  529. if FT_CONFIG_OPTION_OLD_INTERNALS is used. The is necessary because
  530. libXfont is directly accessing the HMTX data, unfortunately.
  531. Fix some compiler warnings.
  532. (tt_face_get_metrics): Ditto.
  533. * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Fix handling of
  534. character advances.
  535. 2006-02-20 David Turner <david@freetype.org>
  536. Support binary compatibility with the X.Org server's Xfont library.
  537. Note that this change unfortunately prevents memory optimizations
  538. for the embedded bitmap loader.
  539. * include/freetype/internal/sfnt.h (SFNT_Interface): Move
  540. `set_sbit_strike' and `load_sbit_metrics' fields to the location of
  541. version 2.1.8.
  542. * src/sfnt/sfdriver.c (tt_face_set_sbit_strike_stub): Call
  543. FT_Size_Request.
  544. (sfnt_interface): Updated.
  545. * src/sfnt/ttsbit.c [FT_CONFIG_OPTION_OLD_INTERNALS]: Don't load
  546. ttsbit0.c.
  547. (tt_load_sbit_metrics): Make `sbit_small_metrics_fields' static.
  548. * src/sfnt/ttsbit.h: Updated.
  549. 2006-02-17 David Turner <david@freetype.org>
  550. * builds/unix/unix-cc.in (LINK_LIBRARY): Don't filter out exported
  551. functions anymore. This ensures that all FT_BASE internal functions
  552. are available for dynamic linking.
  553. * include/freetype/ftcache.h (FTC_IMAGE_TYPE_COMPARE,
  554. FTC_IMAGE_TYPE_HASH), src/cache/ftcbasic.c (FTC_OldFontRec,
  555. FTC_OldImageDescRec, FTC_ImageCache_Lookup, FTC_Image_Cache_New,
  556. FTC_OldImageDesc, FTC_OLD_IMAGE_FORMAT, ftc_old_image_xxx,
  557. ftc_image_type_from_old_desc, FTC_Image_Cache_Lookup,
  558. FTC_SBitCache_Lookup, FTC_SBit_Cache_New, FTC_SBit_Cache_Lookup)
  559. [FT_CONFIG_OPTION_OLD_INTERNALS]: Try to revive old functions of the
  560. cache sub-system. We try to recognize old legacy signatures with a
  561. gross hack (hope it works).
  562. 2006-02-17 Werner Lemberg <wl@gnu.org>
  563. * devel/ftoption.h: Synchronize with
  564. include/freetype/config/ftoption.h.
  565. 2006-02-16 David Turner <david@freetype.org>
  566. Massive changes to the internals to respect the internal object
  567. layouts and exported functions of FreeType 2.1.7. Note that the
  568. cache sub-system cannot be fully retrofitted, unfortunately.
  569. * include/freetype/config/ftoption.h
  570. (FT_CONFIG_OPTION_OLD_INTERNALS): New macro.
  571. * include/freetype/ftcache.h, include/freetype/cache/ftccache.h,
  572. include/freetype/cache/ftccmap.h,
  573. include/freetype/internal/ftcalc.h,
  574. include/freetype/internal/ftdriver.h,
  575. include/freetype/internal/ftmemory.h,
  576. include/freetype/internal/ftobjs.h,
  577. include/freetype/internal/psaux.h, include/freetype/internal/sfnt.h,
  578. include/freetype/internal/t1types.h,
  579. include/freetype/internal/tttypes.h, src/base/ftcalc.c,
  580. src/base/ftdbgmem.c, src/base/ftobjs.c, src/base/ftutil.c,
  581. src/bdf/bdfdrivr.c, src/cache/ftccache.c, src/cache/ftccback.h,
  582. src/cache/ftcmanag.c, src/cff/cffdrivr.c, src/cid/cidriver.c,
  583. src/pcf/pcfdrivr.c, src/pfr/pfrdrivr.c, src/psaux/psauxmod.c,
  584. src/sfnt/sfdriver.c, src/truetype/ttdriver.c, src/type1/t1driver.c,
  585. src/type1/t1objs.c, src/type42/t42drivr.c, src/winfonts/winfnt.c:
  586. Use FT_CONFIG_OPTION_OLD_INTERNALS to revive old functions and data
  587. structures.
  588. Move newly added structure elements to the end of the affected
  589. structure and add stub fields (if FT_CONFIG_OPTION_OLD_INTERNALS is
  590. defined) to assure binary compatibility with older FreeType
  591. versions.
  592. Use FT_CONFIG_OPTION_OLD_INTERNALS to add function stubs for old
  593. functions:
  594. ft_stub_set_char_sizes
  595. ft_stub_set_pixel_sizes
  596. Rename the following internal functions to provide the old function
  597. names as stubs:
  598. FT_Alloc -> ft_mem_alloc
  599. FT_QAlloc -> ft_mem_qalloc
  600. FT_Realloc -> ft_mem_realloc
  601. FT_QRealloc -> ft_mem_qrealloc
  602. FT_Free -> ft_mem_free
  603. FT_Alloc_Debug -> ft_mem_alloc_debug
  604. FT_QAlloc_Debug -> ft_mem_qalloc_debug
  605. FT_Realloc_Debug -> ft_mem_realloc_debug
  606. FT_QRealloc_Debug -> ft_mem_qrealloc_debug
  607. FT_Free_Debug -> ft_mem_free_debug
  608. 2006-02-15 Chia-I Wu <b90201047@ntu.edu.tw>
  609. * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Remove
  610. unused `max_points' and `max_contours'.
  611. * src/cid/cidobjs.c (cid_face_init), src/type1/t1objs.c
  612. (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Update.
  613. * include/freetype/internal/tttypes.h (TT_FaceRec): Remove unused
  614. `max_components'.
  615. * src/truetype/ttinterp.h (TT_ExecContextRec): Remove unused
  616. `loadSize' and `loadStack'.
  617. * src/truetype/ttinterp.c (TT_Done_Context, TT_Load_Context),
  618. src/sfnt/ttload.c (tt_face_load_maxp): Update.
  619. * src/cff/cffobjs.h (cff_size_select), src/sfnt/sfdriver.c
  620. (sfnt_interface), src/truetype/ttdriver.c (tt_size_request): Fix
  621. compiler errors/warnings when TT_CONFIG_OPTION_EMBEDDED_BITMAPS is not
  622. defined.
  623. * src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_get_metrics): Fix
  624. possible segment faults for the non-FT_OPTIMIZE_MEMORY'ed versions.
  625. (finally!)
  626. For most OpenType tables, `tt_face_load_xxxx' simply loads the table
  627. and `face->root' is set later in `sfnt_load_face'. Here, we try to
  628. make this work for _all_ tables. Also improve tracing messages.
  629. * src/sfnt/ttsbit.c, src/sfnt/ttsbit0.c, src/sfnt/ttload.c,
  630. src/sfnt/ttmtx.c: all `tt_face_load_xxxx' should load the table and
  631. then exit. Error handling or setting face->root is done later in
  632. `sfnt_load_face'.
  633. * src/sfnt/sfobjs.c (sfnt_load_face): Work harder.
  634. Mac bitmap-only fonts are not scalable.
  635. Check that `face->header.Units_Per_EM' is not zero.
  636. (LOAD_, LOADM_): Emit pretty trace messages.
  637. * src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): Read metrics
  638. from `eblc'.
  639. * src/sfnt/ttcmap.c (tt_face_build_cmaps), src/sfnt/ttpost.c
  640. (load_format_20, load_format_25, tt_face_get_ps_name): Use
  641. face->max_profile.numGlyphs, instead of face->root.num_glyphs.
  642. 2006-02-14 Werner Lemberg <wl@gnu.org>
  643. * include/freetype/ftoutln.h (FT_Outline_Embolden): Mention in
  644. documentation that negative strength values are possible.
  645. Give an example call.
  646. * include/freetype/freetype.h (FT_GlyphSlotRec): Improve
  647. documentation of `outline' field.
  648. * src/sfnt/sfobjs.c: Include FT_INTERNAL_DEBUG_H.
  649. * src/sfnt/sfdriver.c: Include ttmtx.h.
  650. * src/autofit/afcjk.c: Include aftypes.h and aflatin.h.
  651. 2006-02-14 Chia-I Wu <b90201047@ntu.edu.tw>
  652. * src/sfnt/ttmtx.c (tt_face_get_metrics): Typo.
  653. 2006-02-14 Chia-I Wu <b90201047@ntu.edu.tw>
  654. * src/sfnt/ttmtx.c (tt_face_load_hhea, tt_face_load_hmtx): Simply
  655. return error if table is missing.
  656. Check table length in non-FT_OPTIMIZE_MEMORY'ed `tt_face_load_hmtx'.
  657. * src/sfnt/sfobjs.c (sfnt_load_face): Take care of missing metrics
  658. tables. The last change makes Mac bitmap-only font not load and
  659. this fixes it.
  660. * src/truetype/ttgload.c (load_truetype_glyph): Fix compilation
  661. error when FT_CONFIG_OPTION_INCREMENTAL is defined.
  662. 2006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
  663. Clean up the SFNT_Interface. In this final pass, `load_hmtx' is
  664. split from `load_hhea'.
  665. * include/freetype/internal/sfnt.h, src/sfnt/sfdriver.c,
  666. src/sfnt/ttmtx.c, src/sfnt/ttmtx.h: Split `hmtx' from `hhea'.
  667. * src/sfnt/sfobjs.c (sfnt_load_face): Update.
  668. 2006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
  669. * src/sfnt/ttmtx.h, src/sfnt/ttmtx.c: Why are there two copies of
  670. code...
  671. 2006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
  672. Clean up the SFNT_Interface. In this pass, we want to treat the
  673. font directory (offset table and table directory) as a normal table
  674. like the others. This also means that TTCs are no longer recognized
  675. there but in `init_face'.
  676. * include/freetype/internal/sfnt.h (SFNT_Interface),
  677. src/sfnt/sfdriver.c: `load_sfnt_header' and `load_directory' are
  678. combined and renamed to `load_font_dir'.
  679. * src/sfnt/ttload.h, src/sfnt/ttload.c:
  680. s/sfnt_dir_check/check_table_dir/.
  681. `sfnt_init' is moved to sfobjs.c and renamed to `sfnt_open_font'.
  682. `tt_face_load_sfnt_header' and `tt_face_load_directory' are combined
  683. and renamed to `tt_face_load_font_dir'.
  684. * src/sfnt/sfobjs.c (sfnt_init_face): Recognize TTC here.
  685. 2006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
  686. Clean up the SFNT_Interface. Table loading functions are now named
  687. after the tables' tags; `hdmx' is TrueType-specific and thus the
  688. code is moved to the truetype module; `get_metrics' is moved here
  689. from the truetype module so that the code can be shared with the cff
  690. module.
  691. This pass involves no real changes. That is, the code is moved
  692. verbatim mostly. The only exception is the return value of
  693. `tt_face_get_metrics'.
  694. * include/freetype/internal/sfnt.h, src/sfnt/rules.mk,
  695. src/sfnt/sfdriver.c, src/sfnt/sfnt.c, src/sfnt/sfobjs.c,
  696. src/sfnt/ttload.c, src/sfnt/ttload.h, src/sfnt/ttsbit.c,
  697. src/sfnt/ttsbit.h, src/sfnt/ttsbit0.c: Clean up the SFNT_Interface.
  698. * src/sfnt/ttmtx.c, src/sfnt/ttmtx.h: New files. Metrics-related
  699. tables' loading and parsing code is moved to here.
  700. Move `tt_face_get_metrics' here from the truetype module. The
  701. return value is changed from `void' to `FT_Error'.
  702. * include/freetype/internal/fttrace.h: New trace: ttmtx.
  703. * src/truetype/ttpload.c, src/truetype/ttpload.h: `hdmx' loading and
  704. parsing code is moved here.
  705. New function `tt_face_load_prep' split from `tt_face_load_fpgm'.
  706. `tt_face_load_fpgm' returns `FT_Err_Ok' if `fpgm' doesn't exist.
  707. * src/cff/cffgload.c, src/cff/cffobjs.c: Update.
  708. * src/truetype/ttgload.c, src/truetype/ttobjs.c: Update.
  709. 2006-02-11 Chia-I Wu <b90201047@ntu.edu.tw>
  710. * src/autofit/afcjk.c (af_cjk_metrics_init): Fix a stupid bug...
  711. * src/autofit/aflatin.c (af_latin_metrics_init_widths): Use
  712. AF_LatinMetricsRec as the dummy metrics because we cast the metrics
  713. to it later in `af_latin_hints_link_segments'.
  714. 2006-02-11 Chia-I Wu <b90201047@ntu.edu.tw>
  715. * include/freetype/config/ftoption.h (AF_CONFIG_OPTION_CJK): #define
  716. to enable autofit CJK script support. (#define'd by default.)
  717. * src/autofit/aflatin.h (AF_LATIN_CONSTANT): New macro.
  718. * src/autofit/aflatin.c (af_latin_metrics_init_widths): Make sure
  719. that `edge_distance_threshold' is always set.
  720. (af_latin_hints_link_segments): Potential divide-by-zero bug.
  721. Use latin constant in the scoring formula.
  722. * src/autofit/afcjk.c: Minor updates due to the above three changes.
  723. * docs/TODO, docs/CHANGES: Updated.
  724. 2006-02-09 Chia-I Wu <b90201047@ntu.edu.tw>
  725. Introduce experimental autofit CJK module based on akito's autohint
  726. patch. You need to #define AF_MOD_CJK in afcjk.c to enable it.
  727. * src/autofit/afglobal.c, src/autofit/afcjk.h, src/autofit/afcjk.c,
  728. src/autofit/rules.mk, src/autofit/autofit.c, src/autofit/aftypes.h:
  729. Add CJK module based on akito's autohint patch.
  730. * src/autofit/afhints.h (AF_SegmentRec): New field `len' for the
  731. overlap length of the segments.
  732. (AF_SEGMENT_LEN, AF_SEGMENT_DIST): New macros.
  733. * src/autofit/aflatin.h (af_latin_metrics_init_widths),
  734. src/autofit/aflatin.c (af_latin_metrics_init_widths): Made
  735. `FT_LOCAL'.
  736. Use the character given by the caller.
  737. (af_latin_metrics_init_widths, af_latin_hints_link_segments): Scale
  738. the thresholds.
  739. * src/autofit/afloader.c (af_loader_load_g): Respect
  740. AF_SCALER_FLAG_NO_ADVANCE.
  741. 2006-02-09 Werner Lemberg <wl@gnu.org>
  742. * src/cid/cidparse.c (cid_parse_new): Remove shadowing variable.
  743. 2006-02-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  744. * src/cid/cidparse.c (cid_parse_new): Fix for abnormally short or
  745. broken CIDFont. Reported by Taek Kwan(TK) Lee (see ft-devel
  746. 2005-11-02).
  747. 2006-02-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  748. * builds/unix/configure.ac: Fix bug for `--with-old-mac-fonts'
  749. option on UNIX platform. It has been broken since 2006-01-11.
  750. 2006-02-01 Werner Lemberg <wl@gnu.org>
  751. * src/otvalid/module.mk: s/otvalid_module_class/otv_module_class/.
  752. * src/gxvalid/module.mk: s/gxvalid_module_class/gxv_module_class/.
  753. * builds/unix/unixddef.mk: Actually do define PLATFORM (fixing
  754. change from 2006-01-31).
  755. (TOP_DIR, OBJ_DIR): Update.
  756. * builds/unix/install.mk (install): Fix path for ftmodule.h.
  757. * Makefile, *.mk, builds/unix/unix-cc.in, builds/unix-def.in: Use
  758. `?=' where appropriate.
  759. * builds/detect.mk (TOP_DIR), builds/os2/os2-dev.mk (TOP_DIR),
  760. builds/win32/w32-dev.mk (TOP_DIR): Removed. Defined elsewhere.
  761. 2006-01-31 Werner Lemberg <wl@gnu.org>
  762. Implement new, simplified module selection. With GNU make it is now
  763. sufficient to modify a single file, `modules.cfg', to control the
  764. inclusion of modules and base extension files.
  765. This change also fixes the creation of ftmodule.h; it now depends on
  766. `modules.cfg' and thus is rebuilt only if necessary.
  767. Finally, a version of `ftoption.h' in OBJ_DIR is preferred over the
  768. default location.
  769. * modules.cfg: New file.
  770. * builds/freetype.mk: Don't include `modules.mk'.
  771. Include all `rules.mk' files as specified in `modules.cfg'.
  772. (FTOPTION_FLAG, FTOPTION_H): New variables.
  773. (FT_CFLAGS): Add macro definition for FT_CONFIG_MODULES_H.
  774. Add FTOPTION_FLAG.
  775. ($(FT_INIT_OBJ)): Don't use FT_MODULE_LIST.
  776. (CONFIG_H): Add FTMODULE_H and FTOPTION_H.
  777. (INCLUDES): Add DEVEL_DIR.
  778. (INCLUDE_FLAGS, FTSYS_SRC, FTSYS_OBJ, FTDEBUG_SRC, FTDEBUG_OBJ,
  779. OBJ_M, OBJ_S): Use `:=', not `='.
  780. (remove_ftmodule_h): New phony target to delete `ftmodule.h'.
  781. (distclean): Add remove_ftmodule_h.
  782. * builds/modules.mk: (MODULE_LIST): Removed.
  783. (make_module_list, clean_module_list): Replace targets
  784. with...
  785. (FTMODULE_H_INIT, FTMODULE_H_CREATE, FTMODULE_H_DONE): New
  786. variables. Reason for the change is that it is not possible to have
  787. a phony prerequisite which is run only if the target file must be
  788. rebuilt (phony prerequisites act like subroutines and are *always*
  789. executed). We only want to rebuild `ftmodule.h' if `module.cfg' is
  790. changed.
  791. Update all callers.
  792. ($FTMODULE_H)): Rule to create `ftmodule.h', depending on
  793. `modules.cfg'.
  794. * builds/toplevel.mk: Rewrite and simplify module handling.
  795. (MODULES_CFG, FTMODULE_H): New variables.
  796. Include MODULES_CFG.
  797. (MODULES): New variable to include all `module.mk' and `rules.mk'
  798. files. We no longer use make's `wildcard' function for this.
  799. * Makefile (USE_MODULES): Remove. Update all users.
  800. (OBJ_DIR): Define it here.
  801. * src/*/module.mk: Change
  802. make_module_list: foo
  803. foo: ...
  804. to
  805. FTMODULE_H_COMMANDS += FOO
  806. define FOO
  807. ...
  808. endef
  809. in all files. `FTMODULE_H_COMMANDS' is used in `FTMODULE_H_CREATE'.
  810. * src/base/rules.mk (BASE_EXT_SRC): Use BASE_EXTENSIONS.
  811. * builds/unix/detect.mk (setup): Always execute `configure' script.
  812. (have_mk): Rename to...
  813. (have_Makefile): This.
  814. Don't use `strip' function.
  815. * builds/unix/unix.mk: Include `install.mk' only if BUILD_PROJECT is
  816. defined.
  817. (have_mk): Don't use `strip' function.
  818. Test for unix-def.mk in OBJ_DIR, not BUILD_DIR (and invert the test
  819. accordingly).
  820. * builds/unix/install.mk (install, uninstall): Handle `ftmodule.h'.
  821. * builds/os2/os2-dev.mk, builds/unix/unix-dev.mk,
  822. builds/win32/w32-bccd.mk, builds/win32/w32-dev.mk: Don't define
  823. BUILD_DIR but DEVEL_DIR for development header files.
  824. * builds/ansi/ansi-def.mk (TOP_DIR, OBJ_DIR),
  825. builds/beos/beos-def.mk (TOP_DIR, OBJ_DIR), builds/unix/unix-def.in
  826. (TOP_DIR, OBJ_DIR): Removed. Defined elsewhere.
  827. * builds/dos/dos-def.mk (OBJ_DIR), builds/os2/os2-def.mk (OBJ_DIR),
  828. builds/win32/win32-def.mk (OBJ_DIR): Removed. Defined elsewhere.
  829. * builds/unix/unixddef.mk: Don't define BUILD_DIR but DEVEL_DIR for
  830. development header files.
  831. Don't define PLATFORM.
  832. * configure: Copy `modules.cfg' to builddir if builddir != srcdir.
  833. Update snippet taken from autoconf's m4sh.m4 to current CVS version.
  834. Be more verbose.
  835. * include/freetype/config/ftmodule.h: Add comments -- this file is
  836. no longer used if FreeType is built with GNU make.
  837. * docs/CHANGES, docs/CUSTOMIZE, docs/INSTALL, docs/INSTALL.ANY,
  838. docs/INSTALL.GNU, docs/INSTALL.UNX: Document new build mechanism.
  839. Other minor updates.
  840. * modules.txt: Removed. Contents included in `modules.cfg'.
  841. * include/freetype/internal/ftmemory.h (FT_QAlloc_Debug,
  842. FT_Free_Debug) [FT_STRICT_ALIASING]: Fix typos.
  843. * src/base/ftdbgmem.c (FT_Alloc_Debug, FT_Realloc_Debug,
  844. FT_QAlloc_Debug, FT_QRealloc_Debug, FT_Free_Debug)
  845. [FT_STRICT_ALIASING]: Implement.
  846. 2006-01-31 Chia-I Wu <b90201047@ntu.edu.tw>
  847. * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
  848. (cid_face_init), src/pfr/pfrobjs.c (pfr_face_init),
  849. src/type1/t1objs.c (T1_Face_Init): Set face->height to MAX(1.2 *
  850. units_per_EM, ascender - descender).
  851. 2006-01-31 Chia-I Wu <b90201047@ntu.edu.tw>
  852. * include/freetype/internal/t1types.h (AFM_FontInfo),
  853. src/psaux/afmparse.c, src/tools/test_afm.c: Read `FontBBox',
  854. `Ascender', and `Descender' from an AFM.
  855. * src/type1/t1afm.c (T1_Read_Metrics): Use the metrics from the AFM.
  856. * include/freetype/freetype.h (FT_FaceRec): Mention that fields may
  857. be changed after file attachment.
  858. 2006-01-28 Werner Lemberg <wl@gnu.org>
  859. * src/*/module.mk (.PHONY): Add.
  860. 2006-01-27 Werner Lemberg <wl@gnu.org>
  861. * README, docs/FTL.TXT: Fix email address for bug reports.
  862. Other minor formatting.
  863. * devel/ftoption.h: Synchronize with
  864. include/freetype/config/ftoption.h.
  865. * src/autofit/module.mk (add_autofit_module), src/bdf/module.mk
  866. (add_bdf_module), src/type42/module.mk (add_type42_driver): Fix
  867. whitespace.
  868. * src/smooth/module.mk (add_smooth_renderer): Add lcd and lcdv
  869. renderer classes.
  870. 2006-01-27 David Turner <david@freetype.org>
  871. * builds/unix/configure.ac: Fix build problem on Cygwin.
  872. * builds/unix/install.mk (install): Don't install the internal
  873. headers, and remove existing ones if found in the target install
  874. directory.
  875. * src/autofit/afwarp.c: Add simple #ifdef to prevent compilation
  876. if the warp hinter isn't active (it shouldn't, still experimental).
  877. * Jamfile, include/freetype/config/ftmodule.h: Remove `gxvalid'
  878. and `otvalid' from the list of modules that are linked statically
  879. to a given FreeType library. Functionality has been moved to the
  880. `ftvalid' CVS module.
  881. Note also that current Make-based build system still compiles the
  882. modules though.
  883. * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): New macro
  884. which controls the definitions of the memory management functions to
  885. avoid warnings with recent versions of GCC. This macro is only here
  886. to be disabled, in case we detect problems with the new scheme.
  887. NOTE: Disable macro to use the memory debugger -- this will be fixed
  888. later!
  889. * include/freetype/internal/ftmemory.h, src/base/ftutil.c (FT_Alloc,
  890. FT_QAlloc, FT_Realloc, FT_QRealloc, FT_Free) [FT_STRICT_ALIASING]:
  891. New versions.
  892. * builds/win32/visualc/freetype.dsp: Updating project file to
  893. define FT2_BUILD_LIBRARY, and remove gxvalid + otvalid modules from
  894. compilation.
  895. * builds/freetype.mk (FT_CFLAGS), Jamfile (DEFINES): Define the
  896. macro FT2_BUILD_LIBRARY when compiling the library.
  897. * include/freetype/config/ftheader.h: Remove inclusions of internal
  898. headers except if the macro FT2_BUILD_LIBRARY is defined.
  899. * include/freetype/internal/psaux.h (AFM_KernPair, AFM_TrackKern,
  900. AFM_FontInfo): Move structure declarations to...
  901. * include/freetype/internal/t1types.h: This file.
  902. * (many files): Fix compiler warnings.
  903. Various minor reorganizations.
  904. * src/cff/cffload.c (cff_font_done): Don't free static array
  905. `subfonts'.
  906. * src/otvalid/otvcommn.c (otv_ClassDef_validate),
  907. src/otvalid/otvgpos.c (otv_x_sxy): Fix debugging information.
  908. Get rid of writable static variables (i.e., the string table) in
  909. afmparse, and fix compilation in FT2_MULTI mode.
  910. * src/psaux/afmparse.c: Include ft2build.h and FT_FREETYPE_H.
  911. (AFM_MAX_ARGUMENTS): Define...
  912. * src/psaux/afmparse.h: Here.
  913. * src/psaux/Jamfile (_sources): Add afmparse.
  914. * src/psaux/psconv.c: Include psconv.h.
  915. * src/type1/t1afm.c: Don't include FT_INTERNAL_TYPE1_TYPES_H but
  916. FT_INTERNAL_POSTSCRIPT_AUX_H.
  917. * src/type1/t1afm.h: Include FT_INTERNAL_TYPE1_TYPES_H.
  918. 2006-01-23 Chia-I Wu <b90201047@ntu.edu.tw>
  919. * include/freetype/freetype.h (FT_Select_Size): Rename the second
  920. argument from `idx' to `strike_index'.
  921. (FT_Size_Request_Type): Add FT_SIZE_REQUEST_TYPE_MAX to the end of
  922. this enum.
  923. * include/freetype/internal/ftobjs.h (FT_REQUEST_WIDTH,
  924. FT_REQUEST_HEIGHT): New macros to get the width and height of a
  925. request, in fractional pixels.
  926. * include/freetype/internal/ftobjs.h (FT_Select_Metrics,
  927. FT_Request_Metrics), src/base/ftobjs.c (FT_Select_Metrics,
  928. FT_Request_Metrics): New base functions to set the font metrics. They
  929. were part of FT_Select_Size/FT_Request_Size and are made independent
  930. functions so that metrics are not set again and again.
  931. * src/base/ftobjs.c (FT_Select_Size, FT_Request_Size): Metrics are set
  932. only when driver's size_select/size_request is NULL. That is, drivers
  933. should set the metrics themselves.
  934. (FT_Match_Size): Round before matching. This was what we did and it
  935. does cause some problems without rounding.
  936. * src/cff/cffobjs.c (cff_size_select), src/truetype/ttdriver.c
  937. (tt_size_select): Set the font metrics.
  938. s/index/strike_index/.
  939. The scaled metrics are always preferred over strikes' metrics, even
  940. when some strike is selected. This is done because the strikes'
  941. metrics are not reliable, e.g., the sign of the descender is wrong for
  942. some fonts.
  943. * src/cff/cffobjs.c (cff_size_request), src/truetype/ttdriver.c
  944. (tt_size_request): Set the font metrics.
  945. Call cff_size_select/tt_size_select when some strike is matched.
  946. * src/bdf/bdfdrivr.c, src/cff/cffobjs.c, src/cid/cidobjs.c,
  947. src/pcf/pcfdrivr.c, src/truetype/ttdriver.c, src/type1/t1objs.c,
  948. src/type1/t1objs.h, src/type42/t42objs.c, src/winfonts/winfnt.c:
  949. Set the font metrics.
  950. s/index/strike_index/.
  951. * src/tools/test_afm.c, src/psaux/psconv.c: Older versions of these
  952. files were committed. Just a catch-up.
  953. (PS_Conv_ToFixed): Remove the `goto'.
  954. (PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Speed up a little.
  955. * src/sfnt/ttsbit.c (tt_face_load_sbit_strikes,
  956. tt_face_load_strike_metrics), src/sfnt/ttsbit0.c
  957. (tt_face_load_sbit_strikes, tt_face_load_strike_metrics): The
  958. advertised metrics in `available_sizes' are different from those
  959. actually used.
  960. 2006-01-23 Chia-I Wu <b90201047@ntu.edu.tw>
  961. * src/psaux/psaux.c src/psaux/psauxmod.c src/type1/t1driver.c: Make
  962. AFM parser optional, controlled by `T1_CONFIG_OPTION_NO_AFM'.
  963. 2006-01-22 Werner Lemberg <wl@gnu.org>
  964. * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
  965. `texinfo' CVS module at savannah.gnu.org.
  966. 2006-01-21 Werner Lemberg <wl@gnu.org>
  967. * src/autofit/rules.mk (AUTOF_DRV_SRC): Add afwarp.c.
  968. * src/autofit/afloader.c (af_loader_load_g): Move AF_USE_WARPER up
  969. to avoid compiler warnings.
  970. * src/autofit/afwarp.c (af_warper_compute_line_best): Remove
  971. shadowing variable declarations.
  972. Fix warning parameters and replace printf with AF_LOG.
  973. (af_warper_compute): Remove unused variable.
  974. 2006-01-20 David Turner <david@freetype.org>
  975. Adding experimental implementation of `warp hinting' (new hinting
  976. algorithm for gray-level and LCD rendering). It is disabled by
  977. default, you need to #define AF_USE_WARPER in aftypes.h.
  978. * src/autofit/afhints.c (af_glyph_hints_scale_dim) [AF_USE_WARPER]:
  979. New function.
  980. * src/autofit/afhints.h: Updated.
  981. * src/autofit/aflatin.c [AF_USE_WARPER]: Include afwarp.h.
  982. (af_latin_hints_init) [AF_USE_WARPER]: Reset mode to
  983. FT_RENDER_MODE_NORMAL if an LCD mode is selected.
  984. (af_latin_hints_apply) [AF_USE_WARPER]: Call af_warper_compute
  985. appropriately.
  986. * src/autofit/afloader.c (af_loader_load_g) [!AF_USER_WARPER]:
  987. Isolate code for adjusting metrics.
  988. * src/autofit/aftypes.h (AF_USE_WARPER): New macro (commented out by
  989. default).
  990. * src/autofit/afwarp.c, src/autofit/afwarp.h: New files.
  991. * src/autofit/autofit.c [AF_USE_WARPER]: Include afwarp.c.
  992. * src/autofit/Jamfile (_sources): Add afwarp.
  993. 2006-01-19 David Turner <david@freetype.org>
  994. * src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): Fix small bug
  995. that prevented compilation when FT_OPTIMIZE_MEMORY is defined.
  996. 2006-01-19 Brian Weed <bw@imaginengine.com>
  997. * builds/win32/visualc/freetype.dsp: Updated.
  998. 2006-01-17 Werner Lemberg <wl@gnu.org>
  999. Use pscmap service in CFF module.
  1000. * src/cff/cffcmap.c (cff_cmap_uni_pair_compare): Removed.
  1001. (cff_sid_to_glyph_name): New function.
  1002. (cff_cmap_unicode_init, cff_cmap_unicode_done,
  1003. cff_cmap_unicode_char_index, cff_cmap_unicode_char next): Use pscmap
  1004. service.
  1005. (cff_cmap_unicode_class_rec): Updated.
  1006. * src/cff/cffcmap.h (CFF_CMapUnicode, CFF_CMap_UniPair): Removed.
  1007. * src/psnames/psmodule.c (ps_unicodes_char_next): Fix `unicode'
  1008. return value.
  1009. * src/psaux/afmparse.c (afm_parser_read_vals): Use double casting
  1010. to avoid compiler warnings regarding type-punning.
  1011. 2006-01-16 Chia-I Wu <b90201047@ntu.edu.tw>
  1012. * src/psaux/afmparse.c, src/psaux/afmparse.h: New files which
  1013. implement an AFM parser.
  1014. * src/psaux/psconv.c, src/psaux/psconv.h: New files to provide
  1015. conversion functions (e.g., PS real number => FT_Fixed) for the
  1016. PS_Parser and AFM_Parser. Some of the functions are taken, with
  1017. some modifications, from the file psobjs.c.
  1018. * src/psaux/psobjs.c: Use functions from psconv.c.
  1019. * include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Add
  1020. `AFM_Parser' to the `psaux' service.
  1021. * src/psaux/psaux.c, src/psaux/rules.mk (PSAUX_DRV_SRC): Include
  1022. those new files.
  1023. * src/tools/test_afm.c: A test program for AFM parser.
  1024. * include/freetype/internal/services/svkern.h: New file providing a
  1025. `Kerning' service. It is currently only used to get the track
  1026. kerning information.
  1027. * include/freetype/internal/ftserv.h (FT_SERVICE_KERNING_H): New
  1028. macro.
  1029. * src/type1/t1driver.c, src/type1/t1objs.c, src/type1/t1afm.c,
  1030. src/type1/t1afm.h: Update to use the AFM parser.
  1031. Provide the `Kerning' service.
  1032. * include/freetype/freetype.h, src/base/ftobjs.c: New API
  1033. `FT_Get_Track_Kerning'.
  1034. 2006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
  1035. * include/freetype/internal/ftobjs.h, src/base/ftobjs.c,
  1036. src/bdf/bdfdrivr.c, src/cff/cffgload.c, src/cid/cidgload.c,
  1037. src/pcf/pcfdrivr.c, src/type1/t1gload.c, src/winfonts/winfnt.c:
  1038. s/ft_fake_vertical_metrics/ft_synthesize_vertical_metrics/.
  1039. * docs/CHANGES: Mention that vertical metrics are synthesized for
  1040. fonts not having this info.
  1041. 2006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
  1042. * include/freetype/internal/ftobjs.h (ft_fake_vertical_metrics),
  1043. src/base/ftobjs.c (ft_fake_vertical_metrics): New function to fake
  1044. vertical metrics.
  1045. * src/cff/cffgload.c, src/cid/cidgload.c, src/pcf/pcfdrivr.c,
  1046. src/type1/t1gload.c, src/winfonts/winfnt.c: Fake vertical metrics,
  1047. which are monotone.
  1048. * src/truetype/ttgload.c (compute_glyph_metrics): Some fixes and
  1049. formattings in vertical metrics faking. There is still room for
  1050. improvements (and so does the CFF module).
  1051. 2006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
  1052. * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/pcf/pcfdrivr.c
  1053. (PCF_Glyph_Load), src/winfonts/winfnt.c (FNT_Load_Glyph): Don't set
  1054. the linear advance fields as they are only used by the outline
  1055. glyphs.
  1056. * include/freetype/freetype.h: Documentation updates and
  1057. clarifications.
  1058. The meaning of FT_LOAD_FORCE_AUTOHINT is changed so that no real
  1059. change need be made to the code.
  1060. * src/base/ftobjs.c (FT_Load_Glyph): Resolve flag dependencies and
  1061. decide whether to use the auto-hinter according to documentation.
  1062. There should to be no real difference.
  1063. Some checks (e.g., is text height positive?) after the glyph is
  1064. loaded.
  1065. (FT_Select_Size, FT_Request_Size): Scales are set to wrong values.
  1066. Be careful that scales won't be negative.
  1067. 2006-01-14 Chia-I Wu <b90201047@ntu.edu.tw>
  1068. * docs/CHANGES: Mention the size selection change.
  1069. * src/bdf/bdfdrivr.c (BDF_Size_Request, BDF_Size_Select),
  1070. src/pcf/pcfdrivr.c (PCF_Size_Request, PCF_Size_Select),
  1071. src/winfonts/winfnt.c (FNT_Size_Request, FNT_Size_Select): Do size
  1072. matching for requests of type NOMINAL and REAL_DIM.
  1073. * src/winfonts/winfnt.c (FNT_Face_Init): Print trace message when
  1074. `pixel_height' is used for nominal height.
  1075. * src/base/ftobjs.c (FT_Request_Size): Call `FT_Match_Size' if the
  1076. face is bitmap only and driver doesn't provide `request_size'. This
  1077. is added merely for completion as no driver satisfies the conditions.
  1078. 2006-01-13 Chia-I Wu <b90201047@ntu.edu.tw>
  1079. Introduce new size selection interface.
  1080. * include/freetype/internal/ftdriver.h (struct FT_Driver_ClassRec):
  1081. Replace `set_char_sizes' and `set_pixel_sizes' by `request_size' and
  1082. `select_size'.
  1083. * include/freetype/freetype.h (FT_Select_Size, FT_Size_Request_Type,
  1084. FT_Size_Request, FT_Request_Size, FT_Select_Size), src/base/ftobjs.c
  1085. (FT_Select_Size, FT_Request_Size): API additions to export the new
  1086. size selection interface.
  1087. * src/base/ftobjs.c (FT_Set_Char_Size, FT_Set_Pixel_Sizes): Use
  1088. `FT_Request_Size'.
  1089. * include/freetype/internal/ftobjs.h (FT_Match_Size),
  1090. src/base/ftobjs.c (FT_Match_Size): New function to match a size
  1091. request against `available_sizes'. Drivers supporting bitmap strikes
  1092. can use this function to implement `request_size'.
  1093. * src/bdf/bdfdrivr.c, src/cid/cidobjs.c, src/cid/cidobjs.h,
  1094. src/cid/cidriver.c, src/pcf/pcfdrivr.c, src/type1/t1driver.c,
  1095. src/type1/t1objs.c, src/type1/t1objs.h, src/type42/t42drivr.c,
  1096. src/type42/t42objs.c, src/type42/t42objs.h, src/winfonts/winfnt.c:
  1097. Update to new size selection interface.
  1098. * src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffobjs.c,
  1099. src/cff/cffobjs.h, src/truetype/ttdriver.c, src/truetype/ttgload.c,
  1100. src/truetype/ttobjs.c, src/truetype/ttobjs.h: Update to new size
  1101. selection interface.
  1102. Make `strike_index' FT_ULong and always defined.
  1103. Use `load_strike_metrics' provided by SFNT interface.
  1104. 2006-01-13 Chia-I Wu <b90201047@ntu.edu.tw>
  1105. * include/freetype/internal/sfnt.h (SFNT_Interface): New method
  1106. `load_strike_metrics' used to load the strike's metrics.
  1107. * src/sfnt/sfdriver.c, src/sfnt/ttsbit.c, src/sfnt/ttsbit.h,
  1108. src/sfnt/ttsbit0.c: New function `tt_face_load_strike_metrics'.
  1109. * src/pfr/pfrobjs.c (pfr_face_init): Set FT_Bitmap_Size correctly.
  1110. * src/winfonts/winfnt.c (FNT_Face_Init): Use `nominal_point_size' for
  1111. nominal size unless it is obviously incorrect.
  1112. * include/freetype/freetype.h (FT_Bitmap_Size): Update the comments on
  1113. FNT driver.
  1114. 2006-01-12 Werner Lemberg <wl@gnu.org>
  1115. Prepare use of pscmap service within CFF module.
  1116. * include/freetype/internal/services/svpscmap.h: Include
  1117. FT_INTERNAL_OBJECTS_H.
  1118. (PS_Unicode_Index_Func): Removed. Unused.
  1119. (PS_Macintosh_Name_Func): Renamed to...
  1120. (PS_Macintosh_NameFunc): This.
  1121. Update all callers.
  1122. (PS_Adobe_Std_Strings_Func): Renamed to...
  1123. (PS_Adobe_Std_StringsFunc): This.
  1124. Update all callers.
  1125. (PS_UnicodesRec): This is the former `PS_Unicodes' structure.
  1126. Add `cmap' member.
  1127. Update all callers.
  1128. (PS_Unicodes): This is now a typedef'd pointer to PS_UnicodesRec.
  1129. Update all callers.
  1130. (PS_Glyph_NameFunc): New typedef.
  1131. (PS_Unicodes_InitFunc): Change arguments to expect a function
  1132. and generic data pointer which returns a glyph name from a given
  1133. index.
  1134. * src/psnames/psmodule.c (ps_unicodes_init, ps_unicodes_char_index,
  1135. ps_unicodes_char_next, pscmaps_interface): Updated.
  1136. * include/freetype/internal/t1types.h (T1_FaceRec): Updated.
  1137. * src/psaux/t1cmap.h (T1_CMapStdRec): Updated.
  1138. (T1_CMapUnicode, T1_CMapUnicodeRec): Removed.
  1139. * src/psaux/t1cmap.c (t1_get_glyph_name): New callback function.
  1140. (t1_cmap_unicode_init, t1_cmap_unicode_done,
  1141. t1_cmap_unicode_char_index, t1_cmap_unicode_char_next,
  1142. t1_cmap_unicode_class_rec): Updated.
  1143. * src/type42/t42types.h (T42_FaceRec): Updated.
  1144. 2006-01-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1145. * include/freetype/ftmac.h: Add declaration of new functions
  1146. FT_New_Face_From_FSRef and FT_GetFile_From_Mac_ATS_Name that
  1147. were introduced by the jumbo patch on 2006-01-11.
  1148. 2006-01-11 Werner Lemberg <wl@gnu.org>
  1149. Fix Savannah bug #15056 and use pscmap service in psaux module.
  1150. * include/freetype/internal/services/svpscmap.h (PS_UniMap): Use
  1151. FT_UInt32 for `glyph_index'.
  1152. (PS_Unicodes_InitFunc): Use FT_String for `glyph_names'.
  1153. (PS_Unicodes_CharIndexFunc): Use FT_UInt32 for `unicode'.
  1154. (PS_Unicodes_CharNextFunc): Make second argument a pointer to
  1155. FT_UInt32.
  1156. * src/psnames/psmodule.c (VARIANT_BIT, BASE_GLYPH): New macros.
  1157. (ps_unicode_value): Set VARIANT_BIT in return value if glyph is a
  1158. variant glyph (this is, it has non-leading `.' in its name).
  1159. (compare_uni_maps): Sort base glyphs before variant glyphs.
  1160. (ps_unicodes_init): Use FT_String for `glyph_names' argument.
  1161. Reallocate only if number of used entries is much smaller.
  1162. Updated to handle variant glyphs.
  1163. (ps_unicodes_char_index, ps_unicodes_char_next): Prefer base glyphs
  1164. over variant glyphs.
  1165. Simplify code.
  1166. * src/psaux/t1cmap.c (t1_cmap_uni_pair_compare): Removed.
  1167. (t1_cmap_unicode_init, t1_cmap_unicode_char_index,
  1168. t1_cmap_unicode_char_next): Use pscmap service.
  1169. (t1_cmap_unicode_done): Updated.
  1170. * src/psaux/t1cmap.h (T1_CMapUniPair): Removed.
  1171. (T1_CMapUnicode): Use PS_Unicodes structure.
  1172. 2006-01-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1173. Jumbo patch to fix `deprecated' warning of cross-build for Tiger on
  1174. Intel, as reported by Sean McBride <sean@rogue-research.com> on
  1175. 2005-08-24.
  1176. * src/base/ftmac.c: Heavy change to build without deprecated Carbon
  1177. functions on Tiger.
  1178. * builds/unix/configure.ac: Add options and autochecks for Carbon
  1179. functions availabilities, for MacOS X.
  1180. * builds/mac/ascii2mpw.py: Add converter for character `\305'.
  1181. * builds/mac/FreeType.m68k_{far|cfm}.make.txt: Add conditional
  1182. macros to avoid unavailable functions.
  1183. ftmac.c must be compiled without `-strict ansi', because it disables
  1184. cpp macro to use ToolBox system call.
  1185. * builds/mac/FreeType.ppc_{classic|carbon}.make.txt: Add conditional
  1186. macros to avoid unavailable functions.
  1187. * builds/mac/README: Detailed notes on function availabilities.
  1188. * docs/CHANGES: Notes about (possible) incompatibilities.
  1189. 2006-01-08 Werner Lemberg <wl@gnu.org>
  1190. * docs/CHANGES: Updated.
  1191. 2006-01-08 Huw D M Davies <h.davies1@physics.ox.ac.uk>
  1192. * include/freetype/ftmodapi.h (FT_Module_Get_Flags): New
  1193. declaration.
  1194. * src/base/ftobjs.c (FT_Module_Get_Flags): New function.
  1195. 2006-01-07 Werner Lemberg <wl@gnu.org>
  1196. * src/pcf/pcfread.c (pcf_get_bitmaps): Remove unused variable
  1197. `bitmaps'. Reported by Yu Lei <yulei0@gmail.com>.
  1198. * src/base/ftutil.c (ft_highpow2): s/FT_BASE/FT_BASE_DEF/.
  1199. Reported by Niels Boldt <nielsboldt@gmail.com>.
  1200. 2005-12-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1201. * src/sfnt/sfnt/ttbdf.c: Add newline '\n' to the end of file, for
  1202. MPW compiler.
  1203. 2005-12-23 David Turner <david@freetype.org>
  1204. * Jamfile (RefDoc), docs/reference/README: Fix it so that `jam
  1205. refdoc' works correctly to generate the API reference in
  1206. `docs/reference'.
  1207. * src/tools/docmaker/tohtml.py (print_html_field,
  1208. print_html_field_list): Update to output nicer fields lists in the
  1209. API reference.
  1210. * src/base/ftobjs.c (FT_Load_Glyph): FT_LOAD_TARGET_LIGHT now
  1211. forces auto-hinting.
  1212. * freetype/freetype.h: Updating the documentation for
  1213. FT_LOAD_TARGET_XXX and FT_Render_Mode values.
  1214. 2005-12-23 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1215. * src/base/ftmac.c (FT_New_Face_From_Suitcase): Count scalable faces
  1216. in supported formats (sfnt, LWFN) only, and ignore bitmap faces in
  1217. unsupported formats (fbit, NFNT). The number of available faces are
  1218. passed via face->num_faces. If bitmap faces are embedded in sfnt
  1219. resource, face->num_fixed_size is correctly set. In public API,
  1220. FT_New_Face() and FT_New_Face_From_FSSpec() count the faces as
  1221. FT_GetFile_From_Mac_Name(), which ignores NFNT resources.
  1222. * doc/CHANGES: Mention the changes.
  1223. 2005-12-17 Chia-I Wu <b90201047@ntu.edu.tw>
  1224. * src/truetype/ttinterp.c (Update_Max): Set current size of buffer
  1225. correctly (so that memory debug system won't panic).
  1226. 2005-12-16 Chia-I Wu <b90201047@ntu.edu.tw>
  1227. * include/freetype/internal/ftobjs.h (ft_glyphslot_grid_fit_metrics),
  1228. src/base/ftobjs.c (ft_glyphslot_grid_fit_metrics): Removed.
  1229. * src/base/ftobjs.c (ft_recompute_scaled_metrics): Do not round.
  1230. * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
  1231. (cid_slot_load_glyph), src/truetype/ttgload.c (compute_glyph_metrics),
  1232. src/type1/t1gload.c (T1_Load_Glyph): Do not round glyph metrics.
  1233. * doc/CHANGES: Mention the changes.
  1234. 2005-12-13 David Turner <david@freetype.org>
  1235. Change the implementation of the LIGHT hinting mode to completely
  1236. disable horizontal hinting. This is an experimental effort to
  1237. integrate David Chester's latest patch without affecting the other
  1238. hinting modes as well.
  1239. Note that this doesn't force auto-hinting for all fonts, however.
  1240. * src/autofit/afhints.c (af_glyph_hints_reload): Don't set
  1241. scaler_flags here but...
  1242. (af_glyph_hints_rescale): Here.
  1243. * src/autofit/aflatin.c (af_latin_hints_init): Disable horizontal
  1244. hinting for `light' hinting mode.
  1245. * Jamfile: Small fix to ensure that ftexport.sym is placed into the
  1246. same location as other generated objects (i.e., within the `objs'
  1247. directory of the current directory).
  1248. Add support for an embedded `BDF ' table within SFNT-based bitmap
  1249. font files. This is used to store atoms & properties from the
  1250. original BDF fonts that were used to generate the font file.
  1251. The feature is controlled by TT_CONFIG_OPTION_BDF within
  1252. `ftoption.h' and is used to implement FT_Get_BDF_Property for these
  1253. font files.
  1254. At the moment, this is still experimental, the BDF table format
  1255. isn't cast into stone yet.
  1256. * include/freetype/config/ftoption.h (TT_CONFIG_OPTION_BDF): New
  1257. macro.
  1258. * include/freetype/config/ftstdlib.h (ft_memchr): New macro.
  1259. * include/freetype/internal/tttypes.h (TT_BDFRec, TT_BDF)
  1260. [TT_CONFIG_OPTION_BDF]: New structure.
  1261. (TT_FaceRec) [TT_CONFIG_OPTION_BDF]: New member `bdf'.
  1262. * include/freetype/tttags.h (TTAG_BDF): New macro.
  1263. * src/sfnt/Jamfile (_sources): Add ttbdf.
  1264. * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttbdf.c.
  1265. * src/sfnt/sfdriver.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.h and
  1266. FT_SERVICE_BDF_H.
  1267. (sfnt_get_charset_it) [TT_CONFIG_OPTION_BDF]: New function.
  1268. (sfnt_service_bdf) [TT_CONFIG_OPTION_BDF]: New service.
  1269. (sfnt_services) [TT_CONFIG_OPTION_BDF]: Add sfnt_service_bdf.
  1270. * src/sfnt/sfnt.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.c.
  1271. * src/sfnt/sfobjs.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.h.
  1272. (sfnt_done_face) [TT_CONFIG_OPTION_BDF]: Call
  1273. tt_face_free_bdf_props.
  1274. * src/sfnt/ttbdf.h, src/sfnt/ttbdf.c: New files.
  1275. 2005-12-07 Werner Lemberg <wl@gnu.org>
  1276. * src/sfnt/sfobjs.c (sfnt_init_face): Move tag check to...
  1277. * src/sfnt/ttload.c (sfnt_init): Here, before handling TTCs.
  1278. 2005-12-06 Chia-I Wu <b90201047@ntu.edu.tw>
  1279. * src/truetype/ttobjs.c (tt_size_init): size->ttmetrics.valid is
  1280. initialized twice.
  1281. size->strike_index is not initialized.
  1282. 2005-12-02 Taek Kwan(TK) Lee <taeklee@gmail.com>
  1283. * src/type42/t42objs.c (T42_Face_Init): Replace call to
  1284. FT_New_Memory_Face with call to FT_Open_Face to pass `params'.
  1285. 2005-11-30 Werner Lemberg <wl@gnu.org>
  1286. * docs/CHANGES: Document ftdump's `-v' option.
  1287. Document latest charmap code changes.
  1288. * src/sfnt/ttcmap.c, src/sfnt/ttcmap.h:
  1289. s/TT_CMAP_FLAG_OVERLAPPED/TT_CMAP_FLAG_OVERLAPPING/.
  1290. 2005-11-30 Chia-I Wu <b90201047@ntu.edu.tw>
  1291. * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary,
  1292. tt_cmap12_char_map_binary): Fix compiler warnings.
  1293. 2005-11-29 Chia-I Wu <b90201047@ntu.edu.tw>
  1294. Major update to distinguish between unsorted and overlapping
  1295. segments for cmap format 4. For overlapping but sorted segments,
  1296. which is previously considered unsorted, we still use binary search.
  1297. * src/sfnt/ttcmap.h (TT_CMapRec_): Replace `unsorted' by `flags'.
  1298. (TT_CMAP_FLAG_UNSORTED, TT_CMAP_FLAG_OVERLAPPED): New macros.
  1299. * src/sfnt/ttcmap.c (OPT_CMAP4): Removed as it is always defined.
  1300. (TT_CMap4Rec_): Remove `old_charcode' and `table_length'.
  1301. (tt_cmap4_reset): Removed.
  1302. (tt_cmap4_init): Updated accordingly.
  1303. (tt_cmap4_next): Updated accordingly.
  1304. Take care of overlapping segments.
  1305. (tt_cmap4_validate): Make sure the subtable is large enough.
  1306. Do not check glyph_ids because some fonts set the length wrongly.
  1307. Also, if all segments have offset 0, glyph_ids is always invalid.
  1308. It does not cause any problem so far only because the check misses
  1309. equality.
  1310. Distinguish between unsorted and overlapping segments.
  1311. (tt_cmap4_char_map_linear, tt_cmap4_char_map_binary): New functions
  1312. to do `charcode => glyph index' by linear/binary search.
  1313. (tt_cmap4_char_index, tt_cmap4_char_next): Use
  1314. tt_cmap4_char_map_linear and tt_cmap4_char_map_binary.
  1315. (tt_face_build_cmaps): Treat the return value of validator as flags
  1316. for cmap.
  1317. 2005-11-29 Chia-I Wu <b90201047@ntu.edu.tw>
  1318. * src/sfnt/ttcmap.c (TT_CMap12Rec_, tt_cmap12_init, tt_cmap12_next):
  1319. New structures and functions for fast `next char'.
  1320. (tt_cmap12_char_map_binary): New function to do `charcode => glyph
  1321. index' by binary search.
  1322. (tt_cmap12_char_index, tt_cmap12_char_next): Use
  1323. tt_cmap12_char_map_binary.
  1324. (tt_face_build_cmaps): Check table and offset correctly (equality is
  1325. missing).
  1326. 2005-11-15 Detlef Würkner <TetiSoft@apg.lahn.de>
  1327. * builds/amiga/smakefile: Adjusted the compiler options
  1328. to the current sources, now really builds the gxvalid, gzip
  1329. and psnames modules.
  1330. * builds/amiga/src/base/ftsystem.c: The assumed Seek() position
  1331. in the file cache was off by one byte which could cause false
  1332. errors in font files.
  1333. 2005-11-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1334. * builds/mac/FreeType.m68k_far.make.txt,
  1335. builds/mac/FreeType.m68k_cfm.make.txt,
  1336. builds/mac/FreeType.ppc_classic.make.txt,
  1337. builds/mac/FreeType.ppc_carbon.make.txt:
  1338. Updated for MPW to build all available modules.
  1339. 2005-11-21 Håvard Wall <haavardw@ifi.uio.no>
  1340. * src/bdf/bdfdrivr.c (bdf_interpret_style, BDF_Face_Done): Fix small
  1341. memory leak.
  1342. 2005-11-21 Werner Lemberg <wl@gnu.org>
  1343. * src/sfnt/ttload.c (sfnt_init): Add tracing message.
  1344. 2005-11-21 Chia-I Wu <b90201047@ntu.edu.tw>
  1345. * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Image_offset was
  1346. added twice to image_start if image_format was 2 or 5.
  1347. 2005-11-21 Chia-I Wu <b90201047@ntu.edu.tw>
  1348. * src/sfnt/sfobjs.c (sfnt_init_face): Check that format_tag is known
  1349. before loading the table directory.
  1350. * src/sfnt/ttload.c (tt_face_load_sfnt_header,
  1351. tt_face_load_directory): Delay sfnt_dir_check from
  1352. tt_face_load_sfnt_header to tt_face_load_directory.
  1353. 2005-11-20 Chia-I Wu <b90201047@ntu.edu.tw>
  1354. * src/sfnt/ttload.c (sfnt_dir_check): Clean up and return correct
  1355. error code.
  1356. (sfnt_init): New function to fill in face->ttc_header. A non-TTC font
  1357. is synthesized into a TTC font with one offset table.
  1358. (tt_face_load_sfnt_header): Use sfnt_init.
  1359. Fix an invalid access if the font is TTC and face_index is -1.
  1360. 2005-11-18 Werner Lemberg <wl@gnu.org>
  1361. * src/sfnt/ttload.c (tt_face_load_metrics): Ignore excess number
  1362. of metrics instead of aborting. Patch suggested by Derek Noonburg.
  1363. * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
  1364. (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph): Scale
  1365. the glyph properly if no hinter is available.
  1366. * docs/CHANGES: Mention scaling bug.
  1367. 2005-11-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1368. * include/freetype/ftgxval.h, src/base/ftgxval.c
  1369. (FT_TrueTypeGX_Free, FT_ClassicKern_Free): New functions to free
  1370. buffers allocated by gxvalid module.
  1371. * include/freetype/ftotval.h, src/base/ftotval.c
  1372. (FT_OpenType_Free): New function to free buffer allocated by
  1373. otvalid module.
  1374. 2005-11-18 Chia-I Wu <b90201047@ntu.edu.tw>
  1375. * builds/unix/ftsystem.c (FT_Stream_Open, FT_New_Memory,
  1376. FT_Done_Memory), builds/vms/ftsystem.c (FT_Stream_Open, FT_New_Memory,
  1377. FT_Done_Memory), builds/win32/ftdebug.c (FT_Message, FT_Panic):
  1378. s/FT_EXPORT/FT_BASE/.
  1379. 2005-11-17 Detlef Würkner <TetiSoft@apg.lahn.de>
  1380. * builds/amiga/src/base/ftdebug.c (FT_Trace_Get_Count,
  1381. FT_Trace_Get_Name, FT_Message, FT_Panic),
  1382. builds/amiga/src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory,
  1383. FT_Stream_Open): s/FT_EXPORT/FT_BASE/.
  1384. 2005-11-17 Detlef Würkner <TetiSoft@apg.lahn.de>
  1385. * builds/amiga/makefile, builds/amiga/makefile.os4,
  1386. builds/amiga/smakefile,
  1387. builds/amiga/include/freetype/config/ftmodule.h: Updated the Amiga
  1388. build files (added support for the gxvalid module).
  1389. 2005-11-17 Werner Lemberg <wl@gnu.org>
  1390. Add vertical metrics support to OpenType CFF outlines. Based on a
  1391. patch from Mike Moening <MikeM@RetekSolutions.com>.
  1392. * src/cff/cffgload.c (cff_face_get_vertical_metrics): New function.
  1393. (cff_slot_load): Use cff_face_get_vertical_metrics.
  1394. * docs/CHANGES: Updated.
  1395. 2005-11-17 Chia-I Wu <b90201047@ntu.edu.tw>
  1396. * src/base/ftcalc.c (FT_MulTo64): Commented out.
  1397. * include/freetype/internal/ftcalc.h (FT_SqrtFixed),
  1398. src/base/ftcalc.c (FT_SqrtFixed),
  1399. include/freetype/internal/ftdebug.h (FT_Trace_Get_Count,
  1400. FT_Trace_Get_Name, FT_Message, FT_Panic), src/base/ftdebug.c
  1401. (FT_Trace_Get_Count, FT_Trace_Get_Name, FT_Message, FT_Panic),
  1402. include/freetype/internal/ftobjs.h (FT_New_Memory, FT_Done_Memory),
  1403. include/freetype/internal/ftstream.h (FT_Stream_Open),
  1404. src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory, FT_Stream_Open):
  1405. s/FT_EXPORT/FT_BASE/.
  1406. * builds/exports.mk: Manually add TT_New_Context to EXPORTS_LIST
  1407. too.
  1408. 2005-11-15 David Turner <david@freetype.org>
  1409. * src/base/fttrigon.c (ft_trig_prenorm): Fix a bug that created
  1410. invalid computations, resulting in very weird bugs in TrueType
  1411. bytecode hinted fonts.
  1412. * src/truetype/ttinterp.c (FT_UNUSED_EXEC): Don't perform a
  1413. structure copy each time.
  1414. 2005-11-11 Werner Lemberg <wl@gnu.org>
  1415. * src/cache/ftccache.c (FTC_Cache_Clear), src/cache/ftcmanag.c
  1416. (FTC_Manager_Check): Remove FT_EXPORT_DEF tag.
  1417. * src/base/ftcalc.c (FT_Add64): Remove FT_EXPORT_DEF tag.
  1418. (FT_Div64by32, FT_Sqrt32): Commented out. Unused.
  1419. * include/freetype/internal/ftcalc.h (SQRT_32): Removed. Unused.
  1420. (FT_Sqrt32): Commented out. Unused.
  1421. * include/freetype/cache/ftccache.h:
  1422. s/ftc_node_destroy/FTC_Node_Destroy/.
  1423. * src/cache/ftccback.h (ftc_node_destroy): New declaration.
  1424. * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF tag.
  1425. (FTC_Node_Destroy): New exported wrapper function for
  1426. ftc_node_destroy.
  1427. * src/cache/ftcmanag.c: Include ftccback.c.
  1428. 2005-11-10 Werner Lemberg <wl@gnu.org>
  1429. * src/autofit/afangles.c, src/autofit/aftypes.h (af_angle_diff):
  1430. Comment out. Unused.
  1431. * builds/exports.mk ($(EXPORTS_LIST)): Add TT_RunIns.
  1432. 2005-11-10 Christian Biesinger <cbiesinger@web.de>
  1433. * builds/beos/beos.mk: Call beos-def.mk before anything else to
  1434. define the separator.
  1435. * builds/unix/unix-cc.in (LINK_LIBRARY): Add `-no-undefined' flag.
  1436. 2005-11-07 Werner Lemberg <wl@gnu.org>
  1437. * src/type1/t1afm.c (T1_Read_PFM): Zero offset means `no kerning
  1438. table available'. From Sergey Tolstov <stolstov@esri.com>.
  1439. 2005-11-03 Ville Syrjälä <syrjala@sci.fi>
  1440. * src/base/ftobjs.c (FT_Open_Face): Avoid possible memory leak.
  1441. 2005-11-02 Werner Lemberg <wl@gnu.org>
  1442. Make compiling instructions in docs/CUSTOMIZE work again.
  1443. * builds/unix/unix-cc.in (CPPFLAGS): New variable.
  1444. (CFLAGS): Don't include @CPPFLAGS@.
  1445. * builds/freetype.mk (FT_CFLAGS): Add CPPFLAGS.
  1446. 2005-10-28 David Turner <david@freetype.org>
  1447. Update build system to support the generation of a list of exported
  1448. symbols or Windows .DEF files by parsing the public headers with the
  1449. `apinames' tool located in src/tools/apinames.c.
  1450. Only tested on Unix at the moment. On Windows, the .DEF file is
  1451. generated but isn't used yet to generate a DLL.
  1452. * builds/exports.mk: New file.
  1453. * builds/freetype.mk: Include exports.mk.
  1454. (dll): New target.
  1455. (clean_project_dos): Fix rule.
  1456. * builds/compiler/visualc.mk (TE), builds/dos/dos-def.mk (E),
  1457. builds/os2/os2-def.mk (E), builds/win32/win32-def.mk (E): New
  1458. variables for controlling executable extensions.
  1459. * builds/unix/unix-cc.in (EXPORTS_LIST, CCexe),
  1460. builds/win32/w32-bcc.mk, builds/win32/w32-gcc.mk,
  1461. builds/win32/w32-icc.mk, builds/win32/w32-icc.mk,
  1462. builds/win32/w32-mingw32.mk, builds/win32/w32-vcc,
  1463. builds/win32/w32-wat.mk (EXPORTS_LIST, EXPORT_OPTIONS,
  1464. APINAMES_OPTIONS): New targets for controlling the `apinames' tool.
  1465. * Jamfile (GenExportSymbols): Updated.
  1466. * src/pfr/pfrtypes.h, src/pfr/pfrload.c, src/pfr/pfrobjs.c
  1467. [!FT_OPTIMIZE_MEMORY]: Fold memory optimization code into
  1468. FT_OPTIMIZE_MEMORY chunks for better maintainability and simplicity.
  1469. * src/base/fttrigon.c (ft_trig_prenorm), src/base/ftcalc.c
  1470. (FT_MulFix): Performance optimizations.
  1471. * include/freetype/internal/ftgloadr.h (FT_GLYPHLOADER_CHECK_P,
  1472. FT_GLYPHLOADER_CHECK_C, FT_GLYPHLOADER_CHECK_POINTS): New macros for
  1473. checking points and contours. Update callers to use
  1474. FT_GLYPHLOADER_CHECK_POINTS instead of FT_GlyphLoader_CheckPoints
  1475. at profile-detected hot-spots.
  1476. * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Set `adjust'
  1477. to 0 to not call `AdjustPoints' every time.
  1478. * src/autofit/aftypes.h (AF_ANGLE_DIFF): New macro to inline
  1479. FT_Angle_Diff.
  1480. * src/autofit/afhints.c (af_direction_compute): Re-implement.
  1481. (af_glyph_hints_compute_inflections, af_glyph_hints_reload): Use
  1482. AF_ANGLE_DIFF to speed up the detection of inflexions.
  1483. * src/tools/apinames.c: Include <string.h>.
  1484. (OutputFormat): New enumeration.
  1485. (names_dump): Add two parameters to control output format and DLL
  1486. name.
  1487. (names_dump_windef): Removed. Code folded into `names_dump'.
  1488. (read_header_file): Use isalnum, not isalpha. Otherwise function
  1489. names with digits aren't read correctly.
  1490. (usage): Updated.
  1491. (main): New option `-o' to control output file name.
  1492. New option `-d' to indicate DLL file name.
  1493. Extend `-w' flag to handle Borland and Watcom compilers and linkers.
  1494. 2005-10-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1495. * builds/mac/ftlib.prj, builds/mac/freetype.mak: Removed.
  1496. ftlib.prj is unmaintained and incompatible with current tree.
  1497. freetype.mak is unrecoverably broken.
  1498. * builds/mac/ftlib.prj.xml: Added.
  1499. Generated by Metrowerks CodeWarrior 9.0.
  1500. * builds/mac/FreeType.m68k_far.make.txt,
  1501. builds/mac/FreeType.m68k_cfm.make.txt,
  1502. builds/mac/FreeType.ppc_classic.make.txt,
  1503. builds/mac/FreeType.ppc_carbon.make.txt: Added.
  1504. Skeleton files of MPW makefiles.
  1505. * builds/mac/ascii2mpw.py: Added.
  1506. Python script to make MPW makefile from skeleton.
  1507. * builds/mac/README: Updated.
  1508. Almost rewritten to use new files.
  1509. 2005-10-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1510. * src/base/ftmac.c: Fix invalid casts from NULL to integer typed
  1511. variables. Advised by David Turner, Masatake YAMATO, Sean McBride,
  1512. and George Williams.
  1513. 2005-10-27 Werner Lemberg <wl@gnu.org>
  1514. * include/freetype/ftsysmem.h, include/freetype/ftsysio.h: Removed.
  1515. Obsolete.
  1516. 2005-10-25 Werner Lemberg <wl@gnu.org>
  1517. * src/sfnt/sfdriver.c (sfnt_interface): Move out
  1518. `tt_face_get_kerning' from a #ifdef clause. Reported by Tony J.
  1519. Ibbs <tibs@sj.co.uk>.
  1520. 2005-10-23 Werner Lemberg <wl@gnu.org>
  1521. * src/base/ftdbgmem.c (ft_mem_debug_realloc): Make it compile with
  1522. C++.
  1523. 2005-10-21 David Turner <david@freetype.org>
  1524. * src/base/ftdbgmem.c (ft_mem_table_set, ft_mem_debug_realloc):
  1525. Another realloc memory counting bug fix.
  1526. * src/tools/Jamfile: Add missing file.
  1527. * src/lzw/Jamfile: Fix incorrect source file reference.
  1528. 2005-10-20 David Turner <david@freetype.org>
  1529. * src/base/ftdbgmem.c (ft_mem_table_set, ft_mem_table_remove,
  1530. ft_mem_debug_alloc, ft_mem_debug_free, ft_mem_debug_realloc): Fixes
  1531. to better account for memory reallocations.
  1532. * src/lzw/ftlzw2.c, src/lzw/ftzopen.h, src/lzw/ftzopen.c,
  1533. src/lzw/rules.mk: First version of LZW loader re-implementation.
  1534. Apparently, this saves about 330 KB of heap memory when loading
  1535. timR24.pcf.Z.
  1536. 2005-10-20 Chia-I Wu <b90201047@ntu.edu.tw>
  1537. * include/freetype/ftbitmap.h (FT_Bitmap_Copy, FT_Bitmap_Embolden),
  1538. src/base/ftbdf.c (FT_Get_BDF_Property), src/cache/ftcmru.c
  1539. (FTC_MruList_Reset, FTC_MruList_Done, FTC_MruList_Lookup): Fix
  1540. FT_EXPORT/FT_EXPORT_DEF tagging.
  1541. 2005-10-19 Chia-I Wu <b90201047@ntu.edu.tw>
  1542. * src/truetype/ttgload.c (TT_Load_Glyph): Allow size->ttmetrics to
  1543. be invalid when FT_LOAD_NO_SCALE is set.
  1544. 2005-10-17 David Turner <david@freetype.org>
  1545. * src/base/ftobjs.c (FT_Open_Face): Don't call FT_New_GlyphSlot and
  1546. FT_New_Size if we are opening a face with face_index < 0 (which is
  1547. only used for testing the format).
  1548. * src/gxvalid/gxvmort0.c (gxv_mort_subtable_type0_entry_validate):
  1549. Remove compiler warning.
  1550. 2005-10-16 David Turner <david@freetype.org>
  1551. * src/tools/apinames.c: Add new tool to extract public API function
  1552. names from header files.
  1553. 2005-10-05 Werner Lemberg <wl@gnu.org>
  1554. Add FT_FACE_FLAG_HINTER to indicate that a specific font driver has
  1555. a hinting engine of its own.
  1556. * include/freetype/freetype.h (FT_FACE_FLAG_HINTER): New macro.
  1557. * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
  1558. (cid_face_init), src/truetype/ttobjs.c (tt_face_init)
  1559. [TT_CONFIG_OPTION_BYTECODE_INTERPRETER], src/type1/t1objs.c
  1560. (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init)
  1561. [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Update face flags.
  1562. * docs/CHANGES: Document it.
  1563. 2005-09-27 Werner Lemberg <wl@gnu.org>
  1564. * builds/unix/freetype2.m4: Add license exception so that the file
  1565. can be used in any other autoconf script.
  1566. 2005-09-26 David Turner <david@freetype.org>
  1567. * src/autofit/aflatin.c (af_latin_compute_stem_width): Fix bad
  1568. computation of the `vertical' flag, causing ugly things in LCD mode
  1569. and others.
  1570. 2005-09-23 David Turner <david@freetype.org>
  1571. * src/autofit/aflatin.c (af_latin_hints_init): Fix a bug that
  1572. prevented internal hint mode bitflags from being computed correctly.
  1573. * src/base/Jamfile: Adding src/base/ftgxval.c.
  1574. * src/gxvalid/gxvbsln.c, src/gxvalid/gxvcommn.c,
  1575. src/gxvalid/gxvfeat.c, src/gxvalid/gxvjust.c, src/gxvalid/gxvkern.c,
  1576. src/gxvalid/gxvlcar.c, src/gxvalid/gxvmort.c,
  1577. src/gxvalid/gxvmort0.c, src/gxvalid/gxvmort1.c,
  1578. src/gxvalid/gxvmort2.c, src/gxvalid/gxvmort4.c,
  1579. src/gxvalid/gxvmort5.c, src/gxvalid/gxvmorx.c,
  1580. src/gxvalid/gxvmorx0.c, src/gxvalid/gxvmorx1.c,
  1581. src/gxvalid/gxvmorx2.c, src/gxvalid/gxvmorx5.c,
  1582. src/gxvalid/gxvopbd.c, src/gxvalid/gxvprop.c,
  1583. src/truetype/ttgload.c: Remove _many_ compiler warnings when
  1584. compiling with Visual C++ at maximum level (/W4).
  1585. * src/autofit/afangles.c (af_angle_atan): Replaced CORDIC-based
  1586. implementation with one using lookup tables. This simple thing
  1587. speeds up glyph loading by 18%, according to ftbench!
  1588. * src/sfnt/sfdriver.c (sfnt_get_interface): Don't check for
  1589. `get_sfnt' and `load_sfnt' module interfaces.
  1590. 2005-09-22 Werner Lemberg <wl@gnu.org>
  1591. * docs/CHANGES: Mention SING Glyphlet support.
  1592. 2005-09-22 David Turner <david@freetype.org>
  1593. * src/base/Jamfile: Disable compilation of ftgxval module
  1594. temporarily.
  1595. 2005-09-19 David Somers <dsomers@omz13.com>
  1596. * src/sfnt/ttload.c (sfnt_dir_check): Modified to allow a
  1597. font to have no `head' table if tables `SING' and `META' are
  1598. present; this is to support `SING Glyphlet'.
  1599. `SING Glyphlet' is an extension to OpenType developed by Adobe
  1600. primarily to facilitate adding supplemental glyphs to an OpenType
  1601. font (with emphasis on, but not necessarily limited to, gaiji to a
  1602. CJK font). A SING Glyphlet Font is an OpenType font that contains
  1603. the outline(s), either in a `glyf' or `CFF' table, for a glyph;
  1604. `cmap', `BASE', and `GSUB' tables are present with the same format
  1605. and functionality as a regular OpenType font; there are no `name',
  1606. `head', `OS/2', and `post' tables; there are two new tables, `SING'
  1607. which contains details about the glyphlet, and `META' which contains
  1608. metadata.
  1609. Further information on the SING Glyphlet format can be found at:
  1610. https://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5148.SING_Tutorial.pdf
  1611. * include/freetype/tttags.h (TTAG_SING, TTAG_META): New macros for
  1612. the OpenType tables `SING' and `META'. These two tables are used in
  1613. SING Glyphlet Format fonts.
  1614. 2005-09-09 Werner Lemberg <wl@gnu.org>
  1615. * src/sfnt/sfobjs.c (sfnt_load_face): Reactivate code to set
  1616. FT_FACE_FLAG_KERNING which has been commented out erroneously.
  1617. * docs/CHANGES: Document it.
  1618. 2005-09-05 Werner Lemberg <wl@gnu.org>
  1619. Fixes for `make multi' and using C++ compiler.
  1620. * src/gxvalid/gxvcommn.c (gxv_set_length_by_ushort_offset,
  1621. gxv_set_length_by_ulong_offset, gxv_array_getlimits_byte,
  1622. gxv_array_getlimits_ushort): Declare with FT_LOCAL_DEF.
  1623. (gxv_compare_ranges): Make it static.
  1624. (gxv_LookupTable_fmt0_validate, gxv_LookupTable_fmt2_validate,
  1625. gxv_LookupTable_fmt4_validate, gxv_LookupTable_fmt6_validate,
  1626. gxv_LookupTable_fmt8_validate, gxv_LookupTable_validate): Improve
  1627. trace messages.
  1628. (gxv_StateArray_validate, gxv_XStateArray_validate): s/class/clazz/.
  1629. (GXV_STATETABLE_HEADER_SIZE, GXV_STATEHEADER_SIZE,
  1630. GXV_XSTATETABLE_HEADER_SIZE, GXV_XSTATEHEADER_SIZE): Move to
  1631. gxvcommn.h.
  1632. * src/gxvalid/gxvcommn.h: Add prototypes for
  1633. gxv_StateTable_subtable_setup, gxv_XStateTable_subtable_setup,
  1634. gxv_XStateTable_validate, gxv_array_getlimits_byte,
  1635. gxv_array_getlimits_ushort, gxv_set_length_by_ushort_offset,
  1636. gxv_set_length_by_ulong_offset, gxv_odtect_add_range,
  1637. gxv_odtect_validate.
  1638. (GXV_STATETABLE_HEADER_SIZE, GXV_STATEHEADER_SIZE,
  1639. GXV_XSTATETABLE_HEADER_SIZE, GXV_XSTATEHEADER_SIZE): Moved from
  1640. gxvcommn.c.
  1641. * src/gxvalid/gxvbsln.c (gxv_bsln_LookupValue_validate,
  1642. gxv_bsln_parts_fmt1_validate): Improve trace messages.
  1643. * src/gxvalid/gxvfeat.c: Split off predefined registry stuff to...
  1644. * src/gxvalid/gxvfeat.h: New file.
  1645. * src/gxvalid/gxvjust.c (gxv_just_wdc_entry_validate): Improve trace
  1646. message.
  1647. * src/gxvalid/gxvkern.c (GXV_kern_Dialect): Add KERN_DIALECT_UNKNOWN.
  1648. (gxv_kern_subtable_fmt1_valueTable_load,
  1649. gxv_kern_subtable_fmt1_subtable_setup,
  1650. gxv_kern_subtable_fmt1_entry_validate): Fix C++ compiler errors.
  1651. (gxv_kern_coverage_validate): Use KERN_DIALECT_UNKNOWN.
  1652. Improve trace message.
  1653. (gxv_kern_validate_generic): Fix C++ compiler error.
  1654. Improve trace message.
  1655. (gxv_kern_validate_classic): Fix C++ compiler error.
  1656. * src/gxvalid/gxvmort0.c (gxv_mort_subtable_type0_validate): Declare
  1657. with FT_LOCAL_DEF.
  1658. * src/gxvalid/gxvmort1.c
  1659. (gxv_mort_subtable_type1_substitutionTable_load,
  1660. gxv_mort_subtable_type1_subtable_setup): Fix C++ compiler errors.
  1661. (gxv_mort_subtable_type1_substTable_validate): Improve trace
  1662. message.
  1663. (gxv_mort_subtable_type1_validate): Declare with FT_LOCAL_DEF.
  1664. * src/gxvalid/gxvmort2.c (gxv_mort_subtable_type2_opttable_load,
  1665. gxv_mort_subtable_type2_subtable_setup,
  1666. gxv_mort_subtable_type2_ligActionOffset_validate,
  1667. gxv_mort_subtable_type2_ligatureTable_validate): Fix C++ compiler
  1668. errors.
  1669. (gxv_mort_subtable_type2_validate): Declare with FT_LOCAL_DEF.
  1670. * src/gxvalid/gxvmort4.c (gxv_mort_subtable_type4_validate): Declare
  1671. with FT_LOCAL_DEF.
  1672. * src/gxvalid/gxvmort5.c (gxv_mort_subtable_type5_subtable_setup,
  1673. gxv_mort_subtable_type5_InsertList_validate): Fix C++ compiler
  1674. errors.
  1675. (gxv_mort_subtable_type5_validate): Declare with FT_LOCAL_DEF.
  1676. * src/gxvalid/gxvmort.c: Include gxvfeat.h.
  1677. (gxv_mort_featurearray_validate, gxv_mort_coverage_validate):
  1678. Declare with FT_LOCAL_DEF.
  1679. (gxv_mort_subtables_validate, gxv_mort_validate): Improve trace
  1680. messages.
  1681. * src/gxvalid/gxvmort.h (gxv_mort_feature_validate): Remove.
  1682. * src/gxvalid/gxvmorx0.c (gxv_morx_subtable_type0_validate): Declare
  1683. with FT_LOCAL_DEF.
  1684. * src/gxvalid/gxvmorx1.c
  1685. (gxv_morx_subtable_type1_substitutionTable_load,
  1686. gxv_morx_subtable_type1_subtable_setup,
  1687. gxv_morx_subtable_type1_entry_validate,
  1688. gxv_morx_subtable_type1_substitutionTable_validate): Fix C++
  1689. compiler errors.
  1690. (gxv_morx_subtable_type1_validate): Declare with FT_LOCAL_DEF.
  1691. * src/gxvalid/gxvmorx2.c (gxv_morx_subtable_type2_opttable_load,
  1692. gxv_morx_subtable_type2_subtable_setup,
  1693. gxv_morx_subtable_type2_ligActionIndex_validate,
  1694. gxv_morx_subtable_type2_ligatureTable_validate): Fix C++ compiler
  1695. errors.
  1696. (gxv_morx_subtable_type2_validate): Declare with FT_LOCAL_DEF.
  1697. Fix typo.
  1698. * src/gxvalid/gxvmorx4.c (gxv_morx_subtable_type4_validate): Declare
  1699. with FT_LOCAL_DEF.
  1700. * src/gxvalid/gxvmorx5.c (gxv_morx_subtable_type5_insertionGlyph_load,
  1701. gxv_morx_subtable_type5_subtable_setup): Fix C++ compiler error.
  1702. (gxv_morx_subtable_type5_validate): Declare with FT_LOCAL_DEF.
  1703. * src/gxvalid/gxvmorx.c (gxv_morx_subtables_validate,
  1704. gxv_morx_validate): Improve trace message.
  1705. * src/gxvalid/gxvopbd.c (gxv_opbd_LookupFmt4_transit): Fix compiler
  1706. warnings.
  1707. (gxv_opbd_validate): Improve trace message.
  1708. * src/gxvalid/gxvprop.c: Decorate constants with `U' and `L' where
  1709. appropriate.
  1710. (gxv_prop_zero_advance_validate, gxv_prop_validate): Improve trace
  1711. message.
  1712. * src/gxvalid/gxvtrak.c (gxv_trak_trackTable_validate): Remove unused
  1713. parameter. Update all callers.
  1714. (gxv_trak_validate): Improve trace message.
  1715. * rules.mk (GXV_DRV_H): Add gxvfeat.h.
  1716. 2005-09-01 Werner Lemberg <wl@gnu.org>
  1717. * src/gxvalid/gxvbsln.c (GXV_BSLN_VALUE_EMPTY): Add `U'.
  1718. * src/gxvalid/gxvmort1.c (GXV_MORT_SUBTABLE_TYPE1_HEADER_SIZE),
  1719. src/gxvalid/gxvmort2.c (GXV_MORT_SUBTABLE_TYPE2_HEADER_SIZE): Fix
  1720. typo.
  1721. * src/gxvalid/gxvmorx0.c, src/gxvalid/gxvmorx1.c,
  1722. src/gxvalid/gxvmorx2.c, src/gxvalid/gxvmorx4.c,
  1723. src/gxvalid/gxvmorx5.c, src/gxvalid/gxvmort.c: Improve trace
  1724. messages.
  1725. Decorate constants with `U' and `L' where appropriate.
  1726. Fix compiler warnings.
  1727. 2005-08-31 Werner Lemberg <wl@gnu.org>
  1728. * src/truetype/ttgload.c (load_truetype_glyph): Fix typo.
  1729. * src/gxvalid/gxvbsln.c (gxv_bsln_validate): Fix trace message.
  1730. * src/gxvalid/gxvcommn.c (gxv_odtect_add_range): Use `const'.
  1731. * src/gxvalid/gxvfeat.c, src/gxvalid/gxvjust.c,
  1732. src/gxvalid/gxvkern.c, src/gxvalid/gxvlcar.c, src/gxvalid/gxvmod.c,
  1733. src/gxvalid/gxvmort0.c, src/gxvalid/gxvmort1.c,
  1734. src/gxvalid/gxvmort2.c, src/gxvalid/gxvmort4.c,
  1735. src/gxvalid/gxvmort5.c, src/gxvalid/gxvmort.c: Improve trace
  1736. messages.
  1737. Decorate constants with `U' and `L' where appropriate.
  1738. Fix compiler warnings.
  1739. 2005-08-30 Werner Lemberg <wl@gnu.org>
  1740. * src/gxvalid/README: Revised.
  1741. * src/gxvalid/gxvbsln.c: Fix compiler warnings.
  1742. * src/gxvalid/gxvcommn.c: Fix compiler warnings.
  1743. (gxv_XEntryTable_validate, gxv_compare_ranges): Remove unused
  1744. parameter. Update all callers.
  1745. Improve trace messages.
  1746. Some formatting.
  1747. 2005-08-29 Werner Lemberg <wl@gnu.org>
  1748. * include/freetype/freetype.h, include/freetype/ftchapters.h: Add
  1749. a preliminary section with some explanations about user allocation.
  1750. * src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
  1751. Don't abort if there are no data types, functions, etc., in a
  1752. section.
  1753. Print synopsis only if we have a data type, function, etc.
  1754. * docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
  1755. docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
  1756. docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
  1757. 2005-08-28 George Williams <gww@silcom.com>
  1758. * src/truetype/ttgload.c [TT_MAX_COMPOSITE_RECURSE]: Removed.
  1759. (load_truetype_glyph): Limit recursion depth by `maxComponentDepth'.
  1760. 2005-08-25 J. Ali Harlow <ali@avrc.city.ac.uk>
  1761. * builds/unix/freetype2.in (CFlags): Add missing directory.
  1762. 2005-08-24 Werner Lemberg <wl@gnu.org>
  1763. * docs/CHANGES: Mention gxvalid module.
  1764. 2005-08-23 Werner Lemberg <wl@gnu.org>
  1765. * src/autofit/aflatin.c (af_latin_metrics_scale): Initialize
  1766. render mode properly. Reported by chris@dokein.co.uk.
  1767. 2005-08-23 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
  1768. Add gxvalid module to validate TrueType GX/AAT tables.
  1769. Modifications on existing files:
  1770. * Jamfile: Register gxvalid module.
  1771. * src/base/Jamfile: Register ftgxval.c.
  1772. * src/base/rule.mk: Register ftgxval.c.
  1773. * docs/INSTALL.ANY: Register gxvalid/gxvalid.c.
  1774. * include/freetype/config/ftheader.h (FT_GX_VALIDATE_H): New macro
  1775. to include gxvalid header file.
  1776. * include/freetype/config/ftmodule.h: Register gxv_module_class.
  1777. * include/freetype/ftchapters.h: Add comment about gx_validation.
  1778. * include/freetype/ftotval.h: Change keyword FT_VALIDATE_XXX
  1779. to FT_VALIDATE_OTXXX to co-exist with gxvalid.
  1780. * include/freetype/tttags.h: Add tags for TrueType GX/AAT tables.
  1781. * include/freetype/internal/ftserv.h (FT_SERVICE_GX_VALIDATE_H): New
  1782. macro for gxvalid service.
  1783. * include/freetype/internal/fttrace.h: Add trace facilities for
  1784. gxvalid.
  1785. New files on existing directories:
  1786. * include/freetype/internal/services/svgxval.h: Registration of
  1787. validation service for TrueType GX/AAT and classic kern table.
  1788. * include/freetype/ftgxval.h: Public API definition to use gxvalid.
  1789. * src/base/ftgxval.c: Public API of gxvalid.
  1790. New files under src/gxvalid/:
  1791. * src/gxvalid/Jamfile src/gxvalid/README src/gxvalid/module.mk
  1792. src/gxvalid/rules.mk src/gxvalid/gxvalid.c src/gxvalid/gxvalid.h
  1793. src/gxvalid/gxvbsln.c src/gxvalid/gxvcommn.c src/gxvalid/gxvcommn.h
  1794. src/gxvalid/gxverror.h src/gxvalid/gxvfeat.c src/gxvalid/gxvfgen.c
  1795. src/gxvalid/gxvjust.c src/gxvalid/gxvkern.c src/gxvalid/gxvlcar.c
  1796. src/gxvalid/gxvmod.c src/gxvalid/gxvmod.h src/gxvalid/gxvmort.c
  1797. src/gxvalid/gxvmort.h src/gxvalid/gxvmort0.c src/gxvalid/gxvmort1.c
  1798. src/gxvalid/gxvmort2.c src/gxvalid/gxvmort4.c src/gxvalid/gxvmort5.c
  1799. src/gxvalid/gxvmorx.c src/gxvalid/gxvmorx.h src/gxvalid/gxvmorx0.c
  1800. src/gxvalid/gxvmorx1.c src/gxvalid/gxvmorx2.c src/gxvalid/gxvmorx4.c
  1801. src/gxvalid/gxvmorx5.c src/gxvalid/gxvopbd.c src/gxvalid/gxvprop.c
  1802. src/gxvalid/gxvtrak.c: New files, gxvalid body.
  1803. 2005-08-21 Werner Lemberg <wl@gnu.org>
  1804. * src/truetype/ttgload.c (TT_Load_Glyph): Only translate outline
  1805. to (0,0) if bit 1 of the `head' table isn't set. This improves
  1806. rendering of buggy fonts.
  1807. 2005-08-20 Chia I Wu <b90201047@ntu.edu.tw>
  1808. * src/truetype/ttdriver.c (Load_Glyph): Don't check the validity of
  1809. ttmetrics here. TrueType fonts with only sbits always have
  1810. ttmetrics.valid set to false.
  1811. * src/truetype/ttgload.c (TT_Load_Glyph): Check that ttmetrics is
  1812. valid before loading outline glyph.
  1813. * src/cache/ftcimage.c (FTC_INode_New): Fix a memory leak.
  1814. 2005-08-20 Werner Lemberg <wl@gnu.org>
  1815. * src/sfnt/ttload.c (tt_face_load_metrics_header): Ignore missing
  1816. `hhea' table for SFNT Mac fonts. Change based on a patch by
  1817. mpsuzuki@hiroshima-u.ac.jp.
  1818. 2005-08-20 Masatake YAMATO <jet@gyve.org>
  1819. * src/otvalid/otvmod.c (otv_validate): Use ft_validator_run instead
  1820. of ft_setjmp.
  1821. 2005-08-19 Werner Lemberg <wl@gnu.org>
  1822. * src/truetype/ttgload.c (load_truetype_glyph): Fix compiler
  1823. warnings.
  1824. 2005-08-16 Chia I Wu <b90201047@ntu.edu.tw>
  1825. * src/truetype/ttinterp.c, src/truetype/ttinterp.h: Update copyright
  1826. messages.
  1827. 2005-08-16 Chia I Wu <b90201047@ntu.edu.tw>
  1828. * src/truetype/ttinterp.c, src/truetype/ttinterp.h: Remove original
  1829. TT_Done_Context and rename TT_Destroy_Context to TT_Done_Context
  1830. with slight changes.
  1831. Update all callers.
  1832. (TT_New_Context): Now takes TT_Driver argument directly.
  1833. Update all callers.
  1834. * src/truetype/ttobjs.h (tt_slot_init): New function.
  1835. * src/truetype/ttobjs.c (tt_driver_init): Initialize execution
  1836. context here.
  1837. (tt_slot_init): New function to create extra points for the internal
  1838. glyph loader. We then use it directly, instead of face's glyph
  1839. loader, when loading glyph.
  1840. * src/truetype/ttdriver.c (tt_driver_class): Use tt_slot_init for
  1841. glyph slot initialization.
  1842. (Load_Glyph): Load flag dependencies are handled here. Return error
  1843. if size is NULL.
  1844. * src/truetype/ttgload.c: Heavy cleanup and refactoring.
  1845. (org_to_cur): Removed.
  1846. (TT_Load_Simple_Glyph): Call FT_GlyphLoader_CheckPoints.
  1847. (TT_Hint_Glyph): New function to hint a zone, prepared by caller.
  1848. (TT_Process_Simple_Glyph): s/load/loader/.
  1849. Use loader->pp values instead of recalculation.
  1850. Use TT_Hint_Glyph.
  1851. No need to save/restore loader->stream before and after
  1852. TT_Vary_Get_Glyph_Deltas now.
  1853. (TT_LOADER_SET_PP): New macro to calculate and set the four phantom
  1854. points.
  1855. (load_truetype_glyph): Never set exec->glyphSize to 0. This closes
  1856. Savannah bug #13107.
  1857. Forget glyph frame before calling TT_Process_Simple_Glyph.
  1858. Use TT_LOADER_SET_PP.
  1859. Scale all four phantom points.
  1860. Split off some functionality to ...
  1861. (TT_Process_Composite_Component, TT_Process_Composite_Glyph): These
  1862. new functions.
  1863. (TT_Load_Glyph): Set various fields of `glyph' here, not in
  1864. load_truetype_glyph and compute_glyph_metrics.
  1865. Split off some functionality to ...
  1866. (load_sbit_image, tt_loader_init): These new functions.
  1867. (compute_glyph_metrics): Call FT_Outline_Get_CBox.
  1868. 2005-08-08 Werner Lemberg <wl@gnu.org>
  1869. * docs/INSTALL.ANY: Updated.
  1870. 2005-08-05 Werner Lemberg <wl@gnu.org>
  1871. * src/cff/cffgload.c (cff_builder_close_contour),
  1872. src/psaux/psobjs.c (t1_builder_close_contour): Protect against
  1873. zero `outline' pointer.
  1874. * src/base/ftgloadr.c (FT_GlyphLoader_Add): Protect against zero
  1875. `loader' address.
  1876. 2005-08-03 Werner Lemberg <wl@gnu.org>
  1877. * src/sfnt/sfdriver.c (sfnt_interface) [FT_OPTIMIZE_MEMORY]:
  1878. Reactivate pointers to tt_find_sbit_image and tt_load_sbit_metrics
  1879. to make X work again.
  1880. 2005-08-02 Werner Lemberg <wl@gnu.org>
  1881. * src/otvalid/otvcommn.h: Remove dead code.
  1882. 2005-07-31 Chia I Wu <b90201047@ntu.edu.tw>
  1883. * src/truetype/ttobjs.h (tt_size_run_fpgm, tt_size_run_prep): New
  1884. functions.
  1885. * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): New
  1886. functions.
  1887. (tt_size_init): Add 4, instead of 2, (phantom) points to twilight
  1888. zone.
  1889. Move code that runs fpgm to tt_size_run_fpgm.
  1890. (Reset_Outline_Size): Move code that runs prep to tt_size_run_prep.
  1891. (tt_glyphzone_new): Allocate right size of arrays.
  1892. Set max_points and max_contours properly.
  1893. 2005-07-26 Chia I Wu <b90201047@ntu.edu.tw>
  1894. * src/truetype/ttdriver.c (Set_Char_Sizes): Avoid unnecessary
  1895. computations and clean up.
  1896. * src/truetype/ttobjs.h (struct TT_SizeRec_): Comment on the
  1897. internal copy of metrics.
  1898. 2005-07-12 Werner Lemberg <wl@gnu.org>
  1899. * include/freetype/ftoutln.h (FT_Outline_Embolden): Fix prototype.
  1900. Reported by Xerxes.
  1901. 2005-07-04 Werner Lemberg <wl@gnu.org>
  1902. * include/freetype/internal/ftmemory.h (FT_REALLOC_ARRAY): Fix typo.
  1903. Reported by Brett Hutley.
  1904. 2005-06-30 David Turner <david@freetype.org>
  1905. * src/sfnt/ftbitmap.c, src/truetype/ttgload.c, src/sfnt/ttcmap.c:
  1906. Removing compiler warnings (Visual C++ /W4).
  1907. Implement a work-around for broken C preprocessor in Visual C++ (it
  1908. has been confirmed by the MS developers that it is indeed a bug
  1909. which won't be fixed in the very near future).
  1910. * Jamfile (FT2_COMPONENTS): Include otvalid (again).
  1911. * src/otvalid/otvcommn.h (OTV_NAME, OTV_FUNC): New macros.
  1912. (OTV_NEST1, OTV_NEST2, OTV_NEST3): Use OTV_NAME and OTV_FUNC to
  1913. avoid argument expansion by argument prescan.
  1914. Append `Func' to all affected macros and change them to take just a
  1915. single argument. Example: `AttachList' is renamed to
  1916. `AttachListFunc'.
  1917. * src/otvalid/otvgdef.c, src/otvalid/otvgpos.c,
  1918. src/otvalid/otvgsub.c, src/otvjstf.c: Append `Func' to macros
  1919. affected by the changes to OTV_NESTx and modify them to take just a
  1920. single argument.
  1921. 2005-06-20 Chia I Wu <b90201047@ntu.edu.tw>
  1922. * include/freetype/internal/ftobjs.h, src/base/ftobjs.c: New function
  1923. ft_glyphslot_grid_fit_metrics.
  1924. * src/truetype/ttgload.c (compute_glyph_metrics): Use
  1925. ft_glyphslot_grid_fit_metrics.
  1926. * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
  1927. (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph): Use
  1928. ft_glyphslot_grid_fit_metrics.
  1929. FT_Outline_Get_CBox is called twice.
  1930. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Modify metrics to more
  1931. reasonable values when emboldening outline glyphs. The theoretic
  1932. ones are unrealistic.
  1933. 2005-06-16 Chia I Wu <b90201047@ntu.edu.tw>
  1934. * src/base/ftoutln.c (FT_Outline_Embolden): Strength should be
  1935. halved.
  1936. * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Change the default
  1937. strength.
  1938. Don't increase slot->advance.y.
  1939. 2005-06-16 Werner Lemberg <wl@gnu.org>
  1940. * include/freetype/freetype.h (FREETYPE_MINOR): Set to 2.
  1941. (FREETYPE_PATCH): Set to 0.
  1942. * builds/unix/configure.ac (version_info): Set to 9:9:3.
  1943. Currently, we are still binary compatible.
  1944. * builds/win32/visualc/index.html,
  1945. builds/win32/visualc/freetype.dsp,
  1946. builds/win32/visualc/freetype.vcproj: s/219/2110/, s/2.1.9/2.1.10/.
  1947. * builds/freetype.mk (refdoc), README, Jamfile (RefDoc):
  1948. s/2.1.9/2.1.10/.
  1949. * docs/CHANGES, docs/VERSION.DLL: Updated.
  1950. * ChangeLog: Split off older entries into...
  1951. * ChangeLog.20, ChangeLog.21: These new files.
  1952. 2005-06-15 Kirill Smelkov <kirr@mns.spb.ru>
  1953. The next release will be 2.2.0, so don't worry about source code
  1954. backward compatibility.
  1955. * include/freetype/ftimage.h (FT_Outline_MoveToFunc,
  1956. FT_Outline_LineToFunc, FT_Outline_ConicToFunc,
  1957. FT_Outline_CubicToFunc, FT_SpanFunc, FT_Raster_RenderFunc),
  1958. include/freetype/ftrender.h (FT_Glyph_TransformFunc,
  1959. FT_Renderer_RenderFunc, FT_Renderer_TransformFunc): Decorate
  1960. parameters with `const' where appropriate.
  1961. 2005-06-15 Chia I Wu <b90201047@ntu.edu.tw>
  1962. * src/sfnt/ttsbit.c (tt_face_load_sbit_image): Compute vertBearingY
  1963. to make glyphs centered vertically.
  1964. * src/truetype/ttgload.c (compute_glyph_metrics): Compute
  1965. vertBearingY to make glyphs centered vertically.
  1966. Fix some bugs in vertical metrics:
  1967. . loader->pp3.y and loader->pp4.y are in 26.6 format, not in font
  1968. units.
  1969. . As we use the glyph's cbox to calculate the top bearing now
  1970. there is no need to adjust `top'.
  1971. 2005-06-15 Werner Lemberg <wl@gnu.org>
  1972. * src/otvalid/otvcommn.h (OTV_OPTIONAL_TABLE): Use FT_UShort to be
  1973. in sync with OTV_OPTIONAL_OFFSET. Reported by YAMATO Masatake.
  1974. 2005-06-13 Werner Lemberg <wl@gnu.org>
  1975. * docs/release: Update.
  1976. ----------------------------------------------------------------------------
  1977. Copyright (C) 2005-2022 by
  1978. David Turner, Robert Wilhelm, and Werner Lemberg.
  1979. This file is part of the FreeType project, and may only be used, modified,
  1980. and distributed under the terms of the FreeType project license,
  1981. LICENSE.TXT. By continuing to use, modify, or distribute this file you
  1982. indicate that you have read the license and understand and accept it
  1983. fully.
  1984. Local Variables:
  1985. version-control: never
  1986. coding: utf-8
  1987. End: