modules/freetype2/docs/CHANGES

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial