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

5548 lines
207 KiB

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