michael@0: 2006-05-12 Werner Lemberg michael@0: michael@0: michael@0: * Version 2.2.1 released. michael@0: ========================= michael@0: michael@0: michael@0: Tag sources with `VER-2-2-1'. michael@0: michael@0: 2006-05-12 Werner Lemberg michael@0: michael@0: * src/tools/docmaker/sources.py (re_source_keywords): Add word michael@0: boundary markers. michael@0: * src/tools/docmaker/content.py (re_field): Allow `.' in field names michael@0: (but not at the beginning or end). michael@0: * src/tools/docmaker/tohtml.py (html_header_1): Use `utf-8' charset. michael@0: (block_footer): Split into... michael@0: (block_footer_start, block_footer_middle, block_footer_end): This to michael@0: add navigation buttons. michael@0: (HtmlFormatter::block_exit): Updated. michael@0: michael@0: * include/freetype/*: Many minor documentation improvements (adding michael@0: links, spelling errors, etc.). michael@0: michael@0: 2006-05-11 Werner Lemberg michael@0: michael@0: * README: Minor updates. michael@0: michael@0: * include/freetype/*: s/scale/scaling value/ where appropriate. michael@0: Many other minor documentation improvements. michael@0: michael@0: * src/tools/docmaker/sources.py (re_italic, re_bold): Handle michael@0: trailing punctuation. michael@0: * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word): Add michael@0: warning message for undefined cross references. michael@0: Update handling of re_italic and re_bold. michael@0: michael@0: 2006-05-11 Masatake YAMATO michael@0: michael@0: * builds/unix/ftsystem.c (FT_Stream_Open): Check errno only if michael@0: read system call returns -1. michael@0: Remove a redundant parenthesis. michael@0: michael@0: 2006-05-10 Werner Lemberg michael@0: michael@0: * builds/unix/ftsystem.c (FT_Stream_Open): Avoid infinite loop if michael@0: given an empty, un-mmap()able file. Reported and suggested fix in michael@0: Savannah bug #16555. michael@0: michael@0: * builds/freetype.mk (refdoc): Write-protect the `docmaker' michael@0: directory to suppress generation of .pyc files. According to the michael@0: Python docs there isn't a more elegant solution (currently). michael@0: michael@0: * builds/toplevel.mk (dist): New target which builds .tar.gz, michael@0: .tar.bz2, and .zip files. Note that the version number is still michael@0: hard-coded. michael@0: (do-dist): Sub-target of `dist'. michael@0: (CONFIG_GUESS, CONFIG_SUB): New variables. michael@0: (.PHONY): Updated. michael@0: michael@0: 2006-05-09 Rajeev Pahuja michael@0: michael@0: * builds/win32/visualc/freetype.sln, michael@0: builds/win32/visualc/freetype.vcproj: Upgraded to VS.NET 2005 from michael@0: VS.NET 2003 michael@0: Added files ftbbox.c, fttype1.c, ftwinfnt.c, ftsynth.c. michael@0: michael@0: * builds/win32/visualc/index.html: Updated. michael@0: michael@0: 2006-05-07 Werner Lemberg michael@0: michael@0: Put version information into the configure script. Reported by Paul michael@0: Watson . michael@0: michael@0: * builds/unix/configure.ac: Renamed to... michael@0: * builds/unix/configure.raw: This which now serves (with appropriate michael@0: modifications) as a template for configure.ac. michael@0: michael@0: * version.sed: New script. michael@0: michael@0: * autogen.sh: Generate configure.ac from configure.raw, using michael@0: FREETYPE_MAJOR, FREETYPE_MINOR, and FREETYPE_PATCH from freetype.h. michael@0: michael@0: 2006-05-06 Werner Lemberg michael@0: michael@0: * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1. michael@0: michael@0: * builds/unix/configure.ac (version_info): Set to 9:10:3. michael@0: michael@0: * builds/win32/visualc/index.html, michael@0: builds/win32/visualc/freetype.dsp, michael@0: builds/win32/visualc/freetype.vcproj, builds/freetype.mk (refdoc), michael@0: Jamfile (RefDoc), README: s/220/221/, s/2.2.0/2.2.1/. michael@0: Minor updates. michael@0: michael@0: * docs/CHANGES, docs/VERSION.DLL, docs/PROBLEMS, README.CVS: michael@0: Updated. michael@0: michael@0: * builds/unix/install-sh: Updated from `texinfo' CVS module at michael@0: savannah.gnu.org. michael@0: michael@0: * devel/ftoption.h: Synchronize with michael@0: include/freetype/config/ftoption.h. michael@0: michael@0: 2006-05-04 Werner Lemberg michael@0: michael@0: * src/lzw/ftlzw2.c: Renamed to... michael@0: * src/lzw/ftlzw.c: This. michael@0: michael@0: * src/lzw/Jamfile, src/lzw/rules.mk: Updated. michael@0: michael@0: * builds/mac/FreeType.m68k_cfm.make.txt, michael@0: builds/mac/FreeType.m68k_far.make.txt, michael@0: builds/mac/FreeType.ppc_carbon.make.txt, michael@0: builds/mac/FreeType.ppc_classic.make.txt: Updated. michael@0: michael@0: 2006-05-03 David Turner michael@0: michael@0: Allow compilation again with C++ compilers. michael@0: michael@0: * include/freetype/internal/ftmemory.h (FT_ASSIGNP, michael@0: FT_ASSIGNP_INNER): New macros which do the actual assignment, and michael@0: which exist in two variants (for C and C++). michael@0: Update callers accordingly. michael@0: michael@0: 2006-05-03 Werner Lemberg michael@0: michael@0: * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): Removed. michael@0: michael@0: 2006-05-02 Werner Lemberg michael@0: michael@0: * include/freetype/internal/ftmemory.h: s/new/newsz/ (for C++). michael@0: (FT_ALLOC): Remove redundant redefinition. michael@0: michael@0: * builds/compiler/gcc-dev.mk (CFLAGS) [g++]: Don't use michael@0: `-Wstrict-prototypes'. michael@0: michael@0: * src/base/ftstream.c (FT_Stream_EnterFrame): Add cast. michael@0: michael@0: * include/freetype/config/ftconfig.h (FT_BASE_DEF) [__cplusplus]: michael@0: Remove `extern'. michael@0: michael@0: 2006-05-02 David Turner michael@0: michael@0: Update the memory management functions and macros to safely deal michael@0: with array size buffer overflows. This corresponds to attempts to michael@0: allocate arrays that are too large. For an example, consider the michael@0: following code: michael@0: michael@0: count = read_uint32_from_file(); array = malloc( sizeof ( Item ) * michael@0: count ); for ( nn = 0; nn < count; nn++ ) michael@0: array[nn] = read_item_from_file(); michael@0: michael@0: If `count' is larger than `FT_UINT_MAX/sizeof(Item)', the michael@0: multiplication overflows, and the array allocated os smaller than michael@0: the data read from the file. In this case, the heap will be michael@0: trashed, and this can be used as a denial-of-service attack, or make michael@0: the engine crash later. michael@0: michael@0: The FT_ARRAY_NEW and FT_ARRAY_RENEW macros now ensure that the new michael@0: count is no larger than `FT_INT_MAX/item_size', otherwise a new michael@0: error code `FT_Err_Array_Too_Large' will be returned. michael@0: michael@0: Note that the memory debugger now works again when FT_DEBUG_MEMORY michael@0: is defined. FT_STRICT_ALIASING has disappeared; the corresponding michael@0: code is now the default. michael@0: michael@0: michael@0: * include/freetype/config/ftconfig.h (FT_BASE_DEF) [!__cplusplus]: michael@0: Don't use `extern'. michael@0: michael@0: * include/freetype/fterrdef.h (FT_Err_Array_Too_Large): New error michael@0: code. michael@0: michael@0: * include/freetype/internal/ftmemory.h (FT_DEBUG_INNER) michael@0: [FT_DEBUG_MEMORY]: New macro. michael@0: (ft_mem_realloc, ft_mem_qrealloc): Pass new object size count also. michael@0: (ft_mem_alloc_debug, ft_mem_qalloc_debug, ft_mem_realloc_debug, michael@0: ft_mem_qrealloc_debug, ft_mem_free_debug): Removed. michael@0: (FT_MEM_ALLOC, FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC, michael@0: FT_MEM_FREE): Redefine. michael@0: (FT_MEM_NEW_ARRAY, FT_MEM_RENEW_ARRAY, FT_MEM_QNEW_ARRAY, michael@0: FT_MEM_QRENEW_ARRAY): Redefine. michael@0: (FT_ALLOC_MULT, FT_REALLOC_MULT, FT_MEM_QALLOC_MULT, michael@0: FT_MEM_QREALLOC_MULT): New macros. Update callers where michael@0: appropriate. michael@0: (FT_MEM_SET_ERROR): Slightly redefine. michael@0: michael@0: michael@0: * src/base/ftdbgmem.c (_ft_debug_file, _ft_debug_lineno) michael@0: [FT_DEBUG_MEMORY]: New global variables, replacing... michael@0: (FT_MemTable_Rec) [FT_DEBUG_MEMORY]: Remove `filename' and michael@0: `line_no'. Update all callers. michael@0: (ft_mem_debug_alloc) [FT_DEBUG_MEMORY]: Avoid possible integer michael@0: overflow. michael@0: (ft_mem_alloc_debug, ft_mem_realloc_debug, ft_mem_qalloc_debug, michael@0: ft_mem_qrealloc_debug, ft_mem_free_debug): Removed. michael@0: michael@0: * src/base/ftmac.c (read_lwfn): Catch integer overflow. michael@0: * src/base/ftrfork.c (raccess_guess_darwin_hfsplus): Ditto. michael@0: * src/base/ftutil.c: Remove special code for FT_STRICT_ALIASING. michael@0: (ft_mem_alloc, ft_mem_realloc, ft_mem_qrealloc): Rewrite. michael@0: michael@0: michael@0: * include/freetype/ftstream.h (FT_FRAME_ENTER, FT_FRAME_EXIT, michael@0: FT_FRAME_EXTRACT, FT_FRAME_RELEASE): Use FT_DEBUG_INNER to report the michael@0: place where the frames were entered, extracted, exited or released michael@0: in the memory debugger. michael@0: michael@0: * src/base/ftstream.c (FT_Stream_ReleaseFrame) [FT_DEBUG_MEMORY]: michael@0: Call ft_mem_free. michael@0: (FT_Stream_EnterFrame) [FT_DEBUG_MEMORY]: Use ft_mem_qalloc. michael@0: (FT_Stream_ExitFrame) [FT_DEBUG_MEMORY]: Use ft_mem_free. michael@0: michael@0: 2006-04-30 suzuki toshiya michael@0: michael@0: * src/base/ftobjs.c (Mac_Read_POST_Resource): Correct pfb_pos michael@0: initialization, remove extra cast to copy to pfb_lenpos. This fixes michael@0: parsing of PFB fonts with MacOS resource fork (bug introduced michael@0: 2003-09-11). Patch provided by Huib-Jan Imbens . michael@0: michael@0: 2006-04-29 Werner Lemberg michael@0: michael@0: Further C library abstraction. Based on a patch from michael@0: msn2@bidyut.com. michael@0: michael@0: * include/freetype/config/ftstdlib.h (FT_CHAR_BIT, FT_FILE, michael@0: ft_fopen, ft_fclose, ft_fseek, ft_ftell, ft_fread, ft_smalloc, michael@0: ft_scalloc, ft_srealloc, ft_sfree, ft_labs): New wrapper macros for michael@0: C library functions. Update all users accordingly (and catch some michael@0: other places where the C library function was used instead of the michael@0: wrapper functions). michael@0: michael@0: * src/base/ftsystem.c: Don't include stdio.h and stdlib.h. michael@0: * src/gzip/zutil.h [MSDOS && !(__TURBOC__ || __BORLANDC__)]: Don't michael@0: include malloc.h. michael@0: michael@0: michael@0: * builds/unix/unix-def.in (datarootdir): Define, for autoconf 2.59c michael@0: and forthcoming versions. michael@0: michael@0: 2006-04-28 Werner Lemberg michael@0: michael@0: * src/lzw/ftlzw.c, src/lzw/zopen.c, src/lzw/zopen.h: Removed, michael@0: obsolete. michael@0: michael@0: 2006-04-27 yi luo michael@0: michael@0: * builds/win32/visualc/freetype.vcproj: Updated. michael@0: michael@0: 2006-04-26 David Turner michael@0: michael@0: michael@0: * Version 2.2 released. michael@0: ======================= michael@0: michael@0: michael@0: Tag sources with `VER-2-2-0'. michael@0: michael@0: 2006-04-26 Werner Lemberg michael@0: michael@0: * src/psaux/psobjs.c (shift_elements): Don't use FT_Long but michael@0: FT_PtrDiff for `delta'. Reported by Céline PILLET michael@0: . michael@0: michael@0: 2006-04-21 David Turner michael@0: michael@0: * include/freetype/ftincrem.h: Documentation updates. michael@0: (FT_Incremental_Interface): New typedef. michael@0: michael@0: * include/freetype/ftmodapi.h, include/freetype/ftglyph.h: michael@0: Documentation updates. michael@0: michael@0: * include/freetype/freetype.h: Documentation update. michael@0: (FT_HAS_FAST_GLYPHS): Always set to 0. michael@0: michael@0: * include/freetype/ftstroke.h, src/base/ftstroke.c (FT_Stroker_New): michael@0: Take an FT_Library argument instead of FT_Memory. michael@0: michael@0: * src/sfnt/ttcmap.c: Remove compiler warnings (gcc-4.0.2). michael@0: michael@0: 2006-04-13 David Turner michael@0: michael@0: * src/autofit/afloader.c (af_loader_init, af_loader_load_g): Remove michael@0: superfluous code in the auto-fitter's loader. michael@0: michael@0: 2006-04-05 Detlef Würkner michael@0: michael@0: * builds/amiga/makefile, builds/amiga/makefile.os4, michael@0: builds/amiga/smakefile: Added FT2_BUILD_LIBRARY define. michael@0: michael@0: 2006-04-03 luoyi michael@0: michael@0: * builds/compiler/intelc.mk (TE): New variable. michael@0: (ANSIFLAGS): Updated. michael@0: michael@0: 2006-04-03 Werner Lemberg michael@0: michael@0: * builds/exports.mk (clean_symbols_list, clean_apinames): Removed. michael@0: (CLEAN): Add $(EXPORTS_LIST) and $(APINAMES_EXE). michael@0: (.PHONY): Updated. michael@0: michael@0: * configure.ac: Minor fixes to improve --help output. michael@0: michael@0: michael@0: * docs/PROBLEMS: New file. michael@0: michael@0: 2006-04-01 David Turner michael@0: michael@0: * docs/CHANGES: Updated. michael@0: michael@0: * include/freetype/ftcache.h, include/freetype/config/ftheader.h: michael@0: Update documentation comments. michael@0: michael@0: 2006-04-01 Werner Lemberg michael@0: michael@0: * builds/unix/install.mk (uninstall): Don't handle `cache' michael@0: directory which no longer exists. michael@0: michael@0: 2006-03-29 Detlef Würkner michael@0: michael@0: * src/psaux/psconv.c: Changed some variables which are expected to michael@0: hold negative values from `char' to `FT_Char' to allow building with michael@0: a compiler where `char' is unsigned by default. michael@0: michael@0: 2006-03-27 David Turner michael@0: michael@0: * src/sfnt/ttkern.c (tt_face_get_kerning): Fix a serious bug that michael@0: causes some programs to go into an infinite loop when dealing with michael@0: fonts that don't have a properly sorted kerning sub-table. michael@0: michael@0: 2006-03-26 Werner Lemberg michael@0: michael@0: * src/bdf/bdflib.c (ERRMSG4): New macro. michael@0: (_bdf_parse_glyphs): Handle invalid BBX values. michael@0: michael@0: * include/freetype/fterrdef.h (FT_Err_Bbx_Too_Big): New error michael@0: macro. michael@0: michael@0: 2006-03-23 Werner Lemberg michael@0: michael@0: * docs/CHANGES: Updated. michael@0: michael@0: michael@0: * src/tools/docmaker/tohtml.py (html_header_2): Add horizontal michael@0: padding between table elements. michael@0: (html_header_1): The `DOCTYPE' comment must be in uppercase. michael@0: (make_html_para): Convert `...' quotations into real left and michael@0: right single quotes. michael@0: Use `para_header' and `para_footer'. michael@0: michael@0: * src/tools/docmaker/sources.py (re_bold, re_italic): Accept "'" michael@0: also. michael@0: michael@0: 2006-03-23 David Turner michael@0: michael@0: Add FT_Get_SubGlyph_Info API to retrieve subglyph data. Note that michael@0: we do not expose the FT_SubGlyphRec structure. michael@0: michael@0: * include/freetype/internal/ftgloadr.h (FT_SUBGLYPH_FLAGS_*): Moved michael@0: to... michael@0: * include/freetype/freetype.h (FT_SUBGLYPH_FLAGS_*): Here. michael@0: (FT_Get_SybGlyph_Info): New declaration. michael@0: michael@0: * src/base/ftobjs.c (FT_Get_SubGlyph_Info): New function. michael@0: michael@0: michael@0: * src/autofit/afloader.c (af_loader_load_g): Compute lsb_delta and michael@0: rsb_delta correctly in edge cases. michael@0: michael@0: 2006-03-22 Werner Lemberg michael@0: michael@0: * src/cache/ftccache.c, (ftc_node_mru_up, FTC_Cache_Lookup) michael@0: [!FTC_INLINE]: Compile conditionally. michael@0: * src/cache/ftccache.h: Updated. michael@0: michael@0: * src/cache/ftcglyph.c (FTC_GNode_Init, FTC_GNode_UnselectFamily, michael@0: FTC_GNode_Done, FTC_GNode_Compare, FTC_Family_Init, FTC_GCache_New): michael@0: s/FT_EXPORT/FT_LOCAL/. michael@0: (FTC_GCache_Init, FTC_GCache_Done): Commented out. michael@0: (FTC_GCache_Lookup) [!FTC_INLINE]: Compile conditionally. michael@0: s/FT_EXPORT/FT_LOCAL/. michael@0: * src/cache/ftcglyph.h: Updated. michael@0: michael@0: * src/cache/ftcimage.c (FTC_INode_Free, FTC_INode_New): michael@0: s/FT_EXPORT/FT_LOCAL/. michael@0: (FTC_INode_Weight): Commented out. michael@0: * src/cache/ftcimage.h: Updated. michael@0: michael@0: * src/cache/ftmanag.c (FTC_Manager_Compress, michael@0: FTC_Manager_RegisterCache, FTC_Manager_FlushN): michael@0: s/FT_EXPORT/FT_LOCAL/. michael@0: * src/cache/ftmanag.h: Updated. michael@0: michael@0: * src/cache/ftcsbits.c (FTC_SNode_Free, FTC_SNode_New, michael@0: FTC_SNode_Compare): s/FT_EXPORT/FT_LOCAL/. michael@0: (FTC_SNode_Weight): Commented out. michael@0: * src/cache/ftcsbits.h: Updated. michael@0: michael@0: 2006-03-22 Werner Lemberg michael@0: michael@0: * src/cache/ftccache.c, src/cache/ftccache.h (FTC_Node_Destroy): michael@0: Remove, unused. michael@0: michael@0: * src/cache/ftccmap.h: Remove, unused. michael@0: michael@0: * src/cache/rules.mk (CACHE_DRV_H): Remove ftccmap.h. michael@0: michael@0: 2006-03-21 Zhe Su michael@0: michael@0: * src/base/ftoutln.c (FT_Outline_Get_Orientation): Improve michael@0: algorithm. michael@0: michael@0: 2006-03-21 Werner Lemberg michael@0: michael@0: * src/cff/cfftypes.h (CFF_CharsetRec): Add `max_cid' member. michael@0: michael@0: * src/cff/cffload.c (cff_charset_load): Set `charset->max_cid'. michael@0: michael@0: * src/cff/cffgload.c (cff_slot_load): Change type of third parameter michael@0: to `FT_UInt'. michael@0: Check range of `glyph_index'. michael@0: * src/cff/cffgload.h: Updated. michael@0: michael@0: michael@0: * src/sfnt/ttcmap.c (tt_face_build_cmaps): Handle invalid offset michael@0: correctly. michael@0: michael@0: michael@0: * builds/freetype.mk (refdoc), docs/CHANGES, Jamfile (RefDoc), michael@0: README: s/2.1.10/2.2/. michael@0: michael@0: 2006-03-21 David Turner michael@0: michael@0: * src/autofit/aflatin.c (af_latin_metrics_scale): Fix small bug michael@0: that crashes the auto-hinter (introduced by previous patch). michael@0: michael@0: 2006-03-20 Werner Lemberg michael@0: michael@0: * builds/freetype.mk (CACHE_DIR, CACHE_H): Remove. michael@0: (FREETYPE_H): Updated. michael@0: michael@0: * src/cache/rules.mk (CACHE_H_DIR): Remove. michael@0: (CACHE_DRV_H): Updated. michael@0: michael@0: 2006-03-20 David Turner michael@0: michael@0: * include/freetype/cache/ftccache.h, michael@0: include/freetype/cache/ftccmap.h, include/freetype/cache/ftcglyph.h michael@0: include/freetype/cache/ftcimage.h include/freetype/cache/ftcmanag.h michael@0: include/freetype/cache/ftcmru.h include/freetype/cache/ftcsbits.h: michael@0: Move to... michael@0: michael@0: * src/cache/ftccache.h, src/cache/ftcglyph.h, src/cache/ftcimage.h, michael@0: src/cache/ftcsbits.h, src/cache/ftcmanag.h, src/cache/ftccmap.h, michael@0: src/cache/ftcmru.h: This new location. michael@0: Update declarations according to the changes in the corresponding michael@0: source files. michael@0: michael@0: Note that these files are not used by FreeType clients; all public michael@0: APIs of the cache module have been already moved to michael@0: `include/freetype/ftcache.h', and all FT_CACHE_INTERNAL_XXXX_H michael@0: macros resolve to it. michael@0: michael@0: Reason for the move is to allow modifications of the internals michael@0: without interferences with rogue clients. Note that there are no michael@0: known clients that access the cache internals at the moment. michael@0: michael@0: * builds/unix/install.mk (install): Don't install headers from michael@0: $(CACHE_H). michael@0: Remove `freetype/cache' from the target directory. michael@0: michael@0: * include/freetype/config/ftheader.h (FT_CACHE_MANAGER_H, michael@0: FT_CACHE_INTERNAL_MRU_H, FT_CACHE_INTERNAL_MANAGER_H, michael@0: FT_CACHE_INTERNAL_CACHE_H, FT_CACHE_INTERNAL_GLYPH_H, michael@0: FT_CACHE_INTERNAL_IMAGE_H, FT_CACHE_INTERNAL_SBITS_H): Point to michael@0: FT_CACHE_H. michael@0: michael@0: * src/cache/ftcbasic.c, src/cache/ftccache.h, src/cache/ftccback.h, michael@0: src/cache/ftccmap.c, src/cache/ftcglyph.c, src/cache/ftcglyph.h, michael@0: src/cache/ftcimage.c, src/cache/ftcimage.h, src/cache/ftcmanag.c, michael@0: src/cache/ftcmanag.h, src/cache/ftcmru.h, src/cache/ftcsbits.c, michael@0: src/cache/ftcsbits.h: Don't use the FT_CACHE_INTERNAL_XXX_H macros michael@0: but include the headers directly (which are now in `src/cache'). michael@0: michael@0: * src/cache/ftccache.c: Don't use the FT_CACHE_INTERNAL_XXX_H michael@0: macros but include the headers directly. michael@0: (FTC_Cache_Init, FTC_Cache_Done, FTC_Cache_NewNode, michael@0: FTC_Cache_Lookup, FTC_Cache_RemoveFaceID): Declare as FT_LOCAL_DEF. michael@0: michael@0: * src/cache/ftccache.c: Don't use the FT_CACHE_INTERNAL_XXX_H michael@0: macros but include the headers directly. michael@0: (FTC_MruNode_Prepend, FTC_MruNode_Up, FTC_MruNode_Remove, michael@0: FTC_MruList_Init, FTC_MruList_Reset, FTC_MruList_Done, michael@0: FTC_MruList_New, FTC_MruList_Remove, FTC_MruList_RemoveSelection): michael@0: Declare as FT_LOCAL_DEF. michael@0: (FTC_MruListFind, FTC_MruList_Lookup) [!FTC_INLINE]: Compile michael@0: conditionally. michael@0: Declare as FT_LOCAL_DEF. michael@0: michael@0: michael@0: * builds/win32/visualc/freetype.dsp: Update project file, add michael@0: missing base source files (ftstroke.c, ftxf86.c, etc.). michael@0: michael@0: michael@0: * src/autofit/afcjk.c, src/autofit/aflatin.c, src/base/ftobjs.c, michael@0: src/cff/cffobjs.c, src/cid/cidobjs.c, src/pfr/pfrobjs.c, michael@0: src/sfnt/sfobjs.c, src/sfnt/ttmtx.c, src/type1/t1afm.c, michael@0: src/type1/t1objs.c: Remove compiler warnings when building with michael@0: Visual C++ 6 and /W4. michael@0: michael@0: * src/autofit/aflatin.c (af_latin_hints_init): Disable horizontal michael@0: hinting for italic/oblique fonts. michael@0: michael@0: michael@0: michael@0: * src/truetype/ttpload.c, src/truetype/ttpload.h michael@0: (tt_face_get_device_metrics): Change second argument to `FT_UInt'. michael@0: michael@0: 2006-03-06 David Turner michael@0: michael@0: * src/cache/ftcmanag.c (FTC_Manager_Lookup_Size): Prevent crashes in michael@0: Mozilla/FireFox print preview in Ubuntu Hoary. michael@0: michael@0: 2006-02-28 Chia-I Wu michael@0: michael@0: * src/base/ftutil.c (ft_mem_qalloc) [FT_STRICT_ALIASING]: Do not michael@0: return error when size == 0. michael@0: michael@0: 2006-02-28 Chia-I Wu michael@0: michael@0: * src/base/ftobjs.c (FT_Done_Library): Remove modules in reverse michael@0: order so that type42 module is removed before truetype module. This michael@0: avoids double free in some occasions. michael@0: michael@0: 2006-02-28 David Turner michael@0: michael@0: * Release candidate VER-2-2-0-RC4. michael@0: ---------------------------------- michael@0: michael@0: * docs/CHANGES: Documentation updates. michael@0: michael@0: 2006-02-28 suzuki toshiya michael@0: michael@0: * modules.cfg (BASE_EXTENSIONS): Compile in ftgxval.c by default to michael@0: build ftvalid in ft2demos. It works as dummy ABI if gxvalid is not michael@0: built. michael@0: michael@0: 2006-02-27 Werner Lemberg michael@0: michael@0: * include/freetype/cache/ftccache.h michael@0: [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove declaration of michael@0: ftc_node_done. michael@0: michael@0: * src/cache/ftccache.c (ftc_node_destroy) michael@0: [!FT_CONFIG_OPTION_OLD_INTERNALS]: Mark as FT_LOCAL_DEF. This michael@0: should now fix all possible compilation options. michael@0: michael@0: 2006-02-27 David Turner michael@0: michael@0: * src/base/ftutil.c (ft_mem_alloc, ft_mem_qalloc, ft_mem_realloc, michael@0: ft_mem_qrealloc): Return an error if a negative size is passed in michael@0: parameters. michael@0: michael@0: * src/cache/ftccache.c (ftc_node_destroy): Mark as FT_BASE_DEF since michael@0: it needs to be exported for rogue clients. michael@0: michael@0: * src/pshinter/pshglob.c (psh_blues_set_zones_0): Prevent problems michael@0: with malformed fonts which have an odd number of blue values (these michael@0: are broken according to the specs). michael@0: michael@0: * src/cff/cffload.c (cff_subfont_load), src/type1/t1load.c michael@0: (T1_Open_Face): Modify the loaders to force even-ness of michael@0: `num_blue_values'. michael@0: michael@0: (cff_index_access_element): Ignore invalid entries in index files. michael@0: michael@0: 2006-02-27 Chia-I Wu michael@0: michael@0: * src/base/ftobjs.c (FT_Set_Char_Size): Check the case where width michael@0: or height is 0. michael@0: michael@0: 2006-02-27 suzuki toshiya michael@0: michael@0: * builds/mac/FreeType.m68k_cfm.make.txt, michael@0: builds/mac/FreeType.m68k_far.make.txt, michael@0: builds/mac/FreeType.ppc_carbon.make.txt, michael@0: builds/mac/FreeType.ppc_classic.make.txt: Update to new header michael@0: inclusion introduced on 2006-02-16. michael@0: michael@0: 2006-02-27 Chia-I Wu michael@0: michael@0: * src/base/ftobjs.c (GRID_FIT_METRICS): New macro. michael@0: (ft_glyphslot_grid_fit_metrics, FT_Load_Glyph) [GRID_FIT_METRICS]: michael@0: Re-enable glyph metrics grid-fitting. It is now done in the base michael@0: layer. michael@0: (FT_Set_Char_Size, FT_Set_Pixel_Sizes): Make sure the width and michael@0: height are not too small or too large, just like we were doing in michael@0: 2.1.10. michael@0: michael@0: * src/autofit/afloader.c (af_loader_load_g): The vertical metrics michael@0: are not scaled. michael@0: michael@0: 2006-02-26 Werner Lemberg michael@0: michael@0: * docs/release: Minor additions and clarifications. michael@0: michael@0: * docs/CHANGES: Updated to reflect many fixes for backwards michael@0: compatibility. Still incomplete. michael@0: michael@0: 2006-02-26 David Turner michael@0: michael@0: * src/base/ftobjs.c (ft_recompute_scaled_metrics): Re-enable michael@0: conservative rounding of metrics to avoid breaking clients like michael@0: Pango (see http://bugzilla.gnome.org/show_bug.cgi?id=327852). michael@0: michael@0: 2006-02-25 Werner Lemberg michael@0: michael@0: * devel/ftoption.h: Synchronize with michael@0: include/freetype/config/ftoption.h. michael@0: michael@0: * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF (again). michael@0: michael@0: 2006-02-25 David Turner michael@0: michael@0: Fix compiler warnings as well as C++ compilation problems. michael@0: Add missing prototypes. michael@0: michael@0: * src/autofit/afcjk.c, src/base/ftobjs.c, src/base/ftutil.c, michael@0: src/bdf/bdfdrivr.c, src/cff/cffcmap.c, src/cff/cffobjs.c, michael@0: src/psaux/afmparse.c,, src/psaux/t1cmap.c, src/smooth/ftgrays.c michael@0: src/tools/apinames.c, src/truetype/ttdriver.c: Add various casts, michael@0: initialize variables, and decorate functions with FT_CALLBACK_DEF, michael@0: etc., to fix compiler warnings (and C++ compiling errors). michael@0: michael@0: * src/cache/ftcbasic.c: Fix `-Wmissing-prototypes' warnings with michael@0: gcc. michael@0: michael@0: * builds/unix/ftsystem.c: Don't include FT_INTERNAL_OBJECTS_H but michael@0: FT_INTERNAL_STREAM_H. michael@0: michael@0: * src/base/ftsystem.c: Include FT_INTERNAL_STREAM_H. michael@0: michael@0: * include/freetype/config/ftheader.h (FT_PFR_H): New macro. michael@0: michael@0: * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): Don't michael@0: define for C++. michael@0: michael@0: * include/freetype/internal/services/svotval.h: Don't include michael@0: FT_OPENTYPE_VALIDATE_H but FT_INTERNAL_VALIDATE_H. michael@0: michael@0: * include/freetype/internal/services/svpfr.h: Include FT_PFR_H. michael@0: michael@0: * src/gzip/ftgzip.c: Include FT_GZIP_H. michael@0: michael@0: * src/lzw/ftlzw.c, src/lzw/ftlzw2.c: Include FT_LZW_H. michael@0: michael@0: * src/sfnt/ttbdf.c (tt_face_load_bdf_props): Rearrange code. michael@0: michael@0: 2006-02-24 Chia-I Wu michael@0: michael@0: * src/base/ftoutln.c (FT_OUTLINE_GET_CONTOUR, ft_contour_has, michael@0: ft_contour_enclosed, ft_outline_get_orientation): Commented out. We michael@0: have to wait until `FT_GlyphSlot_Own_Bitmap' is stabilized. michael@0: (FT_Outline_Embolden): Use `FT_Outline_Get_Orientation'. michael@0: michael@0: 2006-02-24 Chia-I Wu michael@0: michael@0: * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Update michael@0: documentation. michael@0: michael@0: * include/freetype/ftsynth.h (FT_GlyphSlot_Own_Bitmap), michael@0: src/base/ftsynth.c (FT_GlyphSlot_Own_Bitmap): New function to make michael@0: sure a glyph slot owns its bitmap. It is also marked experimental michael@0: and due to change. michael@0: (FT_GlyphSlot_Embolden): Undo the last change. It turns out that michael@0: rendering the outline confuses some applications. michael@0: michael@0: 2006-02-24 David Turner michael@0: michael@0: * Release candidate VER-2-2-0-RC3. michael@0: ---------------------------------- michael@0: michael@0: * src/cache/ftcbasic.c: Correct compatibility hack bug. michael@0: michael@0: 2006-02-24 Chia-I Wu michael@0: michael@0: * include/freetype/freetype.h (FT_Size_RequestRec): Change the type michael@0: of `width' and `height' to `FT_Long'. michael@0: (enum FT_Size_Request_Type), src/base/ftobjs.c (FT_Request_Metrics): michael@0: New request type `FT_SIZE_REQUEST_TYPE_SCALES' to specify the scales michael@0: directly. michael@0: michael@0: 2006-02-23 David Turner michael@0: michael@0: Two BDF patches from Debian libfreetype6 for 2.1.10. michael@0: michael@0: * src/bdf/bdflib.c (_bdf_parse_glyphs): Fix a bug with zero-width michael@0: glyphs. michael@0: Fix a problem with large encodings. michael@0: michael@0: michael@0: Fix binary compatibility issues for gnustep-back (GNUstep backend michael@0: module) which still crashes under Sarge. michael@0: michael@0: * src/cache/ftccmap.c (FTC_OldCMapType, FTC_OldCMapIdRec, michael@0: FTC_OldCMapDesc) [FT_CONFIG_OPTION_OLD_INTERNALS]: New data michael@0: structures and enumerations. michael@0: (FTC_CMapCache_Lookup) [FT_CONFIG_OPTION_OLD_INTERNALS]: New michael@0: compatibility code. michael@0: michael@0: * src/cache/ftcbasic.c: Fix a silly bug that prevented our `hack' to michael@0: support rogue clients compiled against 2.1.7 to work correctly. michael@0: This probably explains the GNUstep crashes with the second release michael@0: candidate. michael@0: michael@0: 2006-02-23 Chia-I Wu michael@0: michael@0: * include/freetype/ftoutln.h (enum FT_Orientation): New value michael@0: `FT_ORIENTATION_NONE'. michael@0: michael@0: * src/base/ftoutln.c (FT_OUTLINE_GET_CONTOUR, ft_contour_has, michael@0: ft_contour_enclosed, ft_outline_get_orientation): Another version of michael@0: `FT_Outline_Get_Orientation'. This version differs from the public michael@0: one in that each part (contour not enclosed in another contour) of the michael@0: outline is checked for orientation. michael@0: (FT_Outline_Embolden): Use `ft_outline_get_orientation'. michael@0: michael@0: * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Render the outline and michael@0: use bitmap's embolden routine when the outline one failed. michael@0: michael@0: 2006-02-22 Chia-I Wu michael@0: michael@0: * modules.cfg: Compile in ftotval.c and ftxf86.c by default for ABI michael@0: compatibility. michael@0: michael@0: * src/sfnt/sfobjs.c (sfnt_done_face): Fix a memory leak. michael@0: michael@0: * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_bit_aligned, michael@0: tt_sbit_decoder_load_byte_aligned) [FT_OPTIMIZE_MEMORY]: Fix sbit michael@0: loading. (Only tested with bit aligned sbit with x_pos == 0.) michael@0: michael@0: * src/truetype/ttpload.c (tt_face_load_hdmx, michael@0: tt_face_get_device_metrics) [FT_OPTIMIZE_MEMORY]: `hdmx' is not michael@0: actually used. michael@0: michael@0: 2006-02-21 David Turner michael@0: michael@0: Add a new API named FT_Get_TrueType_Engine_Type to determine whether michael@0: we have a patented, unpatented, or unimplemented TrueType bytecode michael@0: interpreter. michael@0: michael@0: The FT_Get_Module_Flags API was removed consequently. michael@0: michael@0: * include/freetype/ftmodapi.h (FT_Module_Get_Flags): Removed. michael@0: Replaced with... michael@0: (FT_Get_TrueType_Engine_Type): This. michael@0: (FT_TrueTypeEngineType): New enumeration. michael@0: michael@0: * include/freetype/internal/ftserv.h (FT_SERVICE_TRUETYPE_ENGINE_H): michael@0: New macro. michael@0: michael@0: * src/base/ftobjs.c: Include FT_SERVICE_TRUETYPE_ENGINE_H. michael@0: (FT_Module_Get_Flags): Removed. Replaced with... michael@0: (FT_Get_TrueType_Engine_Type): This. michael@0: michael@0: * src/truetype/ttdriver.c: Include FT_SERVICE_TRUETYPE_ENGINE_H. michael@0: (tt_service_truetype_engine): New service structure. michael@0: (tt_services): Register it. michael@0: michael@0: * include/freetype/internal/services/svtteng.h: New file. michael@0: michael@0: michael@0: * src/sfnt/sfobjs.c (sfnt_load_face): Fix silly bug that prevented michael@0: embedded bitmaps from being correctly listed and used. michael@0: michael@0: michael@0: * src/sfnt/ttmtx.c (tt_face_load_hmtx): Disable memory optimization michael@0: if FT_CONFIG_OPTION_OLD_INTERNALS is used. The is necessary because michael@0: libXfont is directly accessing the HMTX data, unfortunately. michael@0: Fix some compiler warnings. michael@0: (tt_face_get_metrics): Ditto. michael@0: michael@0: michael@0: * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Fix handling of michael@0: character advances. michael@0: michael@0: 2006-02-20 David Turner michael@0: michael@0: Support binary compatibility with the X.Org server's Xfont library. michael@0: Note that this change unfortunately prevents memory optimizations michael@0: for the embedded bitmap loader. michael@0: michael@0: * include/freetype/internal/sfnt.h (SFNT_Interface): Move michael@0: `set_sbit_strike' and `load_sbit_metrics' fields to the location of michael@0: version 2.1.8. michael@0: michael@0: * src/sfnt/sfdriver.c (tt_face_set_sbit_strike_stub): Call michael@0: FT_Size_Request. michael@0: (sfnt_interface): Updated. michael@0: michael@0: * src/sfnt/ttsbit.c [FT_CONFIG_OPTION_OLD_INTERNALS]: Don't load michael@0: ttsbit0.c. michael@0: (tt_load_sbit_metrics): Make `sbit_small_metrics_fields' static. michael@0: michael@0: * src/sfnt/ttsbit.h: Updated. michael@0: michael@0: 2006-02-17 David Turner michael@0: michael@0: * builds/unix/unix-cc.in (LINK_LIBRARY): Don't filter out exported michael@0: functions anymore. This ensures that all FT_BASE internal functions michael@0: are available for dynamic linking. michael@0: michael@0: * include/freetype/ftcache.h (FTC_IMAGE_TYPE_COMPARE, michael@0: FTC_IMAGE_TYPE_HASH), src/cache/ftcbasic.c (FTC_OldFontRec, michael@0: FTC_OldImageDescRec, FTC_ImageCache_Lookup, FTC_Image_Cache_New, michael@0: FTC_OldImage_Desc, FTC_OLD_IMAGE_FORMAT, ftc_old_image_xxx, michael@0: ftc_image_type_from_old_desc, FTC_Image_Cache_Lookup, michael@0: FTC_SBitCache_Lookup, FTC_SBit_Cache_New, FTC_SBit_Cache_Lookup) michael@0: [FT_CONFIG_OPTION_OLD_INTERNALS]: Try to revive old functions of the michael@0: cache sub-system. We try to recognize old legacy signatures with a michael@0: gross hack (hope it works). michael@0: michael@0: 2006-02-17 Werner Lemberg michael@0: michael@0: * devel/ftoption.h: Synchronize with michael@0: include/freetype/config/ftoption.h. michael@0: michael@0: 2006-02-16 David Turner michael@0: michael@0: Massive changes to the internals to respect the internal object michael@0: layouts and exported functions of FreeType 2.1.7. Note that the michael@0: cache sub-system cannot be fully retrofitted, unfortunately. michael@0: michael@0: * include/freetype/config/ftoption.h michael@0: (FT_CONFIG_OPTION_OLD_INTERNALS): New macro. michael@0: michael@0: * include/freetype/ftcache.h, include/freetype/cache/ftccache.h, michael@0: include/freetype/cache/ftccmap.h, michael@0: include/freetype/internal/ftcalc.h, michael@0: include/freetype/internal/ftdriver.h, michael@0: include/freetype/internal/ftmemory.h, michael@0: include/freetype/internal/ftobjs.h, michael@0: include/freetype/internal/psaux.h, include/freetype/internal/sfnt.h, michael@0: include/freetype/internal/t1types.h, michael@0: include/freetype/internal/tttypes.h, src/base/ftcalc.c, michael@0: src/base/ftdbgmem.c, src/base/ftobjs.c, src/base/ftutil.c, michael@0: src/bdf/bdfdrivr.c, src/cache/ftccache.c, src/cache/ftccback.h, michael@0: src/cache/ftcmanag.c, src/cff/cffdrivr.c, src/cid/cidriver.c, michael@0: src/pcf/pcfdrivr.c, src/pfr/pfrdrivr.c, src/psaux/psauxmod.c, michael@0: src/sfnt/sfdriver.c, src/truetype/ttdriver.c, src/type1/t1driver.c, michael@0: src/type1/t1objs.c, src/type42/t42drivr.c, src/winfonts/winfnt.c: michael@0: Use FT_CONFIG_OPTION_OLD_INTERNALS to revive old functions and data michael@0: structures. michael@0: michael@0: Move newly added structure elements to the end of the affected michael@0: structure and add stub fields (if FT_CONFIG_OPTION_OLD_INTERNALS is michael@0: defined) to assure binary compatibility with older FreeType michael@0: versions. michael@0: Use FT_CONFIG_OPTION_OLD_INTERNALS to add function stubs for old michael@0: functions: michael@0: michael@0: ft_stub_set_char_sizes michael@0: ft_stub_set_pixel_sizes michael@0: michael@0: Rename the following internal functions to provide the old function michael@0: names as stubs: michael@0: michael@0: FT_Alloc -> ft_mem_alloc michael@0: FT_QAlloc -> ft_mem_qalloc michael@0: FT_Realloc -> ft_mem_realloc michael@0: FT_QRealloc -> ft_mem_qrealloc michael@0: FT_Free -> ft_mem_free michael@0: FT_Alloc_Debug -> ft_mem_alloc_debug michael@0: FT_QAlloc_Debug -> ft_mem_qalloc_debug michael@0: FT_Realloc_Debug -> ft_mem_realloc_debug michael@0: FT_QRealloc_Debug -> ft_mem_qrealloc_debug michael@0: FT_Free_Debug -> ft_mem_free_debug michael@0: michael@0: 2006-02-15 Chia-I Wu michael@0: michael@0: * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Remove michael@0: unused `max_points' and `max_contours'. michael@0: michael@0: * src/cid/cidobjs.c (cid_face_init), src/type1/t1objs.c michael@0: (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Update. michael@0: michael@0: * include/freetype/internal/tttypes.h (TT_FaceRec): Remove unused michael@0: `max_components'. michael@0: michael@0: * src/truetype/ttinterp.h (TT_ExecContextRec): Remove unused michael@0: `loadSize' and `loadStack'. michael@0: michael@0: * src/truetype/ttinterp.c (TT_Done_Context, TT_Load_Context), michael@0: src/sfnt/ttload.c (tt_face_load_maxp): Update. michael@0: michael@0: * src/cff/cffobjs.h (cff_size_select), src/sfnt/sfdriver.c michael@0: (sfnt_interface), src/truetype/ttdriver.c (tt_size_request): Fix michael@0: compiler errors/warnings when TT_CONFIG_OPTION_EMBEDDED_BITMAPS is not michael@0: defined. michael@0: michael@0: * src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_get_metrics): Fix michael@0: possible segment faults for the non-FT_OPTIMIZE_MEMORY'ed versions. michael@0: (finally!) michael@0: michael@0: michael@0: For most OpenType tables, `tt_face_load_xxxx' simply loads the table michael@0: and `face->root' is set later in `sfnt_load_face'. Here, we try to michael@0: make this work for _all_ tables. Also improve tracing messages. michael@0: michael@0: * src/sfnt/ttsbit.c, src/sfnt/ttsbit0.c, src/sfnt/ttload.c, michael@0: src/sfnt/ttmtx.c: all `tt_face_load_xxxx' should load the table and michael@0: then exit. Error handling or setting face->root is done later in michael@0: `sfnt_load_face'. michael@0: michael@0: * src/sfnt/sfobjs.c (sfnt_load_face): Work harder. michael@0: Mac bitmap-only fonts are not scalable. michael@0: Check that `face->header.Units_Per_EM' is not zero. michael@0: (LOAD_, LOADM_): Emit pretty trace messages. michael@0: michael@0: * src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): Read metrics michael@0: from `eblc'. michael@0: michael@0: * src/sfnt/ttcmap.c (tt_face_build_cmaps), src/sfnt/ttpost.c michael@0: (load_format_20, load_format_25, tt_face_get_ps_name): Use michael@0: face->max_profile.numGlyphs, instead of face->root.num_glyphs. michael@0: michael@0: 2006-02-14 Werner Lemberg michael@0: michael@0: * include/freetype/ftoutln.h (FT_Outline_Embolden): Mention in michael@0: documentation that negative strength values are possible. michael@0: Give an example call. michael@0: michael@0: * include/freetype/freetype.h (FT_GlyphSlotRec): Improve michael@0: documentation of `outline' field. michael@0: michael@0: * src/sfnt/sfobjc.s: Inckude FT_INTERNAL_DEBUG_H. michael@0: * src/sfnt/sfdriver.c: Include ttmtx.h. michael@0: michael@0: * src/autofit/afcjk.c: Include aftypes.h and aflatin.h. michael@0: michael@0: 2006-02-14 Chia-I Wu michael@0: michael@0: * src/sfnt/ttmtx.c (tt_face_get_metrics): Typo. michael@0: michael@0: 2006-02-14 Chia-I Wu michael@0: michael@0: * src/sfnt/ttmtx.c (tt_face_load_hhea, tt_face_load_hmtx): Simply michael@0: return error if table is missing. michael@0: Check table length in non-FT_OPTIMIZE_MEMORY'ed `tt_face_load_hmtx'. michael@0: michael@0: * src/sfnt/sfobjs.c (sfnt_load_face): Take care of missing metrics michael@0: tables. The last change makes Mac bitmap-only font not load and michael@0: this fixes it. michael@0: michael@0: * src/truetype/ttgload.c (load_truetype_glyph): Fix compilation michael@0: error when FT_CONFIG_OPTION_INCREMENTAL is defined. michael@0: michael@0: 2006-02-13 Chia-I Wu michael@0: michael@0: Clean up the SFNT_Interface. In this final pass, `load_hmtx' is michael@0: split from `load_hhea'. michael@0: michael@0: * include/freetype/internal/sfnt.h, src/sfnt/sfdriver.c, michael@0: src/sfnt/ttmtx.c, src/sfnt/ttmtx.h: Split `hmtx' from `hhea'. michael@0: michael@0: * src/sfnt/sfobjs.c (sfnt_load_face): Update. michael@0: michael@0: 2006-02-13 Chia-I Wu michael@0: michael@0: * src/sfnt/ttmtx.h, src/sfnt/ttmtx.c: Why are there two copies of michael@0: code... michael@0: michael@0: 2006-02-13 Chia-I Wu michael@0: michael@0: Clean up the SFNT_Interface. In this pass, we want to treat the michael@0: font directory (offset table and table directory) as a normal table michael@0: like the others. This also means that TTCs are no longer recognized michael@0: there but in `init_face'. michael@0: michael@0: * include/freetype/internal/sfnt.h (SFNT_Interface), michael@0: src/sfnt/sfdriver.c: `load_sfnt_header' and `load_directory' are michael@0: combined and renamed to `load_font_dir'. michael@0: michael@0: * src/sfnt/ttload.h, src/sfnt/ttload.c: michael@0: s/sfnt_dir_check/check_table_dir/. michael@0: `sfnt_init' is moved to sfobjs.c and renamed to `sfnt_open_font'. michael@0: `tt_face_load_sfnt_header' and `tt_face_load_directory' are combined michael@0: and renamed to `tt_face_load_font_dir'. michael@0: michael@0: * src/sfnt/sfobjs.c (sfnt_init_face): Recognize TTC here. michael@0: michael@0: 2006-02-13 Chia-I Wu michael@0: michael@0: Clean up the SFNT_Interface. Table loading functions are now named michael@0: after the tables' tags; `hdmx' is TrueType-specific and thus the michael@0: code is moved to the truetype module; `get_metrics' is moved here michael@0: from the truetype module so that the code can be shared with the cff michael@0: module. michael@0: michael@0: This pass involves no real changes. That is, the code is moved michael@0: verbatim mostly. The only exception is the return value of michael@0: `tt_face_get_metrics'. michael@0: michael@0: * include/freetype/internal/sfnt.h, src/sfnt/rules.mk, michael@0: src/sfnt/sfdriver.c, src/sfnt/sfnt.c, src/sfnt/sfobjs.c, michael@0: src/sfnt/ttload.c, src/sfnt/ttload.h, src/sfnt/ttsbit.c, michael@0: src/sfnt/ttsbit.h, src/sfnt/ttsbit0.c: Clean up the SFNT_Interface. michael@0: michael@0: * src/sfnt/ttmtx.c, src/sfnt/ttmtx.h: New files. Metrics-related michael@0: tables' loading and parsing code is moved to here. michael@0: Move `tt_face_get_metrics' here from the truetype module. The michael@0: return value is changed from `void' to `FT_Error'. michael@0: michael@0: * include/freetype/internal/fttrace.h: New trace: ttmtx. michael@0: michael@0: * src/truetype/ttpload.c, src/truetype/ttpload.h: `hdmx' loading and michael@0: parsing code is moved here. michael@0: New function `tt_face_load_prep' split from `tt_face_load_fpgm'. michael@0: `tt_face_load_fpgm' returns `FT_Err_Ok' if `fpgm' doesn't exist. michael@0: michael@0: * src/cff/cffgload.c, src/cff/cffobjs.c: Update. michael@0: michael@0: * src/truetype/ttgload.c, src/truetype/ttobjs.c: Update. michael@0: michael@0: 2006-02-11 Chia-I Wu michael@0: michael@0: * src/autofit/afcjk.c (af_cjk_metrics_init): Fix a stupid bug... michael@0: michael@0: * src/autofit/aflatin.c (af_latin_metrics_init_widths): Use michael@0: AF_LatinMetricsRec as the dummy metrics because we cast the metrics michael@0: to it later in `af_latin_hints_link_segments'. michael@0: michael@0: 2006-02-11 Chia-I Wu michael@0: michael@0: * include/freetype/config/ftoption.h (AF_CONFIG_OPTION_CJK): #define michael@0: to enable autofit CJK script support. (#define'd by default.) michael@0: michael@0: * src/autofit/aflatin.h (AF_LATIN_CONSTANT): New macro. michael@0: michael@0: * src/autofit/aflatin.c (af_latin_metrics_init_widths): Make sure michael@0: that `edge_distance_threshold' is always set. michael@0: (af_latin_hints_link_segments): Potential divide-by-zero bug. michael@0: Use latin constant in the scoring formula. michael@0: michael@0: * src/autofit/afcjk.c: Minor updates due to the above three changes. michael@0: michael@0: * docs/TODO, docs/CHANGES: Updated. michael@0: michael@0: 2006-02-09 Chia-I Wu michael@0: michael@0: Introduce experimental autofit CJK module based on akito's autohint michael@0: patch. You need to #define AF_MOD_CJK in afcjk.c to enable it. michael@0: michael@0: * src/autofit/afglobal.c, src/autofit/afcjk.h, src/autofit/afcjk.c, michael@0: src/autofit/rules.mk, src/autofit/autofit.c, src/autofit/aftypes.h: michael@0: Add CJK module based on akito's autohint patch. michael@0: michael@0: * src/autofit/afhints.h (AF_SegmentRec): New field `len' for the michael@0: overlap length of the segments. michael@0: (AF_SEGMENT_LEN, AF_SEGMENT_DIST): New macros. michael@0: michael@0: * src/autofit/aflatin.h (af_latin_metrics_init_widths), michael@0: src/autofit/aflatin.c (af_latin_metrics_init_widths): Made michael@0: `FT_LOCAL'. michael@0: Use the character given by the caller. michael@0: (af_latin_metrics_init_widths, af_latin_hints_link_segments): Scale michael@0: the thresholds. michael@0: michael@0: * src/autofit/afloader.c (af_loader_load_g): Respect michael@0: AF_SCALER_FLAG_NO_ADVANCE. michael@0: michael@0: 2006-02-09 Werner Lemberg michael@0: michael@0: * src/cid/cidparse.c (cid_parse_new): Remove shadowing variable. michael@0: michael@0: 2006-02-09 suzuki toshiya michael@0: michael@0: * src/cid/cidparse.c (cid_parse_new): Fix for abnormally short or michael@0: broken CIDFont. Reported by Taek Kwan(TK) Lee (see ft-devel michael@0: 2005-11-02). michael@0: michael@0: 2006-02-08 suzuki toshiya michael@0: michael@0: * builds/unix/configure.ac: Fix bug for `--with-old-mac-fonts' michael@0: option on UNIX platform. It has been broken since 2006-01-11. michael@0: michael@0: 2006-02-01 Werner Lemberg michael@0: michael@0: * src/otvalid/module.mk: s/otvalid_module_class/otv_module_class/. michael@0: * src/gxvalid/module.mk: s/gxvalid_module_class/gxv_module_class/. michael@0: michael@0: * builds/unix/unixddef.mk: Actually do define PLATFORM (fixing michael@0: change from 2006-01-31). michael@0: (TOP_DIR, OBJ_DIR): Update. michael@0: michael@0: * builds/unix/install.mk (install): Fix path for ftmodule.h. michael@0: michael@0: * Makefile, *.mk, builds/unix/unix-cc.in, builds/unix-def.in: Use michael@0: `?=' where appropriate. michael@0: michael@0: * builds/detect.mk (TOP_DIR), builds/os2/os2-dev.mk (TOP_DIR), michael@0: builds/win32/w32-dev.mk (TOP_DIR): Removed. Defined elsewhere. michael@0: michael@0: 2006-01-31 Werner Lemberg michael@0: michael@0: Implement new, simplified module selection. With GNU make it is now michael@0: sufficient to modify a single file, `modules.cfg', to control the michael@0: inclusion of modules and base extension files. michael@0: michael@0: This change also fixes the creation of ftmodule.h; it now depends on michael@0: `modules.cfg' and thus is rebuilt only if necessary. michael@0: michael@0: Finally, a version of `ftoption.h' in OBJ_DIR is preferred over the michael@0: default location. michael@0: michael@0: * modules.cfg: New file. michael@0: michael@0: * builds/freetype.mk: Don't include `modules.mk'. michael@0: Include all `rules.mk' files as specified in `modules.cfg'. michael@0: (FTOPTION_FLAG, FTOPTION_H): New variables. michael@0: (FT_CFLAGS): Add macro definition for FT_CONFIG_MODULES_H. michael@0: Add FTOPTION_FLAG. michael@0: ($(FT_INIT_OBJ)): Don't use FT_MODULE_LIST. michael@0: (CONFIG_H): Add FTMODULE_H and FTOPTION_H. michael@0: (INCLUDES): Add DEVEL_DIR. michael@0: (INCLUDE_FLAGS, FTSYS_SRC, FTSYS_OBJ, FTDEBUG_SRC, FTDEBUG_OBJ, michael@0: OBJ_M, OBJ_S): Use `:=', not `='. michael@0: (remove_ftmodule_h): New phony target to delete `ftmodule.h'. michael@0: (distclean): Add remove_ftmodule_h. michael@0: michael@0: * builds/modules.mk: (MODULE_LIST): Removed. michael@0: (make_module_list, clean_module_list): Replace targets michael@0: with... michael@0: (FTMODULE_H_INIT, FTMODULE_H_CREATE, FTMODULE_H_DONE): New michael@0: variables. Reason for the change is that it is not possible to have michael@0: a phony prerequisite which is run only if the target file must be michael@0: rebuilt (phony prerequisites act like subroutines and are *always* michael@0: executed). We only want to rebuild `ftmodule.h' if `module.cfg' is michael@0: changed. michael@0: Update all callers. michael@0: ($FTMODULE_H)): Rule to create `ftmodule.h', depending on michael@0: `modules.cfg'. michael@0: michael@0: * builds/toplevel.mk: Rewrite and simplify module handling. michael@0: (MODULES_CFG, FTMODULE_H): New variables. michael@0: Include MODULES_CFG. michael@0: (MODULES): New variable to include all `module.mk' and `rules.mk' michael@0: files. We no longer use make's `wildcard' function for this. michael@0: michael@0: * Makefile (USE_MODULES): Remove. Update all users. michael@0: (OBJ_DIR): Define it here. michael@0: michael@0: * src/*/module.mk: Change michael@0: michael@0: make_module_list: foo michael@0: foo: ... michael@0: michael@0: to michael@0: michael@0: FTMODULE_H_COMMANDS += FOO michael@0: define FOO michael@0: ... michael@0: endef michael@0: michael@0: in all files. `FTMODULE_H_COMMANDS' is used in `FTMODULE_H_CREATE'. michael@0: michael@0: * src/base/rules.mk (BASE_EXT_SRC): Use BASE_EXTENSIONS. michael@0: michael@0: * builds/unix/detect.mk (setup): Always execute `configure' script. michael@0: (have_mk): Rename to... michael@0: (have_Makefile): This. michael@0: Don't use `strip' function. michael@0: michael@0: * builds/unix/unix.mk: Include `install.mk' only if BUILD_PROJECT is michael@0: defined. michael@0: (have_mk): Don't use `strip' function. michael@0: Test for unix-def.mk in OBJ_DIR, not BUILD_DIR (and invert the test michael@0: accordingly). michael@0: michael@0: * builds/unix/install.mk (install, uninstall): Handle `ftmodule.h'. michael@0: michael@0: * builds/os2/os2-dev.mk, builds/unix/unix-dev.mk, michael@0: builds/win32/w32-bccd.mk, builds/win32/w32-dev.mk: Don't define michael@0: BUILD_DIR but DEVEL_DIR for development header files. michael@0: michael@0: * builds/ansi/ansi-def.mk (TOP_DIR, OBJ_DIR), michael@0: builds/beos/beos-def.mk (TOP_DIR, OBJ_DIR), builds/unix/unix-def.in michael@0: (TOP_DIR, OBJ_DIR): Removed. Defined elsewhere. michael@0: michael@0: * builds/dos/dos-def.mk (OBJ_DIR), builds/os2/os2-def.mk (OBJ_DIR), michael@0: builds/win32/win32-def.mk (OBJ_DIR): Removed. Defined elsewhere. michael@0: michael@0: * builds/unix/unixddef.mk: Don't define BUILD_DIR but DEVEL_DIR for michael@0: development header files. michael@0: Don't define PLATFORM. michael@0: michael@0: * configure: Copy `modules.cfg' to builddir if builddir != srcdir. michael@0: Update snippet taken from autoconf's m4sh.m4 to current CVS version. michael@0: Be more verbose. michael@0: michael@0: * include/freetype/config/ftmodule.h: Add comments -- this file is michael@0: no longer used if FreeType is built with GNU make. michael@0: michael@0: * docs/CHANGES, docs/CUSTOMIZE, docs/INSTALL, docs/INSTALL.ANY, michael@0: docs/INSTALL.GNU, docs/INSTALL.UNX: Document new build mechanism. michael@0: Other minor updates. michael@0: michael@0: * modules.txt: Removed. Contents included in `modules.cfg'. michael@0: michael@0: michael@0: * include/freetype/internal/ftmemory.h (FT_QAlloc_Debug, michael@0: FT_Free_Debug) [FT_STRICT_ALIASING]: Fix typos. michael@0: michael@0: * src/base/ftdbgmem.c (FT_Alloc_Debug, FT_Realloc_Debug, michael@0: FT_QAlloc_Debug, FT_QRealloc_Debug, FT_Free_Debug) michael@0: [FT_STRICT_ALIASING]: Implement. michael@0: michael@0: 2006-01-31 Chia-I Wu michael@0: michael@0: * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c michael@0: (cid_face_init), src/pfr/pfrobjs.c (pfr_face_init), michael@0: src/type1/t1objs.c (T1_Face_Init): Set face->height to MAX(1.2 * michael@0: units_per_EM, ascender - descender). michael@0: michael@0: 2006-01-31 Chia-I Wu michael@0: michael@0: * include/freetype/internal/t1types.h (AFM_FontInfo), michael@0: src/psaux/afmparse.c, src/tools/test_afm.c: Read `FontBBox', michael@0: `Ascender', and `Descender' from an AFM. michael@0: michael@0: * src/type1/t1afm.c (T1_Read_Metrics): Use the metrics from the AFM. michael@0: michael@0: * include/freetype/freetype.h (FT_FaceRec): Mention that fields may michael@0: be changed after file attachment. michael@0: michael@0: 2006-01-28 Werner Lemberg michael@0: michael@0: * src/*/module.mk (.PHONY): Add. michael@0: michael@0: 2006-01-27 Werner Lemberg michael@0: michael@0: * README, docs/FTL.TXT: Fix email address for bug reports. michael@0: Other minor formatting. michael@0: michael@0: * devel/ftoption.h: Synchronize with michael@0: include/freetype/config/ftoption.h. michael@0: michael@0: * src/autofit/module.mk (add_autofit_module), src/bdf/module.mk michael@0: (add_bdf_module), src/type42/module.mk (add_type42_driver): Fix michael@0: whitespace. michael@0: michael@0: * src/smooth/module.mk (add_smooth_renderer): Add lcd and lcdv michael@0: renderer classes. michael@0: michael@0: 2006-01-27 David Turner michael@0: michael@0: * builds/unix/configure.ac: Fix build problem on Cygwin. michael@0: michael@0: * builds/unix/install.mk (install): Don't install the internal michael@0: headers, and remove existing ones if found in the target install michael@0: directory. michael@0: michael@0: * src/autofit/afwarp.c: Add simple #ifdef to prevent compilation michael@0: if the warp hinter isn't active (it shouldn't, still experimental). michael@0: michael@0: * Jamfile, include/freetype/config/ftmodule.h: Remove `gxvalid' michael@0: and `otvalid' from the list of modules that are linked statically michael@0: to a given FreeType library. Functionality has been moved to the michael@0: `ftvalid' CVS module. michael@0: michael@0: Note also that current Make-based build system still compiles the michael@0: modules though. michael@0: michael@0: * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): New macro michael@0: which controls the definitions of the memory management functions to michael@0: avoid warnings with recent versions of GCC. This macro is only here michael@0: to be disabled, in case we detect problems with the new scheme. michael@0: michael@0: NOTE: Disable macro to use the memory debugger -- this will be fixed michael@0: later! michael@0: michael@0: * include/freetype/internal/ftmemory.h, src/base/ftutil.c (FT_Alloc, michael@0: FT_QAlloc, FT_Realloc, FT_QRealloc, FT_Free) [FT_STRICT_ALIASING]: michael@0: New versions. michael@0: michael@0: michael@0: * builds/win32/visualc/freetype.dsp: Updating project file to michael@0: define FT2_BUILD_LIBRARY, and remove gxvalid + otvalid modules from michael@0: compilation. michael@0: michael@0: michael@0: * builds/freetype.mk (FT_CFLAGS), Jamfile (DEFINES): Define the michael@0: macro FT2_BUILD_LIBRARY when compiling the library. michael@0: michael@0: * include/freetype/config/ftheader.h: Remove inclusions of internal michael@0: headers except if the macro FT2_BUILD_LIBRARY is defined. michael@0: michael@0: michael@0: * include/freetype/internal/psaux.h (AFM_KernPair, AFM_TrackKern, michael@0: AFM_FontInfo): Move structure declarations to... michael@0: * include/freetype/internal/t1types.h: This file. michael@0: michael@0: michael@0: * (many files): Fix compiler warnings. michael@0: Various minor reorganizations. michael@0: michael@0: michael@0: * src/cff/cffload.c (cff_font_done): Don't free static array michael@0: `subfonts'. michael@0: michael@0: * src/otvalid/otvcommn.c (otv_ClassDef_validate), michael@0: src/otvalid/otvgpos.c (otv_x_sxy): Fix debugging information. michael@0: michael@0: michael@0: Get rid of writable static variables (i.e., the string table) in michael@0: afmparse, and fix compilation in FT2_MULTI mode. michael@0: michael@0: * src/psaux/afmparse.c: Include ft2build.h and FT_FREETYPE_H. michael@0: (AFM_MAX_ARGUMENTS): Define... michael@0: * src/psaux/afmparse.h: Here. michael@0: * src/psaux/Jamfile (_sources): Add afmparse. michael@0: michael@0: * src/psaux/psconv.c: Include psconv.h. michael@0: michael@0: * src/type1/t1afm.c: Don't include FT_INTERNAL_TYPE1_TYPES_H but michael@0: FT_INTERNAL_POSTSCRIPT_AUX_H. michael@0: * src/type1/t1afm.h: Include FT_INTERNAL_TYPE1_TYPES_H. michael@0: michael@0: 2006-01-23 Chia-I Wu michael@0: michael@0: * include/freetype/freetype.h (FT_Select_Size): Rename the second michael@0: argument from `idx' to `strike_index'. michael@0: (FT_Size_Request_Type): Add FT_SIZE_REQUEST_TYPE_MAX to the end of michael@0: this enum. michael@0: michael@0: * include/freetype/internal/ftobjs.h (FT_REQUEST_WIDTH, michael@0: FT_REQUEST_HEIGHT): New macros to get the width and height of a michael@0: request, in fractional pixels. michael@0: michael@0: * include/freetype/internal/ftobjs.h (FT_Select_Metrics, michael@0: FT_Request_Metrics), src/base/ftobjs.c (FT_Select_Metrics, michael@0: FT_Request_Metrics): New base functions to set the font metrics. They michael@0: were part of FT_Select_Size/FT_Request_Size and are made independent michael@0: functions so that metrics are not set again and again. michael@0: michael@0: * src/base/ftobjs.c (FT_Select_Size, FT_Request_Size): Metrics are set michael@0: only when driver's size_select/size_request is NULL. That is, drivers michael@0: should set the metrics themselves. michael@0: (FT_Match_Size): Round before matching. This was what we did and it michael@0: does cause some problems without rounding. michael@0: michael@0: * src/cff/cffobjs.c (cff_size_select), src/truetype/ttdriver.c michael@0: (tt_size_select): Set the font metrics. michael@0: s/index/strike_index/. michael@0: The scaled metrics are always preferred over strikes' metrics, even michael@0: when some strike is selected. This is done because the strikes' michael@0: metrics are not reliable, e.g., the sign of the descender is wrong for michael@0: some fonts. michael@0: michael@0: * src/cff/cffobjs.c (cff_size_request), src/truetype/ttdriver.c michael@0: (tt_size_request): Set the font metrics. michael@0: Call cff_size_select/tt_size_select when some strike is matched. michael@0: michael@0: * src/bdf/bdfdrivr.c, src/cff/cffobjs.c, src/cid/cidobjs.c, michael@0: src/pcf/pcfdrivr.c, src/truetype/ttdriver.c, src/type1/t1objs.c, michael@0: src/type1/t1objs.h, src/type42/t42objs.c, src/winfonts/winfnt.c: michael@0: Set the font metrics. michael@0: s/index/strike_index/. michael@0: michael@0: * src/tools/test_afm.c, src/psaux/psconv.c: Older versions of these michael@0: files were committed. Just a catch-up. michael@0: (PS_Conv_ToFixed): Remove the `goto'. michael@0: (PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Speed up a little. michael@0: michael@0: * src/sfnt/ttsbit.c (tt_face_load_sbit_strikes, michael@0: tt_face_load_strike_metrics), src/sfnt/ttsbit0.c michael@0: (tt_face_load_sbit_strikes, tt_face_load_strike_metrics): The michael@0: advertised metrics in `available_sizes' are different from those michael@0: actually used. michael@0: michael@0: 2006-01-23 Chia-I Wu michael@0: michael@0: * src/psaux/psaux.c src/psaux/psauxmod.c src/type1/t1driver.c: Make michael@0: AFM parser optional, controlled by `T1_CONFIG_OPTION_NO_AFM'. michael@0: michael@0: 2006-01-22 Werner Lemberg michael@0: michael@0: * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from michael@0: `texinfo' CVS module at savannah.gnu.org. michael@0: michael@0: 2006-01-21 Werner Lemberg michael@0: michael@0: * src/autofit/rules.mk (AUTOF_DRV_SRC): Add afwarp.c. michael@0: michael@0: * src/autofit/afloader.c (af_loader_load_g): Move AF_USE_WARPER up michael@0: to avoid compiler warnings. michael@0: michael@0: * src/autofit/afwarp.c (af_warper_compute_line_best): Remove michael@0: shadowing variable declarations. michael@0: Fix warning parameters and replace printf with AF_LOG. michael@0: (af_warper_compute): Remove unused variable. michael@0: michael@0: 2006-01-20 David Turner michael@0: michael@0: Adding experimental implementation of `warp hinting' (new hinting michael@0: algorithm for gray-level and LCD rendering). It is disabled by michael@0: default, you need to #define AF_USE_WARPER in aftypes.h. michael@0: michael@0: * src/autofit/afhints.c (af_glyph_hints_scale_dim) [AF_USE_WARPER]: michael@0: New function. michael@0: * src/autofit/afhints.h: Updated. michael@0: michael@0: * src/autofit/aflatin.c [AF_USE_WARPER]: Include afwarp.h. michael@0: (af_latin_hints_init) [AF_USE_WARPER]: Reset mode to michael@0: FT_RENDER_MODE_NORMAL if an LCD mode is selected. michael@0: (af_latin_hints_apply) [AF_USE_WARPER]: Call af_warper_compute michael@0: appropriately. michael@0: michael@0: * src/autofit/afloader.c (af_loader_load_g) [!AF_USER_WARPER]: michael@0: Isolate code for adjusting metrics. michael@0: michael@0: * src/autofit/aftypes.h (AF_USE_WARPER): New macro (commented out by michael@0: default). michael@0: michael@0: * src/autofit/afwarp.c, src/autofit/afwarp.h: New files. michael@0: michael@0: * src/autofit/autofit.c [AF_USE_WARPER]: Include afwarp.c. michael@0: michael@0: * src/autofit/Jamfile (_sources): Add afwarp. michael@0: michael@0: 2006-01-19 David Turner michael@0: michael@0: * src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): Fix small bug michael@0: that prevented compilation when FT_OPTIMIZE_MEMORY is defined. michael@0: michael@0: 2006-01-19 Brian Weed michael@0: michael@0: * builds/win32/visualc/freetype.dsp: Updated. michael@0: michael@0: 2006-01-17 Werner Lemberg michael@0: michael@0: Use pscmap service in CFF module. michael@0: michael@0: * src/cff/cffcmap.c (cff_cmap_uni_pair_compare): Removed. michael@0: (cff_sid_to_glyph_name): New function. michael@0: (cff_cmap_unicode_init, cff_cmap_unicode_done, michael@0: cff_cmap_unicode_char_index, cff_cmap_unicode_char next): Use pscmap michael@0: service. michael@0: (cff_cmap_unicode_class_rec): Updated. michael@0: * src/cff/cffcmap.h (CFF_CMapUnicode, CFF_CMap_UniPair): Removed. michael@0: michael@0: michael@0: * src/psnames/psmodule.c (ps_unicodes_char_next): Fix `unicode' michael@0: return value. michael@0: michael@0: michael@0: * src/psaux/afmparse.c (afm_parser_read_vals): Use double casting michael@0: to avoid compiler warnings regarding type-punning. michael@0: michael@0: 2006-01-16 Chia-I Wu michael@0: michael@0: * src/psaux/afmparse.c, src/psaux/afmparse.h: New files which michael@0: implement an AFM parser. michael@0: michael@0: * src/psaux/psconv.c, src/psaux/psconv.h: New files to provide michael@0: conversion functions (e.g., PS real number => FT_Fixed) for the michael@0: PS_Parser and AFM_Parser. Some of the functions are taken, with michael@0: some modifications, from the file psobjs.c. michael@0: michael@0: * src/psaux/psobjs.c: Use functions from psconv.c. michael@0: michael@0: * include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Add michael@0: `AFM_Parser' to the `psaux' service. michael@0: michael@0: * src/psaux/psaux.c, src/psaux/rules.mk (PSAUX_DRV_SRC): Include michael@0: those new files. michael@0: michael@0: * src/tools/test_afm.c: A test program for AFM parser. michael@0: michael@0: * include/freetype/internal/services/svkern.h: New file providing a michael@0: `Kerning' service. It is currently only used to get the track michael@0: kerning information. michael@0: michael@0: * include/freetype/internal/ftserv.h (FT_SERVICE_KERNING_H): New michael@0: macro. michael@0: michael@0: * src/type1/t1driver.c, src/type1/t1objs.c, src/type1/t1afm.c, michael@0: src/type1/t1afm.h: Update to use the AFM parser. michael@0: Provide the `Kerning' service. michael@0: michael@0: * include/freetype/freetype.h, src/base/ftobjs.c: New API michael@0: `FT_Get_Track_Kerning'. michael@0: michael@0: 2006-01-15 Chia-I Wu michael@0: michael@0: * include/freetype/internal/ftobjs.h, src/base/ftobjs.c, michael@0: src/bdf/bdfdrivr.c, src/cff/cffgload.c, src/cid/cidgload.c, michael@0: src/pcf/pcfdrivr.c, src/type1/t1gload.c, src/winfonts/winfnt.c: michael@0: s/ft_fake_vertical_metrics/ft_synthesize_vertical_metrics/. michael@0: michael@0: * docs/CHANGES: Mention that vertical metrics are synthesized for michael@0: fonts not having this info. michael@0: michael@0: 2006-01-15 Chia-I Wu michael@0: michael@0: * include/freetype/internal/ftobjs.h (ft_fake_vertical_metrics), michael@0: src/base/ftobjs.c (ft_fake_vertical_metrics): New function to fake michael@0: vertical metrics. michael@0: michael@0: * src/cff/cffgload.c, src/cid/cidgload.c, src/pcf/pcfdrivr.c, michael@0: src/type1/t1gload.c, src/winfonts/winfnt.c: Fake vertical metrics, michael@0: which are monotone. michael@0: michael@0: * src/truetype/ttgload.c (compute_glyph_metrics): Some fixes and michael@0: formattings in vertical metrics faking. There is still room for michael@0: improvements (and so does the CFF module). michael@0: michael@0: 2006-01-15 Chia-I Wu michael@0: michael@0: * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/pcf/pcfdrivr.c michael@0: (PCF_Glyph_Load), src/winfonts/winfnt.c (FNT_Load_Glyph): Don't set michael@0: the linear advance fields as they are only used by the outline michael@0: glyphs. michael@0: michael@0: * include/freetype/freetype.h: Documentation updates and michael@0: clarifications. michael@0: The meaning of FT_LOAD_FORCE_AUTOHINT is changed so that no real michael@0: change need be made to the code. michael@0: michael@0: * src/base/ftobjs.c (FT_Load_Glyph): Resolve flag dependencies and michael@0: decide whether to use the auto-hinter according to documentation. michael@0: There should to be no real difference. michael@0: Some checks (e.g., is text height positive?) after the glyph is michael@0: loaded. michael@0: (FT_Select_Size, FT_Request_Size): Scales are set to wrong values. michael@0: Be careful that scales won't be negative. michael@0: michael@0: 2006-01-14 Chia-I Wu michael@0: michael@0: * docs/CHANGES: Mention the size selection change. michael@0: michael@0: * src/bdf/bdfdrivr.c (BDF_Size_Request, BDF_Size_Select), michael@0: src/pcf/pcfdrivr.c (PCF_Size_Request, PCF_Size_Select), michael@0: src/winfonts/winfnt.c (FNT_Size_Request, FNT_Size_Select): Do size michael@0: matching for requests of type NOMINAL and REAL_DIM. michael@0: michael@0: * src/winfonts/winfnt.c (FNT_Face_Init): Print trace message when michael@0: `pixel_height' is used for nominal height. michael@0: michael@0: * src/base/ftobjs.c (FT_Request_Size): Call `FT_Match_Size' if the michael@0: face is bitmap only and driver doesn't provide `request_size'. This michael@0: is added merely for completion as no driver satisfies the conditions. michael@0: michael@0: 2006-01-13 Chia-I Wu michael@0: michael@0: Introduce new size selection interface. michael@0: michael@0: * include/freetype/internal/ftdriver.h (struct FT_Driver_ClassRec): michael@0: Replace `set_char_sizes' and `set_pixel_sizes' by `request_size' and michael@0: `select_size'. michael@0: michael@0: * include/freetype/freetype.h (FT_Select_Size, FT_Size_Request_Type, michael@0: FT_Size_Request, FT_Request_Size, FT_Select_Size), src/base/ftobjs.c michael@0: (FT_Select_Size, FT_Request_Size): API additions to export the new michael@0: size selection interface. michael@0: michael@0: * src/base/ftobjs.c (FT_Set_Char_Size, FT_Set_Pixel_Sizes): Use michael@0: `FT_Request_Size'. michael@0: michael@0: * include/freetype/internal/ftobjs.h (FT_Match_Size), michael@0: src/base/ftobjs.c (FT_Match_Size): New function to match a size michael@0: request against `available_sizes'. Drivers supporting bitmap strikes michael@0: can use this function to implement `request_size'. michael@0: michael@0: * src/bdf/bdfdrivr.c, src/cid/cidobjs.c, src/cid/cidobjs.h, michael@0: src/cid/cidriver.c, src/pcf/pcfdrivr.c, src/type1/t1driver.c, michael@0: src/type1/t1objs.c, src/type1/t1objs.h, src/type42/t42drivr.c, michael@0: src/type42/t42objs.c, src/type42/t42objs.h, src/winfonts/winfnt.c: michael@0: Update to new size selection interface. michael@0: michael@0: * src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffobjs.c, michael@0: src/cff/cffobjs.h, src/truetype/ttdriver.c, src/truetype/ttgload.c, michael@0: src/truetype/ttobjs.c, src/truetype/ttobjs.h: Update to new size michael@0: selection interface. michael@0: Make `strike_index' FT_ULong and always defined. michael@0: Use `load_strike_metrics' provided by SFNT interface. michael@0: michael@0: 2006-01-13 Chia-I Wu michael@0: michael@0: * include/freetype/internal/sfnt.h (SFNT_Interface): New method michael@0: `load_strike_metrics' used to load the strike's metrics. michael@0: michael@0: * src/sfnt/sfdriver.c, src/sfnt/ttsbit.c, src/sfnt/ttsbit.h, michael@0: src/sfnt/ttsbit0.c: New function `tt_face_load_strike_metrics'. michael@0: michael@0: * src/pfr/pfrobjs.c (pfr_face_init): Set FT_Bitmap_Size correctly. michael@0: michael@0: * src/winfonts/winfnt.c (FNT_Face_Init): Use `nominal_point_size' for michael@0: nominal size unless it is obviously incorrect. michael@0: michael@0: * include/freetype/freetype.h (FT_Bitmap_Size): Update the comments on michael@0: FNT driver. michael@0: michael@0: 2006-01-12 Werner Lemberg michael@0: michael@0: Prepare use of pscmap service within CFF module. michael@0: michael@0: * include/freetype/internal/services/svpscmap.h: Include michael@0: FT_INTERNAL_OBJECTS_H. michael@0: (PS_Unicode_Index_Func): Removed. Unused. michael@0: (PS_Macintosh_Name_Func): Renamed to... michael@0: (PS_Macintosh_NameFunc): This. michael@0: Update all callers. michael@0: (PS_Adobe_Std_Strings_Func): Renamed to... michael@0: (PS_Adobe_Std_StringsFunc): This. michael@0: Update all callers. michael@0: (PS_UnicodesRec): This is the former `PS_Unicodes' structure. michael@0: Add `cmap' member. michael@0: Update all callers. michael@0: (PS_Unicodes): This is now a typedef'd pointer to PS_UnicodesRec. michael@0: Update all callers. michael@0: (PS_Glyph_NameFunc): New typedef. michael@0: (PS_Unicodes_InitFunc): Change arguments to expect a function michael@0: and generic data pointer which returns a glyph name from a given michael@0: index. michael@0: michael@0: * src/psnames/psmodule.c (ps_unicodes_init, ps_unicodes_char_index, michael@0: ps_unicodes_char_next, pscmaps_interface): Updated. michael@0: michael@0: * include/freetype/internal/t1types.h (T1_FaceRec): Updated. michael@0: michael@0: * src/psaux/t1cmap.h (T1_CmapStdRec): Updated. michael@0: (T1_CmapUnicode, T1_CmapUnicodeRec): Removed. michael@0: michael@0: * src/psaux/t1cmap.c (t1_get_glyph_name): New callback function. michael@0: (t1_cmap_unicode_init, t1_cmap_unicode_done, michael@0: t1_cmap_unicode_char_index, t1_cmap_unicode_char_next, michael@0: t1_cmap_unicode_class_rec): Updated. michael@0: michael@0: * src/type42/t42types.h (T42_FaceRec): Updated. michael@0: michael@0: 2006-01-11 suzuki toshiya michael@0: michael@0: * include/freetype/ftmac.h: Add declaration of new functions michael@0: FT_New_Face_From_FSRef and FT_GetFile_From_Mac_ATS_Name that michael@0: were introduced by the jumbo patch on 2006-01-11. michael@0: michael@0: 2006-01-11 Werner Lemberg michael@0: michael@0: Fix Savannah bug #15056 and use pscmap service in psaux module. michael@0: michael@0: * include/freetype/internal/services/svpscmap.h (PS_UniMap): Use michael@0: FT_UInt32 for `glyph_index'. michael@0: (PS_Unicodes_InitFunc): Use FT_String for `glyph_names'. michael@0: (PS_Unicodes_CharIndexFunc): Use FT_UInt32 for `unicode'. michael@0: (PS_Unicodes_CharNextFunc): Make second argument a pointer to michael@0: FT_UInt32. michael@0: michael@0: * src/psnames/psmodule.c (VARIANT_BIT, BASE_GLYPH): New macros. michael@0: (ps_unicode_value): Set VARIANT_BIT in return value if glyph is a michael@0: variant glyph (this is, it has non-leading `.' in its name). michael@0: (compare_uni_maps): Sort base glyphs before variant glyphs. michael@0: (ps_unicodes_init): Use FT_String for `glyph_names' argument. michael@0: Reallocate only if number of used entries is much smaller. michael@0: Updated to handle variant glyphs. michael@0: (ps_unicodes_char_index, ps_unicodes_char_next): Prefer base glyphs michael@0: over variant glyphs. michael@0: Simplify code. michael@0: michael@0: * src/psaux/t1cmap.c (t1_cmap_uni_pair_compare): Removed. michael@0: (t1_cmap_unicode_init, t1_cmap_unicode_char_index, michael@0: t1_cmap_unicode_char_next): Use pscmap service. michael@0: (t1_cmap_unicode_done): Updated. michael@0: michael@0: * src/psaux/t1cmap.h (T1_CMapUniPair): Removed. michael@0: (T1_CMapUnicode): Use PS_Unicodes structure. michael@0: michael@0: 2006-01-11 suzuki toshiya michael@0: michael@0: Jumbo patch to fix `deprecated' warning of cross-build for Tiger on michael@0: Intel, as reported by Sean McBride on michael@0: 2005-08-24. michael@0: michael@0: * src/base/ftmac.c: Heavy change to build without deprecated Carbon michael@0: functions on Tiger. michael@0: michael@0: * builds/unix/configure.ac: Add options and autochecks for Carbon michael@0: functions availabilities, for MacOS X. michael@0: michael@0: * builds/mac/ascii2mpw.py: Add converter for character `\305'. michael@0: * builds/mac/FreeType.m68k_{far|cfm}.make.txt: Add conditional michael@0: macros to avoid unavailable functions. michael@0: ftmac.c must be compiled without `-strict ansi', because it disables michael@0: cpp macro to use ToolBox system call. michael@0: michael@0: * builds/mac/FreeType.ppc_{classic|carbon}.make.txt: Add conditional michael@0: macros to avoid unavailable functions. michael@0: michael@0: * builds/mac/README: Detailed notes on function availabilities. michael@0: michael@0: * docs/CHANGES: Notes about (possible) incompatibilities. michael@0: michael@0: 2006-01-08 Werner Lemberg michael@0: michael@0: * docs/CHANGES: Updated. michael@0: michael@0: 2006-01-08 Huw D M Davies michael@0: michael@0: * include/freetype/ftmodapi.h (FT_Module_Get_Flags): New michael@0: declaration. michael@0: michael@0: * src/base/ftobjs.c (FT_Module_Get_Flags): New function. michael@0: michael@0: 2006-01-07 Werner Lemberg michael@0: michael@0: * src/pcf/pcfread.c (pcf_get_bitmaps): Remove unused variable michael@0: `bitmaps'. Reported by Yu Lei . michael@0: michael@0: * src/base/ftutil.c (ft_highpow2): s/FT_BASE/FT_BASE_DEF/. michael@0: Reported by Niels Boldt . michael@0: michael@0: 2005-12-28 suzuki toshiya michael@0: michael@0: * src/sfnt/sfnt/ttbdf.c: Add newline '\n' to the end of file, for michael@0: MPW compiler. michael@0: michael@0: 2005-12-23 David Turner michael@0: michael@0: * Jamfile (RefDoc), docs/reference/README: Fix it so that `jam michael@0: refdoc' works correctly to generate the API reference in michael@0: `docs/reference'. michael@0: michael@0: * src/tools/docmaker/tohtml.py (print_html_field, michael@0: print_html_field_list): Update to output nicer fields lists in the michael@0: API reference. michael@0: michael@0: * src/base/ftobjs.c (FT_Load_Glyph): FT_LOAD_TARGET_LIGHT now michael@0: forces auto-hinting. michael@0: michael@0: * freetype/freetype.h: Updating the documentation for michael@0: FT_LOAD_TARGET_XXX and FT_Render_Mode values. michael@0: michael@0: 2005-12-23 suzuki toshiya michael@0: michael@0: * src/base/ftmac.c (FT_New_Face_From_Suitcase): Count scalable faces michael@0: in supported formats (sfnt, LWFN) only, and ignore bitmap faces in michael@0: unsupported formats (fbit, NFNT). The number of available faces are michael@0: passed via face->num_faces. If bitmap faces are embedded in sfnt michael@0: resource, face->num_fixed_size is correctly set. In public API, michael@0: FT_New_Face() and FT_New_Face_From_FSSpec() count the faces as michael@0: FT_GetFile_From_Mac_Name(), which ignores NFNT resources. michael@0: michael@0: * doc/CHANGES: Mention the changes. michael@0: michael@0: 2005-12-17 Chia-I Wu michael@0: michael@0: * src/truetype/ttinterp.c (Update_Max): Set current size of buffer michael@0: correctly (so that memory debug system won't panic). michael@0: michael@0: 2005-12-16 Chia-I Wu michael@0: michael@0: * include/freetype/internal/ftobjs.h (ft_glyphslot_grid_fit_metrics), michael@0: src/base/ftobjs.c (ft_glyphslot_grid_fit_metrics): Removed. michael@0: michael@0: * src/base/ftobjs.c (ft_recompute_scaled_metrics): Do not round. michael@0: michael@0: * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c michael@0: (cid_slot_load_glyph), src/truetype/ttgload.c (compute_glyph_metrics), michael@0: src/type1/t1gload.c (T1_Load_Glyph): Do not round glyph metrics. michael@0: michael@0: * doc/CHANGES: Mention the changes. michael@0: michael@0: 2005-12-13 David Turner michael@0: michael@0: Change the implementation of the LIGHT hinting mode to completely michael@0: disable horizontal hinting. This is an experimental effort to michael@0: integrate David Chester's latest patch without affecting the other michael@0: hinting modes as well. michael@0: michael@0: Note that this doesn't force auto-hinting for all fonts, however. michael@0: michael@0: * src/autofit/afhints.c (af_glyph_hints_reload): Don't set michael@0: scaler_fiags here but... michael@0: (af_glyph_hints_rescale): Here. michael@0: michael@0: * src/autofit/aflatin.c (af_latin_hints_init): Disable horizontal michael@0: hinting for `light' hinting mode. michael@0: michael@0: michael@0: * Jamfile: Small fix to ensure that ftexport.sym is placed into the michael@0: same location as other generated objects (i.e., within the `objs' michael@0: directory of the current directory). michael@0: michael@0: michael@0: Add support for an embedded `BDF ' table within SFNT-based bitmap michael@0: font files. This is used to store atoms & properties from the michael@0: original BDF fonts that were used to generate the font file. michael@0: michael@0: The feature is controlled by TT_CONFIG_OPTION_BDF within michael@0: `ftoption.h' and is used to implement FT_Get_BDF_Property for these michael@0: font files. michael@0: michael@0: At the moment, this is still experimental, the BDF table format michael@0: isn't cast into stone yet. michael@0: michael@0: * include/freetype/config/ftoption.h (TT_CONFIG_OPTION_BDF): New michael@0: macro. michael@0: michael@0: * include/freetype/config/ftstdlib.h (ft_memchr): New macro. michael@0: michael@0: * include/freetype/internal/tttypes.h (TT_BDFRec, TT_BDF) michael@0: [TT_CONFIG_OPTION_BDF]: New structure. michael@0: (TT_FaceRec) [TT_CONFIG_OPTION_BDF]: New member `bdf'. michael@0: michael@0: * include/freetype/ttags.h (TTAG_BDF): New macro. michael@0: michael@0: * src/sfnt/Jamfile (_sources): Add ttbdf. michael@0: michael@0: * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttbdf.c. michael@0: michael@0: * src/sfnt/sfdriver.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.h and michael@0: FT_SERVICE_BDF_H. michael@0: (sfnt_get_charset_it) [TT_CONFIG_OPTION_BDF]: New function. michael@0: (sfnt_service_bdf) [TT_CONFIG_OPTION_BDF]: New service. michael@0: (sfnt_services) [TT_CONFIG_OPTION_BDF]: Add sfnt_service_bdf. michael@0: michael@0: * src/sfnt/sfnt.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.c. michael@0: michael@0: * src/sfnt/sfobjs.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.h. michael@0: (sfnt_done_face) [TT_CONFIG_OPTION_BDF]: Call michael@0: tt_face_free_bdf_props. michael@0: michael@0: * src/sfnt/ttbdf.h, src/sfnt/ttbdf.c: New files. michael@0: michael@0: 2005-12-07 Werner Lemberg michael@0: michael@0: * src/sfnt/sfobjc.c (sfnt_init_face): Move tag check to... michael@0: * src/sfnt/ttload.c (sfnt_init): Here, before handling TTCs. michael@0: michael@0: 2005-12-06 Chia-I Wu michael@0: michael@0: * src/truetype/ttobjs.c (tt_size_init): size->ttmetrics.valid is michael@0: initialized twice. michael@0: size->strike_index is not initialized. michael@0: michael@0: 2005-12-02 Taek Kwan(TK) Lee michael@0: michael@0: * src/type42/t42objs.c (T42_Face_Init): Replace call to michael@0: FT_New_Memory_Face with call to FT_Open_Face to pass `params'. michael@0: michael@0: 2005-11-30 Werner Lemberg michael@0: michael@0: * docs/CHANGES: Document ftdump's `-v' option. michael@0: Document latest charmap code changes. michael@0: michael@0: * src/sfnt/ttcmap.c, src/sfnt/ttcmap.h: michael@0: s/TT_CMAP_FLAG_OVERLAPPED/TT_CMAP_FLAG_OVERLAPPING/. michael@0: michael@0: 2005-11-30 Chia-I Wu michael@0: michael@0: * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary, michael@0: tt_cmap12_char_map_binary): Fix compiler warnings. michael@0: michael@0: 2005-11-29 Chia-I Wu michael@0: michael@0: Major update to distinguish between unsorted and overlapping michael@0: segments for cmap format 4. For overlapping but sorted segments, michael@0: which is previously considered unsorted, we still use binary search. michael@0: michael@0: * src/sfnt/ttcmap.h (TT_CMapRec_): Replace `unsorted' by `flags'. michael@0: (TT_CMAP_FLAG_UNSORTED, TT_CMAP_FLAG_OVERLAPPED): New macros. michael@0: michael@0: * src/sfnt/ttcmap.c (OPT_CMAP4): Removed as it is always defined. michael@0: (TT_CMap4Rec_): Remove `old_charcode' and `table_length'. michael@0: (tt_cmap4_reset): Removed. michael@0: (tt_cmap4_init): Updated accordingly. michael@0: (tt_cmap4_next): Updated accordingly. michael@0: Take care of overlapping segments. michael@0: (tt_cmap4_validate): Make sure the subtable is large enough. michael@0: Do not check glyph_ids because some fonts set the length wrongly. michael@0: Also, if all segments have offset 0, glyph_ids is always invalid. michael@0: It does not cause any problem so far only because the check misses michael@0: equality. michael@0: Distinguish between unsorted and overlapping segments. michael@0: (tt_cmap4_char_map_linear, tt_cmap4_char_map_binary): New functions michael@0: to do `charcode => glyph index' by linear/binary search. michael@0: (tt_cmap4_char_index, tt_cmap4_char_next): Use michael@0: tt_cmap4_char_map_linear and tt_cmap4_char_map_binary. michael@0: (tt_face_build_cmaps): Treat the return value of validator as flags michael@0: for cmap. michael@0: michael@0: 2005-11-29 Chia-I Wu michael@0: michael@0: * src/sfnt/ttcmap.c (TT_CMap12Rec_, tt_cmap12_init, tt_cmap12_next): michael@0: New structures and functions for fast `next char'. michael@0: (tt_cmap12_char_map_binary): New function to do `charcode => glyph michael@0: index' by binary search. michael@0: (tt_cmap12_char_index, tt_cmap12_char_next): Use michael@0: tt_cmap12_char_map_binary. michael@0: (tt_face_build_cmaps): Check table and offset correctly (equality is michael@0: missing). michael@0: michael@0: 2005-11-15 Detlef Würkner michael@0: michael@0: * builds/amiga/smakefile: Adjusted the compiler options michael@0: to the current sources, now really builds the gxvalid, gzip michael@0: and psnames modules. michael@0: michael@0: * builds/amiga/src/base/ftsystem.c: The assumed Seek() position michael@0: in the file cache was off by one byte which could cause false michael@0: errors in font files. michael@0: michael@0: 2005-11-24 suzuki toshiya michael@0: michael@0: * builds/mac/FreeType.m68k_far.make.txt, michael@0: builds/mac/FreeType.m68k_cfm.make.txt, michael@0: builds/mac/FreeType.ppc_classic.make.txt, michael@0: builds/mac/FreeType.ppc_carbon.make.txt: michael@0: Updated for MPW to build all available modules. michael@0: michael@0: 2005-11-21 Håvard Wall michael@0: michael@0: * src/bdf/bdfdrivr.c (bdf_interpret_style, BDF_Face_Done): Fix small michael@0: memory leak. michael@0: michael@0: 2005-11-21 Werner Lemberg michael@0: michael@0: * src/sfnt/ttload.c (sfnt_init): Add tracing message. michael@0: michael@0: 2005-11-21 Chia-I Wu michael@0: michael@0: * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Image_offset was michael@0: added twice to image_start if image_format was 2 or 5. michael@0: michael@0: 2005-11-21 Chia-I Wu michael@0: michael@0: * src/sfnt/sfobjs.c (sfnt_init_face): Check that format_tag is known michael@0: before loading the table directory. michael@0: michael@0: * src/sfnt/ttload.c (tt_face_load_sfnt_header, michael@0: tt_face_load_directory): Delay sfnt_dir_check from michael@0: tt_face_load_sfnt_header to tt_face_load_directory. michael@0: michael@0: 2005-11-20 Chia-I Wu michael@0: michael@0: * src/sfnt/ttload.c (sfnt_dir_check): Clean up and return correct michael@0: error code. michael@0: (sfnt_init): New function to fill in face->ttc_header. A non-TTC font michael@0: is synthesized into a TTC font with one offset table. michael@0: (tt_face_load_sfnt_header): Use sfnt_init. michael@0: Fix an invalid access if the font is TTC and face_index is -1. michael@0: michael@0: 2005-11-18 Werner Lemberg michael@0: michael@0: * src/sfnt/ttload.c (tt_face_load_metrics): Ignore excess number michael@0: of metrics instead of aborting. Patch suggested by Derek Noonburg. michael@0: michael@0: * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c michael@0: (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph): Scale michael@0: the glyph properly if no hinter is available. michael@0: michael@0: * docs/CHANGES: Mention scaling bug. michael@0: michael@0: 2005-11-18 susuzki toshiya michael@0: michael@0: * include/freetype/ftgxval.h, src/base/ftgxval.c michael@0: (FT_TrueTypeGX_Free, FT_ClassicKern_Free): New functions to free michael@0: buffers allocated by gxvalid module. michael@0: * include/freetype/ftotval.h, src/base/ftotval.c michael@0: (FT_OpenType_Free): New function to free buffer allocated by michael@0: otvalid module. michael@0: michael@0: 2005-11-18 Chia-I Wu michael@0: michael@0: * builds/unix/ftsystem.c (FT_Stream_Open, FT_New_Memory, michael@0: FT_Done_Memory), builds/vms/ftsystem.c (FT_Stream_Open, FT_New_Memory, michael@0: FT_Done_Memory), builds/win32/ftdebug.c (FT_Message, FT_Panic): michael@0: s/FT_EXPORT/FT_BASE/. michael@0: michael@0: 2005-11-17 Detlef Würkner michael@0: michael@0: * builds/amiga/src/base/ftdebug.c (FT_Trace_Get_Count, michael@0: FT_Trace_Get_Name, FT_Message, FT_Panic), michael@0: builds/amiga/src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory, michael@0: FT_Stream_Open): s/FT_EXPORT/FT_BASE/. michael@0: michael@0: 2005-11-17 Detlef Würkner michael@0: michael@0: * builds/amiga/makefile, builds/amiga/makefile.os4, michael@0: builds/amiga/smakefile, michael@0: builds/amiga/include/freetype/config/ftmodule.h: Updated the Amiga michael@0: build files (added support for the gxvalid module). michael@0: michael@0: 2005-11-17 Werner Lemberg michael@0: michael@0: Add vertical metrics support to OpenType CFF outlines. Based on a michael@0: patch from Mike Moening . michael@0: michael@0: * src/cff/cffgload.c (cff_face_get_vertical_metrics): New function. michael@0: (cff_slot_load): Use cff_face_get_vertical_metrics. michael@0: michael@0: * docs/CHANGES: Updated. michael@0: michael@0: 2005-11-17 Chia-I Wu michael@0: michael@0: * src/base/ftcalc.c (FT_MulTo64): Commented out. michael@0: michael@0: * include/freetype/internal/ftcalc.h (FT_SqrtFixed), michael@0: src/base/ftcalc.c (FT_SqrtFixed), michael@0: include/freetype/internal/ftdebug.h (FT_Trace_Get_Count, michael@0: FT_Trace_Get_Name, FT_Message, FT_Panic), src/base/ftdebug.c michael@0: (FT_Trace_Get_Count, FT_Trace_Get_Name, FT_Message, FT_Panic), michael@0: include/freetype/internal/ftobjs.h (FT_New_Memory, FT_Done_Memory), michael@0: include/freetype/internal/ftstream.h (FT_Stream_Open), michael@0: src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory, FT_Stream_Open): michael@0: s/FT_EXPORT/FT_BASE/. michael@0: michael@0: * builds/exports.mk: Manually add TT_New_Context to EXPORTS_LIST michael@0: too. michael@0: michael@0: 2005-11-15 David Turner michael@0: michael@0: * src/base/fttrigon.c (ft_trig_prenorm): Fix a bug that created michael@0: invalid computations, resulting in very weird bugs in TrueType michael@0: bytecode hinted fonts. michael@0: michael@0: * src/truetype/ttinterp.c (FT_UNUSED_EXEC): Don't perform a michael@0: structure copy each time. michael@0: michael@0: 2005-11-11 Werner Lemberg michael@0: michael@0: * src/cache/ftccache.c (FTC_Cache_Clear), src/cache/ftcmanag.c michael@0: (FTC_Manager_Check): Remove FT_EXPORT_DEF tag. michael@0: michael@0: * src/base/ftcalc.c (FT_Add64): Remove FT_EXPORT_DEF tag. michael@0: (FT_Div64by32, FT_Sqrt32): Commented out. Unused. michael@0: michael@0: * include/freetype/internal/ftcalc.h (SQRT_32): Removed. Unused. michael@0: (FT_Sqrt32): Commented out. Unused. michael@0: michael@0: * include/freetype/cache/ftccache.h: michael@0: s/ftc_node_destroy/FTC_Node_Destroy/. michael@0: michael@0: * src/cache/ftccback.h (ftc_node_destroy): New declaration. michael@0: michael@0: * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF tag. michael@0: (FTC_Node_Destroy): New exported wrapper function for michael@0: ftc_node_destroy. michael@0: michael@0: * src/cache/ftcmanag.c: Include ftccback.c. michael@0: michael@0: 2005-11-10 Werner Lemberg michael@0: michael@0: * src/autofit/afangles.c, src/autofit/aftypes.h (af_angle_diff): michael@0: Comment out. Unused. michael@0: michael@0: * builds/exports.mk ($(EXPORTS_LIST)): Add TT_RunIns. michael@0: michael@0: 2005-11-10 Christian Biesinger michael@0: michael@0: * builds/beos/beos.mk: Call beos-def.mk before anything else to michael@0: define the separator. michael@0: michael@0: * builds/unix/unix-cc.in (LINK_LIBRARY): Add `-no-undefined' flag. michael@0: michael@0: 2005-11-07 Werner Lemberg michael@0: michael@0: * src/type1/t1afm.c (T1_Read_PFM): Zero offset means `no kerning michael@0: table available'. From Sergey Tolstov . michael@0: michael@0: 2005-11-03 Ville Syrjälä michael@0: michael@0: * src/base/ftobjs.c (FT_Open_Face): Avoid possible memory leak. michael@0: michael@0: 2005-11-02 Werner Lemberg michael@0: michael@0: Make compiling instructions in docs/CUSTOMIZE work again. michael@0: michael@0: * builds/unix/unix-cc.in (CPPFLAGS): New variable. michael@0: (CFLAGS): Don't include @CPPFLAGS@. michael@0: * builds/freetype.mk (FT_CFLAGS): Add CPPFLAGS. michael@0: michael@0: 2005-10-28 David Turner michael@0: michael@0: Update build system to support the generation of a list of exported michael@0: symbols or Windows .DEF files by parsing the public headers with the michael@0: `apinames' tool located in src/tools/apinames.c. michael@0: michael@0: Only tested on Unix at the moment. On Windows, the .DEF file is michael@0: generated but isn't used yet to generate a DLL. michael@0: michael@0: * builds/exports.mk: New file. michael@0: michael@0: * builds/freetype.mk: Include exports.mk. michael@0: (dll): New target. michael@0: (clean_project_dos): Fix rule. michael@0: michael@0: * builds/compiler/visualc.mk (TE), builds/dos/dos-def.mk (E), michael@0: builds/os2/os2-def.mk (E), builds/win32/win32-def.mk (E): New michael@0: variables for controlling executable extensions. michael@0: michael@0: * builds/unix/unix-cc.in (EXPORTS_LIST, CCexe), michael@0: builds/win32/w32-bcc.mk, builds/win32/w32-gcc.mk, michael@0: builds/win32/w32-icc.mk, builds/win32/w32-icc.mk, michael@0: builds/win32/w32-mingw32.mk, builds/win32/w32-vcc, michael@0: builds/win32/w32-wat.mk (EXPORTS_LIST, EXPORT_OPTIONS, michael@0: APINAMES_OPTIONS): New targets for controlling the `apinames' tool. michael@0: michael@0: * Jamfile (GenExportSymbols): Updated. michael@0: michael@0: michael@0: * src/pfr/pfrtypes.h, src/pfr/pfrload.c, src/pfr/pfrobjs.c michael@0: [!FT_OPTIMIZE_MEMORY]: Fold memory optimization code into michael@0: FT_OPTIMIZE_MEMORY chunks for better maintainability and simplicity. michael@0: michael@0: michael@0: * src/base/fttrigon.c (ft_trig_prenorm), src/base/ftcalc.c michael@0: (FT_MulFix): Performance optimizations. michael@0: michael@0: michael@0: * include/freetype/internal/ftgloadr.h (FT_GLYPHLOADER_CHECK_P, michael@0: FT_GLYPHLOADER_CHECK_C, FT_GLYPHLOADER_CHECK_POINTS): New macros for michael@0: checking points and contours. Update callers to use michael@0: FT_GLYPHLOADER_CHECK_POINTS instead of FT_GlyphLoader_CheckPoints michael@0: at profile-detected hot-spots. michael@0: michael@0: * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Set `adjust' michael@0: to 0 to not call `AdjustPoints' every time. michael@0: michael@0: michael@0: * src/autofit/aftypes.h (AF_ANGLE_DIFF): New macro to inline michael@0: FT_Angle_Diff. michael@0: michael@0: * src/autofit/afhints.c (af_direction_compute): Re-implement. michael@0: (af_glyph_hints_compute_inflections, af_glyph_hints_reload): Use michael@0: AF_ANGLE_DIFF to speed up the detection of inflexions. michael@0: michael@0: michael@0: * src/tools/apinames.c: Include . michael@0: (OutputFormat): New enumeration. michael@0: (names_dump): Add two parameters to control output format and DLL michael@0: name. michael@0: (names_dump_windef): Removed. Code folded into `names_dump'. michael@0: (read_header_file): Use isalnum, not isalpha. Otherwise function michael@0: names with digits aren't read correctly. michael@0: (usage): Updated. michael@0: (main): New option `-o' to control output file name. michael@0: New option `-d' to indicate DLL file name. michael@0: Extend `-w' flag to handle Borland and Watcom compilers and linkers. michael@0: michael@0: 2005-10-28 suzuki toshiya michael@0: michael@0: * builds/mac/ftlib.prj, builds/mac/freetype.mak: Removed. michael@0: ftlib.prj is unmaintained and incompatible with current tree. michael@0: freetype.mak is unrecoverably broken. michael@0: michael@0: * builds/mac/ftlib.prj.xml: Added. michael@0: Generated by Metrowerks CodeWarrior 9.0. michael@0: michael@0: * builds/mac/FreeType.m68k_far.make.txt, michael@0: builds/mac/FreeType.m68k_cfm.make.txt, michael@0: builds/mac/FreeType.ppc_classic.make.txt, michael@0: builds/mac/FreeType.ppc_carbon.make.txt: Added. michael@0: Skeleton files of MPW makefiles. michael@0: michael@0: * builds/mac/ascii2mpw.py: Added. michael@0: Python script to make MPW makefile from skeleton. michael@0: michael@0: * builds/mac/README: Updated. michael@0: Almost rewritten to use new files. michael@0: michael@0: 2005-10-28 suzuki toshiya michael@0: michael@0: * src/base/ftmac.c: Fix invalid casts from NULL to integer typed michael@0: variables. Advised by David Turner, Masatake YAMATO, Sean McBride, michael@0: and George Williams. michael@0: michael@0: 2005-10-27 Werner Lemberg michael@0: michael@0: * include/freetype/ftsysmem.h, include/freetype/ftsysio.h: Removed. michael@0: Obsolete. michael@0: michael@0: 2005-10-25 Werner Lemberg michael@0: michael@0: * src/sfnt/sfdriver.c (sfnt_interface): Move out michael@0: `tt_face_get_kerning' from a #ifdef clause. Reported by Tony J. michael@0: Ibbs . michael@0: michael@0: 2005-10-23 Werner Lemberg michael@0: michael@0: * src/base/ftdbgmem.c (ft_mem_debug_realloc): Make it compile with michael@0: C++. michael@0: michael@0: 2005-10-21 David Turner michael@0: michael@0: * src/base/ftdbgmem.c (ft_mem_table_set, ft_mem_debug_realloc): michael@0: Another realloc memory counting bug fix. michael@0: michael@0: * src/tools/Jamfile: Add missing file. michael@0: michael@0: * src/lzw/Jamfile: Fix incorrect source file reference. michael@0: michael@0: 2005-10-20 David Turner michael@0: michael@0: * src/base/ftdbgmem.c (ft_mem_table_set, ft_mem_table_remove, michael@0: ft_mem_debug_alloc, ft_mem_debug_free, ft_mem_debug_realloc): Fixes michael@0: to better account for memory reallocations. michael@0: michael@0: * src/lzw/ftlzw2.c, src/lzw/ftzopen.h, src/lzw/ftzopen.c, michael@0: src/lzw/rules.mk: First version of LZW loader re-implementation. michael@0: Apparently, this saves about 330 KB of heap memory when loading michael@0: timR24.pcf.Z. michael@0: michael@0: 2005-10-20 Chia-I Wu michael@0: michael@0: * include/freetype/ftbitmap.h (FT_Bitmap_Copy, FT_Bitmap_Embolden), michael@0: src/base/ftbdf.c (FT_Get_BDF_Property), src/cache/ftcmru.c michael@0: (FTC_MruList_Reset, FTC_MruList_Done, FTC_MruList_Lookup): Fix michael@0: FT_EXPORT/FT_EXPORT_DEF tagging. michael@0: michael@0: 2005-10-19 Chia-I Wu michael@0: michael@0: * src/truetype/ttgload.c (TT_Load_Glyph): Allow size->ttmetrics to michael@0: be invalid when FT_LOAD_NO_SCALE is set. michael@0: michael@0: 2005-10-17 David Turner michael@0: michael@0: * src/base/ftobjs.c (FT_Open_Face): Don't call FT_New_GlyphSlot and michael@0: FT_New_Size if we are opening a face with face_index < 0 (which is michael@0: only used for testing the format). michael@0: michael@0: * src/gxvalid/gxvmort0.c (gxv_mort_subtable_type0_entry_validate): michael@0: Remove compiler warning. michael@0: michael@0: 2005-10-16 David Turner michael@0: michael@0: * src/tools/apinames.c: Add new tool to extract public API function michael@0: names from header files. michael@0: michael@0: 2005-10-05 Werner Lemberg michael@0: michael@0: Add FT_FACE_FLAG_HINTER to indicate that a specific font driver has michael@0: a hinting engine of its own. michael@0: michael@0: * include/freetype/freetype.h (FT_FACE_FLAG_HINTER): New macro. michael@0: michael@0: * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c michael@0: (cid_face_init), src/truetype/ttobjs.c (tt_face_init) michael@0: [TT_CONFIG_OPTION_BYTECODE_INTERPRETER], src/type1/t1objs.c michael@0: (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init) michael@0: [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Update face flags. michael@0: michael@0: * docs/CHANGES: Document it. michael@0: michael@0: 2005-09-27 Werner Lemberg michael@0: michael@0: * builds/unix/freetype2.m4: Add license exception so that the file michael@0: can be used in any other autoconf script. michael@0: michael@0: 2005-09-26 David Turner michael@0: michael@0: * src/autofit/aflatin.c (af_latin_compute_stem_width): Fix bad michael@0: computation of the `vertical' flag, causing ugly things in LCD mode michael@0: and others. michael@0: michael@0: 2005-09-23 David Turner michael@0: michael@0: * src/autofit/aflatin.c (af_latin_hints_init): Fix a bug that michael@0: prevented internal hint mode bitflags from being computed correctly. michael@0: michael@0: * src/base/Jamfile: Adding src/base/ftgxval.c. michael@0: michael@0: * src/gxvalid/gxvbsln.c, src/gxvalid/gxvcommn.c, michael@0: src/gxvalid/gxvfeat.c, src/gxvalid/gxvjust.c, src/gxvalid/gxvkern.c, michael@0: src/gxvalid/gxvlcar.c, src/gxvalid/gxvmort.c, michael@0: src/gxvalid/gxvmort0.c, src/gxvalid/gxvmort1.c, michael@0: src/gxvalid/gxvmort2.c, src/gxvalid/gxvmort4.c, michael@0: src/gxvalid/gxvmort5.c, src/gxvalid/gxvmorx.c, michael@0: src/gxvalid/gxvmorx0.c, src/gxvalid/gxvmorx1.c, michael@0: src/gxvalid/gxvmorx2.c, src/gxvalid/gxvmorx5.c, michael@0: src/gxvalid/gxvopbd.c, src/gxvalid/gxvprop.c, michael@0: src/truetype/ttgload.c: Remove _many_ compiler warnings when michael@0: compiling with Visual C++ at maximum level (/W4). michael@0: michael@0: * src/autofit/afangles.c (af_angle_atan): Replaced CORDIC-based michael@0: implementation with one using lookup tables. This simple thing michael@0: speeds up glyph loading by 18%, according to ftbench! michael@0: michael@0: * src/sfnt/sfdriver.c (sfnt_get_interface): Don't check for michael@0: `get_sfnt' and `load_sfnt' module interfaces. michael@0: michael@0: 2005-09-22 Werner Lemberg michael@0: michael@0: * docs/CHANGES: Mention SING Glyphlet support. michael@0: michael@0: 2005-09-22 David Turner michael@0: michael@0: * src/base/Jamfile: Disable compilation of ftgxval module michael@0: temporarily. michael@0: michael@0: 2005-09-19 David Somers michael@0: michael@0: * src/sfnt/ttload.c (sfnt_dir_check): Modified to allow a michael@0: font to have no `head' table if tables `SING' and `META' are michael@0: present; this is to support `SING Glyphlet'. michael@0: michael@0: `SING Glyphlet' is an extension to OpenType developed by Adobe michael@0: primarily to facilitate adding supplemental glyphs to an OpenType michael@0: font (with emphasis on, but not necessarily limited to, gaiji to a michael@0: CJK font). A SING Glyphlet Font is an OpenType font that contains michael@0: the outline(s), either in a `glyf' or `CFF' table, for a glyph; michael@0: `cmap', `BASE', and `GSUB' tables are present with the same format michael@0: and functionaliy as a regular OpenType font; there are no `name', michael@0: `head', `OS/2', and `post' tables; there are two new tables, `SING' michael@0: which contains details about the glyphlet, and `META' which contains michael@0: metadata. michael@0: michael@0: Further information on the SING Glyphlet format can be found at: michael@0: michael@0: http://www.adobe.com/products/indesign/sing_gaiji.html michael@0: michael@0: * include/freetype/ttags.h (TTAG_SING, TTAG_META): New macros for michael@0: the OpenType tables `SING' and `META'. These two tables are used in michael@0: SING Glyphlet Format fonts. michael@0: michael@0: 2005-09-09 Werner Lemberg michael@0: michael@0: * src/sfnt/sfobjs.c (sfnt_load_face): Reactivate code to set michael@0: FT_FACE_FLAG_KERNING which has been commented out erroneously. michael@0: michael@0: * docs/CHANGES: Document it. michael@0: michael@0: 2005-09-05 Werner Lemberg michael@0: michael@0: Fixes for `make multi' and using C++ compiler. michael@0: michael@0: * src/gxvalid/gxvcommn.c (gxv_set_length_by_ushort_offset, michael@0: gxv_set_length_by_ulong_offset, gxv_array_getlimits_byte, michael@0: gxv_array_getlimits_ushort): Declare with FT_LOCAL_DEF. michael@0: (gxv_compare_ranges): Make it static. michael@0: (gxv_LookupTable_fmt0_validate, gxv_LookupTable_fmt2_validate, michael@0: gxv_LookupTable_fmt4_validate, gxv_LookupTable_fmt6_validate, michael@0: gxv_LookupTable_fmt8_validate, gxv_LookupTable_validate): Improve michael@0: trace messages. michael@0: (gxv_StateArray_validate, gxv_XStateArray_validate): s/class/clazz/. michael@0: (GXV_STATETABLE_HEADER_SIZE, GXV_STATEHEADER_SIZE, michael@0: GXV_XSTATETABLE_HEADER_SIZE, GXV_XSTATEHEADER_SIZE): Move to michael@0: gxvcommn.h. michael@0: michael@0: * src/gxvalid/gxvcommn.h: Add prototypes for michael@0: gxv_StateTable_subtable_setup, gxv_XStateTable_subtable_setup, michael@0: gxv_XStateTable_validate, gxv_array_getlimits_byte, michael@0: gxv_array_getlimits_ushort, gxv_set_length_by_ushort_offset, michael@0: gxv_set_length_by_ulong_offset, gxv_odtect_add_range, michael@0: gxv_odtect_validate. michael@0: (GXV_STATETABLE_HEADER_SIZE, GXV_STATEHEADER_SIZE, michael@0: GXV_XSTATETABLE_HEADER_SIZE, GXV_XSTATEHEADER_SIZE): Moved from michael@0: gxvcommn.c. michael@0: michael@0: * src/gxvalid/gxvbsln.c (gxv_bsln_LookupValue_validate, michael@0: gxv_bsln_parts_fmt1_validate): Improve trace messages. michael@0: michael@0: * src/gxvalid/gxvfeat.c: Split off predefined registry stuff to... michael@0: * src/gxvalid/gxvfeat.h: New file. michael@0: michael@0: * src/gxvalid/gxvjust.c (gxv_just_wdc_entry_validate): Improve trace michael@0: message. michael@0: michael@0: * src/gxvalid/gxvkern.c (GXV_kern_Dialect): Add KERN_DIALECT_UNKNOWN. michael@0: (gxv_kern_subtable_fmt1_valueTable_load, michael@0: gxv_kern_subtable_fmt1_subtable_setup, michael@0: gxv_kern_subtable_fmt1_entry_validate): Fix C++ compiler errors. michael@0: (gxv_kern_coverage_validate): Use KERN_DIALECT_UNKWOWN. michael@0: Improve trace message. michael@0: (gxv_kern_validate_generic): Fix C++ compiler error. michael@0: Improve trace message. michael@0: (gxv_kern_validate_classic): Fix C++ compiler error. michael@0: michael@0: * src/gxvalid/gxvmort0.c (gxv_mort_subtable_type0_validate): Declare michael@0: with FT_LOCAL_DEF. michael@0: michael@0: * src/gxvalid/gxvmort1.c michael@0: (gxv_mort_subtable_type1_substitutionTable_load, michael@0: gxv_mort_subtable_type1_subtable_setup): Fix C++ compiler errors. michael@0: (gxv_mort_subtable_type1_substTable_validate): Improve trace michael@0: message. michael@0: (gxv_mort_subtable_type1_validate): Declare with FT_LOCAL_DEF. michael@0: michael@0: * src/gxvalid/gxvmort2.c (gxv_mort_subtable_type2_opttable_load, michael@0: gxv_mort_subtable_type2_subtable_setup, michael@0: gxv_mort_subtable_type2_ligActionOffset_validate, michael@0: gxv_mort_subtable_type2_ligatureTable_validate): Fix C++ compiler michael@0: errors. michael@0: (gxv_mort_subtable_type2_validate): Declare with FT_LOCAL_DEF. michael@0: michael@0: * src/gxvalid/gxvmort4.c (gxv_mort_subtable_type4_validate): Declare michael@0: with FT_LOCAL_DEF. michael@0: michael@0: * src/gxvalid/gxvmort5.c (gxv_mort_subtable_type5_subtable_setup, michael@0: gxv_mort_subtable_type5_InsertList_validate): Fix C++ compiler michael@0: errors. michael@0: (gxv_mort_subtable_type5_validate): Declare with FT_LOCAL_DEF. michael@0: michael@0: * src/gxvalid/gxvmort.c: Include gxvfeat.h. michael@0: (gxv_mort_featurearray_validate, gxv_mort_coverage_validate): michael@0: Declare with FT_LOCAL_DEF. michael@0: (gxv_mort_subtables_validate, gxv_mort_validate): Improve trace michael@0: messages. michael@0: michael@0: * src/gxvalid/gxvmort.h (gxv_mort_feature_validate): Remove. michael@0: michael@0: * src/gxvalid/gxvmorx0.c (gxv_morx_subtable_type0_validate): Declare michael@0: with FT_LOCAL_DEF. michael@0: michael@0: * src/gxvalid/gxvmorx1.c michael@0: (gxv_morx_subtable_type1_substitutionTable_load, michael@0: gxv_morx_subtable_type1_subtable_setup, michael@0: gxv_morx_subtable_type1_entry_validate, michael@0: gxv_morx_subtable_type1_substitutionTable_validate): Fix C++ michael@0: compiler errors. michael@0: (gxv_morx_subtable_type1_validate): Declare with FT_LOCAL_DEF. michael@0: michael@0: * src/gxvalid/gxvmorx2.c (gxv_morx_subtable_type2_opttable_load, michael@0: gxv_morx_subtable_type2_subtable_setup, michael@0: gxv_morx_subtable_type2_ligActionIndex_validate, michael@0: gxv_morx_subtable_type2_ligatureTable_validate): Fix C++ compiler michael@0: errors. michael@0: (gxv_morx_subtable_type2_validate): Declare with FT_LOCAL_DEF. michael@0: Fix typo. michael@0: michael@0: * src/gxvalid/gxvmorx4.c (gxv_morx_subtable_type4_validate): Declare michael@0: with FT_LOCAL_DEF. michael@0: michael@0: * src/gxvalid/gxvmorx5.c (gxv_morx_subtable_type5_insertionGlyph_load, michael@0: gxv_morx_subtable_type5_subtable_setup): Fix C++ compiler error. michael@0: (gxv_morx_subtable_type5_validate): Declare with FT_LOCAL_DEF. michael@0: michael@0: * src/gxvalid/gxvmorx.c (gxv_morx_subtables_validate, michael@0: gxv_morx_validate): Improve trace message. michael@0: michael@0: * src/gxvalid/gxvopbd.c (gxv_opbd_LookupFmt4_transit): Fix compiler michael@0: warnings. michael@0: (gxv_opbd_validate): Improve trace message. michael@0: michael@0: * src/gxvalid/gxvprop.c: Decorate constants with `U' and `L' where michael@0: appropriate. michael@0: (gxv_prop_zero_advance_validate, gxv_prop_validate): Improve trace michael@0: message. michael@0: michael@0: * src/gxvalid/gxvtrak.c (gxv_trak_trackTable_validate): Remove unused michael@0: parameter. Update all callers. michael@0: (gxv_trak_validate): Improve trace message. michael@0: michael@0: * rules.mk (GXV_DRV_H): Add gxvfeat.h. michael@0: michael@0: 2005-09-01 Werner Lemberg michael@0: michael@0: * src/gxvalid/gxvbsln.c (GXV_BSLN_VALUE_EMPTY): Add `U'. michael@0: michael@0: * src/gxvalid/gxmort1.c (GXV_MORT_SUBTABLE_TYPE1_HEADER_SIZE), michael@0: src/gxvalid/gxmort2.c (GXV_MORT_SUBTABLE_TYPE2_HEADER_SIZE): Fix michael@0: typo. michael@0: michael@0: * src/gxvalid/gxvmorx0.c, src/gxvalid/gxvmorx1.c, michael@0: src/gxvalid/gxvmorx2.c, src/gxvalid/gxvmorx4.c, michael@0: src/gxvalid/gxvmorx5.c, src/gxvalid/gxvmort.c: Improve trace michael@0: messages. michael@0: Decorate constants with `U' and `L' where appropriate. michael@0: Fix compiler warnings. michael@0: michael@0: 2005-08-31 Werner Lemberg michael@0: michael@0: * src/truetype/ttgload.c (load_truetype_glyph): Fix typo. michael@0: michael@0: * src/gxvalid/gxvbsln.c (gxv_bsln_validate): Fix trace message. michael@0: michael@0: * src/gxvalid/gxvcommn.c (gxv_odtect_add_range): Use `const'. michael@0: michael@0: * src/gxvalid/gxvfeat.c, src/gxvalid/gxvjust.c, michael@0: src/gxvalid/gxvkern.c, src/gxvalid/gxvlcar.c, src/gxvalid/gxvmod.c, michael@0: src/gxvalid/gxvmort0.c, src/gxvalid/gxvmort1.c, michael@0: src/gxvalid/gxvmort2.c, src/gxvalid/gxvmort4.c, michael@0: src/gxvalid/gxvmort5.c, src/gxvalid/gxvmort.c: Improve trace michael@0: messages. michael@0: Decorate constants with `U' and `L' where appropriate. michael@0: Fix compiler warnings. michael@0: michael@0: 2005-08-30 Werner Lemberg michael@0: michael@0: * src/gxvalid/README: Revised. michael@0: * src/gxvalid/gxvbsln.c: Fix compiler warnings. michael@0: * src/gxvalid/gxvcommn.c: Fix compiler warnings. michael@0: (gxv_XEntryTable_validate, gxv_compare_ranges): Remove unused michael@0: parameter. Update all callers. michael@0: Improve trace messages. michael@0: Some formatting. michael@0: michael@0: 2005-08-29 Werner Lemberg michael@0: michael@0: * include/freetype/freetype.h, include/freetype/ftchapters.h: Add michael@0: a preliminary section with some explanations about user allocation. michael@0: michael@0: * src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter): michael@0: Don't abort if there are no data types, functions, etc., in a michael@0: section. michael@0: Print synopsis only if we have a data type, function, etc. michael@0: michael@0: * docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE, michael@0: docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX, michael@0: docs/VERSION.DLL, docs/formats.txt: Revised, formatted. michael@0: michael@0: 2005-08-28 George Williams michael@0: michael@0: * src/truetype/ttgload.c [TT_MAX_COMPOSITE_RECURSE]: Removed. michael@0: (load_truetype_glyph): Limit recursion depth by `maxComponentDepth'. michael@0: michael@0: 2005-08-25 J. Ali Harlow michael@0: michael@0: * builds/unix/freetype2.in (CFlags): Add missing directory. michael@0: michael@0: 2005-08-24 Werner Lemberg michael@0: michael@0: * docs/CHANGES: Mention gxvalid module. michael@0: michael@0: 2005-08-23 Werner Lemberg michael@0: michael@0: * src/autofit/aflatin.c (af_latin_metrics_scale): Initialize michael@0: render mode properly. Reported by chris@dokein.co.uk. michael@0: michael@0: 2005-08-23 suzuki toshiya michael@0: michael@0: Add gxvalid module to validate TrueType GX/AAT tables. michael@0: michael@0: Modifications on existing files: michael@0: michael@0: * Jamfile: Register gxvalid module. michael@0: * src/base/Jamfile: Register ftgxval.c. michael@0: * src/base/rule.mk: Register ftgxval.c. michael@0: * docs/INSTALL.ANY: Register gxvalid/gxvalid.c. michael@0: michael@0: * include/freetype/config/ftheader.h (FT_GX_VALIDATE_H): New macro michael@0: to include gxvalid header file. michael@0: * include/freetype/config/ftmodule.h: Register gxv_module_class. michael@0: michael@0: * include/freetype/ftchapters.h: Add comment about gx_validation. michael@0: * include/freetype/ftotval.h: Change keyword FT_VALIDATE_XXX michael@0: to FT_VALIDATE_OTXXX to co-exist with gxvalid. michael@0: * include/freetype/tttags.h: Add tags for TrueType GX/AAT tables. michael@0: michael@0: * include/freetype/internal/ftserv.h (FT_SERVICE_GX_VALIDATE_H): New michael@0: macro for gxvalid service. michael@0: * include/freetype/internal/fttrace.h: Add trace facilities for michael@0: gxvalid. michael@0: michael@0: New files on existing directories: michael@0: michael@0: * include/freetype/internal/services/svgxval.h: Registration of michael@0: validation service for TrueType GX/AAT and classic kern table. michael@0: * include/freetype/ftgxval.h: Public API definition to use gxvalid. michael@0: * src/base/ftgxval.c: Public API of gxvalid. michael@0: michael@0: New files under src/gxvalid/: michael@0: michael@0: * src/gxvalid/Jamfile src/gxvalid/README src/gxvalid/module.mk michael@0: src/gxvalid/rules.mk src/gxvalid/gxvalid.c src/gxvalid/gxvalid.h michael@0: src/gxvalid/gxvbsln.c src/gxvalid/gxvcommn.c src/gxvalid/gxvcommn.h michael@0: src/gxvalid/gxverror.h src/gxvalid/gxvfeat.c src/gxvalid/gxvfgen.c michael@0: src/gxvalid/gxvjust.c src/gxvalid/gxvkern.c src/gxvalid/gxvlcar.c michael@0: src/gxvalid/gxvmod.c src/gxvalid/gxvmod.h src/gxvalid/gxvmort.c michael@0: src/gxvalid/gxvmort.h src/gxvalid/gxvmort0.c src/gxvalid/gxvmort1.c michael@0: src/gxvalid/gxvmort2.c src/gxvalid/gxvmort4.c src/gxvalid/gxvmort5.c michael@0: src/gxvalid/gxvmorx.c src/gxvalid/gxvmorx.h src/gxvalid/gxvmorx0.c michael@0: src/gxvalid/gxvmorx1.c src/gxvalid/gxvmorx2.c src/gxvalid/gxvmorx4.c michael@0: src/gxvalid/gxvmorx5.c src/gxvalid/gxvopbd.c src/gxvalid/gxvprop.c michael@0: src/gxvalid/gxvtrak.c: New files, gxvalid body. michael@0: michael@0: 2005-08-21 Werner Lemberg michael@0: michael@0: * src/truetype/ttgload.c (TT_Load_Glyph): Only translate outline michael@0: to (0,0) if bit 1 of the `head' table isn't set. This improves michael@0: rendering of buggy fonts. michael@0: michael@0: 2005-08-20 Chia I Wu michael@0: michael@0: * src/truetype/ttdriver.c (Load_Glyph): Don't check the validity of michael@0: ttmetrics here. TrueType fonts with only sbits always have michael@0: ttmetrics.valid set to false. michael@0: michael@0: * src/truetype/ttgload.c (TT_Load_Glyph): Check that ttmetrics is michael@0: valid before loading outline glyph. michael@0: michael@0: * src/cache/ftcimage.c (FTC_INode_New): Fix a memory leak. michael@0: michael@0: 2005-08-20 Werner Lemberg michael@0: michael@0: * src/sfnt/ttload.c (tt_face_load_metrics_header): Ignore missing michael@0: `hhea' table for SFNT Mac fonts. Change based on a patch by michael@0: mpsuzuki@hiroshima-u.ac.jp. michael@0: michael@0: 2005-08-20 Masatake YAMATO michael@0: michael@0: * src/otvalid/otvmod.c (otv_validate): Use ft_validator_run instead michael@0: of ft_setjmp. michael@0: michael@0: 2005-08-19 Werner Lemberg michael@0: michael@0: * src/truetype/ttgload.c (load_truetype_glyph): Fix compiler michael@0: warnings. michael@0: michael@0: 2005-08-16 Chia I Wu michael@0: michael@0: * src/truetype/ttinterp.c, src/truetype/ttinterp.h: Update copyright michael@0: messages. michael@0: michael@0: 2005-08-16 Chia I Wu michael@0: michael@0: * src/truetype/ttinterp.c, src/truetype/ttinterp.h: Remove original michael@0: TT_Done_Context and rename TT_Destroy_Context to TT_Done_Context michael@0: with slight changes. michael@0: Update all callers. michael@0: (TT_New_Context): Now takes TT_Driver argument directly. michael@0: Update all callers. michael@0: michael@0: * src/truetype/ttobjs.h (tt_slot_init): New function. michael@0: * src/truetype/ttobjs.c (tt_driver_init): Initialize execution michael@0: context here. michael@0: (tt_slot_init): New function to create extra points for the internal michael@0: glyph loader. We then use it directly, instead of face's glyph michael@0: loader, when loading glyph. michael@0: michael@0: * src/truetype/ttdriver.c (tt_driver_class): Use tt_slot_init for michael@0: glyph slot initialization. michael@0: (Load_Glyph): Load flag dependencies are handled here. Return error michael@0: if size is NULL. michael@0: michael@0: * src/truetype/ttgload.c: Heavy cleanup and refactoring. michael@0: (org_to_cur): Removed. michael@0: (TT_Load_Simple_Glyph): Call FT_GlyphLoader_CheckPoints. michael@0: (TT_Hint_Glyph): New function to hint a zone, prepared by caller. michael@0: (TT_Process_Simple_Glyph): s/load/loader/. michael@0: Use loader->pp values instead of recalculation. michael@0: Use TT_Hint_Glyph. michael@0: No need to save/restore loader->stream before and after michael@0: TT_Vary_Get_Glyph_Deltas now. michael@0: (TT_LOADER_SET_PP): New macro to calculate and set the four phantom michael@0: points. michael@0: (load_truetype_glyph): Never set exec->glyphSize to 0. This closes michael@0: Savannah bug #13107. michael@0: Forget glyph frame before calling TT_Process_Simple_Glyph. michael@0: Use TT_LOADER_SET_PP. michael@0: Scale all four phantom points. michael@0: Split off some functionality to ... michael@0: (TT_Process_Composite_Component, TT_Process_Composite_Glyph): These michael@0: new functions. michael@0: (TT_Load_Glyph): Set various fields of `glyph' here, not in michael@0: load_truetype_glyph and compute_glyph_metrics. michael@0: Split off some functionality to ... michael@0: (load_sbit_image, tt_loader_init): These new functions. michael@0: (compute_glyph_metrics): Call FT_Outline_Get_CBox. michael@0: michael@0: 2005-08-08 Werner Lemberg michael@0: michael@0: * docs/INSTALL.ANY: Updated. michael@0: michael@0: 2005-08-05 Werner Lemberg michael@0: michael@0: * src/cff/cffgload.c (cff_builder_close_contour), michael@0: src/psaux/psobjs.c (t1_builder_close_contour): Protect against michael@0: zero `outline' pointer. michael@0: michael@0: * src/base/ftgloadr.c (FT_GlyphLoader_Add): Protect against zero michael@0: `loader' address. michael@0: michael@0: 2005-08-03 Werner Lemberg michael@0: michael@0: * src/sfnt/sfdriver.c (sfnt_interface) [FT_OPTIMIZE_MEMORY]: michael@0: Reactivate pointers to tt_find_sbit_image and tt_load_sbit_metrics michael@0: to make X work again. michael@0: michael@0: 2005-08-02 Werner Lemberg michael@0: michael@0: * src/otvalid/otvcommn.h: Remove dead code. michael@0: michael@0: 2005-07-31 Chia I Wu michael@0: michael@0: * src/truetype/ttobjs.h (tt_size_run_fpgm, tt_size_run_prep): New michael@0: functions. michael@0: michael@0: * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): New michael@0: functions. michael@0: (tt_size_init): Add 4, instead of 2, (phantom) points to twilight michael@0: zone. michael@0: Move code that runs fpgm to tt_size_run_fpgm. michael@0: (Reset_Outline_Size): Move code that runs prep to tt_size_run_prep. michael@0: (tt_glyphzone_new): Allocate right size of arrays. michael@0: Set max_points and max_contours properly. michael@0: michael@0: 2005-07-26 Chia I Wu michael@0: michael@0: * src/truetype/ttdriver.c (Set_Char_Sizes): Avoid unnecessary michael@0: computations and clean up. michael@0: michael@0: * src/truetype/ttobjs.h (struct TT_SizeRec_): Comment on the michael@0: internal copy of metrics. michael@0: michael@0: 2005-07-12 Werner Lemberg michael@0: michael@0: * include/freetype/ftoutln.h (FT_Outline_Embolden): Fix prototype. michael@0: Reported by Xerxes. michael@0: michael@0: 2005-07-04 Werner Lemberg michael@0: michael@0: * include/freetype/internal/ftmemory.h (FT_REALLOC_ARRAY): Fix typo. michael@0: Reported by Brett Hutley. michael@0: michael@0: 2005-06-30 David Turner michael@0: michael@0: * src/sfnt/ftbitmap.c, src/truetype/ttgload.c, src/sfnt/ttcmap.c: michael@0: Removing compiler warnings (Visual C++ /W4). michael@0: michael@0: michael@0: Implement a work-around for broken C preprocessor in Visual C++ (it michael@0: has been confirmed by the MS developers that it is indeed a bug michael@0: which won't be fixed in the very near future). michael@0: michael@0: * Jamfile (FT2_COMPONENTS): Include otvalid (again). michael@0: michael@0: * src/otvalid/otvcommn.h (OTV_NAME, OTV_FUNC): New macros. michael@0: (OTV_NEST1, OTV_NEST2, OTV_NEST3): Use OTV_NAME and OTV_FUNC to michael@0: avoid argument expansion by argument prescan. michael@0: Append `Func' to all affected macros and change them to take just a michael@0: single argument. Example: `AttachList' is renamed to michael@0: `AttachListFunc'. michael@0: michael@0: * src/otvalid/otvgdef.c, src/otvalid/otvgpos.c, michael@0: src/otvalid/otvgsub.c, src/otvjstf.c: Append `Func' to macros michael@0: affected by the changes to OTV_NESTx and modify them to take just a michael@0: single argument. michael@0: michael@0: 2005-06-20 Chia I Wu michael@0: michael@0: * include/freetype/internal/ftobjs.h, src/base/ftobjs.c: New function michael@0: ft_glyphslot_grid_fit_metrics. michael@0: michael@0: * src/truetype/ttgload.c (compute_glyph_metrics): Use michael@0: ft_glyphslot_grid_fit_metrics. michael@0: michael@0: * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c michael@0: (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph): Use michael@0: ft_glyphslot_grid_fit_metrics. michael@0: FT_Outline_Get_CBox is called twice. michael@0: michael@0: * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Modify metrics to more michael@0: reasonable values when emboldening outline glyphs. The theoretic michael@0: ones are unrealistic. michael@0: michael@0: 2005-06-16 Chia I Wu michael@0: michael@0: * src/base/ftoutln.c (FT_Outline_Embolden): Strength should be michael@0: halved. michael@0: michael@0: * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Change the default michael@0: strength. michael@0: Don't increase slot->advance.y. michael@0: michael@0: 2005-06-16 Werner Lemberg michael@0: michael@0: * include/freetype/freetype.h (FREETYPE_MINOR): Set to 2. michael@0: (FREETYPE_PATCH): Set to 0. michael@0: michael@0: * builds/unix/configure.ac (version_info): Set to 9:9:3. michael@0: Currently, we are still binary compatible. michael@0: michael@0: * builds/win32/visualc/index.html, michael@0: builds/win32/visualc/freetype.dsp, michael@0: builds/win32/visualc/freetype.vcproj: s/219/2110/, s/2.1.9/2.1.10/. michael@0: michael@0: * builds/freetype.mk (refdoc), README, Jamfile (RefDoc): michael@0: s/2.1.9/2.1.10/. michael@0: michael@0: * docs/CHANGES, docs/VERSION.DLL: Updated. michael@0: michael@0: * ChangeLog: Split off older entries into... michael@0: * ChangeLog.20, ChangeLog.21: These new files. michael@0: michael@0: 2005-06-15 Kirill Smelkov michael@0: michael@0: The next release will be 2.2.0, so don't worry about source code michael@0: backwards compatibility. michael@0: michael@0: * include/freetype/ftimage.h (FT_Outline_MoveToFunc, michael@0: FT_Outline_LineToFunc, FT_Outline_ConicToFunc, michael@0: FT_Outline_CubicToFunc, FT_SpanFunc, FT_Raster_RenderFunc), michael@0: include/freetype/ftrender.h (FT_Glyph_TransformFunc, michael@0: FT_Renderer_RenderFunc, FT_Renderer_TransformFunc): Decorate michael@0: parameters with `const' where appropriate. michael@0: michael@0: 2005-06-15 Chia I Wu michael@0: michael@0: * src/sfnt/ttsbit.c (tt_face_load_sbit_image): Compute vertBearingY michael@0: to make glyphs centered vertically. michael@0: michael@0: * src/truetype/ttgload.c (compute_glyph_metrics): Compute michael@0: vertBearingY to make glyphs centered vertically. michael@0: Fix some bugs in vertical metrics: michael@0: michael@0: . loader->pp3.y and loader->pp4.y are in 26.6 format, not in font michael@0: units. michael@0: . As we use the glyph's cbox to calculate the top bearing now michael@0: there is no need to adjust `top'. michael@0: michael@0: 2005-06-15 Werner Lemberg michael@0: michael@0: * src/otvalid/otvcommn.h (OTV_OPTIONAL_TABLE): Use FT_UShort to be michael@0: in sync with OTV_OPTIONAL_OFFSET. Reported by YAMATO Masatake. michael@0: michael@0: 2005-06-13 Werner Lemberg michael@0: michael@0: * docs/release: Update. michael@0: michael@0: ---------------------------------------------------------------------------- michael@0: michael@0: Copyright 2005, 2006, 2007, 2008 by michael@0: David Turner, Robert Wilhelm, and Werner Lemberg. michael@0: michael@0: This file is part of the FreeType project, and may only be used, modified, michael@0: and distributed under the terms of the FreeType project license, michael@0: LICENSE.TXT. By continuing to use, modify, or distribute this file you michael@0: indicate that you have read the license and understand and accept it michael@0: fully. michael@0: michael@0: michael@0: Local Variables: michael@0: version-control: never michael@0: coding: utf-8 michael@0: End: