]> git.wh0rd.org - fontconfig.git/blobdiff - ChangeLog
Remove references to dead fontconfig(3) manpages in other fontconfig
[fontconfig.git] / ChangeLog
index 9a4cf7622d6301d2a1a6ef09ef12756693061778..c94e800087a754ab998240fd1adec1cc47ed7955 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,435 @@
+2006-01-30  Frederic Crozat  <fcrozat@mandriva.com>
+       reviewed by: plam
+
+       * fc-match/fc-match.1:
+       * fc-lang/fc-lang.man:
+
+       Remove references to dead fontconfig(3) manpages in
+       other fontconfig manpages.
+
+2006-01-29  Behdad Esfabod  <behdad@cs.utoronto.edu>
+       reviewed by: plam
+       
+       * doc/fcpattern.fncs:
+
+       Fix world's tiniest typo in code example.
+
+2006-01-29  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+
+       * src/fccache.c (FcGlobalCacheReadDir):
+
+       Fix global cache reads of subdirectories.
+
+2006-01-29  Patrick Lam  <plam@mit.edu>
+       * doc/fcconfig.fncs:
+       Add documentation for FcConfigNormalizeFontDir.
+
+       * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
+                        FcGlobalCacheUpdate, FcGlobalCacheSave):
+       * src/fcdir.c (FcDirScanConfig):
+       * src/fcint.h:
+
+       Write directory information to global caches to fix make check
+       (reported by Ronny V. Vindenes).  This changes the global cache
+       format again.
+       
+2006-01-27  Patrick Lam  <plam@mit.edu>
+       * fc-cache/fc-cache.c (scanDirs):
+       * fontconfig/fontconfig.h:
+       * src/fcint.h:
+       * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
+
+       Move FcConfigNormalizeFontDir call so that it doesn't result in
+       infinite recursion (reported by Ronny V. Vindenes).
+
+2006-01-26  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
+       * src/fccfg.c (FcConfigNormalizeFontDir):
+
+       Add a couple of missing normalizations to make fc-cache work
+       right; only scan subdirectories once.
+
+2006-01-26  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+       
+       * src/fcacache.c (FcGlobalCacheReadDir):
+
+       Don't crash on non-existant directories in global cache.
+
+2006-01-26  Patirck Lam  <plam@mit.edu>
+       * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
+       * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
+       * src/fcdir.c (FcDirScanConfig):
+       * src/fcxml.c (FcEndElement):
+
+       Stop trampling the directory name when writing out caches.
+       (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
+       subdirs when necessary.  Don't scan directories that can't be
+       normalized.
+
+2006-01-25  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
+       * src/fccfg.c (FcConfigEvaluate):
+       * src/fcfreetype.c (FcPatternAddWithBinding):
+
+       Fix additional memory leaks reported by Ronny V. Vindenes: don't
+       invoke FcValueSave on hashed static strings in
+       FcPatternAddWithBinding.  
+
+       Add another st_dev check in FcDirCacheOpen.
+
+2006-01-24  James Su  <james.su@gmail.com>
+       reviewed by: plam
+       
+       * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
+       * fc-lang/zh_hk.orth:
+
+       Treat zh-hk fonts differently from zh-tw fonts.  This patch may
+       cause fontconfig to treat A-X fonts differently from A-Y fonts;
+       please mail the fontconfig list if this causes any problems.
+
+2006-01-24  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
+       * src/fcfreetype.c (FcFreeTypeQuery):
+
+       Fix memory leaks reported by Ronny V. Vindenes.
+
+2006-01-19  Andreas Schwab  <schwab@suse.de>
+       reviewed by: plam
+
+       * src/fcpat.c (FcStrNeededBytes):
+
+       Fix for unaligned memory accesses.
+
+2006-01-18  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+       
+       * src/fcdir.c (FcDirScanConfig):
+
+       Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
+       calls to avoid crashes.
+
+2006-01-14  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheConsume):
+
+       Fix segfault when consuming zero-length caches in fc-cat
+       (which has no config, so FcConfigAddFontDir shouldn't be called.)
+
+2006-01-14  Patrick Lam  <plam@mit.edu>
+       * fc-cache/fc-cache.c (scanDirs):
+       * fontconfig/fontconfig.h:
+       * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
+                        FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
+       * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
+       * src/fcdir.c (FcDirScanConfig):
+       * src/fcint.h:
+       
+       Compare device numbers as well as inodes.
+       Always normalize directory names before comparing them.
+
+2006-01-11  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+       
+       * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
+
+       Allocate extra space for appended '/' in directory name.
+
+2006-01-10  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
+                        FcDirCacheValid, FcDirCacheHasCurrentArch,
+                        FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
+       * fc-cache/fc-cache.c (main):
+
+       Explicitly add font dirs to config.fontDirs even if they're empty.
+       Set current config in fc-cache.c.
+       Fix treatment of cache directory as read from cache file; don't
+       use string equality to determine if we have the right file,
+       use inode equality.
+
+2006-01-09  Patrick Lam  <plam@mit.edu>
+       * fc-cache/fc-cache.c (scanDirs):
+       * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
+       * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs, 
+                        FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
+       * src/fccfg.c (FcConfigNormalizeFontDir):
+       * src/fcdir.c (FcDirScanConfig):
+       * src/fcint.h:
+
+       Normalize font dirs by using the form, as given in fonts.conf, and
+       recorded in FcConfig's fontDirs string set, as canonical.
+       
+       Actually update config.fontDirs as font directories are scanned.
+
+2006-01-08  James Su  <james.su@gmail.com>
+       * src/fcmatch.c (FcFontSetMatch):
+
+       Fix matching bug when multiple elements match; don't use
+       the sum of all scores, but the best score.
+
+       Also more perf opts, e.g. evaluate best over all font sets
+       rather than on a per-set basis (and other changes).
+
+2006-01-08  Patrick Lam  <plam@mit.edu>
+        * src/fccache.c (FcDirCacheConsume):
+
+        Properly skip past dir caches that contain zero fonts (as occurs
+        in global caches.)  Reported by Mike Fabian.
+
+2006-01-06  Patrick Lam  <plam@mit.edu>
+       * src/fcdbg.c (FcPatternPrint):
+
+       Print out full pathname in fc-match -v as well.  Reported by
+       Frederic Crozat.
+       
+2006-01-06  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+       
+       * src/fcname.c (FcNameParse):
+
+       Fix bug where fc-match crashes when given __DUMMY__ property to
+       match on.
+
+       (I added the __DUMMY__ string to enable callers of
+       FcObjectToPtrLookup to distinguish an error return from a
+       successful return. -PL)
+
+2006-01-05  Patrick Lam  <plam@mit.edu>
+       * AUTHORS:
+
+       Add self to AUTHORS list.
+
+       * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, 
+                          FcCacheFileRead, FcCachePrintSet, main): 
+       * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate, 
+                        FcGlobalCacheSave, FcCacheNextOffset, 
+                        FcDirCacheHasCurrentArch, FcDirCacheRead, 
+                        FcDirCacheConsume, FcDirCacheWrite): 
+       * src/fcint.h:
+       * src/fcpat.c (comment):
+
+       Minor change to global cache file format to fix fc-cat bug
+       reported by Frederic Crozat, and buglet with not globally caching
+       directories with zero fonts cached.
+
+2006-01-02  Lubos Lunak  <l.lunak@suse.cz>
+       reviewed by: plam
+       
+       * src/fccfg.c (FcConfigEvaluate):
+
+       Fix double-free which occurs because FcValueCanonicalize doesn't
+       create an extra copy of the returned value, it only canonicalizes
+       it.
+
+2006-01-02  Patrick Lam  <plam@mit.edu>
+       * doc/fontconfig-user.sgml:
+
+       Fix version of .cache file (currently 1 -> currently 2).  Reported
+       by Jim Osborn.
+
+2005-12-21  Jinghua Luo  <sunmoon1997@gmail.com>
+       reviewed by: plam
+
+       * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
+
+       Shut up GCC warnings on amd.
+
+2005-12-20  Patrick Lam         <plam@mit.edu>
+       * ChangeLog:
+       * README:
+       * configure.in:
+       * fontconfig/fontconfig.h:
+
+       Bump version to 2.3.93.
+
+2005-12-20  Patrick Lam  <plam@mit.edu>
+       * src/fccharset.c (FcLangCharSetPopulate):
+       * src/fcint.h (FcCacheBankToIndex):
+
+       Avoid check on _fcBankId nullness and fix case where it used to
+       crash.
+
+2005-12-20  Patrick Lam  <plam@mit.edu>
+       * src/fcxml.c (FcConfigParseAndLoad):
+
+       Use open instead of fopen (requested by Phil Race for Sun).
+
+2005-12-20  Patrick Lam         <plam@mit.edu>
+       * src/fccache.c (FcDirCacheWrite);
+       * fc-cache/Makefile.am:
+
+       Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
+       dir.
+
+2005-12-20  Patrick Lam         <plam@mit.edu>
+       * src/fcfreetype.c (FcFreeTypeQuery):
+
+       Restore code to skip over PCF fonts that have no encoded
+       characters.
+       (We guess that a font is PCF by presence of the PIXEL_SIZE
+       BDF property.)
+
+2005-12-12  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
+
+       Read and write the original location as a fallback for the
+       hashed cache file locations.  This is mostly for users to be
+       able to have per-directory cache files.
+
+2005-12-12  Patrick Lam  <plam@mit.edu>
+       * fc-cache/fc-cache.c (scanDirs):
+       * fc-cache/Makefile.am:
+       * src/fccache.c (FcDirCacheHashName):
+
+       Improve error message when fc-cache can't write the cache.  Add
+       missing slash.  Reported by Behdad.  Incorporate Behdad's patch to
+       create /var/cache/fontconfig when appropriate.
+
+2005-12-12  Behdad Esfahbod  <behdad@cs.toronto.edu>
+       reviewed by: plam
+       
+       * src/fcxml.c (FcConfigGetAttribute):
+
+       Fix crash reported by Frederic Crozat when using libxml2.
+
+2005-12-09  Patrick Lam  <plam@mit.edu>
+       * INSTALL:
+       * configure.in:
+       * fc-cache/Makefile.am:
+       * fc-cat/Makefile.am:
+       * src/Makefile.am:
+       * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
+       * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
+       * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
+                       FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
+                       FcDirCacheHasCurrentArch, FcDirCacheHashName,
+                       FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
+
+       Migrate cache files from fonts directories to
+       /var/cache/fontconfig.  This helps make fontconfig FHS-compliant,
+       but requires that all caches get rebuilt.
+
+       Also, autogen.sh now needs the additional parameter
+       --localstatedir=/var.
+       
+2005-12-07  Patrick Lam  <plam@mit.edu>
+       * src/fcpat.c (FcPatternAddString):
+
+       Because we've changed FcPatternAddString to use FcStrStaticName
+       and not FcValueSave, explicitly handle the case of a null string.
+
+2005-12-06  Patrick Lam  <plam@mit.edu>
+       * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
+
+       Fix warnings.
+
+2005-12-05  Patrick Lam  <plam@mit.edu>
+       * src/fcname.c (FcNameGetObjectType):
+
+       Don't assign types to user object names.
+
+2005-12-05  Patrick Lam  <plam@mit.edu>
+       * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
+
+       Don't free strings that have been returned from FcStrStaticName.
+
+2005-12-01  Patrick Lam  <plam@mit.edu>
+       * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
+
+       Add codepath for reading global cache files as well.
+
+2005-12-01  Behdad Esfahbod  <behdad@cs.toronto.edu>
+       reviewed by: plam
+
+       * conf.d/10-fonts.persian.conf:
+       * conf.d/Makefile.am:
+
+       Add config file for Persian fonts from Sharif FarsiWeb, Inc.
+
+2005-11-30  Behdad Esfahbod  <behdad@cs.toronto.edu>
+       reviewed by: plam
+
+       * src/fcxml.c (FcConfigParseAndLoad):
+
+       Only add a config file to the set of config files once.
+
+2005-11-29  Patrick Lam  <plam@mit.edu>
+       * src/fcint.h (FcCacheBankToIndex);
+
+       Fix segfault by guarding array dereference.
+
+2005-11-29  Dirk Mueller  <dmueller@suse.de>
+       reviewed by: plam
+       
+       * fc-lang/fc-lang.c:
+       * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
+                        FcCacheBankToIndex, FcCacheBankToIndexMTF,
+                        FcCacheAddBankDir):
+       * src/fcint.h:
+
+       Refactor FcCacheBankToIndex into an inlineable part
+       (in fcint.h) which checks the front of the list and a
+       non-inlineable part which finds and moves the appropriate element
+       to the front of the list.
+
+2005-11-29  Patrick Lam  <plam@mit.edu>
+       * src/fccfg.c (FcConfigBuildFonts):
+       * src/fccache.c (FcCacheReadDirs):
+
+       Make the perf guys hate me a bit less: hoist the directory-name
+       FcConfigAcceptFont check for cached fonts up to directory cache
+       read time, rather than running it for each font.
+
+2005-11-29  Patrick Lam  <plam@mit.edu>
+       * src/fccfg.c (FcConfigBuildFonts):
+       * src/fcint.h:
+       * src/fcpat.c (FcPatternFindFullFname):
+
+       Don't make FcPatternFindFullFname available to fccfg, it's not
+       really safe.  Instead go through FcPatternGetString (sorry,
+       perf guys.)  Also, use globs for dirs as well.
+
+2005-11-28  Patrick Lam  <plam@mit.edu>
+       * src/fccfg.c (FcConfigBuildFonts):
+
+       Fix segfault.
+
+2005-11-28  Patrick Lam  <plam@mit.edu>
+       * src/fcint.h:
+       * src/fcpat.c (FcPatternFindFullFname):
+       * src/fccfg.c (FcConfigBuildFonts):
+
+       Fix problem dating back at least to 2.3.2 where globs weren't
+       being applied to patterns loaded from a cache.
+
+2005-11-28  Patrick Lam  <plam@mit.edu>
+       * doc/fontconfig-user.sgml:
+
+       Fix some obvious spelling mistakes.
+       
+2005-11-28  Dirk Mueller  <dmueller@suse.com>
+           Stephan Kulow  <coolo@suse.de>
+       reviewed by: plam
+
+       * src/fcmatch.c (FcFontSetMatch):
+
+       Don't kill all fonts during match (oops!)
+
+
+2005-11-25  Dirk Mueller  <dmueller@suse.com>
+            Stephan Kulow  <coolo@suse.de>
+            Michael Matz  <matz@suse.de>
+        reviewed by: plam
+
+        * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
+                FcFontSetMatch):
+
+        Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
+        inline FcCompare into FcFontSetMatch and reorder the
+        loops, adding a boolean array which blocks patterns from future
+        consideration if they're known to not be best on some past
+        criterion.
+
 2005-11-26  Dirk Mueller  <dmueller@suse.com>
        reviewed by: plam