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

5435 lines
203 KiB

  1. CHANGES BETWEEN 2.10.4 and 2.11.0
  2. I. IMPORTANT CHANGES
  3. - A new rendering module has been added to create 8-bit Signed
  4. Distance Field (SDF) bitmaps for both outline and bitmap glyphs.
  5. The new rendering mode is called `FT_RENDER_MODE_SDF`, the pixel
  6. mode is `FT_PIXEL_MODE_GRAY8`, and the corresponding raster flag
  7. is `FT_RASTER_FLAG_SDF`.
  8. This work was Anuj Verma's GSoC 2020 project.
  9. - A new, experimental API is now available for surfacing properties
  10. of 'COLR' v1 color fonts (as the name says, this is an extension
  11. to the 'COLR' table for outline color fonts using the SFNT
  12. container format). 'COLR' v1 fonts are a recently proposed
  13. addition to OFF and OpenType; specification work currently happens
  14. in
  15. https://github.com/googlefonts/colr-gradients-spec/
  16. 'COLR' v1 is expected to be merged to OpenType; the ISO
  17. standardisation process for adding 'COLR' v1 as an amendment to
  18. OFF is underway.
  19. Functions similar to the already existing 'COLR' API have been
  20. added to access the corresponding data.
  21. FT_Get_Color_Glyph_Paint
  22. Retrieve the root paint for a given glyph ID.
  23. FT_Get_Paint_Layers
  24. Access the layers of a `PaintColrLayers` table.
  25. FT_Get_Colorline_Stops
  26. Retrieve the 'color stops' on a color line. As an input, a
  27. color stop iterator gets used, which in turn is retrieved from
  28. a paint.
  29. FT_Get_Paint
  30. Dereference an `FT_OpaquePaint` object and retrieve the
  31. corresponding `FT_COLR_Paint` object, which contains details
  32. on how to draw the respective 'COLR' v1 `Paint` table.
  33. II. MISCELLANEOUS
  34. - FreeType has moved its infrastructure to
  35. https://gitlab.freedesktop.org/freetype
  36. A side effect is that the git repositories are now called
  37. `freetype.git` and `freetype-demos.git`, which by default expand
  38. to the directories `freetype` and `freetype-demos`, respectively.
  39. The documentation has been updated accordingly.
  40. FreeType's Savannah repositories will stay; they are now mirrors
  41. of the 'freedesktop.org' repositories.
  42. - A new function `FT_Get_Transform` returns the values set by
  43. `FT_Set_Transform`.
  44. - A new configuration macro `FT_DEBUG_LOGGING` is available. It
  45. provides extended debugging capabilities for FreeType, for example
  46. showing a time stamp or displaying the component a tracing message
  47. comes from. See file `docs/DEBUG` for more information.
  48. This work was Priyesh Kumar's GSoC 2020 project.
  49. - The legacy Type 1 and CFF engines are further demoted due to lack
  50. of CFF2 charstring support. You now need to use `FT_Property_Set`
  51. to enable them besides the `T1_CONFIG_OPTION_OLD_ENGINE` and
  52. `CFF_CONFIG_OPTION_OLD_ENGINE` options, respectively.
  53. - The experimental 'warp' mode (AF_CONFIG_OPTION_USE_WARPER) for the
  54. auto-hinter has been removed.
  55. - The smooth rasterizer performance has been improved by >10%. Note
  56. that due to necessary code changes there might be very subtle
  57. differences in rendering. They are not visible by the eye,
  58. however.
  59. - PCF bitmap fonts compressed with LZW (these are usually files with
  60. the extension `.pcf.Z`) are now handled correctly.
  61. - Improved Meson build files, including support to build the
  62. FreeType demo programs.
  63. - A new demo program `ftsdf` is available to display Signed Distance
  64. Fields of glyphs.
  65. - The `ftlint` demo program has been extended to do more testing of
  66. its input. In particular, it can display horizontal and vertical
  67. acutances for quality assessment, together with computing MD5
  68. checksums of rendered glyphs.
  69. [The acutance measures how sharply the pixel coverage changes at
  70. glyph edges. For monochrome bitmaps, it is always 2.0 in either
  71. X or Y direction. For anti-aliased bitmaps, it depends on the
  72. hinting and the shape of a glyph and might approach or even reach
  73. value 2.0 for glyphs like 'I', 'L', '+', '-', or '=', while it
  74. might be lower for glyphs like 'O', 'S', or 'W'.]
  75. - The `ttdebug` demo program didn't show changed point coordinates
  76. (bug introduced in version 2.10.3).
  77. - It is now possible to adjust the axis increment for variable fonts
  78. in the `ftmulti` demo program.
  79. - It is now possible to change the hinting engine in the `ftstring`
  80. demo program.
  81. - The graphical demo programs work better now in native color depth
  82. on win32 and x11.
  83. ======================================================================
  84. CHANGES BETWEEN 2.10.3 and 2.10.4 (2020-Oct-20)
  85. I. IMPORTANT BUG FIXES
  86. - A heap buffer overflow has been found in the handling of embedded
  87. PNG bitmaps, introduced in FreeType version 2.6.
  88. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15999
  89. If you use option FT_CONFIG_OPTION_USE_PNG you should upgrade
  90. immediately.
  91. ======================================================================
  92. CHANGES BETWEEN 2.10.2 and 2.10.3 (2020-Oct-10)
  93. I. IMPORTANT CHANGES
  94. - New flag `FT_OUTLINE_OVERLAP'. If set, make the smooth rasterizer
  95. do 4x4 oversampling to mitigate artifacts in pixels partially
  96. covered by overlapping contours. Note that this at least
  97. quadruples the rendering time.
  98. If a glyph in a TrueType font has the `OVERLAP_SIMPLE' or
  99. `OVERLAP_COMPOUND' bit set, FreeType automatically selects this
  100. rendering mode.
  101. II. MISCELLANEOUS
  102. - Using the arcane method of including FreeType header files with
  103. macros like `FT_FREETYPE_H' is no longer mandatory (but retained
  104. as an optional feature for backward compatibility).
  105. - Support for building the library with Meson. Building the demo
  106. programs with Meson will follow in a forthcoming release.
  107. - Minor improvements to the B/W rasterizer.
  108. - Auto-hinter support for Medefaidrin script.
  109. - Fix various memory leaks (mainly for CFF) and other issues that
  110. might cause crashes in rare circumstances.
  111. - Jam support has been removed.
  112. - In `ftview', custom LCD filter values are now normalized and
  113. balanced. Unorthodox filters are still available through the `-L'
  114. command line option.
  115. - The GUI demo programs can now be resized.
  116. - Demo programs that accept command line option `-k' can now handle
  117. function keys, too. The corresponding character codes start with
  118. 0xF1. As an example, the POSIX shell syntax (accepted by bash,
  119. ksh, and zsh)
  120. -k $'\xF3q'
  121. emulates the pressing of function key `F3' followed by key `q'.
  122. ======================================================================
  123. CHANGES BETWEEN 2.10.1 and 2.10.2 (2020-May-09)
  124. I. IMPORTANT CHANGES
  125. - Support of WOFF2 fonts. This code contribution was Nikhil
  126. Ramakrishnan's GSoC 2019 project.
  127. II. MISCELLANEOUS
  128. - Function `FT_Get_Var_Axis_Flags' returned random data for Type 1
  129. MM fonts.
  130. - Type 1 fonts with non-integer metrics are now supported by the new
  131. (CFF) engine introduced in FreeType 2.9.
  132. - Drop support for Python 2 in Freetype's API reference generator
  133. `docwriter' (Python >= 3.5 is required for targets `make refdoc'
  134. and `make refdoc-venv').
  135. - Auto-hinter support for Hanifi Rohingya.
  136. - Document the `FT2_KEEP_ALIVE' debugging environment variable.
  137. - The Visual C++ (and Visual C) project files for Windows builds no
  138. longer generate libraries that contain the FreeType version in its
  139. filenames. Instead, a resource file gets used to make the
  140. libraries contain the corresponding information.
  141. - The next release will remove Jam build support.
  142. - The `ftbench' demo program has a new test for testing the
  143. `FT_Glyph_Stroke' functionality.
  144. ======================================================================
  145. CHANGES BETWEEN 2.10.0 and 2.10.1 (2019-Jul-01)
  146. I. IMPORTANT BUG FIXES
  147. - The bytecode hinting of OpenType variation fonts was flawed, since
  148. the data in the `CVAR' table wasn't correctly applied.
  149. II. MISCELLANEOUS
  150. - Auto-hinter support for Mongolian.
  151. - For distribution, `.tar.bz2' packages are replaced with `.tar.xz'
  152. bundles.
  153. - The handling of the default character in PCF fonts as introduced
  154. in version 2.10.0 was partially broken, causing premature abortion
  155. of charmap iteration for many fonts.
  156. - If `FT_Set_Named_Instance' was called with the same arguments
  157. twice in a row, the function returned an incorrect error code the
  158. second time.
  159. - Direct rendering using FT_RASTER_FLAG_DIRECT crashed (bug
  160. introduced in version 2.10.0).
  161. - Increased precision while computing OpenType font variation
  162. instances.
  163. - The flattening algorithm of cubic Bezier curves was slightly
  164. changed to make it faster. This can cause very subtle rendering
  165. changes, which aren't noticeable by the eye, however.
  166. - The auto-hinter now disables hinting if there are blue zones
  167. defined for a `style' (i.e., a certain combination of a script and
  168. its related typographic features) but the font doesn't contain any
  169. characters needed to set up at least one blue zone.
  170. - The `ftmulti' demo program now supports multiple hidden axes with
  171. the same name tag.
  172. - `ftview', `ftstring', and `ftgrid' got a `-k' command line option
  173. to emulate a sequence of keystrokes at start-up.
  174. - `ftview', `ftstring', and `ftgrid' now support screen dumping to a
  175. PNG file.
  176. - The bytecode debugger, `ttdebug', now supports variation TrueType
  177. fonts; a variation font instance can be selected with the new `-d'
  178. command line option.
  179. ======================================================================
  180. CHANGES BETWEEN 2.9.1 and 2.10.0 (2019-Mar-15)
  181. I. IMPORTANT CHANGES
  182. - A bunch of new functions has been added to access and process
  183. COLR/CPAL data of OpenType fonts with color-layered glyphs.
  184. FT_Palette_Data_Get
  185. Retrieve color palette data.
  186. FT_Palette_Select
  187. Select and activate a color palette for color-layered
  188. glyphs.
  189. FT_Palette_Set_Foreground_Color
  190. Set text foreground color for palette index 0xFFFF.
  191. FT_Get_Color_Glyph_Layer
  192. Get color layers for a given glyph (using an interator
  193. object).
  194. FT_Bitmap_Blend
  195. Blend one bitmap onto another with a given color.
  196. - An experimental feature is the new behaviour of the
  197. `FT_LOAD_COLOR' load flag for color-layered glyphs: Internally
  198. it sets a flag so that if `FT_Render_Glyph' is called with
  199. `FT_RENDER_MODE_NORMAL' (or `FT_Load_Glyph' with
  200. `FT_LOAD_RENDER'), a default blending of the color glyph layers
  201. will happen automatically for convenience.
  202. - As a GSoC 2018 project, Nikhil Ramakrishnan completely
  203. overhauled and modernized the API reference.
  204. II. MISCELLANEOUS
  205. - The logic for computing the global ascender, descender, and
  206. height of OpenType fonts has been slightly adjusted for
  207. consistency.
  208. . If the `useTypoMetrics' flag (i.e., bit 7 in the `fsSelection'
  209. field) in the `OS/2' table is set, use the `sTypo' fields in
  210. `OS/2' unconditionally.
  211. . Otherwise use the metrics data from the `hhea' table (if not
  212. zero).
  213. . Otherwise use the `sTypo' fields from the `OS/2' table (if not
  214. zero).
  215. . Otherwise use the `usWin' data from the `OS/2' table as a last
  216. resort.
  217. Variable fonts will apply the `MVAR' deltas to whichever metrics
  218. were picked.
  219. - `TT_Set_MM_Blend' could fail if call repeatedly with the same
  220. arguments.
  221. - The precision of handling deltas in Variation Fonts has been
  222. increased. The problem did only show up with multidimensional
  223. designspaces.
  224. - New function `FT_Library_SetLcdGeometry' to set up the geometry
  225. of LCD subpixels.
  226. - FreeType now uses the `defaultChar' property of PCF fonts to set
  227. the glyph for the undefined character at glyph index 0 (as
  228. FreeType already does for all other supported font formats). As
  229. a consequence, the order of glyphs of a PCF font if accessed
  230. with FreeType can be different now compared to previous
  231. versions.
  232. This change doesn't affect PCF font access with cmaps.
  233. - `FT_Select_Charmap' has been changed to allow parameter value
  234. `FT_ENCODING_NONE', which is valid for BDF, PCF, and Windows FNT
  235. formats to access built-in cmaps that don't have a predefined
  236. `FT_Encoding' value.
  237. - A previously reserved field in the `FT_GlyphSlotRec' structure
  238. now holds the glyph index.
  239. - On Win32 platforms, the use of `_DLL' to build the library has
  240. been replaced with `DLL_EXPORT' and `DLL_IMPORT'.
  241. - The usual round of fuzzer bug fixes to better reject malformed
  242. fonts.
  243. - `FT_Outline_New_Internal' and `FT_Outline_Done_Internal' have
  244. been removed. These two functions were public by oversight only
  245. and were never documented.
  246. - A new function `FT_Error_String' returns descriptions of error
  247. codes if configuration macro FT_CONFIG_OPTION_ERROR_STRINGS is
  248. defined.
  249. - `FT_Set_MM_WeightVector' and `FT_Get_MM_WeightVector' are new
  250. functions limited to Adobe MultiMaster fonts to directly set and
  251. get the weight vector.
  252. - Support for Position Independent Code as needed by systems that
  253. prohibit automatic address fixups, such as BREW, has been
  254. removed. [Compilation with modern compilers that use flags like
  255. `-fPIC' or `-fPIE' is not affected.]
  256. - The `ftdump' demo program has new options `-c' and `-C' to
  257. display charmaps in compact and detailed format, respectively.
  258. Option `-V' has been removed.
  259. - The `ftview', `ftstring', and `ftgrid' demo programs use a new
  260. command line option `-d' to specify the program window's width,
  261. height, and color depth.
  262. - The `ftview' demo program now displays red boxes for zero-width
  263. glyphs.
  264. - `ftglyph' has limited support to display fonts with
  265. color-layered glyphs. This will be improved later on.
  266. - `ftgrid' can now display bitmap fonts also.
  267. - The `ttdebug' demo program has a new option `-f' to select a
  268. member of a TrueType collection (TTC).
  269. - Other various improvements to the demo programs.
  270. ======================================================================
  271. CHANGES BETWEEN 2.9 and 2.9.1 (2019-May-01)
  272. I. IMPORTANT BUG FIXES
  273. - Type 1 fonts containing flex features were not rendered
  274. correctly (bug introduced in version 2.9).
  275. - CVE-2018-6942: Older FreeType versions can crash with certain
  276. malformed variation fonts.
  277. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-6942
  278. II. MISCELLANEOUS
  279. - Bug fix: Multiple calls to `FT_Get_MM_Var' returned garbage.
  280. - The base extensions `ftlcdfil' and `ftfntfmt' are now part of
  281. the base module (and thus no longer configurable in file
  282. `modules.cfg').
  283. - Emboldening of bitmaps didn't work correctly sometimes, showing
  284. various artifacts (bug introduced in version 2.8.1).
  285. - Use of the `freetype-config' script to get compilation and
  286. linking options is deprecated since it doesn't support
  287. cross-compiling, among other deficiencies. Instead, you should
  288. use the `pkg-config' interface.
  289. The `configure' script no longer installs `freetype-config' by
  290. default. For backward compatibility, a new configure option
  291. `--enable-freetype-config' is provided that reverts this
  292. decision.
  293. - The auto-hinter script ranges have been updated for Unicode 11.
  294. No support for new scripts have been added, however, with the
  295. exception of Georgian Mtavruli.
  296. - Support for cmake has been improved.
  297. - The next release will remove support for Position Independent
  298. Code as needed by systems that prohibit automatic address
  299. fixups, such as BREW. [Compilation with modern compilers that
  300. use flags like `-fPIC' or `-fPIE' is not affected.]
  301. ======================================================================
  302. CHANGES BETWEEN 2.8.1 and 2.9 (2018-Jan-08)
  303. I. IMPORTANT BUG FIXES
  304. - Advance width values of variation fonts were often wrong.
  305. - More fixes for variation font support; you should update to this
  306. version if you want to support them.
  307. II. IMPORTANT CHANGES
  308. - As a GSoC project, Ewald Hew extended the new (Adobe) CFF engine
  309. to handle Type 1 fonts also, thus greatly improving the
  310. rendering of this format. This is the new default. The old
  311. engine is still available if the configuration macro
  312. `T1_CONFIG_OPTION_OLD_ENGINE' gets defined; using the
  313. `hinting-engine' property of the `type1' driver module you can
  314. then switch between the two engines.
  315. - A new function, `FT_Set_Named_Instance', can be used to set or
  316. change the current named instance.
  317. - Starting with this FreeType version, resetting variation
  318. coordinates will return to the currently selected named
  319. instance. Previously, FreeType returned to the base font (i.e.,
  320. no instance set).
  321. III. MISCELLANEOUS
  322. - The `face_flags' field of the `FT_Face' structure has a new bit,
  323. `FT_FACE_FLAG_VARIATION', which is set if a variation font has
  324. been altered with `FT_Set_MM_Design_Coordinates',
  325. `FT_Set_Var_Design_Coordinates', or
  326. `FT_Set_Var_Blend_Coordinates'.
  327. - If the current face is a named instance, the new macro
  328. `FT_IS_NAMED_INSTANCE' returns true.
  329. - `FT_IS_VARIATION' is a new macro that returns true whenever a
  330. face object has been altered by `FT_Set_MM_Design_Coordinates',
  331. `FT_Set_Var_Design_Coordinates', or
  332. `FT_Set_Var_Blend_Coordinates'.
  333. - Changing the design coordinates of a variation font with
  334. `FT_Set_Var_Design_Coordinates' or
  335. `FT_Set_Var_Blend_Coordinates' does not influence the named
  336. instance index value (only `FT_Set_Named_Instance' does that).
  337. - Special PostScript names for named instances are only returned
  338. if the named instance is set with `FT_Set_Named_Instance' (and
  339. the font has corresponding entries in its `fvar' table). If
  340. `FT_IS_VARIATION' returns true, the algorithmically derived
  341. PostScript name is provided, not looking up special entries for
  342. named instances.
  343. - A new function `FT_Done_MM_Var' is provided to free the memory
  344. returned in a call to `FT_Get_MM_Var'.
  345. - On platforms using the `configure' script, the installed
  346. `ftoption.h' file now correctly reflects configuration options
  347. like `--with-harfbuzz'.
  348. - Better support to build FreeType as a DLL on Windows using
  349. Visual C.
  350. - All data specific to driver modules is now collected in a single
  351. file, `FT_DRIVER_H'. Consequently, the macros
  352. `FT_AUTOHINTER_H', `FT_CFF_DRIVER_H', `FT_TRUETYPE_DRIVER_H',
  353. and `FT_PCF_DRIVER_H' still work but are deprecated.
  354. - Some fuzzer fixes to better reject malformed fonts.
  355. - The `ftbench' demo program has a new test for opening a new face
  356. and loading some glyphs.
  357. - The `ftbench' demo program has a new option `-j' to specify the
  358. last glyph index to be used in the tests.
  359. - The `ftgrid' demo program has a new option `-n' to suppress
  360. display of named instances of variation fonts.
  361. - The `ttdebug' demo program can now show a stack trace (key `K')
  362. and switch between hexadecimal and decimal display of integers
  363. (key `I').
  364. ======================================================================
  365. CHANGES BETWEEN 2.8 and 2.8.1 (2017-Sep-16)
  366. I. IMPORTANT BUG FIXES
  367. - B/W hinting of TrueType fonts didn't work properly if
  368. interpreter version 38 or 40 was selected.
  369. - Some severe problems within the handling of TrueType Variation
  370. Fonts were found and fixed.
  371. - Function `FT_Set_Var_Design_Coordinates' didn't correctly handle
  372. the case with less input coordinates than axes.
  373. II. IMPORTANT CHANGES
  374. - By default, FreeType now offers high quality LCD-optimized
  375. output without resorting to ClearType techniques of resolution
  376. tripling and filtering. In this method, called Harmony, each
  377. color channel is generated separately after shifting the glyph
  378. outline, capitalizing on the fact that the color grids on LCD
  379. panels are shifted by a third of a pixel. This output is
  380. indistinguishable from ClearType with a light 3-tap filter.
  381. III. MISCELLANEOUS
  382. - Using the new function `FT_Get_Var_Axis_Flags', an application
  383. can access the `flags' field of a variation axis (introduced in
  384. OpenType version 1.8.2)
  385. - More sanity checks.
  386. - The internal representation of buffers for LCD rendering has
  387. changed (to be more precise, the amount of padding gets computed
  388. differently). Applications that use the FreeType API are not
  389. affected.
  390. - To reset all design axis values of a variation font to its
  391. default values you can now say
  392. error = FT_Set_Var_Design_Coordinates( face, 0, NULL );
  393. This also works with functions `FT_Set_MM_Design_Coordinates'
  394. and `FT_Set_MM_Blend_Coordinates'.
  395. - FreeType now synthesizes a missing Unicode cmap for (older)
  396. TrueType fonts also if glyph names are available.
  397. - FreeType has improved handling of BDF fonts without the
  398. `POINT_SIZE', `RESOLUTION_X', or `RESOLUTION_Y' properties; the
  399. library now uses the values of the `SIZE' keyword if they are
  400. missing. Previously, `SIZE' was completely ignored, and
  401. FreeType used heuristic values instead.
  402. - Multiple calls to `FT_Bitmap_Convert' do work now as advertised.
  403. Previously, they failed with an assertion error if there was an
  404. empty bitmap between non-empty ones.
  405. - The warping option has moved from `light' to `normal' hinting
  406. where it replaces the original hinting algorithm. The `light'
  407. mode is now always void of any hinting in x-direction.
  408. - 16bit compiler support is now officially ended. We didn't
  409. provide any maintenance since many years, and given that there
  410. were no error or problem reports either it seems that it is no
  411. longer needed.
  412. - The `ftgrid' demo program can now toggle the display of grid
  413. lines with the `G' key.
  414. - The `ftgrid' demo program can toggle a different set of colors
  415. (suitable to color-blind people) with the `C' key.
  416. - The `ftgrid' demo program now supports the `-e' command line
  417. option to select a cmap.
  418. - The `ftdump' demo program has a new command line option `-t' to
  419. output the SFNT table list.
  420. ======================================================================
  421. CHANGES BETWEEN 2.7.1 and 2.8 (2017-May-13)
  422. I. IMPORTANT CHANGES
  423. - Support for OpenType Variation Fonts is now complete. The last
  424. missing part was handling the `VVAR' and `MVAR' tables, which is
  425. available with this release.
  426. - A new function `FT_Face_Properties' allows the control of some
  427. module and library properties per font. Currently, the
  428. following properties can be handled: stem darkening, LCD filter
  429. weights, and the random seed for the `random' CFF operator.
  430. - The PCF change to show more `colorful' family names (introduced
  431. in version 2.7.1) was too radical; it can now be configured with
  432. PCF_CONFIG_OPTION_LONG_FAMILY_NAMES at compile time. If
  433. activated, it can be switched off at run time with the new pcf
  434. property `no-long-family-names'. If the `FREETYPE_PROPERTIES'
  435. environment variable is available, you can say
  436. FREETYPE_PROPERTIES=pcf:no-long-family-names=1
  437. - Support for the following scripts has been added to the
  438. auto-hinter.
  439. Adlam, Avestan, Bamum, Buhid, Carian, Chakma, Coptic, Cypriot,
  440. Deseret, Glagolitic, Gothic, Kayah, Lisu, N'Ko, Ol Chiki, Old
  441. Turkic, Osage, Osmanya, Saurashtra, Shavian, Sundanese, Tai
  442. Viet, Tifinagh, Unified Canadian Syllabics, Vai
  443. II. IMPORTANT BUG FIXES
  444. - `Light' auto-hinting mode no longer uses TrueType metrics for
  445. TrueType fonts. This bug was introduced in version 2.4.6,
  446. causing horizontal scaling also. Almost all GNU/Linux
  447. distributions (with Fedora as a notable exception) disabled the
  448. corresponding patch for good reasons; chances are thus high that
  449. you won't notice a difference.
  450. If optical backward compatibility for legacy applications is
  451. necessary, you might enable the AF_CONFIG_OPTION_TT_SIZE_METRICS
  452. configuration option. However, it is strongly recommended to
  453. avoid that, adjusting font sizes instead.
  454. - Global size metrics values in the `FT_Size_Metrics' structure
  455. can be different for TrueType fonts. Reason is that in older
  456. FreeType versions the metrics were rounded differently to
  457. integer pixels compared to all other font formats, yielding an
  458. inconsistent behaviour if you used non-native hinting. Starting
  459. with this version, global size metrics for TrueType fonts are
  460. handled the same as other font formats: `ascender' gets rounded
  461. up, `descender' gets rounded down, `height' gets normally
  462. rounded, and `max_advance' gets normally rounded, too.
  463. If you need more precise values of (global) ascender, descender,
  464. height, or `max_advance', please take the corresponding values
  465. from the `FT_Face' structure and scale them manually.
  466. - If a TrueType font gets loaded with FT_LOAD_NO_HINTING, FreeType
  467. now scales the font linearly again (bug introduced in version
  468. 2.4.6).
  469. - CVE-2017-8105, CVE-2017-8287: Older FreeType versions have
  470. out-of-bounds writes caused by heap-based buffer overflows
  471. related to Type 1 fonts.
  472. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8105
  473. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8287
  474. III. MISCELLANEOUS
  475. - A new function `FT_Set_Default_Properties' has been added to
  476. parse the `FREETYPE_PROPERTIES' environment variable
  477. (previously, it was internal only). `FT_Init_FreeType' always
  478. call this function, but `FT_New_Library' does not (similar to
  479. `FT_Add_Default_Modules').
  480. - To be in sync with OpenType version 1.7 and newer, macros
  481. FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY,
  482. FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY,
  483. TT_NAME_ID_PREFERRED_FAMILY
  484. TT_NAME_ID_PREFERRED_SUBFAMILY
  485. are renamed to
  486. FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_FAMILY,
  487. FT_PARAM_TAG_IGNORE_TYPOGRAPHIC_SUBFAMILY,
  488. TT_NAME_ID_TYPOGRAPHIC_FAMILY
  489. TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY
  490. The old macro names are deprecated (but still available).
  491. - Support for SFNT `name' tables has been improved.
  492. . Format 1 `name' tables are now supported. Use new function
  493. `FT_Get_Sfnt_LangTag' to access associated language tags.
  494. . Language, encoding, and name IDs have been updated to OpenType
  495. version 1.8.1.
  496. - The new CFF engine now handles the `random' operator. All CFF
  497. opcodes are now supported.
  498. - The CFF module has a new property `random-seed' to control the
  499. pseudo-random number generation for the `random' operator.
  500. - The `freetype-config' script is now a wrapper of `pkg-config' if
  501. this program is available in the path.
  502. - FT_LOAD_TARGET_LCD is now a variant of FT_LOAD_TARGET_LIGHT;
  503. this should provide better rendering results.
  504. - A mode to display light auto-hinting with subpixel positioning
  505. has been added to `ftdiff'.
  506. ======================================================================
  507. CHANGES BETWEEN 2.7 and 2.7.1 (2016-Dec-30)
  508. I. IMPORTANT CHANGES
  509. - Support for the new CFF2 font format as introduced with OpenType
  510. 1.8 has been contributed by Dave Arnolds from Adobe.
  511. - Preliminary support for variation fonts as specified in OpenType
  512. 1.8 (in addition to the already existing support for Adobe's MM
  513. and Apple's GX formats). Dave Arnolds contributed handling of
  514. advance width change variation; more will come in the next
  515. version.
  516. II. IMPORTANT BUG FIXES
  517. - Handling of raw CID fonts was partially broken (bug introduced
  518. in 2.6.4).
  519. - CVE-2016-10328: Older FreeType versions had an out-of-bounds
  520. write caused by a heap-based buffer overflow related to the CFF
  521. fonts.
  522. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-10328
  523. III. MISCELLANEOUS
  524. - Some limits for TrueType bytecode execution have been tightened
  525. to speed up FreeType's handling of malformed fonts, in
  526. particular to quickly abort endless loops.
  527. - The number of twilight points can no longer be set to an
  528. arbitrarily large value.
  529. - The total number of jump opcode instructions (like JMPR) with
  530. negative arguments is dynamically restricted; the same holds
  531. for the total number of iterations in LOOPCALL opcodes.
  532. The dynamic limits are based on the number of points in a glyph
  533. and the number of CVT entries. Please report if you encounter a
  534. font where the selected values are not adequate.
  535. - PCF family names are made more `colorful'; they now include the
  536. foundry and information whether they contain wide characters.
  537. For example, you no longer get `Fixed' but rather `Sony Fixed'
  538. or `Misc Fixed Wide'.
  539. - A new function `FT_Get_Var_Blend_Coordinates' (with its alias
  540. name `FT_Get_MM_Blend_Coordinates') to retrieve the normalized
  541. blend coordinates of the currently selected variation instance
  542. has been added to the Multiple Masters interface.
  543. - A new function `FT_Get_Var_Design_Coordinates' to retrieve the
  544. design coordinates of the currently selected variation instance
  545. has been added to the Multiple Masters interface.
  546. - A new load flag `FT_LOAD_BITMAP_METRICS_ONLY' to retrieve bitmap
  547. information without loading the (embedded) bitmap itself.
  548. - Retrieving advance widths from bitmap strikes (using
  549. `FT_Get_Advance' and `FT_Get_Advances') have been sped up.
  550. - The usual round of fuzzer fixes to better reject malformed
  551. fonts.
  552. - The `ftmulti' demo program can now switch engines with key `H'.
  553. - The `ftstring' demo program can now show some built-in,
  554. non-latin sample strings (to be selected with the TAB key).
  555. - The `ftview' demo program can now switch between a font's
  556. charmaps using the TAB key.
  557. ======================================================================
  558. CHANGES BETWEEN 2.6.5 and 2.7 (2016-Sep-08)
  559. I. IMPORTANT CHANGES
  560. - As announced earlier, the 2.7.x series now uses the new subpixel
  561. hinting mode as the default, emulating a modern version of
  562. ClearType.
  563. This change inevitably leads to different rendering results, and
  564. you might change the `TT_CONFIG_OPTION_SUBPIXEL_HINTING'
  565. configuration option to adapt it to your taste (or use the new
  566. `FREETYPE_PROPERTIES' environment variable). See the
  567. corresponding entry below for version 2.6.4, which gives more
  568. information.
  569. - A new option `FT_CONFIG_OPTION_ENVIRONMENT_PROPERTIES' has been
  570. introduced. If set (which is the default), an environment
  571. variable `FREETYPE_PROPERTIES' can be used to control driver
  572. properties. Example:
  573. FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
  574. cff:no-stem-darkening=1 \
  575. autofitter:warping=1
  576. This allows to select, say, the subpixel hinting mode at runtime
  577. for a given application. See file `ftoption.h' for more.
  578. II. IMPORTANT BUG FIXES
  579. - After loading a named instance of a GX variation font, the
  580. `face_index' value in the returned `FT_Face' structure now
  581. correctly holds the named instance index in the upper 16bits as
  582. documented.
  583. III. MISCELLANEOUS
  584. - A new macro `FT_IS_NAMED_INSTANCE' to test whether a given face
  585. is a named instance.
  586. - More fixes to GX font handling.
  587. - Apple's `GETVARIATION' bytecode operator (needed for GX
  588. variation font support) has been implemented.
  589. - Another round of fuzzer fixes, mainly to reject invalid fonts
  590. faster.
  591. - Handling of raw CID fonts was broken (bug introduced in version
  592. 2.6.4).
  593. - The smooth rasterizer has been streamlined to make it faster by
  594. approx. 20%.
  595. - The `ftgrid' demo program now understands command line option
  596. `-d' to give start-up design coordinates.
  597. - The `ftdump' demo program has a new command line option `-p' to
  598. dump TrueType bytecode instructions.
  599. ======================================================================
  600. CHANGES BETWEEN 2.6.4 and 2.6.5 (2016-Jul-12)
  601. I. IMPORTANT BUG FIXES
  602. - Compilation works again on Mac OS X (bug introduced in version
  603. 2.6.4).
  604. II. IMPORTANT CHANGES
  605. - The new subpixel hinting mode is now disabled by default; it
  606. will be enabled by default in the forthcoming 2.7.x series.
  607. Main reason for reverting this feature is the principle of least
  608. surprise: a sudden change in appearance of all fonts (even if
  609. the rendering improves for almost all recent fonts) should not
  610. be expected in a new micro version of a series.
  611. ======================================================================
  612. CHANGES BETWEEN 2.6.3 and 2.6.4 (2016-Jul-05)
  613. I. IMPORTANT CHANGES
  614. - A new subpixel hinting mode has been contributed by Nikolaus
  615. Waxweiler, which is now the default rendering mode for TrueType
  616. fonts. It implements (almost everything of) version 40 of the
  617. bytecode engine.
  618. The existing code base in FreeType (the `Infinality code') was
  619. stripped to the bare minimum and all configurability removed in
  620. the name of speed and simplicity. The configurability was
  621. mainly aimed at legacy fonts like Arial, Times New Roman, or
  622. Courier. [Legacy fonts are fonts that modify vertical stems to
  623. achieve clean black-and-white bitmaps.] The new mode focuses on
  624. applying a minimal set of rules to all fonts indiscriminately so
  625. that modern and web fonts render well while legacy fonts render
  626. okay.
  627. Activation of the subpixel hinting support can be controlled
  628. with the `TT_CONFIG_OPTION_SUBPIXEL_HINTING' configuration
  629. option at compile time: If set to value 1, you get the old
  630. Infinality mode (which was never the default due to its
  631. slowness). Value 2 activates the new subpixel hinting mode, and
  632. value 3 activates both. The default is value 2.
  633. At run time, you can select the subpixel hinting mode with the
  634. `interpreter-version' property (provided you have compiled in
  635. the corresponding hinting mode); see `ftttdrv.h' for more.
  636. - Support for the following scripts has been added to the
  637. auto-hinter.
  638. Armenian, Cherokee, Ethiopic, Georgian, Gujarati, Gurmukhi,
  639. Malayalam, Sinhala, Tamil
  640. II. MISCELLANEOUS
  641. - Type 42 fonts as created by LilyPond are now supported.
  642. - Minor rendering improvements in the auto-hinter.
  643. - For experimental reasons, the old CFF engine now supports all
  644. CFF operators except `random', including the deprecated Multiple
  645. Masters instructions. This allows the display of fonts like
  646. `ITCGaramondMM-It.otf' (without font variations, though).
  647. - Another round of fixes to improve handling of invalid fonts.
  648. - The `ftgrid' demo program now displays the rendered pixels also;
  649. this can be switched off with the `b' key. Selection of various
  650. LCD filtering modes can be done with the `L' key.
  651. - The demo programs have been extended to allow selection of all
  652. available TrueType bytecode engines.
  653. - A very early beta version of a new, Qt based demo program called
  654. `ftinspect' is part of the source code bundle; it will
  655. eventually supersede the other demo programs. Currently, you
  656. have to compile it manually with `qmake; make'; note that many
  657. features are still missing.
  658. ======================================================================
  659. CHANGES BETWEEN 2.6.2 and 2.6.3 (2016-Feb-08)
  660. I. IMPORTANT CHANGES
  661. - Khmer, Myanmar, Bengali, and Kannada script support has been
  662. added to the auto-hinter.
  663. II. MISCELLANEOUS
  664. - Better support of Indic scripts like Devanagari by using a
  665. top-to-bottom hinting flow.
  666. - All FreeType macros starting with two underscores have been
  667. renamed to avoid a violation of both the C and C++ standards.
  668. Example: Header macros of the form `__FOO_H__' are now called
  669. `FOO_H_'. In most cases, this should be completely transparent
  670. to the user. The exception to this is `__FTERRORS_H__', which
  671. must be sometimes undefined by the user to get FreeType error
  672. strings: Both this form and the new `FTERRORS_H_' macro are
  673. accepted for backward compatibility.
  674. - Minor improvements mainly to the Type 1 driver.
  675. - The new CFF engine now supports all Type 2 operators except
  676. `random'.
  677. - The macro `_STANDALONE_', used for compiling the B/W and smooth
  678. rasterizers as stand-alone modules, has been renamed to
  679. `STANDALONE_', since macro names starting with an underscore and
  680. followed by an uppercase letter are reserved in both C and C++.
  681. - Function `FT_Library_SetLcdFilterWeights' now also activates
  682. custom LCD filter weights (instead of just adjusting them).
  683. - Support for `unpatented hinting' has been completely removed:
  684. Consequently, the two functions `FT_Face_CheckTrueTypePatents'
  685. and `FT_Face_SetUnpatentedHinting' now return always false,
  686. doing nothing.
  687. - The `ftgamma' demo program has been modernized; the gamma grid
  688. display has been moved from `ftview' to this program.
  689. - In `ftview', it is now possible to cycle through the available
  690. LCD filtering modes.
  691. ======================================================================
  692. CHANGES BETWEEN 2.6.1 and 2.6.2 (2015-Nov-28)
  693. I. IMPORTANT CHANGES
  694. - The auto-hinter now supports stem darkening, to be controlled by
  695. the new `no-stem-darkening' and `darkening-parameters'
  696. properties. This is an experimental feature contributed by
  697. Nikolaus Waxweiler, and the interface might change in a future
  698. release.
  699. - By default, stem darkening is now switched off (for both the CFF
  700. engine and the auto-hinter). The main reason is that you need
  701. linear alpha blending and gamma correction to get correct
  702. rendering results, and the latter is not yet available in most
  703. freely available rendering stacks like X11. Applying stem
  704. darkening without proper gamma correction leads to far too dark
  705. rendering results.
  706. - The meaning of `FT_RENDER_MODE_LIGHT' has been slightly
  707. modified. It now essentially means `no hinting along the
  708. horizontal axis'; in particular, no change of glyph advance
  709. widths. Consequently, the auto-hinter is used for all scalable
  710. font formats except for CFF. It is planned that other
  711. font-specific rendering engines (TrueType, Type 1) will follow.
  712. II. MISCELLANEOUS
  713. - The default LCD filter has been changed to be normalized and
  714. color-balanced.
  715. - For better compatibility with FontConfig, function
  716. `FT_Library_SetLcdFilter' accepts a new enumeration value
  717. `FT_LCD_FILTER_LEGACY1' (which has the same meaning as
  718. `FT_LCD_FILTER_LEGACY').
  719. - A large number of bugs have been detected by using the libFuzzer
  720. framework, which should further improve handling of invalid
  721. fonts. Thanks again to Kostya Serebryany and Bungeman!
  722. - `TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES', a new configuration
  723. option, controls the maximum number of executed opcodes within a
  724. bytecode program. You don't want to change this except for very
  725. special situations (e.g., making a library fuzzer spend less
  726. time to handle broken fonts).
  727. - The smooth renderer has been made faster.
  728. - The `ftstring' demo program now supports subpixel rendering; use
  729. key `l' to cycle through the LCD modes.
  730. - The `ftstring' demo program now supports color rendering; use
  731. the `space' key to cycle through various color combinations.
  732. - The graphical demo programs now use a default gamma value of 1.8
  733. (instead of 1.2).
  734. ======================================================================
  735. CHANGES BETWEEN 2.6 and 2.6.1 (2015-Oct-04)
  736. I. IMPORTANT BUG FIXES
  737. - It turned out that for CFFs only the advance widths should be
  738. taken from the `htmx' table, not the side bearings. This bug,
  739. introduced in version 2.6.0, makes it necessary to upgrade if
  740. you are using CFFs; otherwise, you get cropped glyphs with GUI
  741. interfaces like GTK or Qt.
  742. - Accessing Type 42 fonts returned incorrect results if the glyph
  743. order of the embedded TrueType font differs from the glyph order
  744. of the Type 42 charstrings table.
  745. II. IMPORTANT CHANGES
  746. - The header file layout has been changed (again), moving all
  747. header files except `ft2build.h' into a subdirectory tree.
  748. Doing so reduces the possibility of header file name clashes
  749. (e.g., FTGL's `FTGlyph.h' with FreeType's `ftglyph.h') on case
  750. insensitive file systems like Mac OS X or Windows.
  751. Applications that use (a) the `freetype-config' script or
  752. FreeType's `freetype2.pc' file for pkg-config to get the include
  753. directory for the compiler, and (b) the documented way for
  754. header inclusion like
  755. #include <ft2build.h>
  756. #include FT_FREETYPE_H
  757. ...
  758. don't need any change to the source code.
  759. - Simple access to named instances in GX variation fonts is now
  760. available (in addition to the previous method via FreeType's MM
  761. interface). In the `FT_Face' structure, bits 16-30 of the
  762. `face_index' field hold the current named instance index for the
  763. given face index, and bits 16-30 of `style_flags' contain the
  764. number of instances for the given face index. `FT_Open_Face'
  765. and friends also understand the extended bits of the face index
  766. parameter.
  767. You need to enable TT_CONFIG_OPTION_GX_VAR_SUPPORT for this new
  768. feature. Otherwise, bits 16-30 of the two fields are zero (or
  769. are ignored).
  770. - Lao script support has been added to the auto-hinter.
  771. III. MISCELLANEOUS
  772. - The auto-hinter's Arabic script support has been enhanced.
  773. - Superscript-like and subscript-like glyphs as used by various
  774. phonetic alphabets like the IPA are now better supported by the
  775. auto-hinter.
  776. - The TrueType bytecode interpreter now runs slightly faster.
  777. - Improved support for builds with cmake.
  778. - The function `FT_CeilFix' now always rounds towards plus
  779. infinity.
  780. - The function `FT_FloorFix' now always rounds towards minus
  781. infinity.
  782. - A new load flag `FT_LOAD_COMPUTE_METRICS' has been added; it
  783. makes FreeType ignore pre-computed metrics, as needed by font
  784. validating or font editing programs. Right now, only the
  785. TrueType module supports it to ignore data from the `hdmx'
  786. table.
  787. - Another round of bug fixes to better handle broken fonts, found
  788. by Kostya Serebryany <kcc@google.com>.
  789. ======================================================================
  790. CHANGES BETWEEN 2.5.5 and 2.6 (2015-Jun-07)
  791. I. IMPORTANT CHANGES
  792. - Behdad Esfahbod contributed code for improved thread-safety,
  793. which results in the following model.
  794. * An `FT_Face' object can only be safely used from one thread at
  795. a time.
  796. * An `FT_Library' object can now be used without modification
  797. from multiple threads at the same time.
  798. * `FT_Face' creation and destruction with the same `FT_Library'
  799. object can only be done from one thread at a time.
  800. One can use a single `FT_Library' object across threads as long
  801. as a mutex lock is used around `FT_New_Face' and `FT_Done_Face'.
  802. Any calls to `FT_Load_Glyph' and similar API are safe and do not
  803. need the lock to be held as long as the same `FT_Face' is not
  804. used from multiple threads at the same time.
  805. - Thai script support has been added to the auto-hinter.
  806. - Arabic script support has been added to the auto-hinter.
  807. - Following OpenType version 1.7, advance widths and side bearing
  808. values in CFFs (wrapped in an SFNT structure) are now always
  809. taken from the `hmtx' table.
  810. - Following OpenType version 1.7, the PostScript font name of a
  811. CFF font (wrapped in an SFNT structure) is now always taken from
  812. the `name' table. This is also true for OpenType Collections
  813. (i.e., TTCs using CFFs subfonts instead of TTFs), where it may
  814. have a significant difference.
  815. - Fonts natively hinted for ClearType are now supported, properly
  816. handling selector index 3 of the INSTCTRL bytecode instruction.
  817. - Major improvements to the GX TrueType variation font handling.
  818. II. MISCELLANEOUS
  819. - A new auto-hinter property `warping' can switch on and off the
  820. warping code if this experimental feature is compiled in (by
  821. defining the AF_CONFIG_OPTION_USE_WARPER configuration option;
  822. by default this option is now enabled but warping is switched
  823. off).
  824. The AF_CONFIG_OPTION_USE_WARPER option itself is an old feature,
  825. available since 2006. Warping only works in `light'
  826. auto-hinting mode. The idea of the code is to slightly scale
  827. and shift a glyph along the non-hinted dimension (which is
  828. usually the horizontal axis) so that as much of its segments are
  829. aligned (more or less) to the grid. To find out a glyph's
  830. optimal scaling and shifting value, various parameter
  831. combinations are tried and scored.
  832. See file `ftautoh.h' for more; the demo programs `ftdiff',
  833. `ftview', and `ftgrid' can toggle warping with key `w'.
  834. - Some fields in the `FTC_ImageTypeRec' structure have been
  835. changed from signed to unsigned type, which better reflects the
  836. actual usage. It is also an additional means to protect against
  837. malformed input.
  838. This change doesn't break the ABI; however, it might cause
  839. compiler warnings.
  840. - Function `FT_Bitmap_New' has been renamed to `FT_Bitmap_Init',
  841. since this name better reflects its function. For backward
  842. compatibility, the old function name is still available.
  843. - Function `FT_Get_X11_Font_Format' has been renamed to
  844. `FT_Get_Font_Format', since this name better reflects its
  845. function. For backward compatibility, the old function name is
  846. still available.
  847. Additionally, the header file macro for this function has been
  848. renamed to `FT_FONT_FORMATS_H' (the old name `FT_XFREE86_H' is
  849. retained for backward compatibility).
  850. - Various improvements to the `ftgrid' demo program.
  851. . It can now display GX and MM fonts while interactively
  852. manipulating the axes (with keys F2, F3, and F4).
  853. . Anti-aliasing rendering modes can now be selected (with keys
  854. F5 and F6).
  855. . The display of point numbers can be toggled with key `D'.
  856. - Various improvements to the `ftdump' demo program.
  857. . It now displays information on MM and GX variation axes.
  858. . New command line option `-u' makes it output data in utf-8
  859. encoding.
  860. - The `ftmulti' demo program can now handle up to six MM or GX
  861. axes.
  862. ======================================================================
  863. CHANGES BETWEEN 2.5.4 and 2.5.5 (2014-Dec-30)
  864. I. IMPORTANT BUG FIXES
  865. - Handling of uncompressed PCF files works again (bug introduced
  866. in version 2.5.4).
  867. ======================================================================
  868. CHANGES BETWEEN 2.5.3 and 2.5.4 (2014-Dec-06)
  869. I. IMPORTANT BUG FIXES
  870. - A variant of vulnerability CVE-2014-2240 was identified
  871. (cf. https://savannah.nongnu.org/bugs/?43661) and fixed in the
  872. new CFF driver. All users should upgrade.
  873. - The new auto-hinter code using HarfBuzz crashed for some invalid
  874. fonts.
  875. - Many fixes to better protect against malformed input.
  876. II. IMPORTANT CHANGES
  877. - Full auto-hinter support of the Devanagari script.
  878. - Experimental auto-hinter support of the Telugu script.
  879. - CFF stem darkening behaviour can now be controlled at build time
  880. using the eight macros
  881. CFF_CONFIG_OPTION_DARKENING_PARAMETER_{X,Y}{1,2,3,4} .
  882. - Some fields in the `FT_Bitmap' structure have been changed from
  883. signed to unsigned type, which better reflects the actual usage.
  884. It is also an additional means to protect against malformed
  885. input.
  886. This change doesn't break the ABI; however, it might cause
  887. compiler warnings.
  888. III. MISCELLANEOUS
  889. - Improvements to the auto-hinter's algorithm to recognize stems
  890. and local extrema.
  891. - Function `FT_Get_SubGlyph_Info' always returned an error even in
  892. case of success.
  893. - Version 2.5.1 introduced major bugs in the cjk part of the
  894. auto-hinter, which are now fixed.
  895. - The `FT_Sfnt_Tag' enumeration values have been changed to
  896. uppercase, e.g. `FT_SFNT_HEAD'. The lowercase variants are
  897. deprecated. This is for orthogonality with all other
  898. enumeration (and enumeration-like) values in FreeType.
  899. - `cmake' now supports builds of FreeType as an OS X framework and
  900. for iOS.
  901. - Improved project files for vc2010, introducing a property file.
  902. - The documentation generator for the API reference has been
  903. updated to produce better HTML code (with proper CSS). At the
  904. same time, the documentation got a better structure.
  905. - The FT_LOAD_BITMAP_CROP flag is obsolete; it is not used by any
  906. driver.
  907. - The TrueType DELTAP[123] bytecode instructions now work in
  908. subpixel hinting mode as described in the ClearType whitepaper
  909. (i.e., for touched points in the non-subpixel direction).
  910. - Many small improvements to the internal arithmetic routines.
  911. ======================================================================
  912. CHANGES BETWEEN 2.5.2 and 2.5.3 (2014-Mar-06)
  913. I. IMPORTANT BUG FIXES
  914. - A vulnerability (CVE-2014-2240) was identified and fixed in the
  915. new CFF driver (cf. https://savannah.nongnu.org/bugs/?41697).
  916. All users should upgrade.
  917. - More bug fixes related to correct positioning of composite
  918. glyphs.
  919. - Many fixes to better protect against malformed input.
  920. II. IMPORTANT CHANGES
  921. - FreeType can now use the HarfBuzz library to greatly improve the
  922. auto-hinting of fonts that use OpenType features: Many glyphs
  923. that are part of such features but don't have cmap entries are
  924. now handled properly, for example small caps or superscripts.
  925. Define the configuration macro FT_CONFIG_OPTION_USE_HARFBUZZ to
  926. activate HarfBuzz support.
  927. You need HarfBuzz version 0.9.19 or newer.
  928. Note that HarfBuzz depends on FreeType; this currently causes a
  929. chicken-and-egg problem that can be solved as follows in case
  930. HarfBuzz is not yet installed on your system.
  931. 1. Compile and install FreeType without the configuration
  932. macro FT_CONFIG_OPTION_USE_HARFBUZZ.
  933. 2. Compile and install HarfBuzz.
  934. 3. Define macro FT_CONFIG_OPTION_USE_HARFBUZZ, then compile
  935. and install FreeType again.
  936. With FreeType's `configure' script the procedure boils down to
  937. configure, build, and install FreeType, then configure, compile,
  938. and install HarfBuzz, then configure, compile, and install
  939. FreeType again (after executing `make distclean').
  940. - All libraries FreeType depends on are now checked using the
  941. `pkg-config' configuration files first, followed by alternative
  942. methods.
  943. - The new value `auto' for the various `--with-XXX' library
  944. options (for example `--with-harfbuzz=auto') makes the
  945. `configure' script automatically link to the libraries it finds.
  946. This is now the default.
  947. - In case FreeType's `configure' script can't find a library, you
  948. can pass environment variables to circumvent pkg-config, and
  949. those variables have been harmonized as a consequence of the
  950. changes mentioned above:
  951. LIBZ -> removed; use LIBZ_CFLAGS and LIBZ_LIBS
  952. LIBBZ2 -> removed; use BZIP2_CFLAGS and BZIP2_LIBS
  953. LIBPNG_LDFLAGS -> LIBPNG_LIBS
  954. `./configure --help' shows all available environment variables.
  955. - The `freetype-config' script now understands option `--static'
  956. to emit static linking information.
  957. ======================================================================
  958. CHANGES BETWEEN 2.5.1 and 2.5.2 (2013-Dec-08)
  959. I. IMPORTANT BUG FIXES
  960. - Improving the display of some broken TrueType fonts introduced a
  961. bug that made FreeType crash on some popular (but not fully
  962. conformant) fonts like `ahronbd.ttf'.
  963. - Another round of improvements to correct positioning and hinting
  964. of composite glyphs in TrueType fonts.
  965. II. MISCELLANEOUS
  966. - Version 2.5.1 introduced a bug in handling embedded bitmap
  967. strikes of TrueType fonts, causing garbage display under some
  968. circumstances.
  969. - The `ftgrid' demo program couldn't be compiled in
  970. non-development builds.
  971. ======================================================================
  972. CHANGES BETWEEN 2.5 and 2.5.1 (2013-Nov-25)
  973. I. IMPORTANT BUG FIXES
  974. - For some WinFNT files, the last glyph wasn't displayed but
  975. incorrectly marked as invalid.
  976. - The vertical size of glyphs was incorrectly set after a call to
  977. `FT_GlyphSlot_Embolden', resulting in clipped glyphs.
  978. - Many fields of the `PCLT' table in SFNT based fonts (if accessed
  979. with `FT_Get_Sfnt_Table') were computed incorrectly.
  980. - In TrueType fonts, hinting of composite glyphs could sometimes
  981. deliver incorrect positions of components or even distorted
  982. shapes.
  983. II. IMPORTANT CHANGES
  984. - WOFF font format support has been added.
  985. - The auto-hinter now supports Hebrew. Greek and Cyrillic support
  986. has been improved.
  987. - Support for the forthcoming `OS/2' SFNT table version 5, as can
  988. be found e.g. in the `Sitka' font family for Windows 8.1.
  989. - The header file layout has been changed. After installation,
  990. all files are now located in `<prefix>/include/freetype2'.
  991. Applications that use (a) `freetype-config' or FreeType's
  992. `pkg-config' file to get the include directory for the compiler,
  993. and (b) the documented way for header inclusion like
  994. #include <ft2build.h>
  995. #include FT_FREETYPE_H
  996. ...
  997. don't need any change to the source code.
  998. III. MISCELLANEOUS
  999. - The stem darkening feature of the new CFF engine can now be
  1000. fine-tuned with the new `darkening-parameters' property.
  1001. - `ftgrid' has been updated to toggle various engines with the `H'
  1002. key, similar to `ftview' and `ftdiff'.
  1003. - The functionality of `ttdebug' has been greatly enhanced.
  1004. . It now displays twilight, storage, and control value data; key
  1005. `T' shows the twilight point table, key `S' the storage data,
  1006. and key `C' the control value table.
  1007. . Some keys have been reassigned from lowercase to their
  1008. uppercase equivalents; for example `q' to quit the program is
  1009. now `Q'.
  1010. . Key `f' finishes the current function.
  1011. . Key `R' restarts the debugger.
  1012. . Keys `b' and `p' set a breakpoint.
  1013. . Key `B' provides a function call backtrace.
  1014. - Better support of ARMv7 and x86_64 processors.
  1015. - Apple's `sbix' color bitmap format is now supported.
  1016. - Improved auto-hinter rendering for many TrueType fonts,
  1017. especially in the range 20-40ppem.
  1018. - A new face flag `FT_FACE_FLAG_COLOR' has been added (to be
  1019. accessed with the macro `FT_HAS_COLOR').
  1020. - `FT_Gzip_Uncompress' (modeled after zlib's `uncompress'
  1021. function) has been added; this is a by-product of the newly
  1022. added WOFF support.
  1023. - Support for a build with `cmake' has been contributed by John
  1024. Cary <cary@txcorp.com>.
  1025. - Support for x64 builds with Visual C++ has been contributed by
  1026. Kenneth Miller <kennethadammiller@yahoo.com>
  1027. - Manual pages for most demo programs have been added.
  1028. - The GETINFO bytecode instruction for TrueType fonts was buggy if
  1029. used to retrieve subpixel hinting information. It was necessary
  1030. to set selector bit 6 to get results for selector bits 7-10,
  1031. which is wrong.
  1032. - Improved computation of emulated vertical metrics for TrueType
  1033. fonts.
  1034. - Fixed horizontal start-up position of vertical phantom points in
  1035. TrueType bytecode.
  1036. ======================================================================
  1037. CHANGES BETWEEN 2.4.12 and 2.5 (2013-Jun-19)
  1038. I. IMPORTANT BUG FIXES
  1039. - The cache manager function `FTC_Manager_Reset' didn't flush the
  1040. cache.
  1041. II. IMPORTANT CHANGES
  1042. - Behdad Esfahbod (on behalf of Google) contributed support for
  1043. color embedded bitmaps (eg. color emoji).
  1044. A new load flag, FT_LOAD_COLOR, makes FreeType load color
  1045. embedded-bitmaps, following this draft specification
  1046. https://color-emoji.googlecode.com/git/specification/v1.html
  1047. which defines two new SFNT tables, `CBDT' and `CBLC' (named and
  1048. modeled after `EBDT' and `EBLC', respectively). The color
  1049. bitmaps are stored in the new FT_PIXEL_MODE_BGRA format to
  1050. represent BGRA pre-multiplied sRGB images. If PNG support is
  1051. available, PNG color images as defined in the same proposed
  1052. specification are supported also.
  1053. Note that color bitmaps are converted to grayscale if client
  1054. didn't ask for color.
  1055. - As announced in the previous release, the old FreeType CFF
  1056. engine is now disabled by default. It can be conditionally
  1057. compiled by defining the configuration macro
  1058. CFF_CONFIG_OPTION_OLD_ENGINE.
  1059. - As announced in the previous release, all code related to macro
  1060. FT_CONFIG_OPTION_OLD_INTERNALS has been removed, thus becoming
  1061. obsolete.
  1062. III. MISCELLANEOUS
  1063. - The property API (`FT_Property_Get' and `FT_Property_Set') is
  1064. now declared as stable.
  1065. The exception, however, are the experimental auto-hinter
  1066. properties `glyph-to-script-map' and `fallback-script' which are
  1067. subject to change in a forthcoming release.
  1068. - `ftview' has been updated to support color embedded bitmaps; it
  1069. can be toggled on and off with key `c'. The small cache toggle
  1070. is now key `K'.
  1071. - It is now possible to control the version of the TrueType
  1072. hinting engine using the new `interpreter-version' property of
  1073. the `truetype' module: Versions 35 and 38 (the default) are
  1074. supported, which roughly corresponds to disable and enable
  1075. subpixel hinting support, respectively.
  1076. In both `ftview' and `ftdiff', switching between the two
  1077. versions can be done with key `H'. In the `ftbench' demo
  1078. program, command line option `-H' has been extended to activate
  1079. the non-default interpreter version.
  1080. - The `ttdebug' program has been further improved. In particular,
  1081. it accepts a new command line option `-H' to select the hinting
  1082. engine.
  1083. - `ftdump's verbose option has been renamed to `-V'. For all demo
  1084. programs, `-v' now shows version information.
  1085. - Another round of TrueType subpixel hinting fixes.
  1086. - The `apinames' tool can now create an import file for NetWare.
  1087. - 64bit compilation of the new CFF engine was buggy.
  1088. - Some fixes to improve robustness in memory-tight situations.
  1089. ======================================================================
  1090. CHANGES BETWEEN 2.4.11 and 2.4.12 (2013-May-08)
  1091. - We have another CFF parsing and hinting engine! Written by Dave
  1092. Arnold <darnold@adobe.com>, this work has been contributed by
  1093. Adobe in collaboration with Google. It is vastly superior to
  1094. the old CFF engine, and it will replace it in the next release.
  1095. Right now, it is still off by default, and you have to
  1096. explicitly select it using the new `hinting-engine' property of
  1097. the cff driver:
  1098. ...
  1099. #include FT_MODULE_H
  1100. #include FT_CFF_DRIVER_H
  1101. FT_Library library;
  1102. int engine = FT_CFF_HINTING_ADOBE;
  1103. ...
  1104. FT_Property_Set( library, "cff", "hinting-engine", &engine );
  1105. The code has a (mature) beta status; we encourage all users to
  1106. test it and report any problems.
  1107. In case you want to activate the new CFF engine unconditionally,
  1108. apply this patch:
  1109. --- snip ---
  1110. diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
  1111. index ebcf189..3f2ce6b 100644
  1112. --- a/src/cff/cffobjs.c
  1113. +++ b/src/cff/cffobjs.c
  1114. @@ -1056,7 +1056,7 @@
  1115. /* set default property values */
  1116. - driver->hinting_engine = FT_CFF_HINTING_FREETYPE;
  1117. + driver->hinting_engine = FT_CFF_HINTING_ADOBE;
  1118. driver->no_stem_darkening = FALSE;
  1119. return FT_Err_Ok;
  1120. --- snip ---
  1121. - The macro FT_CONFIG_OPTION_OLD_INTERNALS is no longer set by
  1122. default. In the next release, we will completely remove the
  1123. associated code. Please update your programs in case you are
  1124. still using this macro.
  1125. II. MISCELLANEOUS
  1126. - The (top-level) `configure' script now respects the MAKE
  1127. environment variable to specify a `make' binary. For backward
  1128. compatibility, GNUMAKE still overrides MAKE, though.
  1129. - The `ftview' and `ftdiff' demo programs have been redesigned,
  1130. showing more options permanently on the screen, among other
  1131. minor improvements.
  1132. - Using the `H' key, it is now possible to select the CFF engine
  1133. in both `ftview' and `ftdiff'.
  1134. - The new command line option `-H' for `ftbench' selects the Adobe
  1135. CFF engine.
  1136. - It is now possible to directly select the LCD rendering mode
  1137. with the keys `A'-`F' in `ftview'. The key mapping for cycling
  1138. through LCD modes has been changed from `K' and `L' to `k' and
  1139. `l', and toggling custom LCD filtering is no longer mapped to
  1140. key `F' but to key `L'.
  1141. - In `ftdiff', key `x' toggles between layout modes: Either use
  1142. the advance width (this is new and now the default) or the
  1143. bounding box information to determine line breaks.
  1144. - For all demo tools, the new command line option `-v' shows the
  1145. version.
  1146. - For the demo tools with a GUI, the new command line options `-w'
  1147. and `-h' select the width and the height of the output window,
  1148. respectively.
  1149. - The `ttdebug' program was broken and has been reactivated. Note
  1150. that this program is not compiled by default.
  1151. ======================================================================
  1152. CHANGES BETWEEN 2.4.10 and 2.4.11 (2012-Dec-20)
  1153. I. IMPORTANT BUG FIXES
  1154. - Some vulnerabilities in the BDF implementation have been fixed.
  1155. Users of this font format should upgrade.
  1156. II. IMPORTANT CHANGES
  1157. - Subpixel hinting support has been contributed by Infinality,
  1158. based on Greg Hitchcock's whitepaper at
  1159. https://www.microsoft.com/typography/cleartype/truetypecleartype.aspx
  1160. Originally, it was a separate patch available from
  1161. https://web.archive.org/web/20150710073951/http://www.infinality.net:80/blog/
  1162. and which has been integrated.
  1163. Note that ClearType support is not completely implemented! In
  1164. particular, full support for the options `compatible_widths',
  1165. `symmetrical_smoothing, and `bgr' (via the GETINFO bytecode
  1166. instruction) is missing.
  1167. Activation of subpixel hinting support can be controlled with
  1168. the `TT_CONFIG_OPTION_SUBPIXEL_HINTING' configuration option; it
  1169. is switched off by default. This feature is still experimental;
  1170. we welcome test reports!
  1171. - Support for OpenType collections (OTC) has been added.
  1172. - Pure CFF fonts within an SFNT wrapper are now supported.
  1173. III. MISCELLANEOUS
  1174. - Minor rendering improvements to the auto-hinter.
  1175. - `FT_GlyphSlot_Oblique' now uses a shear angle of 12°.
  1176. - Experimental support to handle `property modules', for example
  1177. to control the behaviour of the auto-hinter. The API consists
  1178. of two new functions, `FT_Property_Set' and `FT_Property_Get'.
  1179. The code is still subject to change and should not be used for
  1180. production.
  1181. - The `ftdiff' demo program now supports UTF-8 encoded input files
  1182. for option `-f'.
  1183. - Using keys `r' and `R', you can now adjust the stroker radius in
  1184. the `ftview' demo program.
  1185. - Other, minor fixes and improvements.
  1186. ======================================================================
  1187. CHANGES BETWEEN 2.4.9 and 2.4.10 (2012-Jun-15)
  1188. I. IMPORTANT BUG FIXES
  1189. - Incremental glyph loading as needed by ghostscript was broken.
  1190. II. MISCELLANEOUS
  1191. - A new function `FT_Outline_EmboldenXY', contributed by Alexei
  1192. Podtelezhnikov.
  1193. - In the `ftview' demo program, key `e' has been replaced with `x'
  1194. and `y' to embolden in the horizontal and vertical direction,
  1195. respectively.
  1196. - The glyph spacing computation in `FT_GlyphSlot_Embolden' (and
  1197. similar code in `ftview') has been improved.
  1198. - Minor improvements to the TrueType bytecode interpreter and
  1199. glyph loader, the auto-hinter, and the B/W rasterizer.
  1200. ======================================================================
  1201. CHANGES BETWEEN 2.4.8 and 2.4.9 (2012-Mar-08)
  1202. I. IMPORTANT BUG FIXES
  1203. - Another round of fixes to better handle invalid fonts. Many of
  1204. them are vulnerabilities (see CVE-2012-1126 up to CVE-2012-1144
  1205. and SA48320) so all users should upgrade.
  1206. II. MISCELLANEOUS
  1207. - The `ENCODING -1 <n>' format of BDF fonts is now supported.
  1208. - For BDF fonts, support for the whole Unicode encoding range has
  1209. been added.
  1210. - Better TTF support for x_ppem != y_ppem.
  1211. - `FT_Get_Advances' sometimes returned bogus values.
  1212. - The demo programs no longer recognize and handle default
  1213. suffixes; you now have to always specify the complete font name.
  1214. - Better rendering and LCD mode cycling added to `ftview'.
  1215. ======================================================================
  1216. CHANGES BETWEEN 2.4.7 and 2.4.8 (2011-Nov-14)
  1217. I. IMPORTANT BUG FIXES
  1218. - Some vulnerabilities in handling CID-keyed PostScript fonts have
  1219. been fixed; see CVE-2011-3439.
  1220. II. MISCELLANEOUS
  1221. - Chris Liddell contributed a new API, `FT_Get_PS_Font_Value', to
  1222. retrieve most of the dictionary keys in Type 1 fonts.
  1223. ======================================================================
  1224. CHANGES BETWEEN 2.4.6 and 2.4.7 (2011-Oct-18)
  1225. I. IMPORTANT BUG FIXES
  1226. - Some vulnerabilities in handling Type 1 fonts have been fixed;
  1227. see CVE-2011-3256.
  1228. II. MISCELLANEOUS
  1229. - FreeType now properly handles ZapfDingbats glyph names while
  1230. constructing a Unicode character map (for fonts which don't have
  1231. one).
  1232. ======================================================================
  1233. CHANGES BETWEEN 2.4.5 and 2.4.6 (2011-Jul-29)
  1234. I. IMPORTANT BUG FIXES
  1235. - For TrueType based fonts, the ascender and descender values were
  1236. incorrect sometimes (off by a pixel if the ppem value was not a
  1237. multiple of 5). Depending on the use you might now experience
  1238. a different layout; the change should result in better, more
  1239. consistent line spacing.
  1240. - Fix CVE-2011-0226 which causes a vulnerability while handling
  1241. Type 1 fonts.
  1242. - BDF fonts containing glyphs with negative values for ENCODING
  1243. were incorrectly rejected. This bug has been introduced in
  1244. FreeType version 2.2.0.
  1245. - David Bevan contributed a major revision of the FreeType stroker
  1246. code:
  1247. . The behaviour of FT_STROKER_LINEJOIN_BEVEL has been corrected.
  1248. . A new line join style, FT_STROKER_LINEJOIN_MITER_FIXED, has
  1249. been introduced to support PostScript and PDF miter joins.
  1250. . FT_STROKER_LINEJOIN_MITER_VARIABLE has been introduced as an
  1251. alias for FT_STROKER_LINEJOIN_MITER.
  1252. . Various stroking glitches has been fixed.
  1253. II. MISCELLANEOUS
  1254. - SFNT bitmap fonts which contain an outline glyph for `.notdef'
  1255. only no longer set the FT_FACE_FLAG_SCALABLE flag.
  1256. ======================================================================
  1257. CHANGES BETWEEN 2.4.4 and 2.4.5 (2011-Jun-25)
  1258. I. IMPORTANT BUG FIXES
  1259. - A rendering regression for second-order Bézier curves has been
  1260. fixed, introduced in 2.4.3.
  1261. II. IMPORTANT CHANGES
  1262. - If autohinting is not explicitly disabled, FreeType now uses
  1263. the autohinter if a TrueType based font doesn't contain native
  1264. hints.
  1265. - The load flag FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH has been made
  1266. redundant and is simply ignored; this means that FreeType now
  1267. ignores the global advance width value in TrueType fonts.
  1268. III. MISCELLANEOUS
  1269. - `FT_Sfnt_Table_Info' can now return the number of SFNT tables of
  1270. a font.
  1271. - Support for PCF files compressed with bzip2 has been contributed
  1272. by Joel Klinghed. To make this work, the OS must provide a
  1273. bzip2 library.
  1274. - Bradley Grainger contributed project and solution files in
  1275. Visual Studio 2010 format.
  1276. - Again some fixes to better handle broken fonts.
  1277. - Some improvements to the B/W rasterizer.
  1278. - Fixes to the cache module to improve robustness.
  1279. - Just Fill Bugs contributed (experimental) code to compute blue
  1280. zones for CJK Ideographs, improving the alignment of horizontal
  1281. stems at the top or bottom edges.
  1282. - The `ftgrid' demo program can now display autohinter segments,
  1283. to be toggled on and off with key `s'.
  1284. ======================================================================
  1285. CHANGES BETWEEN 2.4.3 and 2.4.4 (2010-Nov-28)
  1286. I. IMPORTANT BUG FIXES
  1287. - UVS support (TrueType/OpenType cmap format 14) support is fixed.
  1288. This regression has been introduced in version 2.4.0.
  1289. II. MISCELLANEOUS
  1290. - Detect tricky fonts (e.g. MingLiU) by the lengths and checksums
  1291. of Type42-persistent subtables (`cvt ', `fpgm', and `prep') when
  1292. a TrueType font without family name is given. The previous fix,
  1293. introduced in 2.4.3, was too rigorous, causing many subsetted
  1294. fonts (mainly from PDF files) displayed badly because FreeType
  1295. forced rendering with the TrueType bytecode engine instead of
  1296. the autohinter.
  1297. - Better support for 64bit platforms.
  1298. - More fixes to improve handling of broken fonts.
  1299. ======================================================================
  1300. CHANGES BETWEEN 2.4.2 and 2.4.3 (2010-Oct-03)
  1301. I. IMPORTANT BUG FIXES
  1302. - Fix rendering of certain cubic, S-shaped arcs. This regression
  1303. has been introduced in version 2.4.0.
  1304. II. MISCELLANEOUS
  1305. - To fix the above mentioned rendering issue, a new spline
  1306. flattening algorithm has been introduced which speeds up both
  1307. conic and cubic arcs.
  1308. - Handling of broken fonts has been further improved.
  1309. ======================================================================
  1310. CHANGES BETWEEN 2.4.1 and 2.4.2 (2010-Aug-06)
  1311. I. IMPORTANT BUG FIXES
  1312. - A stack overflow in CFF Type2 CharStrings interpreter is fixed.
  1313. - Handling Type 42 font deallocation was broken; additionally, the
  1314. library is now more robust against malformed Type 42 fonts.
  1315. II. MISCELLANEOUS
  1316. - Two new functions, `FT_Reference_Library' (in FT_MODULE_H) and
  1317. `FT_Reference_Face' (in FT_FREETYPE_H), have been added to
  1318. simplify life-cycle management. A counter gets initialized to 1
  1319. at the time an FT_Library (or FT_Face) structure is created.
  1320. The two new functions increment the respective counter.
  1321. `FT_Done_Library' and `FT_Done_Face' then only destroy a library
  1322. or face if the counter is 1, otherwise they simply decrement the
  1323. counter.
  1324. ======================================================================
  1325. CHANGES BETWEEN 2.4.0 and 2.4.1 (2010-Jul-18)
  1326. I. IMPORTANT CHANGES
  1327. - A serious bug in the CFF font module prevented display of many
  1328. glyphs in CFF fonts like `MinionPro-Regular.otf'.
  1329. ======================================================================
  1330. CHANGES BETWEEN 2.3.12 and 2.4.0 (2010-Jul-12)
  1331. I. IMPORTANT CHANGES
  1332. - Since May 2010, all patents regarding the TrueType bytecode
  1333. interpreter have expired worldwide. Consequently, we now define
  1334. TT_CONFIG_OPTION_BYTECODE_INTERPRETER by default (and undefine
  1335. TT_CONFIG_OPTION_UNPATENTED_HINTING).
  1336. - A new function `FT_Library_SetLcdFilterWeights' is available to
  1337. adjust the filter weights set by `FT_Library_SetLcdFilter'.
  1338. II. MISCELLANEOUS
  1339. - Thanks to many reports from Robert Święcki, FreeType's stability
  1340. in handling broken or damaged fonts is much improved.
  1341. - Support for LCD filter control has been added to the demo
  1342. programs `ftdiff' and `ftview'.
  1343. ======================================================================
  1344. CHANGES BETWEEN 2.3.11 and 2.3.12
  1345. I. IMPORTANT CHANGES
  1346. - For `FT_Open_Face', new parameters are available to ignore
  1347. preferred family names: FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY and
  1348. FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY.
  1349. II. MISCELLANEOUS
  1350. - Support for incremental font loading (controlled with the
  1351. FT_CONFIG_OPTION_INCREMENTAL macro) is now active by default.
  1352. - Better support for vertical metrics.
  1353. - Various minor bug fixes.
  1354. ======================================================================
  1355. CHANGES BETWEEN 2.3.10 and 2.3.11
  1356. I. IMPORTANT BUG FIXES
  1357. - Version 2.3.10 broke PCF support.
  1358. ======================================================================
  1359. CHANGES BETWEEN 2.3.10 and 2.3.9
  1360. I. IMPORTANT BUG FIXES
  1361. - If all ASCII digits in a font have the same (unscaled) width,
  1362. the autohinter respects this and won't change it.
  1363. - TrueType fonts are now rasterized correctly if the horizontal
  1364. and vertical resolution differ.
  1365. - Type 1 fonts are now handled with increased precision internally
  1366. to avoid serious rounding issues if non-integral coordinates are
  1367. encountered.
  1368. - Horizontally condensed CFF fonts (using the font matrix) were
  1369. rendered incorrectly. This bug has been introduced after
  1370. release 2.3.5.
  1371. II. IMPORTANT CHANGES
  1372. - Support for the SFNT cmap 13 table format (as defined by the new
  1373. OpenType 1.6 specification) has been added.
  1374. - B/W rasterization of well-hinted TrueType fonts at small sizes
  1375. has been greatly improved.
  1376. - Calculation of vertical metrics in OpenType fonts has been
  1377. improved.
  1378. III. MISCELLANEOUS
  1379. - It is now possible to change the emboldening factor in the
  1380. `ftview' demo program with keys `e' and `E'.
  1381. - It is now possible to change the slant value in the `ftview'
  1382. demo program with keys `s' and `S'.
  1383. - The 5-levels grayscale mode of the `ftraster' module (which
  1384. FreeType doesn't use by default) was broken since version 2.3.0.
  1385. - Compilation of the `ftgrays' and `ftraster' modules was broken
  1386. in stand-alone mode.
  1387. - Various fixes for compilation on 64bit and 16bit architectures.
  1388. ======================================================================
  1389. CHANGES BETWEEN 2.3.9 and 2.3.8
  1390. I. IMPORTANT BUG FIXES
  1391. - Very unfortunately, FreeType 2.3.8 contained a change that broke
  1392. its official ABI. The end result is that programs compiled
  1393. against previous versions of the library, but dynamically linked
  1394. to 2.3.8 can experience memory corruption if they call the
  1395. `FT_Get_PS_Font_Info' function.
  1396. We recommend all users to upgrade to 2.3.9 as soon as possible,
  1397. or to downgrade to a previous release of the library if this is
  1398. not an option.
  1399. The origin of the bug is that a new field was added to the
  1400. publicly defined `PS_FontInfoRec' structure. Unfortunately,
  1401. objects of this type can be stack or heap allocated by callers
  1402. of `FT_Get_PS_Font_Info', resulting in a memory buffer
  1403. overwrite with its implementation in 2.3.8.
  1404. If you want to know whether your code is vulnerable to this
  1405. issue, simply search for the substrings `PS_FontInfo' and
  1406. `PS_Font_Info' in your source code. If none is found, your code
  1407. is safe and is not affected.
  1408. The FreeType team apologizes for the problem.
  1409. - The POSIX support of MacOS resource-fork fonts (Suitcase fonts
  1410. and LaserWriter Type1 PostScript fonts) was broken in 2.3.8. If
  1411. FreeType2 is built without Carbon framework, these fonts are not
  1412. handled correctly. Version 2.3.7 didn't have this bug.
  1413. - `FT_Get_Advance' (and `FT_Get_Advances') returned bad values for
  1414. almost all font formats except TrueType fonts.
  1415. - Fix a bug in the SFNT kerning table loader/parser which could
  1416. crash the engine if certain malformed tables were encountered.
  1417. - Composite SFNT bitmaps are now handled correctly.
  1418. II. IMPORTANT CHANGES
  1419. - The new functions `FT_Get_CID_Is_Internally_CID_keyed' and
  1420. `FT_Get_CID_From_Glyph_Index' can be used to access CID-keyed
  1421. CFF fonts via CID values. This code has been contributed by
  1422. Michael Toftdal.
  1423. III. MISCELLANEOUS
  1424. - `FT_Outline_Get_InsideBorder' returns FT_STROKER_BORDER_RIGHT
  1425. for empty outlines. This was incorrectly documented.
  1426. - The `ftview' demo program now supports UTF-8 encoded strings.
  1427. ======================================================================
  1428. CHANGES BETWEEN 2.3.8 and 2.3.7
  1429. I. IMPORTANT BUG FIXES
  1430. - CID-keyed fonts in an SFNT wrapper were not handled correctly.
  1431. - The smooth renderer produced truncated images (on the right) for
  1432. outline parts with negative horizontal values. Most fonts don't
  1433. contain outlines left to the y coordinate axis, but the effect
  1434. was very noticeable for outlines processed with FT_Glyph_Stroke,
  1435. using thick strokes.
  1436. - `FT_Get_TrueType_Engine_Type' returned a wrong value if both
  1437. configuration macros TT_CONFIG_OPTION_BYTECODE_INTERPRETER and
  1438. TT_CONFIG_OPTION_UNPATENTED_HINTING were defined.
  1439. - The `face_index' field in the `FT_Face' structure wasn't
  1440. initialized properly after calling FT_Open_Face and friends with
  1441. a positive face index for CFFs, WinFNTs, and, most importantly,
  1442. for TrueType Collections (TTCs).
  1443. II. IMPORTANT CHANGES
  1444. - Rudimentary support for Type 1 fonts and CID-keyed Type 1 fonts
  1445. in an SFNT wrapper has been added -- such fonts are used on the
  1446. Mac. The core SFNT tables `TYP1' and `CID ' are passed to the
  1447. PS Type 1 and CID-keyed PS font drivers; other tables (`ALMX',
  1448. `BBOX', etc.) are not supported yet.
  1449. - A new interface to extract advance values of glyphs without
  1450. loading their outlines has been added. The functions are called
  1451. `FT_Get_Advance' and `FT_Get_Advances'; they are defined in file
  1452. `ftadvanc.h' (to be accessed as FT_ADVANCES_H).
  1453. - A new function `FT_Get_FSType_Flags' (in FT_FREETYPE_H) has been
  1454. contributed by David Bevan to access the embedding and
  1455. subsetting restriction information of fonts.
  1456. III. MISCELLANEOUS
  1457. - FT_MulFix is now an inlined function; by default, assembler code
  1458. is provided for x86 and ARM. See FT_CONFIG_OPTION_INLINE_MULFIX
  1459. and FT_CONFIG_OPTION_NO_ASSEMBLER (in ftoption.h) for more.
  1460. - The handling of `tricky' fonts (this is, fonts which don't work
  1461. with the autohinter, needing the font format's hinting engine)
  1462. has been generalized and changed slightly:
  1463. . A new face flag FT_FACE_FLAG_TRICKY indicates that the font
  1464. format's hinting engine is necessary for correct rendering.
  1465. The macro FT_IS_TRICKY can be used to check this flag.
  1466. . FT_LOAD_NO_HINTING is now ignored for tricky fonts. To really
  1467. force raw loading of such fonts (without hinting), both
  1468. FT_LOAD_NO_HINTING and FT_LOAD_NO_AUTOHINT must be used --
  1469. this is something which you probably never want to do.
  1470. . Tricky TrueType fonts always use the bytecode interpreter,
  1471. either the patented or unpatented version.
  1472. - The function `FT_GlyphSlot_Own_Bitmap' has been moved from
  1473. FT_SYNTHESIS_H to FT_BITMAP_H; it is now part of the `official'
  1474. API. (The functions in FT_SYNTHESIS_H are still subject to
  1475. change, however.)
  1476. - In the `ftdiff' demo program you can now toggle the use of
  1477. FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH with key `a'.
  1478. ======================================================================
  1479. CHANGES BETWEEN 2.3.7 and 2.3.6
  1480. I. IMPORTANT BUG FIXES
  1481. - If the library was compiled on an i386 platform using gcc, and
  1482. compiler option -O3 was given, `FT_MulFix' sometimes returned
  1483. incorrect results which could have caused problems with
  1484. `FT_Request_Metrics' and `FT_Select_Metrics', returning an
  1485. incorrect descender size.
  1486. - Pure CFFs without subfonts were scaled incorrectly if the font
  1487. matrix was non-standard. This bug has been introduced in
  1488. version 2.3.6.
  1489. - The `style_name' field in the `FT_FaceRec' structure often
  1490. contained a wrong value for Type 1 fonts. This misbehaviour
  1491. has been introduced in version 2.3.6 while trying to fix
  1492. another problem. [Note, however, that this value is
  1493. informative only since the used algorithm to extract it is
  1494. very simplistic.]
  1495. II. IMPORTANT CHANGES
  1496. - Two new macros, FT_OUTLINE_SMART_DROPOUTS and
  1497. FT_OUTLINE_EXCLUDE_STUBS, have been introduced. Together with
  1498. FT_OUTLINE_IGNORE_DROPOUTS (which was ignored previously) it is
  1499. now possible to control the dropout mode of the `raster' module
  1500. (for B&W rasterization), using the `flags' field in the
  1501. `FT_Outline' structure.
  1502. - The TrueType bytecode interpreter now passes the dropout mode to
  1503. the B&W rasterizer. This greatly increases the output for small
  1504. ppem values of many fonts like `pala.ttf'.
  1505. ======================================================================
  1506. CHANGES BETWEEN 2.3.6 and 2.3.5
  1507. I. IMPORTANT BUG FIXES
  1508. - A bunch of potential security problems have been found. All
  1509. users should update.
  1510. - Microsoft Unicode cmaps in TrueType fonts are now always
  1511. preferred over Apple cmaps. This is not a bug per se, but there
  1512. exist some buggy fonts created for MS which have broken Apple
  1513. cmaps. This affects only the automatic selection of FreeType;
  1514. it's always possible to manually select an Apple Unicode cmap if
  1515. desired.
  1516. - Many bug fixes to the TrueType bytecode interpreter.
  1517. - Improved Mac support.
  1518. - Subsetted CID-keyed CFFs are now supported correctly.
  1519. - CID-keyed CFFs with subfonts which are scaled in a non-standard
  1520. way are now handled correctly.
  1521. - A call to FT_Open_Face with `face_index' < 0 crashed FreeType if
  1522. the font was a Windows (bitmap) FNT/FON.
  1523. II. IMPORTANT CHANGES
  1524. - The new function `FT_Get_CID_Registry_Ordering_Supplement' gives
  1525. access to those fields in a CID-keyed font. The code has been
  1526. contributed by Derek Clegg.
  1527. - George Williams contributed code to validate the new `MATH'
  1528. OpenType table (within the `otvalid' module). The `ftvalid'
  1529. demo program has been extended accordingly.
  1530. - An API for cmap 14 support (for Unicode Variant Selectors, UVS)
  1531. has been contributed by George Williams.
  1532. - A new face flag FT_FACE_FLAG_CID_KEYED has been added, together
  1533. with a macro FT_IS_CID_KEYED which evaluates to 1 if the font is
  1534. CID-keyed.
  1535. III. MISCELLANEOUS
  1536. - Build support for symbian has been contributed.
  1537. - Better WGL4 glyph name support, contributed by Sergey Tolstov.
  1538. - Debugging output of the various FT_TRACEX macros is now sent to
  1539. stderr.
  1540. - The `ftview' demo program now provides artificial slanting too.
  1541. - The `ftvalid' demo program has a new option `-f' to select the
  1542. font index.
  1543. ======================================================================
  1544. CHANGES BETWEEN 2.3.5 and 2.3.4
  1545. I. IMPORTANT BUG FIXES
  1546. - Some subglyphs in TrueType fonts were handled incorrectly due to
  1547. a missing graphics state reinitialization.
  1548. - Large .Z files (as distributed with some X11 packages) weren't
  1549. handled correctly, making FreeType increase the heap stack in an
  1550. endless loop.
  1551. - A large number of bugs have been fixed to avoid crashes and
  1552. endless loops with invalid fonts.
  1553. II. IMPORTANT CHANGES
  1554. - The two new cache functions `FTC_ImageCache_LookupScaler' and
  1555. `FTC_SBit_Cache_LookupScaler' have been added to allow lookup of
  1556. glyphs using an `FTC_Scaler' object; this makes it possible to
  1557. use fractional pixel sizes in the cache. The demo programs have
  1558. been updated accordingly to use this feature.
  1559. - A new API `FT_Get_CMap_Format' has been added to get the cmap
  1560. format of a TrueType font. This is useful in handling PDF
  1561. files. The code has been contributed by Derek Clegg.
  1562. - The auto-hinter now produces better output by default for
  1563. non-Latin scripts like Indic. This was done by using the CJK
  1564. hinting module as the default instead of the Latin one. Thanks
  1565. to Rahul Bhalerao for this suggestion.
  1566. - A new API `FT_Face_CheckTrueTypePatents' has been added to find
  1567. out whether a given TrueType font uses patented bytecode
  1568. instructions. The `ft2demos' bundle contains a new program
  1569. called `ftpatchk' which demonstrates its usage.
  1570. - A new API `FT_Face_SetUnpatentedHinting' has been added to
  1571. enable or disable the unpatented hinter.
  1572. - Support for Windows FON files in PE format has been contributed
  1573. by Dmitry Timoshkov.
  1574. III. MISCELLANEOUS
  1575. - Vincent Richomme contributed Visual C++ project files for Pocket
  1576. PCs.
  1577. ======================================================================
  1578. CHANGES BETWEEN 2.3.4 and 2.3.3
  1579. I. IMPORTANT BUG FIXES
  1580. - A serious bug in the handling of bitmap fonts (and bitmap
  1581. strikes of outline fonts) has been introduced in 2.3.3.
  1582. ======================================================================
  1583. CHANGES BETWEEN 2.3.3 and 2.3.2
  1584. I. IMPORTANT BUG FIXES
  1585. - Remove a serious regression in the TrueType bytecode interpreter
  1586. that was introduced in version 2.3.2. Note that this does not
  1587. disable the improvements introduced to the interpreter in
  1588. version 2.3.2, only some ill cases that occurred with certain
  1589. fonts (though a few popular ones).
  1590. - The auto-hinter now ignores single-point contours for computing
  1591. blue zones. This bug created `wavy' baselines when rendering
  1592. text with various fonts that use these contours to model
  1593. mark-attach points (these are points that are never rasterized
  1594. and are placed outside of the glyph's real outline).
  1595. - The `rsb_delta' and `lsb_delta' glyph slot fields are now set to
  1596. zero for mono-spaced fonts. Otherwise code that uses them would
  1597. essentially ruin the fixed-advance property.
  1598. - Fix CVE-2007-1351 which can cause an integer overflow while
  1599. parsing BDF fonts, leading to a potentially exploitable heap
  1600. overflow condition.
  1601. II. MISCELLANEOUS
  1602. - Fixed compilation issues on some 64-bit platforms (see ChangeLog
  1603. for details).
  1604. - A new demo program `ftdiff' has been added to compare TrueType
  1605. hinting, FreeType's auto hinting, and rendering without hinting
  1606. in three columns.
  1607. ======================================================================
  1608. CHANGES BETWEEN 2.3.2 and 2.3.1
  1609. I. IMPORTANT BUG FIXES
  1610. - FreeType returned incorrect kerning information from TrueType
  1611. fonts when the bytecode interpreter was enabled. This happened
  1612. due to a typo introduced in version 2.3.0.
  1613. - Negative kerning values from PFM files are now reported
  1614. correctly (they were read as 16-bit unsigned values from the
  1615. file).
  1616. - Fixed a small memory leak when `FT_Init_FreeType' failed for
  1617. some reason.
  1618. - The Postscript hinter placed and sized very thin and ghost stems
  1619. incorrectly.
  1620. - The TrueType bytecode interpreter has been fixed to get rid of
  1621. most of the rare differences seen in comparison to the Windows
  1622. font loader.
  1623. II. IMPORTANT CHANGES
  1624. - The auto-hinter now better deals with serifs and corner cases
  1625. (e.g., glyph '9' in Arial at 9pt, 96dpi). It also improves
  1626. spacing adjustments and doesn't change widths for non-spacing
  1627. glyphs.
  1628. - Many Mac-specific functions are deprecated (but still
  1629. available); modern replacements have been provided for them.
  1630. See the documentation in file `ftmac.h'.
  1631. ======================================================================
  1632. CHANGES BETWEEN 2.3.1 and 2.3.0
  1633. I. IMPORTANT BUG FIXES
  1634. - The TrueType interpreter sometimes returned incorrect horizontal
  1635. metrics due to a bug in the handling of the SHZ instruction.
  1636. - A typo in a security check introduced after version 2.2.1
  1637. prevented FreeType to render some glyphs in CFF fonts.
  1638. ======================================================================
  1639. CHANGES BETWEEN 2.3.0 and 2.2.1
  1640. I. IMPORTANT BUG FIXES
  1641. - The PCF font loader is now much more robust while loading
  1642. malformed font files.
  1643. - Various memory leaks have been found and fixed.
  1644. - The TrueType name loader now deals properly with some fonts that
  1645. encode their names in UTF-16 (the specification was vague, and
  1646. the code incorrectly assumed UCS-4).
  1647. - Fixed the TrueType bytecode loader to deal properly with subtle
  1648. monochrome/gray issues when scaling the CVT. Some fonts
  1649. exhibited bad rendering artifacts otherwise.
  1650. - `FT_GlyphSlot_Embolden' now supports vertical layouts correctly
  1651. (it mangled the vertical advance height).
  1652. - Fixed byte endian issues of `ftmac.c' to support Mac OS X on
  1653. i386.
  1654. - The PFR font loader no longer erroneously tags font files
  1655. without any outlines as FT_FACE_FLAG_SCALABLE.
  1656. II. NEW API FUNCTIONS
  1657. - `FT_Library_SetLcdFilter' allows you to select a special filter
  1658. to be applied to the bitmaps generated by `FT_Render_Glyph' if
  1659. one of the FT_RENDER_MODE_LCD and FT_RENDER_MODE_LCD_V modes has
  1660. been selected. This filter is used to reduce color fringes;
  1661. several settings are available through the FT_LCD_FILTER_XXX
  1662. enumeration.
  1663. Its declaration and documentation can be found in file
  1664. `include/freetype/ftlcdfil.h' (to be accessed with macro
  1665. FT_LCD_FILTER_H).
  1666. *IMPORTANT*: This function returns an error
  1667. (FT_Err_Unimplemented_Feature) in default builds of the library
  1668. for patent reasons. See below.
  1669. - `FT_Get_Gasp' allows you to query the flags of the TrueType
  1670. `gasp' table for a given character pixel size. This is useful
  1671. to duplicate the text rendering of MS Windows when the native
  1672. bytecode interpreter is enabled (which isn't the default for
  1673. other patent reasons).
  1674. Its declaration and documentation can be found in file
  1675. `include/freetype/ftgasp.h' (to be accessed with macro
  1676. FT_GASP_H).
  1677. III. IMPORTANT CHANGES
  1678. - The auto-hinter has been tuned a lot to improve its results with
  1679. serif fonts, resulting in much better font rendering of many web
  1680. pages.
  1681. - The unpatented hinter is now part of the default build of the
  1682. library; we have added code to automatically support `tricky'
  1683. fonts that need it.
  1684. This means that FreeType should `just work' with certain Asian
  1685. fonts, like MingLiU, which cannot properly be loaded without a
  1686. bytecode interpreter, but which fortunately do not use any of
  1687. the patented bytecode opcodes. We detect these fonts by name,
  1688. so please report any font file that doesn't seem to work with
  1689. FreeType, and we shall do what we can to support it in a next
  1690. release.
  1691. Note that the API hasn't changed, so you can still force
  1692. unpatented hinting with a special parameter to `FT_Open_Face' as
  1693. well. This might be useful in same cases; for example, a PDF
  1694. reader might present a user option to activate it to deal with
  1695. certain `tricky' embedded fonts which cannot be clearly
  1696. identified.
  1697. If you are a developer for embedded systems, you might want to
  1698. *disable* the feature to save code space by undefining
  1699. TT_CONFIG_OPTION_UNPATENTED_HINTING in file `ftoption.h'.
  1700. - LCD-optimized rendering is now *disabled* in all default builds
  1701. of the library, mainly due to patent issues. For more
  1702. information see:
  1703. https://lists.gnu.org/archive/html/freetype/2006-09/msg00064.html
  1704. A new configuration macro FT_CONFIG_OPTION_SUBPIXEL_RENDERING
  1705. has been introduced in `ftoption.h'; manually define it in this
  1706. file if you want to re-enable the feature.
  1707. The change only affects the implementation, not the FreeType
  1708. API. This means that clients don't need to be modified, because
  1709. the library still generates LCD decimated bitmaps, but with the
  1710. added constraint that R=G=B on each triplet.
  1711. The displayed result should be equal to normal anti-aliased
  1712. rendering.
  1713. Additionally, if FT_CONFIG_OPTION_SUBPIXEL_RENDERING is not
  1714. defined, the new `FT_Library_SetLcdFilter' function returns the
  1715. FT_Err_Unimplemented_Feature error code.
  1716. - Some computation bugs in the TrueType bytecode interpreter were
  1717. found, which allow us to get rid of very subtle and rare
  1718. differences we had experienced with the Windows renderer.
  1719. - It is now possible to cross-compile the library easily. See the
  1720. file `docs/INSTALL.CROSS' for details.
  1721. - The file `src/base/ftmac.c' now contains code for Mac OS X only;
  1722. its deprecated function `FT_GetFile_From_Mac_Font_Name' always
  1723. returns an error even if the QuickDraw framework is available.
  1724. The previous version has been moved to `builds/mac/ftmac.c'.
  1725. Selecting configure option `--with-quickdraw-carbon' makes the
  1726. build process use the original `ftmac.c' file instead of the Mac
  1727. OS X-only version.
  1728. IV. MISCELLANEOUS
  1729. - Various performance and memory footprint optimizations have been
  1730. performed on the TrueType and CFF font loaders, sometimes with
  1731. very drastic benefits (e.g., the TrueType loader is now about
  1732. 25% faster; FreeType should use less heap memory under nearly
  1733. all conditions).
  1734. - The anti-aliased rasterizer has been optimized and is now 15% to
  1735. 25% percent faster than in previous versions, depending on
  1736. content.
  1737. - The Type 1 loader has been improved; as an example, it now skips
  1738. top-level dictionaries properly.
  1739. - Better support for Mac fonts on POSIX systems, plus compilation
  1740. fixes for Mac OS X on ppc64 where `ftmac.c' cannot be built.
  1741. - Configuration without `--with-old-mac-fonts' does not include
  1742. `ftmac.c' (this was the behaviour in FreeType version 2.1.10).
  1743. - The TrueTypeGX validator (gxvalid) checks the order of glyph IDs
  1744. in the kern table.
  1745. ======================================================================
  1746. CHANGES BETWEEN 2.2.1 and 2.2
  1747. I. IMPORTANT BUG FIXES
  1748. - Various integer overflows have been fixed.
  1749. - PFB fonts with MacOS resource fork weren't handled correctly on
  1750. non-MacOS platforms.
  1751. ======================================================================
  1752. CHANGES BETWEEN 2.2 and 2.1.10
  1753. (not released officially)
  1754. I. IMPORTANT BUG FIXES
  1755. - Vertical metrics for SFNT fonts were incorrect sometimes.
  1756. - The FT_HAS_KERNING macro always returned 0.
  1757. - CFF OpenType fonts didn't return correct vertical metrics for
  1758. glyphs with outlines.
  1759. - If FreeType was compiled without hinters, all font formats based
  1760. on PS outlines weren't scaled correctly.
  1761. II. IMPORTANT CHANGES
  1762. - Version 2.2 no longer exposes its internals, this is, the header
  1763. files located in the `include/freetype/internal' directory of
  1764. the source package are not copied anymore by the `make install'
  1765. command. Consequently, a number of rogue clients which directly
  1766. access FreeType's internal functions and structures won't
  1767. compile without modification.
  1768. We provide patches for most of those rogue clients. See the
  1769. following page for more information:
  1770. https://www.freetype.org/freetype2/patches/rogue-patches.html
  1771. Note that, as a convenience to our Unix desktop users, version
  1772. 2.2 is *binary* compatible with FreeType 2.1.7, which means that
  1773. installing this release on an existing distribution shall not
  1774. break any working desktop.
  1775. - FreeType's build mechanism has been redesigned. With GNU make
  1776. it is now sufficient in most cases to edit two files:
  1777. `modules.cfg', to select the library components, and the
  1778. configuration file `include/freetype/config/ftoption.h' (which
  1779. can be copied to the objects directory). Removing unused module
  1780. directories to prevent its compilation and editing
  1781. `include/freetype/config/ftmodule.h' is no longer necessary.
  1782. - The LIGHT hinting algorithm produces more pleasant results.
  1783. Also, using the FT_LOAD_TARGET_LIGHT flags within FT_Load_Glyph
  1784. always forces auto-hinting, as a special exception. This allows
  1785. you to experiment with it even if you have enabled the TrueType
  1786. bytecode interpreter in your build.
  1787. - The auto hinter now employs a new algorithm for CJK fonts, based
  1788. on Akito Hirai's patch. Note that this only works for fonts
  1789. with a Unicode charmap at the moment.
  1790. - The following callback function types have changed slightly (by
  1791. adding the `const' keyword where appropriate):
  1792. FT_Outline_MoveToFunc
  1793. FT_Outline_LineToFunc
  1794. FT_Outline_ConicToFunc
  1795. FT_Outline_CubicToFunc
  1796. FT_SpanFunc
  1797. FT_Raster_RenderFunc
  1798. FT_Glyph_TransformFunc
  1799. FT_Renderer_RenderFunc
  1800. FT_Renderer_TransformFunc
  1801. Note that this doesn't affect binary backward compatibility.
  1802. - On MacOS, new APIs have been added as replacements for legacy
  1803. APIs: `FT_New_Face_From_FSRef' for `FT_New_Face_From_FSSpec',
  1804. and `FT_GetFile_From_Mac_ATS_Name' for
  1805. `FT_GetFile_From_Mac_Name'. Legacy APIs are still available, if
  1806. FreeType is built without disabling them.
  1807. - A new API `FT_Select_Size' has been added to select a bitmap
  1808. strike by its index. Code using other functions to select
  1809. bitmap strikes should be updated to use this function.
  1810. - A new API `FT_Get_SubGlyph_Info' has been added to retrieve
  1811. subglyph data. This can be used by rogue clients which used to
  1812. access the internal headers to get the corresponding data.
  1813. - In 2.1.10, the behaviour of `FT_Set_Pixel_Sizes' was changed for
  1814. BDF/PCF fonts, and only for them. This causes inconsistency.
  1815. In this release, we undo the change. The intent of the change
  1816. in 2.1.10 is to allow size selection through real dimensions,
  1817. which can now be done through `FT_Request_Size'.
  1818. - Some security issues were discovered and fixed in the CFF and
  1819. Type 1 loader, causing crashes of FreeType by malformed font
  1820. files.
  1821. III. MISCELLANEOUS
  1822. - The documentation for FT_LOAD_TARGET_XXX and FT_RENDER_MODE_XXX
  1823. values now better reflects its usage and differences: One set is
  1824. used to specify the hinting algorithm, the other to specify the
  1825. pixel rendering mode.
  1826. - `FT_New_Face' and `FT_New_Face_From_FSSpec' in ftmac.c have been
  1827. changed to count supported scalable faces (sfnt, LWFN) only, and
  1828. to return the number of available faces via face->num_faces.
  1829. Unsupported bitmap faces (fbit, NFNT) are ignored.
  1830. - builds/unix/configure has been improved for MacOS X. It now
  1831. automatically checks available functions in Carbon library, and
  1832. prepare to use newest functions by default. Options to specify
  1833. the dependencies of each Carbon APIs (FSSpec, FSRef, old/new
  1834. QuickDraw, ATS) are available too. By manual disabling of all
  1835. QuickDraw functionality, FreeType can be built without
  1836. `deprecated function' warnings on MacOS 10.4.x, but
  1837. FT_GetFile_Mac_Name in ftmac.c then is changed to a dummy
  1838. function, and returns an `unimplemented' error. For details see
  1839. builds/mac/README.
  1840. - SFNT cmap handling has been improved, mainly to run much faster
  1841. with CJK fonts.
  1842. - A new function `FT_Get_TrueType_Engine_Type (declared in
  1843. `FT_MODULE_H') is provided to determine the status of the
  1844. TrueType bytecode interpreter compiled into the library
  1845. (patented, unpatented, unimplemented).
  1846. - Vertical metrics of glyphs are synthesized if the font does not
  1847. provide such information. You can tell whether the metrics are
  1848. synthesized or not by checking the FT_FACE_FLAG_VERTICAL flag of
  1849. the face.
  1850. - The demo programs `ftview' and `ftstring' have been rewritten
  1851. for better readability. `ftview' has a new switch `-p' to test
  1852. FT_New_Memory_Face (instead of FT_New_Face).
  1853. - FreeType now honours bit 1 in the `head' table of TrueType fonts
  1854. (meaning `left sidebearing point at x=0'). This helps with some
  1855. buggy fonts.
  1856. - Rudimentary support for Adobe's new `SING Glyphlet' format. See
  1857. https://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5148.SING_Tutorial.pdf
  1858. for more information.
  1859. - The `ftdump' program from the `ft2demos' bundle now shows some
  1860. information about charmaps. It also supports a new switch `-v'
  1861. to increase verbosity.
  1862. - Better AFM support. This includes track kerning support.
  1863. ======================================================================
  1864. CHANGES BETWEEN 2.1.10 and 2.1.9
  1865. I. IMPORTANT BUG FIXES
  1866. - The size comparison for BDF and PCF files could fail sometimes.
  1867. - Some CFF files were still not loaded correctly. Patch from
  1868. Derek Noonburg.
  1869. - The stroker still had some serious bugs.
  1870. - Boris Letocha fixed a bug in the TrueType interpreter: The
  1871. NPUSHW instruction wasn't skipped correctly in IF clauses. Some
  1872. fonts like `Helvetica 75 Bold' failed.
  1873. - Another serious bug in handling TrueType hints caused many
  1874. distortions. It has been introduced in version 2.1.8, and it is
  1875. highly recommended to upgrade.
  1876. - FreeType didn't properly parse empty Type 1 glyphs.
  1877. - An unbound dynamic buffer growth was fixed in the PFR loader.
  1878. - Several bugs have been fixed in the cache sub-system.
  1879. - FreeType behaved incorrectly when resizing two distinct but very
  1880. close character pixel sizes through `FT_Set_Char_Size' (Savannah
  1881. bug #12263).
  1882. - The auto-hinter didn't work properly for fonts without a Unicode
  1883. charmap -- it even refused to load the glyphs.
  1884. II. IMPORTANT CHANGES
  1885. - Many fixes have been applied to drastically reduce the amount of
  1886. heap memory used by FreeType, especially when using
  1887. memory-mapped font files (which is the default on Unix systems
  1888. which support them).
  1889. - The auto-hinter has been replaced with a new module, called the
  1890. `auto-fitter'. It consumes less memory than its predecessor,
  1891. and it is prepared to support non-latin scripts better in next
  1892. releases.
  1893. - George Williams contributed code to read kerning data from PFM
  1894. files.
  1895. - FreeType now uses the TT_NAME_ID_PREFERRED_FAMILY and
  1896. TT_NAME_ID_PREFERRED_SUBFAMILY strings (if available) for
  1897. setting family and style in SFNT fonts (patch from Kornfeld
  1898. Eliyahu Peter).
  1899. - A new API `FT_Sfnt_Table_Info' (in FT_TRUETYPE_TABLES_H) has
  1900. been added to retrieve name and size information of SFNT tables.
  1901. - A new API `FT_OpenType_Validate' (in FT_OPENTYPE_VALIDATE_H) has
  1902. been added to validate OpenType tables (BASE, GDEF, GPOS, GSUB,
  1903. JSTF). After validation it is no longer necessary to check
  1904. for errors in those tables while accessing them.
  1905. Note that this module might be moved to another library in the
  1906. future to avoid a tight dependency between FreeType and the
  1907. OpenType specification.
  1908. - A new API in FT_BITMAP_H (`FT_Bitmap_New', `FT_Bitmap_Convert',
  1909. `FT_Bitmap_Copy', `FT_Bitmap_Embolden', `FT_Bitmap_Done') has
  1910. been added. Its use is to convert an FT_Bitmap structure in
  1911. 1bpp, 2bpp, 4bpp, or 8bpp format into another 8bpp FT_Bitmap,
  1912. probably using a different pitch, and to further manipulate it.
  1913. - A new API `FT_Outline_Embolden' (in FT_OUTLINE_H) gives finer
  1914. control how outlines are emboldened.
  1915. - `FT_GlyphSlot_Embolden' (in FT_SYNTHESIS_H) now handles bitmaps
  1916. also (code contributed by Chia I Wu). Note that this function
  1917. is still experimental and may be replaced with a better API.
  1918. - The method how BDF and PCF bitmap fonts are accessed has been
  1919. refined. Formerly, FT_Set_Pixel_Sizes and FT_Set_Char_Size
  1920. were synonyms in FreeType's BDF and PCF interface. This has
  1921. changed now. FT_Set_Pixel_Sizes should be used to select the
  1922. actual font dimensions (the `strike', which is the sum of the
  1923. `FONT_ASCENT' and `FONT_DESCENT' properties), while
  1924. FT_Set_Char_Size selects the `nominal' size (the `PIXELSIZE'
  1925. property). In both functions, the width parameter is ignored.
  1926. III. MISCELLANEOUS
  1927. - The BDF driver no longer converts all returned bitmaps with a
  1928. depth of 2bpp or 4bpp to a depth of 8bpp. The documentation has
  1929. not mentioned this explicitly, but implementors might have
  1930. relied on this after looking into the source files.
  1931. - A new option `--ftversion' has been added to freetype-config to
  1932. return the FreeType version.
  1933. - The memory debugger has been updated to dump allocation
  1934. statistics on all allocation sources in the library. This is
  1935. useful to spot greedy allocations when loading and processing
  1936. fonts.
  1937. - We removed a huge array of constant pointers to constant strings
  1938. in the `psnames' module. The problem was that compilations in
  1939. PIC mode (i.e., when generating a Unix shared object/dll) put
  1940. the array into the non-shared writable section of the library
  1941. since absolute pointers are not relocatable by nature.
  1942. This reduces the memory consumption by approximately 16KByte per
  1943. process linked to FreeType. We now also store the array in a
  1944. compressed form (as a trie) which saves about 20KByte of code as
  1945. well.
  1946. - Kirill Smelkov provided patches to make src/raster/ftraster.c
  1947. compile stand-alone again.
  1948. ======================================================================
  1949. CHANGES BETWEEN 2.1.9 and 2.1.8
  1950. I. IMPORTANT BUG FIXES
  1951. - The function `FT_Get_CharMap_Index' was only declared, without
  1952. any real code. For consistency, it has been renamed to
  1953. `FT_Get_Charmap_Index'. (This function is needed to implement
  1954. cmap caches.)
  1955. - `FT_Outline_Get_BBox' sometimes returned incorrect values for
  1956. conic outlines (e.g., for TrueType fonts).
  1957. - Handling of `bhed' table has been fixed.
  1958. - The TrueType driver with enabled byte code interpreter sometimes
  1959. returned artifacts due to incorrect rounding. This bug has been
  1960. introduced after version 2.1.4.
  1961. - The BDF driver dropped the last glyph in the font.
  1962. - The BDF driver now uses the DEFAULT_CHAR property (if available)
  1963. to select a glyph shape for the undefined glyph.
  1964. - The stroker failed for closed outlines and single points.
  1965. II. IMPORTANT CHANGES
  1966. - George Williams contributed code to handle Apple's font
  1967. distortion technology found in GX fonts (`avar', `cvar', `fvar',
  1968. and `gvar' tables; the Multiple Masters API has been slightly
  1969. extended to cope with the new functionality).
  1970. - The `FT_GlyphSlotRec' structure has been extended: The elements
  1971. `lsb_delta' and `rsb_delta' give the difference between hinted
  1972. and unhinted left and right side bearings if autohinting is
  1973. active. Using those values can improve the inter-letter spacing
  1974. considerably. See the documentation of `FT_GlyphSlotRec' and
  1975. the `ftstring' demo program how to use it.
  1976. - Loading TrueType and Type 1 fonts has been made much faster.
  1977. - The stroker is no longer experimental (but the cache subsystem
  1978. still is).
  1979. III. MISCELLANEOUS
  1980. - A new documentation file `formats.txt' describes various font
  1981. formats supported (and not supported) by FreeType.
  1982. ======================================================================
  1983. CHANGES BETWEEN 2.1.8 and 2.1.7
  1984. I. IMPORTANT BUG FIXES
  1985. - The native TrueType hinter contained some bugs which prevented
  1986. some fonts to be rendered correctly, most notably Legendum.otf.
  1987. - The PostScript hinter now produces improved results.
  1988. - The linear advance width and height values were incorrectly
  1989. rounded, making them virtually unusable if not loaded with
  1990. FT_LOAD_LINEAR_DESIGN.
  1991. - Indexing CID-keyed CFF fonts is now working: The glyph index is
  1992. correctly treated as a CID, similar to FreeType's CID driver
  1993. module. Note that CID CMap support is still missing.
  1994. - The FT_FACE_FLAG_GLYPH_NAMES flag is now set correctly for all
  1995. font formats.
  1996. - Some subsetted Type 1 fonts weren't parsed correctly. This bug
  1997. has been introduced in 2.1.7. In summary, the Type 1 parser has
  1998. become more robust.
  1999. - Non-decimal numbers weren't parsed correctly in PS fonts.
  2000. - The WinFNT driver now correctly reports FT_ENCODING_NONE for all
  2001. but one encoding. Use the new FT_WinFNT_ID_XXX values together
  2002. with `FT_Get_WinFNT_Header' to get the WinFNT charset ID.
  2003. - The descender metrics (face->size->metrics.descender) for WinFNT
  2004. bitmap fonts had the wrong sign.
  2005. - The (emulated) `seac' support for CFF fonts was broken.
  2006. - The `flex' operator didn't work for CFF fonts.
  2007. - PS glyphs which use the `hintmask' operator haven't been
  2008. rendered correctly in some cases.
  2009. - Metrics for BDF and PCF bitmap font formats have been fixed.
  2010. - Autohinting is now disabled for glyphs which are vertically
  2011. distorted or mirrored (using a transformation matrix). This
  2012. fixes a bug which produced zero-height glyphs.
  2013. - The `freetype-config' script now handles --prefix and
  2014. --exec-prefix correctly; it also returns the proper --rpath (or
  2015. -R) value if FreeType has been built as a shared library.
  2016. II. IMPORTANT CHANGES
  2017. - Both PCF and BDF drivers now handle the SETWIDTH_NAME and
  2018. ADD_STYLE_NAME properties. Values are appended to
  2019. face->style_name; example: `Bold SemiCondensed'.
  2020. - The PCF driver now handles bitmap fonts compressed with the LZW
  2021. algorithm (extension .pcf.Z, compressed with `compress').
  2022. - A new API function `FT_Get_CMap_Language_ID' (declared in
  2023. `tttables.h') is available to get the language ID of a
  2024. TrueType/SFNT cmap.
  2025. - The hexadecimal format of data after the `StartData' command in
  2026. CID-keyed Type 1 fonts is now supported. While this can't occur
  2027. in file-based fonts, it can happen in document-embedded
  2028. resources of PostScript documents.
  2029. - Embedded bitmaps in SFNT-based CFF fonts are now supported.
  2030. - A simple API is now available to control FreeType's tracing
  2031. mechanism if compiled with FT_DEBUG_LEVEL_TRACE. See the file
  2032. `ftdebug.h' for more details.
  2033. - YAMATO Masatake contributed improved handling of MacOS resource
  2034. forks on non-MacOS platforms (for example, Linux can mount MacOS
  2035. file systems).
  2036. - Support for MacOS has been improved; there is now a new function
  2037. `FT_New_Face_From_FSSpec' similar to `FT_New_Face' except that
  2038. it accepts an FSSpec instead of a path.
  2039. - The cache sub-system has been rewritten.
  2040. - There is now support for deinstallation of faces.
  2041. - A new API function `FTC_Manager_RemoveFaceID' has been added
  2042. to delete all `idle' nodes that correspond to a given
  2043. FTC_FaceID. All `locked' nodes (i.e., those with a reference
  2044. count > 0), will be modified to prevent them from appearing in
  2045. further lookups (they will be cleaned normally when their
  2046. reference count reaches 0).
  2047. - There is now support for point scaling (i.e., providing
  2048. character sizes in points + dpis, instead of pixels).
  2049. - Three abstract cache classes are now available:
  2050. FTC_GCache: Used to store one glyph item per cache node,
  2051. with the ability to group common attributes into
  2052. `families'. This replaces the old
  2053. FTC_GlyphCache class.
  2054. FTC_ICache: Used to store one FT_Glyph per cache node. This
  2055. extends FTC_GCache. Family definition, family
  2056. comparison, and glyph loading are however left
  2057. to sub-classes.
  2058. FTC_SCache: Used to store up to 16 small bitmaps per cache
  2059. node. This extends FTC_GCache. Family
  2060. definition, family comparison and glyph loading
  2061. are however left to sub-classes.
  2062. - The file `src/cache/ftcbasic.c' implements:
  2063. FTC_ImageCache: Extends FTC_ICache; implements family
  2064. definitions and glyph loading similar to the
  2065. old API.
  2066. FTC_SBitCache: Extends FTC_SCache, implements family
  2067. definitions and glyph loading similar to the
  2068. old API
  2069. Client applications should be able to extend FTC_GCache,
  2070. FTC_ICache, or FTC_SCache much more easily (i.e., less code to
  2071. write, and less callbacks). For example, one could envision
  2072. caches that are capable of storing transformed (obliqued),
  2073. stroked, emboldened, or colored glyph images. Use
  2074. `ftcbasic.c' as an example.
  2075. - All public APIs are now in `include/freetype/ftcache.h', (to
  2076. be accessed as `FT_CACHE_H'). The contents of
  2077. `include/freetype/cache/' is only needed by applications that
  2078. wish to implement their own caches.
  2079. - There were some major performance improvements through the use
  2080. of various programming tricks. Cache hits are up to 70%
  2081. faster than in the old code.
  2082. - The FTC_CMapCache has been simplified. Charmaps can only be
  2083. accessed by index right now. There is also a new API named
  2084. `FT_Charmap_GetIndex' for this purpose.
  2085. - The demo programs have been updated to the new code. The
  2086. previous versions will not work with the current one.
  2087. - Using an invalid face index in FT_Open_Face and friends now
  2088. causes an error even if the font contains a single face only.
  2089. III. MISCELLANEOUS
  2090. - Wolfgang Domröse contributed support files for building FreeType
  2091. on the Atari using the PureC compiler. Note that the Atari is a
  2092. 16bit platform.
  2093. - Vitaliy Pasternak contributed project files for VS.NET 2003.
  2094. ======================================================================
  2095. CHANGES BETWEEN 2.1.7 and 2.1.6
  2096. I. IMPORTANT BUG FIXES
  2097. - Updated to newest libtool version, fixing build problems on
  2098. various platforms.
  2099. - On Unix platforms, `make install' didn't copy the correct
  2100. `ftconfig.h' file.
  2101. Note that version 2.1.7 contains the same library C source code as
  2102. version 2.1.6.
  2103. ======================================================================
  2104. CHANGES BETWEEN 2.1.6 and 2.1.5
  2105. I. IMPORTANT BUG FIXES
  2106. - The PFR font driver didn't load kerning tables correctly, and
  2107. the functions in FT_PFR_H didn't work at all.
  2108. - Type 1 font files in binary format (PFB) with an end-of-file
  2109. indicator weren't accepted by the FreeType engine.
  2110. - Fonts which contain /PaintType and /StrokeWidth no longer cause
  2111. a segfault. This bug has been introduced in version 2.1.5.
  2112. - Fonts loaded with FT_LOAD_RENDER no longer cause strange
  2113. results. This bug has been introduced in version 2.1.5.
  2114. - Some Windows (bitmap) FNT/FON files couldn't be handled
  2115. correctly.
  2116. II. IMPORTANT CHANGES
  2117. - The internal module API has been heavily changed in favor of
  2118. massive simplifications within the font engine. This also means
  2119. that authors of third-party modules must adapt their code to the
  2120. new scheme.
  2121. NOTE: THE NEW SCHEME IS NOT COMPLETED YET. PLEASE WAIT UNTIL A
  2122. FINAL ANNOUNCEMENT!
  2123. - The PostScript parser has been enhanced to handle comments and
  2124. strings correctly. Additionally, more syntax forms are
  2125. recognized.
  2126. - Added the optional unpatented hinting system for TrueType. It
  2127. allows typefaces which need hinting to produce correct glyph
  2128. forms (e.g., Chinese typefaces from Dynalab) to work acceptably
  2129. without infringing Apple patents. This system is compiled only
  2130. if TT_CONFIG_OPTION_COMPILE_UNPATENTED_HINTING is defined in
  2131. ftoption.h (activated by default).
  2132. III. MISCELLANEOUS
  2133. - There is now a guard in the public header files to protect
  2134. against inclusion of freetype.h from FreeType 1.
  2135. - Direct inclusion of freetype.h and other public header files no
  2136. longer works. You have to use the documented scheme
  2137. #include <ft2build.h>
  2138. #include FT_FREETYPE_H
  2139. to load freetype.h with a symbolic name. This protects against
  2140. renaming of public header files (which shouldn't happen but
  2141. actually has, avoiding two public header files with the same
  2142. name).
  2143. ======================================================================
  2144. CHANGES BETWEEN 2.1.5 and 2.1.4
  2145. I. IMPORTANT BUG FIXES
  2146. - Parsing the /CIDFontName field now removes the leading slash to
  2147. be in sync with other font drivers.
  2148. - gzip support was buggy. Some fonts could not be read.
  2149. - Fonts which have nested subglyphs more than one level deep no
  2150. longer cause a segfault.
  2151. - Creation of synthetic cmaps for fonts in CFF format was broken
  2152. partially.
  2153. - Numeric font dictionary entries for synthetic fonts are no
  2154. longer overwritten.
  2155. - The font matrix wasn't applied to the advance width for Type1,
  2156. CID, and CFF fonts. This caused problems when loading certain
  2157. synthetic Type 1 fonts like `Helvetica Narrow'.
  2158. - The test for the charset registry in BDF and PCF fonts is now
  2159. case-insensitive.
  2160. - FT_Vector_Rotate sometimes returned strange values due to
  2161. rounding errors.
  2162. - The PCF driver now returns the correct number of glyphs
  2163. (including an artificial `notdef' glyph at index 0).
  2164. - FreeType now supports buggy CMaps which are contained in many
  2165. CJK fonts from Dynalab.
  2166. - Opening an invalid font on a Mac caused a segfault due to
  2167. double-freeing memory.
  2168. - BDF fonts with more than 32768 glyphs weren't supported
  2169. properly.
  2170. II. IMPORTANT CHANGES
  2171. - Accessing bitmap font formats has been synchronized. To do that
  2172. the FT_Bitmap_Size structure has been extended to contain new
  2173. fields `size', `x_ppem', and `y_ppem'.
  2174. - The FNT driver now returns multiple faces, not multiple strikes.
  2175. - The `psnames' module has been updated to the Adobe Glyph List
  2176. version 2.0.
  2177. - The `psnames' module now understands `uXXXX[X[X]]' glyph names.
  2178. - The algorithm for guessing the font style has been improved.
  2179. - For fonts in SFNT format, root->height is no longer increased if
  2180. the line gap is zero. There exist fonts (containing e.g. form
  2181. drawing characters) which intentionally have a zero line gap
  2182. value.
  2183. - ft_glyph_bbox_xxx flags are now deprecated in favour of
  2184. FT_GLYPH_BBOX_XXX.
  2185. - ft_module_xxx flags are now deprecated in favour of
  2186. FT_MODULE_XXX.
  2187. - FT_ENCODING_MS_{SJIS,GB2312,BIG5,WANSUNG,JOHAB} are now
  2188. deprecated in favour of
  2189. FT_ENCODING_{SJIS,GB2312,BIG5,WANSUNG,JOHAB} -- those encodings
  2190. are not specific to Microsoft.
  2191. III. MISCELLANEOUS
  2192. - The autohinter has been further improved; for example, `m'
  2193. glyphs now retain its vertical symmetry.
  2194. - Partial support of Mac fonts on non-Mac platforms.
  2195. - `make refdoc' (after first `make') builds the HTML
  2196. documentation. You need Python for this.
  2197. - The make build system should now work more reliably on DOS-like
  2198. platforms.
  2199. - Support for EMX gcc and Watson C/C++ compilers on MS-DOS has
  2200. been added.
  2201. - Better VMS build support.
  2202. - Support for the pkg-config package by providing a `freetype.pc'
  2203. file.
  2204. - New configure option --with-old-mac-fonts for Darwin.
  2205. - Some source files have been renamed (mainly to fit into the 8.3
  2206. naming scheme).
  2207. ======================================================================
  2208. CHANGES BETWEEN 2.1.4 and 2.1.3
  2209. I. IMPORTANT BUG FIXES
  2210. - Updated to newest libtool version, fixing build problems on
  2211. various platforms.
  2212. - A fix in the Gzip stream reader: It couldn't read certain .gz
  2213. files properly due to a small typo. In certain cases, FreeType
  2214. could also loop endlessly when trying to load tiny gzipped
  2215. files.
  2216. - The configure script now tries to use the system-wide zlib when
  2217. it finds one (instead of the copy found in src/gzip). And
  2218. `freetype-config' has been updated to return relevant flags in
  2219. this case when invoked with `--libs' (e.g. `-lzlib').
  2220. - Certain fonts couldn't be loaded by 2.1.3 because they lacked a
  2221. Unicode charmap (e.g. SYMBOL.TTF). FreeType erroneously
  2222. rejected them.
  2223. - The CFF loader was modified to accept fonts which only contain a
  2224. subset of their reference charset. This prevented the correct
  2225. use of PDF-embedded fonts.
  2226. - The logic to detect Unicode charmaps has been modified. This is
  2227. required to support fonts which include both 16-bit and 32-bit
  2228. charmaps (like very recent asian ones) using the new 10 and 12
  2229. SFNT formats.
  2230. - The TrueType loader now limits the depth of composite glyphs.
  2231. This is necessary to prevent broken fonts to break the engine by
  2232. blowing the stack with recursive glyph definitions.
  2233. - The CMap cache is now capable of managing UCS-4 character codes
  2234. that are mapped through extended charmaps in recent
  2235. TrueType/OpenType fonts.
  2236. - The cache sub-system now properly manages out-of-memory
  2237. conditions instead of blindly reporting them to the caller.
  2238. This means that it will try to empty the cache before restarting
  2239. its allocations to see if that can help.
  2240. - The PFR driver didn't return the list of available embedded
  2241. bitmaps properly.
  2242. - There was a nasty memory leak when using embedded bitmaps in
  2243. certain font formats.
  2244. II. IMPORTANT CHANGES
  2245. - David Chester contributed some enhancements to the auto-hinter
  2246. that significantly increase the quality of its output. The
  2247. Postscript hinter was also improved in several ways.
  2248. - The FT_RENDER_MODE_LIGHT render mode was implemented.
  2249. - A new API function called `FT_Get_BDF_Property' has been added
  2250. to FT_BDF_H to retrieve BDF properties from BDF _and_ PCF font
  2251. files. THIS IS STILL EXPERIMENTAL, since it hasn't been
  2252. properly tested yet.
  2253. - A Windows FNT specific API has been added, mostly to access font
  2254. headers. This is used by Wine.
  2255. - TrueType tables without an `hmtx' table are now tolerated when
  2256. an incremental interface is used. This happens for certain
  2257. Type42 fonts passed from Ghostscript to FreeType.
  2258. - The PFR font driver is now capable of returning the font family
  2259. and style names when they are available (instead of the sole
  2260. `FontID'). This is performed by parsing an *undocumented*
  2261. portion of the font file!
  2262. III. MISCELLANEOUS
  2263. - The path stroker in FT_STROKER_H has entered beta stage. It now
  2264. works very well, but its interface might change a bit in the
  2265. future. More on this in later releases.
  2266. - The documentation for FT_Size_Metrics didn't appear properly in
  2267. the API reference.
  2268. - The file docs/VERSION.DLL has been updated to explain versioning
  2269. with FreeType (i.e., comparing release/libtool/so numbers, and
  2270. how to use them in autoconf scripts).
  2271. - The installation documentation has been seriously revamped.
  2272. Everything is now in the `docs' directory.
  2273. ======================================================================
  2274. CHANGES BETWEEN 2.1.3 and 2.1.2
  2275. I. IMPORTANT BUG FIXES
  2276. - FT_Vector_Transform had been incorrectly modified in 2.1.2,
  2277. resulting in incorrect transformations being applied (for
  2278. example, rotations were processed in opposite angles).
  2279. - The format 8 and 12 TrueType charmap enumeration routines have
  2280. been fixed (FT_Get_Next_Char returned invalid values).
  2281. - The PFR font driver returned incorrect advance widths if the
  2282. outline and metrics resolution defined in the font file were
  2283. different.
  2284. - FT_Glyph_To_Bitmap now returns successfully when called with an
  2285. FT_BitmapGlyph argument (it previously returned an error).
  2286. - A bug in the Type 1 loader that prevented valid font bounding
  2287. boxes to be loaded from multiple master fonts.
  2288. - The SFNT validation code has been rewritten. FreeType can now
  2289. load `broken' fonts that were usable on Windows, but not with
  2290. previous versions of the library.
  2291. - The computation of bearings in the BDF driver has been fixed.
  2292. - The Postscript hinter crashed when trying to hint certain glyphs
  2293. (more precisely, when trying to apply hints to an empty glyph
  2294. outline).
  2295. - The TrueType glyph loader now supports composites in `Apple
  2296. format' (they differ slightly from Microsoft/OpenType ones in
  2297. the way transformation offsets are computed).
  2298. - FreeType was very slow at opening certain asian CID/CFF fonts,
  2299. due to fixed increment in dynamic array re-allocations. This
  2300. has been changed to exponential behaviour to get acceptable
  2301. performance.
  2302. II. IMPORTANT CHANGES
  2303. - The PCF driver now supports gzip-compressed font files natively.
  2304. This means that you will be able to use all these bitmap fonts
  2305. that come with XFree86 with FreeType (and libXft/libXft2, by
  2306. extension).
  2307. - The automatic and postscript hinters have both been updated.
  2308. This results in a relatively important increase of rendering
  2309. quality since many nasty defaults have been suppressed. Please
  2310. visit the web page:
  2311. https://www.freetype.org/hinting/smooth-hinting.html
  2312. for additional details on this topic.
  2313. - The `load_flags' parameter of `FT_Load_Glyph' is now an FT_Int32
  2314. (instead of just being an FT_Int). This breaks source and
  2315. binary compatibility for 16bit systems only, while retaining
  2316. both of them for 32 and 64 bit ones.
  2317. Some new flags have been added consequently:
  2318. FT_LOAD_NO_AUTOHINT :: Disable the use of the auto-hinter
  2319. (but not native format hinters).
  2320. FT_LOAD_TARGET_NORMAL :: Hint and render for normal
  2321. anti-aliased displays.
  2322. FT_LOAD_TARGET_MONO :: Hint and render for 1-bit displays.
  2323. FT_LOAD_TARGET_LCD :: Hint and render for horizontal RGB or
  2324. BGR subpixel displays (like LCD
  2325. screens). THIS IS STILL
  2326. EXPERIMENTAL!
  2327. FT_LOAD_TARGET_LCD_V :: Same as FT_LOAD_TARGET_LCD, for
  2328. vertical subpixel displays (like
  2329. rotated LCD screens). THIS IS STILL
  2330. EXPERIMENTAL!
  2331. FT_LOAD_MONOCHROME is still supported, but only affects
  2332. rendering, not the hinting.
  2333. Note that the `ftview' demo program available in the `ft2demos'
  2334. package has been updated to support LCD-optimized display on
  2335. non-paletted displays (under Win32 and X11).
  2336. - The PFR driver now supports embedded bitmaps (all formats
  2337. supported), and returns correct kerning metrics for all glyphs.
  2338. - The TrueType charmap loader now supports certain `broken' fonts
  2339. that load under Windows without problems.
  2340. - The cache API has been slightly modified (it's still a beta!):
  2341. - The type FTC_ImageDesc has been removed; it is now replaced
  2342. by FTC_ImageTypeRec. Note that one of its fields is a
  2343. `load_flag' parameter for FT_Load_Glyph.
  2344. - The field `num_grays' of FT_SBitRec has been changed to
  2345. `max_grays' in order to fit within a single byte. Its
  2346. maximum value is thus 255 (instead of 256 as previously).
  2347. III. MISCELLANEOUS
  2348. - Added support for the DESTDIR variable during `make install'.
  2349. This simplifies packaging of FreeType.
  2350. - Included modified copies of the ZLib sources in `src/gzip' in
  2351. order to support gzip-compressed PCF fonts. We do not use the
  2352. system-provided zlib for now, though this is a probable
  2353. enhancement for future releases.
  2354. - The DocMaker tool used to generate the on-line API reference has
  2355. been completely rewritten. It is now located in
  2356. `src/tools/docmaker/docmaker.py'. Features:
  2357. - better cross-referenced output
  2358. - more polished output
  2359. - uses Python regular expressions (though it didn't speed the
  2360. program)
  2361. - much more modular structure, which allows for different
  2362. `backends' in order to generate HTML, XML, or whatever
  2363. format.
  2364. One can regenerate the API reference by calling:
  2365. python src/tools/docmaker/docmaker.py \
  2366. --prefix=ft2 \
  2367. --title=FreeType-2.1.3 \
  2368. --output=<outputdirectory>
  2369. include/freetype/*.h \
  2370. include/freetype/config/*.h \
  2371. include/freetype/cache/*.h
  2372. - A new, experimental, support for incremental font loading (i.e.,
  2373. loading of fonts where the glyphs are not in the font file
  2374. itself, but provided by an external component, like a Postscript
  2375. interpreter) has been added by Graham Asher. This is still work
  2376. in progress, however.
  2377. - A new, EXPERIMENTAL, path stroker has been added. It doesn't
  2378. suffer from severe rounding errors and treat bezier arcs
  2379. directly. Still work in progress (i.e. not part of the official
  2380. API). See the file <freetype/ftstroker.h> for some of the
  2381. details.
  2382. - The massive re-formatting of sources and internal re-design is
  2383. still under-way. Many internal functions, constants, and types
  2384. have been renamed.
  2385. ======================================================================
  2386. CHANGES BETWEEN 2.1.2 and 2.1.1
  2387. I. IMPORTANT BUG FIXES
  2388. - Many font drivers didn't select a Unicode charmap by default
  2389. when a new face was opened (with the FT_CONFIG_OPTION_USE_CMAPS
  2390. options enabled), causing many applications to not be able to
  2391. display text correctly with the 2.1.x releases.
  2392. - The PFR driver had a bug in its composite loading code that
  2393. produces incorrectly placed accents with many fonts.
  2394. - The Type42 driver crashed sometimes due to a nasty bug.
  2395. - The Type 1 custom encoding charmap didn't handle the case where
  2396. the first glyph index wasn't 0.
  2397. - A serious typo in the TrueType composite loader produced
  2398. incorrectly placed glyphs in fonts like `Wingdings' and a few
  2399. others.
  2400. II. MISCELLANEOUS
  2401. - The Win32 Visual C++ project file has been updated to include
  2402. the PFR driver as well.
  2403. - `freetype.m4' is now installed by default by `make install' on
  2404. Unix systems.
  2405. - The function FT_Get_PS_Font_Info now works with CID and Type42
  2406. fonts as well.
  2407. ======================================================================
  2408. CHANGES BETWEEN 2.1.1 and 2.1.0
  2409. I. IMPORTANT BUG FIXES
  2410. - The `version_info' returned by `freetype-config' in 2.1.0
  2411. returned an invalid value. It now returns 9:1:3 (2.0.9 returned
  2412. 9:0:3).
  2413. - Version 2.1.0 couldn't be linked against applications on Win32
  2414. and Amiga systems due to a new debug function that wasn't
  2415. properly propagated to the system-specific directory in
  2416. `builds'.
  2417. - Various MacOS and Mac OS X specific fixes.
  2418. - Fixed a bug in the TrueType charmap validation routines that
  2419. made version 2.1.0 too restrictive -- many popular fonts have
  2420. been rejected.
  2421. - There was still a very small difference between the monochrome
  2422. glyph bitmaps produced by FreeType 1.x and FreeType 2.x with the
  2423. bytecode interpreter enabled. This was caused by an invalid
  2424. flag setting in the TrueType glyph loader, making the rasterizer
  2425. change its drop-out control mode. Now the results should
  2426. _really_ be completely identical.
  2427. - The TrueType name table loader has been improved to support many
  2428. popular though buggy Asian fonts. It now ignores empty name
  2429. entries, invalid pointer offsets and a few other incorrect
  2430. subtleties. Moreover, name strings are now loaded on demand,
  2431. which reduces the memory load of many faces (e.g. the ARIAL.TTF
  2432. font file contains a 10kByte name table with 70 names).
  2433. - Fixed a bug in the Postscript hinter that prevented family blues
  2434. substitution to happen correctly.
  2435. II. NEW FEATURES
  2436. - Three new font drivers in this release:
  2437. * A BDF font driver, contributed by Franco Zappa Nardelli,
  2438. heavily modified by Werner Lemberg. It also supports
  2439. anti-aliased bitmaps (using a slightly extended BDF format).
  2440. * A Type42 font driver, contributed by Roberto Alameda. It is
  2441. still experimental but seems to work relatively well.
  2442. * A PFR font driver, contributed by David Turner himself. It
  2443. doesn't support PFR hinting -- note that BitStream has at
  2444. least two patents on this format!
  2445. III. MISCELLANEOUS
  2446. - The cache sub-system has been optimized in important ways.
  2447. Cache hits are now significantly faster. For example, using the
  2448. CMap cache is about twice faster than calling FT_Get_Char_Index
  2449. on most platforms. Similarly, using an SBit cache is about five
  2450. times faster than loading the bitmaps from a bitmap file, and
  2451. 300 to 500 times faster than generating them from a scalable
  2452. format.
  2453. Note that you should recompile your sources if you designed a
  2454. custom cache class for the FT2 Cache subsystem, since the
  2455. changes performed are source, but not binary, compatible.
  2456. ======================================================================
  2457. CHANGES BETWEEN 2.1.0 and 2.0.9
  2458. I. IMPORTANT BUG FIXES
  2459. - The TrueType bytecode interpreter has been fixed to produce
  2460. _exactly_ the same output as FreeType 1.x. Previous differences
  2461. were due to slightly distinct fixed-point computation routines
  2462. used to perform dot products and vector length measurements.
  2463. It seems that native TrueType hinting is _extremely_ sensitive
  2464. to rounding errors. The required vector computation routines
  2465. have been optimized and placed within the `ttinterp.c' file.
  2466. - Fixed the parsing of accelerator tables in the PCF font driver.
  2467. - Fixed the Type1 glyph loader routine used to compute the font's
  2468. maximum advance width.
  2469. II. NEW FEATURES
  2470. - The `configure' script used on Unix systems has been modified to
  2471. check that GNU Make is being used to build the library.
  2472. Otherwise, it will display a message proposing to use the
  2473. GNUMAKE environment variable to name it.
  2474. The Unix-specific file README.UNX has been modified accordingly.
  2475. III. MISCELLANEOUS
  2476. - The FreeType License in `docs/FTL.TXT' has been updated to
  2477. include a proposed preferred disclaimer. If you are using
  2478. FreeType in your products, you are encouraged (but not mandated)
  2479. to use the following text in your documentation:
  2480. """
  2481. Portions of this software are copyright © 1996-2002 The
  2482. FreeType Project (www.freetype.org). All rights reserved.
  2483. """
  2484. - The default size of the render pool has been reduced to 16kByte.
  2485. This shouldn't result in any noticeable performance penalty,
  2486. unless you are using the engine as-is to render very large and
  2487. complex glyphs.
  2488. - The FreeType 2 redesign has begun. More information can be
  2489. found at this URL:
  2490. https://www.freetype.org/freetype2/redesign.html
  2491. The following internal changes have been performed within the
  2492. sources of this release:
  2493. - Many internal types have been renamed to increase
  2494. consistency. The following should be true, except for
  2495. public types:
  2496. * All structure types have a name ending in `Rec' (short
  2497. for `record').
  2498. * A pointer-to-structure type has the same name as the
  2499. structure, _without_ the `Rec' suffix.
  2500. Example:
  2501. typedef struct FooRec_
  2502. {
  2503. ...
  2504. } FooRec, *Foo;
  2505. - Many internal macros have been renamed to increase
  2506. consistency. The following should be true:
  2507. * All macros have a name beginning with `FT_'. This
  2508. required a few changes like
  2509. ALLOC => FT_ALLOC
  2510. FREE => FT_FREE
  2511. REALLOC => FT_REALLOC
  2512. * All macros are completely UPPERCASE. This required a
  2513. few changes like:
  2514. READ_Short => FT_READ_SHORT
  2515. NEXT_Short => FT_NEXT_SHORT
  2516. GET_ULongLE => FT_GET_ULONG_LE
  2517. MEM_Set => FT_MEM_SET
  2518. MEM_Copy => FT_MEM_COPY
  2519. etc.
  2520. * Whenever possible, all macro names follow the
  2521. FT_<OBJECT>_<METHOD> pattern. For example
  2522. ACCESS_Frame => FT_FRAME_ENTER
  2523. FORGET_Frame => FT_FRAME_EXIT
  2524. EXTRACT_Frame => FT_FRAME_EXTRACT
  2525. RELEASE_Frame => FT_FRAME_RELEASE
  2526. FILE_Pos => FT_STREAM_POS
  2527. FILE_Seek => FT_STREAM_SEEK
  2528. FILE_Read => FT_STREAM_READ
  2529. FILE_ReadAt => FT_STREAM_READ_AT
  2530. READ_Fields => FT_STREAM_READ_FIELDS
  2531. - Many internal functions have been renamed to follow the
  2532. FT_<Object>_<Method> pattern. For example:
  2533. FT_Seek_Stream => FT_Stream_Seek
  2534. FT_Read_Stream_At => FT_Stream_ReadAt
  2535. FT_Done_Stream => FT_Stream_Close
  2536. FT_New_Stream => FT_Stream_Open
  2537. FT_New_Memory_Stream => FT_Stream_OpenMemory
  2538. FT_Extract_Frame => FT_Stream_ExtractFrame
  2539. Note that method names do not contain `_'.
  2540. - The FT_ALLOC_ARRAY and FT_REALLOC_ARRAY have been replaced
  2541. with FT_NEW_ARRAY and FT_RENEW_ARRAY which do not take a
  2542. type as the fourth argument. Instead, the array element
  2543. type size is computed automatically from the type of the
  2544. target pointer used.
  2545. - A new object class, FT_CMap, has been introduced. These
  2546. internal objects are used to model character maps. This
  2547. eases the support of additional charmap types within the
  2548. engine.
  2549. - A new configuration file named `ftstdlib.h' has been added
  2550. to `include/freetype/config'. It is used to define aliases
  2551. for _every_ routine of the ISO C library that the font
  2552. engine uses. Each aliases has a `ft_' prefix
  2553. (e.g. `ft_strlen' is an alias for `strlen').
  2554. This is used to ease the porting of FreeType 2 to exotic
  2555. runtime environments where the ISO C Library isn't available
  2556. (e.g. XFree86 extension modules).
  2557. More details are available in the `ChangeLog' file.
  2558. ======================================================================
  2559. CHANGES BETWEEN 2.0.9 and 2.0.8
  2560. I. IMPORTANT BUG FIXES
  2561. - Certain fonts like `foxjump.ttf' contain broken name tables with
  2562. invalid entries and wild offsets. This caused FreeType to crash
  2563. when trying to load them.
  2564. The SFNT `name' table loader has been fixed to be able to
  2565. support these strange fonts.
  2566. Moreover, the code in charge of processing this table has been
  2567. changed to always favour Windows-formatted entries over other
  2568. ones. Hence, a font that works on Windows but not on the Mac
  2569. will load cleanly in FreeType and report accurate values for
  2570. Family & PostScript names.
  2571. - The CID font driver has been fixed. It unfortunately returned a
  2572. Postscript Font name with a leading slash, as in
  2573. `/MunhwaGothic-Regular'.
  2574. - FreeType 2 should now compile fine on AIX 4.3.3 as a shared
  2575. library.
  2576. - A bug in the Postscript hinter has been found and fixed,
  2577. removing un-even stem widths at small pixel sizes (like 14-17).
  2578. This improves the quality of a certain number of Postscript
  2579. fonts.
  2580. II. NEW FEATURES
  2581. - A new function named `FT_Library_Version' has been added to
  2582. return the current library's major, minor, and patch version
  2583. numbers. This is important since the macros FREETYPE_MAJOR,
  2584. FREETYPE_MINOR, and FREETYPE_PATCH cannot be used when the
  2585. library is dynamically linked by a program.
  2586. - Two new APIs have been added: `FT_Get_First_Char' and
  2587. `FT_Get_Next_Char'.
  2588. Together, these can be used to iterate efficiently over the
  2589. currently selected charmap of a given face. Read the API
  2590. reference for more details.
  2591. III. MISCELLANEOUS
  2592. - The FreeType sources are under heavy internal re-factoring. As
  2593. a consequence, we have created a branch named `STABLE' on the
  2594. CVS to hold all future releases/fixes in the 2.0.x family.
  2595. The HEAD branch now contains the re-factored sources and
  2596. shouldn't be used for testing or packaging new releases. In
  2597. case you would like to access the 2.0.9 sources from our CVS
  2598. repository, use the tag `VER-2-0-9'.
  2599. ======================================================================
  2600. CHANGES BETWEEN 2.0.8 and 2.0.7
  2601. I. IMPORTANT BUG FIXES
  2602. - There was a small but nasty bug in `freetype-config.in' which
  2603. caused the `freetype-config' script to fail on Unix.
  2604. This didn't prevent the installation of the library or even its
  2605. execution, but caused problems when trying to compile many Unix
  2606. packages that depend on it.
  2607. - Some TrueType or OpenType fonts embedded in PDF documents do not
  2608. have a 'cmap', 'post' and 'name' as is required by the
  2609. specification. FreeType no longer refuses to load such fonts.
  2610. - Various fixes to the PCF font driver.
  2611. ======================================================================
  2612. CHANGES BETWEEN 2.0.7 and 2.0.6
  2613. I. IMPORTANT BUG FIXES
  2614. - Fixed two bugs in the Type 1 font driver. The first one
  2615. resulted in a memory leak in subtle cases. The other one caused
  2616. FreeType to crash when trying to load `.gsf' files (Ghostscript
  2617. so-called Postscript fonts).
  2618. (This made _many_ KDE applications crash on certain systems.
  2619. FreeType _is_ becoming a critical system component on Linux :-)
  2620. - Fixed a memory leak in the CFF font driver.
  2621. - Fixed a memory leak in the PCF font driver.
  2622. - Fixed the Visual C++ project file
  2623. `builds/win32/visualc/freetype.dsp' since it didn't include the
  2624. Postscript hinter component, causing errors at build time.
  2625. - Fixed a small rendering bug in the anti-aliased renderer that
  2626. only occurred when trying to draw thin (less than 1 pixel)
  2627. strokes.
  2628. - Fixed `builds/unix/freetype2.a4' which is used to generate a
  2629. valid `freetype2.m4' for use with autoconf.
  2630. - Fixed the OpenVMS Makefiles.
  2631. II. MISCELLANEOUS
  2632. - Added `configure' and `install' scripts to the top-level
  2633. directory. A GNU-style installation is thus now easily possible
  2634. with
  2635. ./configure <options>
  2636. make
  2637. make install
  2638. ======================================================================
  2639. CHANGES BETWEEN 2.0.6 and 2.0.5
  2640. I. IMPORTANT BUG FIXES
  2641. - It wasn't possible to load embedded bitmaps when the auto-hinter
  2642. was used. This is now fixed.
  2643. - The TrueType font driver didn't load some composites properly
  2644. (the sub-glyphs were slightly shifted, and this was only
  2645. noticeable when using monochrome rendering).
  2646. - Various fixes to the auto-hinter. They merely improve the
  2647. output of sans-serif fonts. Note that there are still problems
  2648. with serifed fonts and composites (accented characters).
  2649. - All scalable font drivers erroneously returned un-fitted glyph
  2650. advances when hinting was requested. This created problems for
  2651. a number of layout applications. This is a very old bug that
  2652. got undetected mainly because most test/demo program perform
  2653. rounding explicitly or implicitly (through the cache).
  2654. - `FT_Glyph_To_Bitmap' did erroneously modify the source glyph in
  2655. certain cases.
  2656. - `glnames.py' still contained a bug that made FreeType return
  2657. invalid names for certain glyphs.
  2658. - The library crashed when loading certain Type 1 fonts like
  2659. `sadn.pfb' (`Stalingrad Normal'), which appear to contain
  2660. pathetic font info dictionaries.
  2661. - The TrueType glyph loader is now much more paranoid and checks
  2662. everything when loading a given glyph image. This was necessary
  2663. to avoid problems (crashes and/or memory overwrites) with broken
  2664. fonts that came from a really buggy automatic font converter.
  2665. II. IMPORTANT UPDATES AND NEW FEATURES
  2666. - Important updates to the Mac-specific parts of the library.
  2667. - The caching sub-system has been completely re-designed, and its
  2668. API has evolved (the old one is still supported for backward
  2669. compatibility).
  2670. The documentation for it is not yet completed, sorry. For now,
  2671. you are encouraged to continue using the old API. However, the
  2672. ftview demo program in the ft2demos package has already been
  2673. updated to use the new caching functions.
  2674. - A new charmap cache is provided too. See `FTC_CMapCache'. This
  2675. is useful to perform character code -> glyph index translations
  2676. quickly, without the need for an opened FT_Face.
  2677. - A NEW POSTSCRIPT HINTER module has been added to support native
  2678. hints in the following formats: PostScript Type 1, PostScript
  2679. CID, and CFF/CEF.
  2680. Please test! Note that the auto-hinter produces better results
  2681. for a number of badly-hinted fonts (mostly auto-generated ones)
  2682. though.
  2683. - A memory debugger is now part of the standard FreeType sources.
  2684. To enable it, define FT_DEBUG_MEMORY in
  2685. <freetype/config/ftoption.h>, and recompile the library.
  2686. Additionally, define the _environment_ variable FT_DEBUG_MEMORY
  2687. and run any program using FreeType. When the library is exited,
  2688. a summary of memory footprints and possible leaks will be
  2689. displayed.
  2690. This works transparently with _any_ program that uses FreeType.
  2691. However, you will need a lot of memory to use this (allocated
  2692. blocks are never released to the heap to detect double deletes
  2693. easily).
  2694. III. MISCELLANEOUS
  2695. - We are aware of subtle differences between the output of
  2696. FreeType versions 1 and 2 when it comes to monochrome
  2697. TrueType-hinted glyphs. These are most probably due to small
  2698. differences in the monochrome rasterizers and will be worked out
  2699. in an upcoming release.
  2700. - We have decided to fork the sources in a `stable' branch, and an
  2701. `unstable' one, since FreeType is becoming a critical component
  2702. of many Unix systems.
  2703. The next bug-fix releases of the library will be named 2.0.7,
  2704. 2.0.8, etc., while the `2.1' branch will contain a version of
  2705. the sources where we will start major reworking of the library's
  2706. internals, in order to produce FreeType 2.2.0 (or even 3.0) in a
  2707. more distant future.
  2708. We also hope that this scheme will allow much more frequent
  2709. releases than in the past.
  2710. ======================================================================
  2711. CHANGES BETWEEN 2.0.5 and 2.0.4
  2712. NOTE THAT 2.0.5 DOES NOT CONTAIN THE POSTSCRIPT HINTER. THIS MODULE
  2713. WILL BE PART OF THE NEXT RELEASE (EITHER 2.0.6 or 2.1)
  2714. - Fixed a bug that made certain glyphs, like `Cacute', `cacute' and
  2715. `lslash' unavailable from Unicode charmaps of Postscript fonts.
  2716. This prevented the correct display of Polish text, for example.
  2717. - The kerning table of Type 1 fonts was loaded by FreeType, when its
  2718. AFM file was attached to its face, but the
  2719. FT_FACE_FLAG_HAS_KERNING bit flags was not set correctly,
  2720. preventing FT_Get_Kerning to return meaningful values.
  2721. - Improved SFNT (TrueType & OpenType) charmap support. Slightly
  2722. better performance, as well as support for the new formats defined
  2723. by the OpenType 1.3 specification (8, 10, and 12)
  2724. - Fixed a serious typo in `src/base/ftcalc.c' which caused invalid
  2725. computations in certain rare cases, producing ugly artefacts.
  2726. - The size of the EM square is computed with a more accurate
  2727. algorithm for Postscript fonts. The old one caused slight errors
  2728. with embedded fonts found in PDF documents.
  2729. - Fixed a bug in the cache manager that prevented normal LRU
  2730. behaviour within the cache manager, causing unnecessary reloads
  2731. (for FT_Face and FT_Size objects only).
  2732. - Added a new function named `FT_Get_Name_Index' to retrieve the
  2733. glyph index of a given glyph name, when found in a face.
  2734. - Added a new function named `FT_Get_Postscript_Name' to retrieve
  2735. the `unique' Postscript font name of a given face.
  2736. - Added a new public header size named FT_SIZES_H (or
  2737. <freetype/ftsizes.h>) providing new FT_Size-management functions:
  2738. FT_New_Size, FT_Activate_Size, FT_Done_Size.
  2739. - Fixed a reallocation bug that generated a dangling pointer (and
  2740. possibly memory leaks) with Postscript fonts (in
  2741. src/psaux/psobjs.c).
  2742. - Many fixes for 16-bit correctness.
  2743. - Removed many pedantic compiler warnings from the sources.
  2744. - Added an Amiga build directory in `builds/amiga'.
  2745. ======================================================================
  2746. CHANGES BETWEEN 2.0.4 and 2.0.3
  2747. - Fixed a rather annoying bug that was introduced in 2.0.3. Namely,
  2748. the font transformation set through FT_Set_Transform was applied
  2749. twice to auto-hinted glyphs, resulting in incorrectly rotated text
  2750. output.
  2751. - Fixed _many_ compiler warnings. FT2 should now compile cleanly
  2752. with Visual C++'s most pedantic warning level (/W4). It already
  2753. compiled fine with GCC and a few other compilers.
  2754. - Fixed a bug that prevented the linear advance width of composite
  2755. TrueType glyphs to be correctly returned.
  2756. - Fixed the Visual C++ project files located in
  2757. `builds/win32/visualc' (previous versions used older names of the
  2758. library).
  2759. - Many 32-bit constants have an `L' appended to their value, in
  2760. order to improve the 16-bitness of the code. Someone is actually
  2761. trying to use FT2 on an Atari ST machine!
  2762. - Updated the `builds/detect.mk' file in order to automatically
  2763. build FT2 on AIX systems. AIX uses `/usr/sbin/init' instead of
  2764. `/sbin/init' and wasn't previously detected as a Unix platform by
  2765. the FreeType build system.
  2766. - Updated the Unix-specific portions of the build system (new
  2767. libtool version, etc.).
  2768. - The SFNT kerning loader now ensures that the table is sorted
  2769. (since some problem fonts do not meet this requirement).
  2770. =======================================================================
  2771. CHANGES BETWEEN 2.0.3 and 2.0.2
  2772. I. CHANGES TO THE MODULES / FONT DRIVERS
  2773. - THE AUTO-HINTER HAS BEEN SLIGHTLY IMPROVED, in order to fix
  2774. several annoying artefacts, mainly:
  2775. - Blue zone alignment of horizontal stems wasn't performed
  2776. correctly, resulting in artefacts like the `d' being placed
  2777. one pixel below the `b' in some fonts like Time New Roman.
  2778. - Overshoot thresholding wasn't performed correctly, creating
  2779. unpleasant artefacts at large character pixel sizes.
  2780. - Composite glyph loading has been simplified. This gets rid
  2781. of various artefacts where the components of a composite
  2782. glyphs were not correctly spaced.
  2783. These are the last changes to the current auto-hinting module.
  2784. A new hinting sub-system is currently in the work in order to
  2785. support native hints in Type 1 / CFF / OpenType fonts, as well
  2786. as globally improve rendering.
  2787. - The PCF driver has been fixed. It reported invalid glyph
  2788. dimensions for the fonts available on Solaris.
  2789. - The Type 1, CID and CFF drivers have been modified to fix the
  2790. computation of the EM size.
  2791. - The Type 1 driver has been fixed to avoid a dangerous bug that
  2792. crashed the library with non-conforming fonts (i.e. ones that do
  2793. not place the .notdef glyph at position 0).
  2794. - The TrueType driver had a rather subtle bug (dangling pointer
  2795. when loading composite glyphs) that could crash the library in
  2796. rare occasions!
  2797. II. HIGH-LEVEL API CHANGES
  2798. - The error code enumeration values have been changed. An error
  2799. value is decomposed in a generic error code, and a module
  2800. number. see <freetype/fterrors.h> for details.
  2801. - A new public header file has been introduced, named
  2802. FT_TRIGONOMETRY_H (include/freetype/fttrigon.h), providing
  2803. trigonometric functions to compute sines, cosines, arctangents,
  2804. etc. with 16.16 fixed precision. The implementation is based on
  2805. the CORDIC algorithm and is very fast while being sufficiently
  2806. accurate.
  2807. III. INTERNALS
  2808. - Added BeOS-specific files in the old build sub-system. Note
  2809. that no changes were required to compile the library with Jam.
  2810. - The configuration is now capable of automatically detecting
  2811. 64-bit integers on a set of predefined compilers (GCC, Visual
  2812. C++, Borland C++) and will use them by default. This provides a
  2813. small performance boost.
  2814. - A small memory leak that happened when opening 0-sized files
  2815. (duh!) have been fixed.
  2816. - Fixed bezier stack depth bug in the routines provided by the
  2817. FT_BBOX_H header file. Also fixed similar bugs in the
  2818. rasterizers.
  2819. - The outline bounding box code has been rewritten to use direct
  2820. computations, instead of bezier sub-division, to compute the
  2821. exact bounding box of glyphs. This is slightly slower but more
  2822. accurate.
  2823. - The build system has been improved and fixed, mainly to support
  2824. `make' on Windows 2000 correctly, avoid problems with `make
  2825. distclean' on non Unix systems, etc.
  2826. - Hexadecimal constants have been suffixed with `U' to avoid
  2827. problems with certain compilers on 64-bit platforms.
  2828. - A new directory named `src/tools' has been created. It contains
  2829. Python scripts and simple unit test programs used to develop the
  2830. library.
  2831. - The DocMaker tool has been moved from `docs' to `src/tools' and
  2832. has been updated with the following:
  2833. - Now accepts the `--title=XXXX' or `-t XXXX' option from the
  2834. command line to set the project's name in the generated API
  2835. reference.
  2836. - Now accepts the `--output=DIR' or `-o DIR' option from the
  2837. command line to set the output directory for all generated
  2838. HTML files.
  2839. - Now accepts the `--prefix=XXXX' or `-p XXX' option from the
  2840. command line to set the file prefix to use for all
  2841. generated HTML files.
  2842. - Now generates the current time/data on each generated page
  2843. in order to distinguish between versions.
  2844. DocMaker can be used with other projects now, not only FT2
  2845. (e.g. MLib, FTLayout, etc.).
  2846. ======================================================================
  2847. CHANGES BETWEEN 2.0.2 and 2.0.1
  2848. I. CHANGES TO THE MODULES / FONT DRIVERS
  2849. - THE TRUETYPE BYTECODE INTERPRETER IS NOW TURNED OFF, in order to
  2850. avoid legal problems with the Apple patents. It seems that we
  2851. mistakenly turned this option on in previous releases of the
  2852. build.
  2853. Note that if you want to use the bytecode interpreter in order
  2854. to get high-quality TrueType rendering, you will need to toggle
  2855. by hand the definition of the
  2856. TT_CONFIG_OPTION_BYTECODE_INTERPRETER macro in the file
  2857. `include/freetype/config/ftoption.h'.
  2858. - The CFF driver has been improved by Tom Kacvinsky and Sander van
  2859. der Wal:
  2860. * Support for `seac' emulation.
  2861. * Support for `dotsection'.
  2862. * Support for retrieving glyph names through
  2863. `FT_Get_Glyph_Name'.
  2864. The first two items are necessary to correctly a large number of
  2865. Type 1 fonts converted to the CFF formats by Adobe Acrobat.
  2866. - The Type 1 driver was also improved by Tom & others:
  2867. * Better EM size computation.
  2868. * Better support for synthetic (transformed) fonts.
  2869. * The Type 1 driver returns the charstrings corresponding to
  2870. each glyph in the `glyph->control_data' field after a call to
  2871. `FT_Load_Glyph' (thanks Ha Shao).
  2872. - Various other bugfixes, including the following:
  2873. * Fixed a nasty memory leak in the Type 1 driver.
  2874. * The autohinter and the pcf driver used static writable data
  2875. when they shouldn't.
  2876. * Many casts were added to make the code more 64-bits safe. It
  2877. also now compiles on Windows XP 64-bits without warnings.
  2878. * Some incorrect writable statics were removed in the `autohint'
  2879. and `pcf' drivers. FreeType 2 now compiles on Epoc again.
  2880. II. CHANGES TO THE HIGH-LEVEL API
  2881. - The library header files inclusion scheme has been changed. The
  2882. old scheme looked like:
  2883. #include <freetype/freetype.h>
  2884. #include <freetype/ftglyph.h>
  2885. #include <freetype/ftcache.h>
  2886. #include <freetype/cache/ftimage.h>
  2887. Now you should use:
  2888. #include <ft2build.h>
  2889. #include FT_FREETYPE_H
  2890. #include FT_GLYPH_H
  2891. #include FT_CACHE_H
  2892. #include FT_CACHE_IMAGE_H
  2893. NOTE THAT THE OLD INCLUSION SCHEME WILL STILL WORK WITH THIS
  2894. RELEASE. HOWEVER, WE DO NOT GUARANTEE THAT THIS WILL STILL BE
  2895. TRUE IN THE NEXT ONE (A.K.A. FREETYPE 2.1).
  2896. The file <ft2build.h> is used to define the header filename
  2897. macros. The complete and commented list of macros is available
  2898. in the API reference under the section name `Header File Macros'
  2899. in Chapter I.
  2900. For more information, see section I of the following document:
  2901. https://www.freetype.org/freetype2/docs/tutorial/step1.html
  2902. - Many, many comments have been added to the public source file in
  2903. order to automatically generate the API Reference through the
  2904. `docmaker.py' Python script.
  2905. The latter has been updated to support the grouping of sections
  2906. in chapters and better index sort. See:
  2907. https://www.freetype.org/freetype2/docs/reference/ft2-toc.html
  2908. III. CHANGES TO THE BUILD PROCESS
  2909. - If you are not building FreeType 2 with its own build system
  2910. (but with your own Makefiles or project files), you will need to
  2911. be aware that the build process has changed a little bit.
  2912. You don't need to put the `src' directory in the include path
  2913. when compiling any FT2 component. Instead, simply put the
  2914. component's directory in the current include path.
  2915. So, if you were doing something like:
  2916. cc -c -Iinclude -Isrc src/base/ftbase.c
  2917. change the line to:
  2918. cc -c -Iinclude -Isrc/base src/base/ftbase.c
  2919. If you were doing something like:
  2920. cd src/base
  2921. cc -c -I../../include -I.. ftbase.c
  2922. change it to:
  2923. cd src/base
  2924. cc -c -I../../include ftbase.c
  2925. ======================================================================
  2926. CHANGES BETWEEN 2.0.1 and 2.0
  2927. 2.0.1 introduces a few changes:
  2928. - Fixed many bugs related to the support of CFF / OpenType fonts.
  2929. These formats are now much better supported though there is
  2930. still work planned to deal with charset tables and PDF-embedded
  2931. CFF files that use the old `seac' command.
  2932. - The library could not be compiled in debug mode with a very
  2933. small number of C compilers whose pre-processors didn't
  2934. implement the `##' directive correctly (i.e. per se the ANSI C
  2935. specification!) An elegant fix was found.
  2936. - Added support for the free Borland command-line C++ Builder
  2937. compiler. Use `make setup bcc32'. Also fixed a few source
  2938. lines that generated new warnings with BCC32.
  2939. - Fixed a bug in FT_Outline_Get_BBox when computing the extrema of
  2940. a conic Bezier arc.
  2941. - Updated the INSTALL file to add IDE compilation.
  2942. - Other minor bug fixes, from invalid Type 1 style flags to
  2943. correct support of synthetic (obliqued) fonts in the
  2944. auto-hinter, better support for embedded bitmaps in a SFNT font.
  2945. - Fixed some problems with `freetype-config'.
  2946. Finally, the `standard' scheme for including FreeType headers is now
  2947. gradually changing, but this will be explained in a later release
  2948. (probably 2.0.2).
  2949. And very special thanks to Tom Kacvinsky and YAMANO-UCHI Hidetoshi
  2950. for their contributions!
  2951. ======================================================================
  2952. CHANGES BETWEEN beta8 and 2.0
  2953. - Changed the default installation path for public headers from
  2954. `include/freetype' to `include/freetype2'.
  2955. Also added a new `freetype-config' that is automatically generated
  2956. and installed on Unix and Cygwin systems. The script itself is
  2957. used to retrieve the current install path, C compilation flags as
  2958. well as linker flags.
  2959. - Fixed several small bugs:
  2960. * Incorrect max advance width for fixed-pitch Type 1 fonts.
  2961. * Incorrect glyph names for certain TrueType fonts.
  2962. * The glyph advance was not copied when FT_Glyph_To_Bitmap was
  2963. called.
  2964. * The linearHoriAdvance and linearVertAdvance fields were not
  2965. correctly returned for glyphs processed by the auto-hinter.
  2966. * `type1z' renamed back to `type1'; the old `type1' module has
  2967. been removed.
  2968. - Revamped the build system to make it a lot more generic. This
  2969. will allow us to re-use nearly un-modified in lots of other
  2970. projects (including FreeType Layout).
  2971. - Changed `cid' to use `psaux' too.
  2972. - Added the cache sub-system. See <freetype/ftcache.h> as well as
  2973. the sources in `src/cache'. Note that it compiles but is still
  2974. untested for now.
  2975. - Updated `docs/docmaker.py', a draft API reference is available at
  2976. https://web.archive.org/web/20001215173400/http://www.freetype.org:80/ft2api.html.
  2977. - Changed `type1' to use `psaux'.
  2978. - Created a new module named `psaux' to hold the Type 1 & Type 2
  2979. parsing routines. It should be used by `type1', `cid', and `cff'
  2980. in the future.
  2981. - Fixed an important bug in `FT_Glyph_Get_CBox'.
  2982. - Fixed some compiler warnings that happened since the TrueType
  2983. bytecode decoder was deactivated by default.
  2984. - Fixed two memory leaks:
  2985. * The memory manager (16 bytes) isn't released in
  2986. FT_Done_FreeType!
  2987. * Using custom input streams, the copy of the original stream was
  2988. never released.
  2989. - Fixed the auto-hinter by performing automatic computation of the
  2990. `filling direction' of each glyph. This is done through a simple
  2991. and fast approximation, and seems to work (problems spotted by
  2992. Werner though). The Arphic fonts are a lot nicer though there are
  2993. still a lot of things to do to handle Asian fonts correctly.
  2994. ======================================================================
  2995. BETA-8 (RELEASE CANDIDATE) CHANGES
  2996. - Deactivated the TrueType bytecode interpreter by default.
  2997. - Deactivated the `src/type1' font driver. Now `src/type1z' is used
  2998. by default.
  2999. - Updates to the build system. We now compile the library correctly
  3000. under Unix system through `configure' which is automatically
  3001. called on the first `make' invocation.
  3002. - Added the auto-hinting module! Fixing some bugs here and there.
  3003. - Found some bugs in the composite loader (seac) of the Type1-based
  3004. font drivers.
  3005. - Renamed the directory `freetype2/config' to `freetype2/builds' and
  3006. updated all relevant files.
  3007. - Found a memory leak in the `type1' driver.
  3008. - Incorporated Tom's patches to support flex operators correctly in
  3009. OpenType/CFF fonts. Now all I need is to support pure CFF and CEF
  3010. fonts to be done with this driver :-)
  3011. - Added the Windows FNT/FON driver in `src/winfonts'. For now, it
  3012. always `simulates' a Unicode charmap, so it shouldn't be
  3013. considered completed right now.
  3014. It is there to be more a proof of concept than anything else
  3015. anyway. The driver is a single C source file, that compiles to 3
  3016. Kb of code.
  3017. I'm still working on the PCF/BDF drivers, but I'm too lazy to
  3018. finish them now.
  3019. - CHANGES TO THE HIGH-LEVEL API
  3020. * FT_Get_Kerning has a new parameter that allows you to select the
  3021. coordinates of the kerning vector (font units, scaled, scaled +
  3022. grid-fitted).
  3023. * The outline functions are now in <freetype/ftoutln.h> and not
  3024. part of <freetype/freetype.h> anymore.
  3025. * <freetype/ftmodule.h> now contains declarations for
  3026. FT_New_Library, FT_Done_Library, FT_Add_Default_Modules.
  3027. * The so-called convenience functions have moved from `ftoutln.c'
  3028. to `ftglyph.c', and are thus available with this optional
  3029. component of the library. They are declared in
  3030. <freetype/ftglyph.h> now.
  3031. * Anti-aliased rendering is now the default for FT_Render_Glyph
  3032. (i.e. corresponds to render_mode == 0 == ft_render_mode_normal).
  3033. To generate a monochrome bitmap, use ft_render_mode_mono, or the
  3034. FT_LOAD_MONOCHROME flag in FT_Load_Glyph/FT_Load_Char.
  3035. FT_LOAD_ANTI_ALIAS is still defined, but values to 0.
  3036. * <freetype/freetype.h> now include <freetype/config/ftconfig.h>,
  3037. solving a few headaches :-)
  3038. * The type FT_GlyphSlotRec has now a `library' field.
  3039. - CHANGES TO THE `ftglyph.h' API
  3040. This API has been severely modified in order to make it simpler,
  3041. clearer, and more efficient. It certainly now looks like a real
  3042. `glyph factory' object, and allows client applications to manage
  3043. (i.e. transform, bbox and render) glyph images without ever
  3044. knowing their original format.
  3045. - Added support for CID-keyed fonts to the CFF driver. Maybe
  3046. support for pure CFF + CEF fonts should come in?
  3047. - Cleaned up source code in order to avoid two functions with the
  3048. same name. Also changed the names of the files in `type1z' from
  3049. `t1XXXX' to `z1XXXX' in order to avoid any conflicts.
  3050. `make multi' now works well :-)
  3051. Also removed the use of `cidafm' for now, even if the source files
  3052. are still there. This functionality will certainly go into a
  3053. specific module.
  3054. - ADDED SUPPORT FOR THE AUTO-HINTER
  3055. It works :-) I have a demo program which simply is a copy of
  3056. `ftview' that does a `FT_Add_Module(library,
  3057. &autohinter_module_class)' after library initialization, and Type
  3058. 1 & OpenType/CFF fonts are now hinted.
  3059. CID fonts are not hinted, as they include no charmap and the
  3060. auto-hinter doesn't include `generic' global metrics computations
  3061. yet.
  3062. Now, I need to release this thing to the FreeType 2 source.
  3063. - CHANGES TO THE RENDERER MODULES
  3064. The monochrome and smooth renderers are now in two distinct
  3065. directories, namely `src/raster1' and `src/smooth'. Note that the
  3066. old `src/renderer' is now gone.
  3067. I ditched the 5-gray-levels renderers. Basically, it involved a
  3068. simple #define toggle in 'src/raster1/ftraster.c'.
  3069. FT_Render_Glyph, FT_Outline_Render & FT_Outline_Get_Bitmap now
  3070. select the best renderer available, depending on render mode. If
  3071. the current renderer for a given glyph image format isn't capable
  3072. of supporting the render mode, another one will be found in the
  3073. library's list. This means that client applications do not need
  3074. to switch or set the renderers themselves (as in the latest
  3075. change), they'll get what they want automatically. At last.
  3076. Changed the demo programs accordingly.
  3077. - MAJOR INTERNAL REDESIGN:
  3078. A lot of internal modifications have been performed lately on the
  3079. source in order to provide the following enhancements:
  3080. * More generic module support:
  3081. The FT_Module type is now defined to represent a handle to a
  3082. given module. The file <freetype/ftmodule.h> contains the
  3083. FT_Module_Class definition, as well as the module-loading public
  3084. API.
  3085. The FT_Driver type is still defined, and still represents a
  3086. pointer to a font driver. Note that FT_Add_Driver is replaced
  3087. by FT_Add_Module, FT_Get_Driver by FT_Get_Module, etc.
  3088. * Support for generic glyph image types:
  3089. The FT_Renderer type is a pointer to a module used to perform
  3090. various operations on glyph image.
  3091. Each renderer is capable of handling images in a single format
  3092. (e.g. ft_glyph_format_outline). Its functions are used to:
  3093. - transform an glyph image
  3094. - render a glyph image into a bitmap
  3095. - return the control box (dimensions) of a given glyph image
  3096. The scan converters `ftraster.c' and `ftgrays.c' have been moved
  3097. to the new directory `src/renderer', and are used to provide two
  3098. default renderer modules.
  3099. One corresponds to the `standard' scan-converter, the other to
  3100. the `smooth' one.
  3101. he current renderer can be set through the new function
  3102. FT_Set_Renderer.
  3103. The old raster-related function FT_Set_Raster, FT_Get_Raster and
  3104. FT_Set_Raster_Mode have now disappeared, in favor of the new:
  3105. FT_Get_Renderer
  3106. FT_Set_Renderer
  3107. See the file <freetype/ftrender.h> for more details.
  3108. These changes were necessary to properly support different
  3109. scalable formats in the future, like bi-color glyphs, etc.
  3110. * Glyph loader object:
  3111. A new internal object, called a 'glyph loader' has been
  3112. introduced in the base layer. It is used by all scalable format
  3113. font drivers to load glyphs and composites.
  3114. This object has been created to reduce the code size of each
  3115. driver, as each one of them basically re-implemented its
  3116. functionality.
  3117. See <freetype/internal/ftobjs.h> and the FT_GlyphLoader type for
  3118. more information.
  3119. * FT_GlyphSlot has new fields:
  3120. In order to support extended features (see below), the
  3121. FT_GlyphSlot structure has a few new fields:
  3122. linearHoriAdvance:
  3123. This field gives the linearly scaled (i.e. scaled but
  3124. unhinted) advance width for the glyph, expressed as a 16.16
  3125. fixed pixel value. This is useful to perform WYSIWYG text.
  3126. linearVertAdvance:
  3127. This field gives the linearly scaled advance height for the
  3128. glyph (relevant in vertical glyph layouts only). This is
  3129. useful to perform WYSIWYG text.
  3130. Note that the two above field replace the removed `metrics2'
  3131. field in the glyph slot.
  3132. advance:
  3133. This field is a vector that gives the transformed advance for
  3134. the glyph. By default, it corresponds to the advance width,
  3135. unless FT_LOAD_VERTICAL_LAYOUT was specified when calling
  3136. FT_Load_Glyph or FT_Load_Char.
  3137. bitmap_left:
  3138. This field gives the distance in integer pixels from the
  3139. current pen position to the left-most pixel of a glyph image
  3140. IF IT IS A BITMAP. It is only valid when the `format' field
  3141. is set to `ft_glyph_format_bitmap', for example, after calling
  3142. the new function FT_Render_Glyph.
  3143. bitmap_top:
  3144. This field gives the distance in integer pixels from the
  3145. current pen position (located on the baseline) to the top-most
  3146. pixel of the glyph image IF IT IS A BITMAP. Positive values
  3147. correspond to upwards Y.
  3148. loader:
  3149. This is a new private field for the glyph slot. Client
  3150. applications should not touch it.
  3151. * Support for transforms and direct rendering in FT_Load_Glyph:
  3152. Most of the functionality found in <freetype/ftglyph.h> has been
  3153. moved to the core library. Hence, the following:
  3154. - A transform can be specified for a face through
  3155. FT_Set_Transform. this transform is applied by FT_Load_Glyph
  3156. to scalable glyph images (i.e. NOT TO BITMAPS) before the
  3157. function returns, unless the bit flag FT_LOAD_IGNORE_TRANSFORM
  3158. was set in the load flags.
  3159. - Once a glyph image has been loaded, it can be directly
  3160. converted to a bitmap by using the new FT_Render_Glyph
  3161. function. Note that this function takes the glyph image from
  3162. the glyph slot, and converts it to a bitmap whose properties
  3163. are returned in `face.glyph.bitmap', `face.glyph.bitmap_left'
  3164. and `face.glyph.bitmap_top'. The original native image might
  3165. be lost after the conversion.
  3166. - When using the new bit flag FT_LOAD_RENDER, the FT_Load_Glyph
  3167. and FT_Load_Char functions will call FT_Render_Glyph
  3168. automatically when needed.
  3169. - Reformatted all modules source code in order to get rid of the
  3170. basic data types redefinitions (i.e. `TT_Int' instead of `FT_Int',
  3171. `T1_Fixed' instead of `FT_Fixed'). Hence the format-specific
  3172. prefixes like `TT_', `T1_', `T2_' and `CID_' are only used for
  3173. relevant structures.
  3174. ======================================================================
  3175. OLD CHANGES FOR BETA 7
  3176. - bug-fixed the OpenType/CFF parser. It now loads and displays my
  3177. two fonts nicely, but I'm pretty certain that more testing is
  3178. needed :-)
  3179. - fixed the crummy Type 1 hinter, it now handles accented characters
  3180. correctly (well, the accent is not always well placed, but that's
  3181. another problem..)
  3182. - added the CID-keyed Type 1 driver in `src/cid'. Works pretty well
  3183. for only 13 Kb of code ;-) Doesn't read AFM files though, nor the
  3184. really useful CMAP files..
  3185. - fixed two bugs in the smooth renderer (src/base/ftgrays.c).
  3186. Thanks to Boris Letocha for spotting them and providing a fix.
  3187. - fixed potential `divide by zero' bugs in ftcalc.c.
  3188. - added source code for the OpenType/CFF driver (still incomplete
  3189. though..)
  3190. - modified the SFNT driver slightly to perform more robust header
  3191. checks in TT_Load_SFNT_Header. This prevents certain font files
  3192. (e.g. some Type 1 Multiple Masters) from being incorrectly
  3193. `recognized' as TrueType font files..
  3194. - moved a lot of stuff from the TrueType driver to the SFNT module,
  3195. this allows greater code re-use between font drivers
  3196. (e.g. TrueType, OpenType, Compact-TrueType, etc..)
  3197. - added a tiny segment cache to the SFNT Charmap 4 decoder, in order
  3198. to minimally speed it up..
  3199. - added support for Multiple Master fonts in `type1z'. There is
  3200. also a new file named <freetype/ftmm.h> which defines functions to
  3201. manage them from client applications.
  3202. The new file `src/base/ftmm.c' is also optional to the engine..
  3203. - various formatting changes (e.g. EXPORT_DEF -> FT_EXPORT_DEF) +
  3204. small bug fixes in FT_Load_Glyph, the `type1' driver, etc..
  3205. - a minor fix to the Type 1 driver to let them apply the font matrix
  3206. correctly (used for many oblique fonts..)
  3207. - some fixes for 64-bit systems (mainly changing some FT_TRACE calls
  3208. to use %p instead of %lx). Thanks to Karl Robillard.
  3209. - fixed some bugs in the sbit loader (src/base/sfnt/ttsbit.c) +
  3210. added a new flag, FT_LOAD_CROP_BITMAP to query that bitmaps be
  3211. cropped when loaded from a file (maybe I should move the bitmap
  3212. cropper to the base layer ??).
  3213. - changed the default number of gray levels of the smooth renderer
  3214. to 256 (instead of the previous 128). Of course, the human eye
  3215. can't see any difference ;-)
  3216. - removed TT_MAX_SUBGLYPHS, there is no static limit on the number
  3217. of subglyphs in a TrueType font now..
  3218. ======================================================================
  3219. OLD CHANGES 16 May 2000
  3220. - tagged `BETA-6' in the CVS tree. This one is a serious release
  3221. candidate even though it doesn't incorporate the auto-hinter yet..
  3222. - various obsolete files were removed, and copyright header updated
  3223. - finally updated the standard raster to fix the monochrome
  3224. rendering bug + re-enable support for 5-gray levels anti-aliasing
  3225. (suck, suck..)
  3226. - created new header files, and modified sources accordingly:
  3227. <freetype/fttypes.h>
  3228. - simple FreeType types, without the API
  3229. <freetype/internal/ftmemory.h>
  3230. - definition of memory-management macros
  3231. - added the `DSIG' (OpenType Digital Signature) tag to
  3232. <freetype/tttags.h>
  3233. - light update/cleaning of the build system + changes to the sources
  3234. in order to get rid of _all_ compiler warnings with three
  3235. compilers, i.e:
  3236. gcc with `-ansi -pedantic -Wall -W', Visual C++ with `/W3 /WX' and
  3237. LCC
  3238. IMPORTANT NOTE FOR WIN32-LCC USERS:
  3239. |
  3240. | It seems the C pre-processor that comes with LCC is broken, it
  3241. | doesn't recognize the ANSI standard directives # and ##
  3242. | correctly when one of the argument is a macro. Also,
  3243. | something like:
  3244. |
  3245. | #define F(x) print##x
  3246. |
  3247. | F(("hello"))
  3248. |
  3249. | will get incorrectly translated to:
  3250. |
  3251. | print "hello")
  3252. |
  3253. | by its pre-processor. For this reason, you simply cannot build
  3254. | FreeType 2 in debug mode with this compiler..
  3255. - yet another massive grunt work. I've changed the definition of
  3256. the EXPORT_DEF, EXPORT_FUNC, BASE_DEF & BASE_FUNC macros. These
  3257. now take an argument, which is the function's return value type.
  3258. This is necessary to compile FreeType as a DLL on Windows and
  3259. OS/2. Depending on the compiler used, a compiler-specific keyword
  3260. like __export or __system must be placed before (VisualC++) or
  3261. after (BorlandC++) the type..
  3262. Of course, this needed a lot of changes throughout the source code
  3263. to make it compile again... All cleaned up now, apparently..
  3264. Note also that there is a new EXPORT_VAR macro defined to allow
  3265. the _declaration_ of an exportable public (constant)
  3266. variable. This is the case of the raster interfaces (see
  3267. ftraster.h and ftgrays.h), as well as each module's interface (see
  3268. sfdriver.h, psdriver.h, etc..)
  3269. - new feature: it is now possible to pass extra parameters to font
  3270. drivers when creating a new face object. For now,
  3271. this capability is unused. It could however prove to
  3272. be useful in a near future..
  3273. the FT_Open_Args structure was changes, as well as the internal
  3274. driver interface (the specific `init_face' module function has
  3275. now a different signature).
  3276. - updated the tutorial (not finished though).
  3277. - updated the top-level BUILD document
  3278. - fixed a potential memory leak that could occur when loading
  3279. embedded bitmaps.
  3280. - added the declaration of FT_New_Memory_Face in
  3281. <freetype/freetype.h>, as it was missing from the public header
  3282. (the implementation was already in `ftobjs.c').
  3283. - the file <freetype/fterrors.h> has been seriously updated in order
  3284. to allow the automatic generation of error message tables. See
  3285. the comments within it for more information.
  3286. - major directory hierarchy re-organisation. This was done for two
  3287. things:
  3288. * first, to ease the `manual' compilation of the library by
  3289. requiring at lot less include paths :-)
  3290. * second, to allow external programs to effectively access
  3291. internal data fields. For example, this can be extremely
  3292. useful if someone wants to write a font producer or a font
  3293. manager on top of FreeType.
  3294. Basically, you should now use the 'freetype/' prefix for header
  3295. inclusion, as in:
  3296. #include <freetype/freetype.h>
  3297. #include <freetype/ftglyph.h>
  3298. Some new include sub-directories are available:
  3299. a. the `freetype/config' directory, contains two files used to
  3300. configure the build of the library. Client applications
  3301. should not need to look at these normally, but they can if
  3302. they want.
  3303. #include <freetype/config/ftoption.h>
  3304. #include <freetype/config/ftconfig.h>
  3305. b. the `freetype/internal' directory, contains header files that
  3306. describes library internals. These are the header files that
  3307. were previously found in the `src/base' and `src/shared'
  3308. directories.
  3309. As usual, the build system and the demos have been updated to
  3310. reflect the change..
  3311. Here's a layout of the new directory hierarchy:
  3312. TOP_DIR
  3313. include/
  3314. freetype/
  3315. freetype.h
  3316. ...
  3317. config/
  3318. ftoption.h
  3319. ftconfig.h
  3320. ftmodule.h
  3321. internal/
  3322. ftobjs.h
  3323. ftstream.h
  3324. ftcalc.h
  3325. ...
  3326. src/
  3327. base/
  3328. ...
  3329. sfnt/
  3330. psnames/
  3331. truetype/
  3332. type1/
  3333. type1z/
  3334. Compiling a module is now much easier, for example, the following
  3335. should work when in the TOP_DIR directory on an ANSI build:
  3336. gcc -c -I./include -I./src/base src/base/ftbase.c
  3337. gcc -c -I./include -I./src/sfnt src/sfnt/sfnt.c
  3338. etc..
  3339. (of course, using -Iconfig/<system> if you provide system-specific
  3340. configuration files).
  3341. - updated the structure of FT_Outline_Funcs in order to allow direct
  3342. coordinate scaling within the outline decomposition routine (this
  3343. is important for virtual `on' points with TrueType outlines) +
  3344. updates to the rasters to support this..
  3345. - updated the OS/2 table loading code in `src/sfnt/ttload.c' in
  3346. order to support version 2 of the table (see OpenType 1.2 spec)
  3347. - created `include/tttables.h' and `include/t1tables.h' to allow
  3348. client applications to access some of the SFNT and T1 tables of a
  3349. face with a procedural interface (see `FT_Get_Sfnt_Table') +
  3350. updates to internal source files to reflect the change..
  3351. - some cleanups in the source code to get rid of warnings when
  3352. compiling with the `-Wall -W -ansi -pedantic' options in gcc.
  3353. - debugged and moved the smooth renderer to `src/base/ftgrays.c' and
  3354. its header to `include/ftgrays.h'
  3355. - updated TT_MAX_SUBGLYPHS to 96 as some CJK fonts have composites
  3356. with up to 80 sub-glyphs !! Thanks to Werner
  3357. ======================================================================
  3358. OLD CHANGES - 14-apr-2000
  3359. - fixed a bug in the TrueType glyph loader that prevented the
  3360. correct loading of some CJK glyphs in mingli.ttf
  3361. - improved the standard Type 1 hinter in `src/type1'
  3362. - fixed two bugs in the experimental Type 1 driver in `src/type1z'
  3363. to handle the new XFree86 4.0 fonts (and a few other ones..)
  3364. - the smooth renderer is now complete and supports sub-banding to
  3365. render large glyphs at high speed. However, it is still located
  3366. in `demos/src/ftgrays.c' and should move to the library itself in
  3367. the next beta. NOTE: The smooth renderer doesn't compile in
  3368. stand-alone mode anymore, but this should be fixed RSN..
  3369. - introduced convenience functions to more easily deal with glyph
  3370. images, see `include/ftglyph.h' for more details, as well as the
  3371. new demo program named `demos/src/ftstring.c' that demonstrates
  3372. its use
  3373. - implemented FT_LOAD_NO_RECURSE in both the TrueType and Type 1
  3374. drivers (this is required by the auto-hinter to improve its
  3375. results).
  3376. - changed the raster interface, in order to allow client
  3377. applications to provide their own span-drawing callbacks.
  3378. However, only the smooth renderer supports this. See
  3379. `FT_Raster_Params' in the file `include/ftimage.h'.
  3380. - fixed a small bug in FT_MulFix that caused incorrect transform
  3381. computation!
  3382. - Note: The tutorial is out-of-date.
  3383. ======================================================================
  3384. OLD CHANGES - 12-mar-2000
  3385. - changed the layout of configuration files : now, all ANSI
  3386. configuration files are located in
  3387. `freetype2/config'. System-specific over-rides can be placed in
  3388. `freetype2/config/<system>'.
  3389. - moved all configuration macros to `config/ftoption.h'
  3390. - improvements in the Type 1 driver with AFM support
  3391. - changed the fields in the FT_Outline structure : the old `flags'
  3392. array is re-named `tags', while all ancient flags are encoded into
  3393. a single unsigned int named `flags'.
  3394. - introduced new flags in FT_Outline.flags (see
  3395. ft_outline_.... enums in `ftimage.h').
  3396. - changed outline functions to `FT_Outline_<action>' syntax
  3397. - added a smooth anti-alias renderer to the demonstration programs
  3398. - added Mac graphics driver (thanks Just)
  3399. - FT_Open_Face changed in order to received a pointer to a
  3400. FT_Open_Args descriptor..
  3401. - various cleanups, a few more API functions implemented (see
  3402. FT_Attach_File)
  3403. - updated some docs
  3404. ======================================================================
  3405. OLD CHANGES - 22-feb-2000
  3406. - introduced the `psnames' module. It is used to:
  3407. o convert a Postscript glyph name into the equivalent Unicode
  3408. character code (used by the Type 1 driver(s) to synthesize on
  3409. the fly a Unicode charmap).
  3410. o provide an interface to retrieve the Postscript names of the
  3411. Macintosh, Adobe Standard & Adobe Expert character codes.
  3412. (the Macintosh names are used by the SFNT-module postscript
  3413. names support routines, while the other two tables are used by
  3414. the Type 1 driver(s)).
  3415. - introduced the `type1z' alternate Type 1 driver. This is a (still
  3416. experimental) driver for the Type 1 format that will ultimately
  3417. replace the one in `src/type1'. It uses pattern matching to load
  3418. data from the font, instead of a finite state analyzer. It works
  3419. much better than the `old' driver with `broken' fonts. It is also
  3420. much smaller (under 15 Kb).
  3421. - the Type 1 drivers (both in `src/type1' and `src/type1z') are
  3422. nearly complete. They both provide automatic Unicode charmap
  3423. synthesis through the `psnames' module. No re-encoding vector is
  3424. needed. (note that they still leak memory due to some code
  3425. missing, and I'm getting lazy).
  3426. Trivial AFM support has been added to read kerning information but
  3427. wasn't exactly tested as it should ;-)
  3428. - The TrueType glyph loader has been seriously rewritten (see the
  3429. file `src/truetype/ttgload.c'. It is now much, much simpler as
  3430. well as easier to read, maintain and understand :-) Preliminary
  3431. versions introduced a memory leak that has been reported by Jack
  3432. Davis, and is now fixed..
  3433. - introduced the new `ft_glyph_format_plotter', used to represent
  3434. stroked outlines like Windows `Vector' fonts, and certain Type 1
  3435. fonts like `Hershey'. The corresponding raster will be written
  3436. soon.
  3437. - FT_New_Memory_Face is gone. Likewise, FT_Open_Face has a new
  3438. interface that uses a structure to describe the input stream, the
  3439. driver (if required), etc..
  3440. TODO
  3441. - Write FT_Get_Glyph_Bitmap and FT_Load_Glyph_Bitmap
  3442. - Add a function like FT_Load_Character(face, char_code, load_flags)
  3443. that would really embed a call to FT_Get_Char_Index then
  3444. FT_Load_Glyph to ease developer's work.
  3445. - Update the tutorial!
  3446. - consider adding support for Multiple Master fonts in the Type 1
  3447. drivers.
  3448. - Test the AFM routines of the Type 1 drivers to check that kerning
  3449. information is returned correctly.
  3450. - write a decent auto-gridding component !! We need this to release
  3451. FreeType 2.0 gold !
  3452. less urgent needs:
  3453. - add a CFF/Type2 driver
  3454. - add a BDF driver
  3455. - add a FNT/PCF/HBF driver
  3456. - add a Speedo driver from the X11 sources
  3457. ======================================================================
  3458. OLDER CHANGES - 27-jan-2000
  3459. - updated the `sfnt' module interface to allow several SFNT-based
  3460. drivers to co-exist peacefully
  3461. - updated the `T1_Face' type to better separate Postscript font
  3462. content from the rest of the FT_Face structure. Might be used
  3463. later by the CFF/Type2 driver..
  3464. - added an experimental replacement Type 1 driver featuring advanced
  3465. (and speedy) pattern matching to retrieve the data from postscript
  3466. fonts.
  3467. - very minor changes in the implementation of FT_Set_Char_Size and
  3468. FT_Set_Pixel_Sizes (they now implement default to lighten the font
  3469. driver's code).
  3470. ======================================================================
  3471. OLD MESSAGE
  3472. This file summarizes the changes that occurred since the last `beta'
  3473. of FreeType 2. Because the list is important, it has been divided into
  3474. separate sections:
  3475. Table Of Contents:
  3476. I High-Level Interface (easier !)
  3477. II Directory Structure
  3478. III Glyph Image Formats
  3479. IV Build System
  3480. V Portability
  3481. VI Font Drivers
  3482. ----------------------------------------------------------------------
  3483. High-Level Interface:
  3484. The high-level API has been considerably simplified. Here is how:
  3485. - resource objects have disappeared. this means that face objects
  3486. can now be created with a single function call (see FT_New_Face
  3487. and FT_Open_Face)
  3488. - when calling either FT_New_Face & FT_Open_Face, a size object
  3489. and a glyph slot object are automatically created for the face,
  3490. and can be accessed through `face->glyph' and `face->size' if
  3491. one really needs to. In most cases, there's no need to call
  3492. FT_New_Size or FT_New_Glyph.
  3493. - similarly, FT_Load_Glyph now only takes a `face' argument
  3494. (instead of a glyph slot and a size). Also, its `result'
  3495. parameter is gone, as the glyph image type is returned in the
  3496. field `face->glyph.format'
  3497. - the list of available charmaps is directly accessible through
  3498. `face->charmaps', counting `face->num_charmaps' elements. Each
  3499. charmap has an 'encoding' field which specifies which known
  3500. encoding it deals with. Valid values are, for example:
  3501. ft_encoding_unicode (for ASCII, Latin-1 and Unicode)
  3502. ft_encoding_apple_roman
  3503. ft_encoding_sjis
  3504. ft_encoding_adobe_standard
  3505. ft_encoding_adobe_expert
  3506. other values may be added in the future. Each charmap still
  3507. holds its `platform_id' and `encoding_id' values in case the
  3508. encoding is too exotic for the current library
  3509. ----------------------------------------------------------------------
  3510. Directory Structure:
  3511. Should seem obvious to most of you:
  3512. freetype/
  3513. config/ -- configuration sub-makefiles
  3514. ansi/
  3515. unix/ -- platform-specific configuration files
  3516. win32/
  3517. os2/
  3518. msdos/
  3519. include/ -- public header files, those to be included
  3520. directly by client apps
  3521. src/ -- sources of the library
  3522. base/ -- the base layer
  3523. sfnt/ -- the sfnt `driver' (see the drivers section
  3524. below)
  3525. truetype/ -- the truetype driver
  3526. type1/ -- the type1 driver
  3527. shared/ -- some header files shared between drivers
  3528. demos/ -- demos/tools
  3529. docs/ -- documentation (a bit empty for now)
  3530. ----------------------------------------------------------------------
  3531. Glyph Image Formats:
  3532. Drivers are now able to register new glyph image formats within the
  3533. library. For now, the base layer supports of course bitmaps and
  3534. vector outlines, but one could imagine something different like
  3535. colored bitmaps, bi-color vectors or whatever else (Metafonts anyone
  3536. ??).
  3537. See the file `include/ftimage.h'. Note also that the type
  3538. FT_Raster_Map is gone, and is now replaced by FT_Bitmap, which
  3539. should encompass all known bitmap types.
  3540. Each new image format must provide at least one `raster', i.e. a
  3541. module capable of transforming the glyph image into a bitmap. It's
  3542. also possible to change the default raster used for a given glyph
  3543. image format.
  3544. The default outline scan-converter now uses 128 levels of grays by
  3545. default, which tends to smooth many things. Note that the demo
  3546. programs have been updated significantly in order to display these..
  3547. ----------------------------------------------------------------------
  3548. Build system:
  3549. You still need GNU Make to build the library. The build system has
  3550. been very seriously re-vamped in order to provide things like :
  3551. - automatic host platform detection (reverting to 'config/ansi' if
  3552. it is not detected, with pseudo-standard compilation flags)
  3553. - the ability to compile from the Makefiles with very different and
  3554. exotic compilers. Note that linking the library can be difficult
  3555. for some platforms.
  3556. For example, the file `config/win32/lcclib.bat' is invoked by the
  3557. build system to create the `.lib' file with LCC-Win32 because its
  3558. librarian has too many flaws to be invoked directly from the
  3559. Makefile.
  3560. Here's how it works:
  3561. - the first time you type `make', the build system runs a series of
  3562. sub-makefiles in order to detect your host platform. It then
  3563. dumps what it found, and creates a file called `config.mk' in the
  3564. current directory. This is a sub-Makefile used to define many
  3565. important Make variables used to build the library.
  3566. - the second time, the build system detects the `config.mk' then use
  3567. it to build the library. All object files go into 'obj' by
  3568. default, as well as the library file, but this can easily be
  3569. changed.
  3570. Note that you can run `make setup' to force another host platform
  3571. detection even if a `config.mk' is present in the current
  3572. directory. Another solution is simply to delete the file, then
  3573. re-run make.
  3574. Finally, the default compiler for all platforms is gcc (for now,
  3575. this will hopefully changed in the future). You can however specify
  3576. a different compiler by specifying it after the 'setup' target as
  3577. in:
  3578. gnumake setup lcc on Win32 to use the LCC compiler
  3579. gnumake setup visualc on Win32 to use Visual C++
  3580. See the file `config/<system>/detect.mk' for a list of supported
  3581. compilers for your platforms.
  3582. It should be relatively easy to write new detection rules files and
  3583. config.mk..
  3584. Finally, to build the demo programs, go to `demos' and launch GNU
  3585. Make, it will use the `config.mk' in the top directory to build the
  3586. test programs..
  3587. ----------------------------------------------------------------------
  3588. Portability:
  3589. In the previous beta, a single FT_System object was used to
  3590. encompass all low-level operations like thread synchronisation,
  3591. memory management and i/o access. This has been greatly simplified:
  3592. - thread synchronisation has been dropped, for the simple reason
  3593. that the library is already re-entrant, and that if you really
  3594. need two threads accessing the same FT_Library, you should
  3595. really synchronize access to it yourself with a simple mutex.
  3596. - memory management is performed through a very simple object
  3597. called `FT_Memory', which really is a table containing a table
  3598. of pointers to functions like malloc, realloc and free as well
  3599. as some user data (closure).
  3600. - resources have disappeared (they created more problems than they
  3601. solved), and i/o management have been simplified greatly as a
  3602. result. Streams are defined through FT_Stream objects, which
  3603. can be either memory-based or disk-based.
  3604. Note that each face has its own stream, which is closed only
  3605. when the face object is destroyed. Hence, a function like
  3606. TT_Flush_Face in 1.x cannot be directly supported. However, if
  3607. you really need something like this, you can easily tailor your
  3608. own streams to achieve the same feature at a lower level (and
  3609. use FT_Open_Face instead of FT_New_Face to create the face).
  3610. See the file `include/ftsystem.h' for more details, as well as the
  3611. implementations found in `config/unix' and `config/ansi'.
  3612. ----------------------------------------------------------------------
  3613. Font Drivers:
  3614. The Font Driver interface has been modified in order to support
  3615. extensions & versioning.
  3616. The list of the font drivers that are statically linked to the
  3617. library at compile time is managed through a new configuration file
  3618. called `config/<platform>/ftmodule.h'.
  3619. This file is autogenerated when invoking `make modules'. This
  3620. target will parse all sub-directories of 'src', looking for a
  3621. `module.mk' rules file, used to describe the driver to the build
  3622. system.
  3623. Hence, one should call `make modules' each time a font driver is
  3624. added or removed from the `src' directory.
  3625. Finally, this version provides a `pseudo-driver' in `src/sfnt'.
  3626. This driver doesn't support font files directly, but provides
  3627. services used by all TrueType-like font drivers. Hence, its code is
  3628. shared between the TrueType & OpenType font formats, and possibly
  3629. more formats to come if we're lucky..
  3630. ----------------------------------------------------------------------
  3631. Extensions support:
  3632. The extensions support is inspired by the one found in 1.x.
  3633. Now, each font driver has its own `extension registry', which lists
  3634. which extensions are available for the font faces managed by the
  3635. driver.
  3636. Extension ids are now strings, rather than 4-byte tags, as this is
  3637. usually more readable.
  3638. Each extension has:
  3639. - some data, associated to each face object
  3640. - an interface (table of function pointers)
  3641. An extension that is format-specific should simply register itself
  3642. to the correct font driver. Here is some example code:
  3643. // Registering an extensions
  3644. //
  3645. FT_Error FT_Init_XXXX_Extension( FT_Library library )
  3646. {
  3647. FT_DriverInterface* tt_driver;
  3648. driver = FT_Get_Driver( library, "truetype" );
  3649. if (!driver) return FT_Err_Unimplemented_Feature;
  3650. return FT_Register_Extension( driver, &extension_class );
  3651. }
  3652. // Implementing the extensions
  3653. //
  3654. FT_Error FT_Proceed_Extension_XXX( FT_Face face )
  3655. {
  3656. FT_XXX_Extension ext;
  3657. FT_XXX_Extension_Interface ext_interface;
  3658. ext = FT_Get_Extension( face, "extensionid", &ext_interface );
  3659. if (!ext) return error;
  3660. return ext_interface->do_it(ext);
  3661. }
  3662. ------------------------------------------------------------------------
  3663. Copyright (C) 2000-2021 by
  3664. David Turner, Robert Wilhelm, and Werner Lemberg.
  3665. This file is part of the FreeType project, and may only be used,
  3666. modified, and distributed under the terms of the FreeType project
  3667. license, LICENSE.TXT. By continuing to use, modify, or distribute this
  3668. file you indicate that you have read the license and understand and
  3669. accept it fully.
  3670. Local Variables:
  3671. version-control: never
  3672. coding: utf-8
  3673. End:
  3674. --- end of CHANGES ---