platform/upstream/fontconfig.git
18 years agoOk, so some people (wine!) use FcPatternGet to fetch FC_FILE. Make that
Patrick Lam [Sun, 5 Mar 2006 06:05:50 +0000 (06:05 +0000)]
Ok, so some people (wine!) use FcPatternGet to fetch FC_FILE. Make that
    work. Reported by Bernhard Rosenkraenzer.

18 years agoInclude inttypes.h instead of stdint.h if appropriate.
Patrick Lam [Fri, 3 Mar 2006 18:35:42 +0000 (18:35 +0000)]
Include inttypes.h instead of stdint.h if appropriate.

18 years agoMore stub definitions and remove FcFileIsDir from fc-cat.
Patrick Lam [Fri, 3 Mar 2006 18:19:04 +0000 (18:19 +0000)]
More stub definitions and remove FcFileIsDir from fc-cat.

18 years agoFix compilation on AIX with stub definitions (bug 6097).
Patrick Lam [Fri, 3 Mar 2006 15:12:12 +0000 (15:12 +0000)]
Fix compilation on AIX with stub definitions (bug 6097).

18 years agoGet rid of C++-style comments.
Patrick Lam [Fri, 3 Mar 2006 06:35:53 +0000 (06:35 +0000)]
Get rid of C++-style comments.

18 years agodebian/changelog
Patrick Lam [Fri, 3 Mar 2006 06:12:55 +0000 (06:12 +0000)]
debian/changelog
Enable creation of 2.3.94 Debian packages.

18 years agoFix suspicious return expression which causes junk to be returned.
Patrick Lam [Fri, 3 Mar 2006 06:11:31 +0000 (06:11 +0000)]
Fix suspicious return expression which causes junk to be returned.
reviewed by: plam

18 years agoFix placement of @s. fc-2_3_94
Patrick Lam [Fri, 24 Feb 2006 19:32:58 +0000 (19:32 +0000)]
Fix placement of @s.

18 years agoBump version to 2.3.94.
Patrick Lam [Fri, 24 Feb 2006 19:19:09 +0000 (19:19 +0000)]
Bump version to 2.3.94.

18 years agoRemove unconditional emboldening (per Behdad's instructions).
Patrick Lam [Fri, 24 Feb 2006 18:52:17 +0000 (18:52 +0000)]
Remove unconditional emboldening (per Behdad's instructions).
Add @s to hide some echos.

18 years agoTakashi Iwai <tiwai@suse.de> reviewed by: plam
Patrick Lam [Fri, 24 Feb 2006 16:41:34 +0000 (16:41 +0000)]
Takashi Iwai <tiwai@suse.de> reviewed by: plam
Fix double-free on error case.

18 years agoStrip \r and whitespace from input; fixes bug 3454.
Patrick Lam [Wed, 22 Feb 2006 04:50:16 +0000 (04:50 +0000)]
Strip \r and whitespace from input; fixes bug 3454.

18 years agoAllocate large arrays statically in fc-lang to fix crashes under
Patrick Lam [Wed, 22 Feb 2006 04:09:39 +0000 (04:09 +0000)]
Allocate large arrays statically in fc-lang to fix crashes under
    MinGW/MSYS.

18 years agoPass the buck; make fontconfig not crash on pango badness.
Patrick Lam [Tue, 21 Feb 2006 15:56:41 +0000 (15:56 +0000)]
Pass the buck; make fontconfig not crash on pango badness.

18 years agoUse embeddedbitmap rather than rh_prefer_bitmap.
Patrick Lam [Tue, 21 Feb 2006 15:53:43 +0000 (15:53 +0000)]
Use embeddedbitmap rather than rh_prefer_bitmap.

18 years agoEliminate redundancies.
Patrick Lam [Tue, 21 Feb 2006 15:50:19 +0000 (15:50 +0000)]
Eliminate redundancies.
reviewed by: plam

18 years agoEliminate unused vars reported by Intel's compiler.
Patrick Lam [Tue, 21 Feb 2006 15:40:18 +0000 (15:40 +0000)]
Eliminate unused vars reported by Intel's compiler.
reviewed by: plam

18 years agoRemove one more archaic character.
Patrick Lam [Tue, 21 Feb 2006 15:29:54 +0000 (15:29 +0000)]
Remove one more archaic character.
reviewed by: plam

18 years agoFreeze patterns created by configuration file for tiny memory savings
Patrick Lam [Tue, 21 Feb 2006 15:24:28 +0000 (15:24 +0000)]
Freeze patterns created by configuration file for tiny memory savings
    (every little bit helps).
reviewed by: plam, keithp

18 years agoInitialize fontconfig library in fc-cat to avoid segfault.
Patrick Lam [Tue, 21 Feb 2006 14:12:41 +0000 (14:12 +0000)]
Initialize fontconfig library in fc-cat to avoid segfault.
reviewed by: plam

18 years agoFix the underlying cause of the below segfault (must usually call
Patrick Lam [Sat, 18 Feb 2006 18:18:07 +0000 (18:18 +0000)]
Fix the underlying cause of the below segfault (must usually call
    FcDirCacheHasCurrentArch after FcDirCacheValid).

18 years agoFix segfault (reported by fcrozat) caused by incorrect input on cache
Patrick Lam [Sat, 18 Feb 2006 17:56:25 +0000 (17:56 +0000)]
Fix segfault (reported by fcrozat) caused by incorrect input on cache
    files.

18 years agoBump up magic version; we changed the binary format.
Patrick Lam [Fri, 17 Feb 2006 14:44:42 +0000 (14:44 +0000)]
Bump up magic version; we changed the binary format.

18 years agoEnable fc-cat to print out old-style cache info when given a directory
Patrick Lam [Fri, 17 Feb 2006 05:47:08 +0000 (05:47 +0000)]
Enable fc-cat to print out old-style cache info when given a directory
    name.

18 years agoDeal correctly with changing FC_CACHE_MAGIC.
Patrick Lam [Thu, 16 Feb 2006 17:50:04 +0000 (17:50 +0000)]
Deal correctly with changing FC_CACHE_MAGIC.

18 years agoAdd -r --really-force option which blows away cache files and then
Patrick Lam [Thu, 16 Feb 2006 15:36:43 +0000 (15:36 +0000)]
Add -r --really-force option which blows away cache files and then
    regenerates them.

18 years agoDon't bail if fontconfig can't remove a dir cache file. Skip the ID of a
Patrick Lam [Thu, 16 Feb 2006 07:12:04 +0000 (07:12 +0000)]
Don't bail if fontconfig can't remove a dir cache file. Skip the ID of a
    cache file when copying. Eliminate 'source file too small' bug in
    FcDirCacheWrite.

18 years agoFix memory leak in error condition code.
Patrick Lam [Mon, 13 Feb 2006 22:19:30 +0000 (22:19 +0000)]
Fix memory leak in error condition code.

18 years agoSkip bitmap fonts which can't even get it together enough to declare a
Patrick Lam [Mon, 13 Feb 2006 21:51:11 +0000 (21:51 +0000)]
Skip bitmap fonts which can't even get it together enough to declare a
    family name; this appears to reproduce previous fontconfig behaviour.
reviewed by: plam

18 years agoTry to open /var/cache/fontconfig/[hashed name] before fonts.cache-2 in a
Patrick Lam [Sat, 11 Feb 2006 05:01:32 +0000 (05:01 +0000)]
Try to open /var/cache/fontconfig/[hashed name] before fonts.cache-2 in a
    directory, because /var/cache/fontconfig failures ought to be fixable,
    unlike fonts.cache-2 failures, which may leave you screwed.
reviewed by: plam

18 years agoUse a tri-state to mark the fonts which didn't get blocked but were just
Patrick Lam [Sat, 11 Feb 2006 04:50:46 +0000 (04:50 +0000)]
Use a tri-state to mark the fonts which didn't get blocked but were just
    missing an element, to distinguish them from the fonts that do match
    the element.
reviewed by: plam

18 years agoDon't kill fonts because they don't declare an element that's being matched
Patrick Lam [Fri, 10 Feb 2006 19:40:11 +0000 (19:40 +0000)]
Don't kill fonts because they don't declare an element that's being matched
    on.
reviewed by: plam

18 years agoDefine and pass O_BINARY to open if appropriate, for those platforms that
Patrick Lam [Thu, 9 Feb 2006 18:44:14 +0000 (18:44 +0000)]
Define and pass O_BINARY to open if appropriate, for those platforms that
    need it. Reported by Doodle.

18 years agoFix attempt to close -1. Don't unboundedly grow bad caches (reported by
Patrick Lam [Thu, 9 Feb 2006 16:19:42 +0000 (16:19 +0000)]
Fix attempt to close -1. Don't unboundedly grow bad caches (reported by
    fcrozat).

18 years agoFix problem with missing 'en' due to euro.patch: change cache file format
Patrick Lam [Thu, 9 Feb 2006 15:25:57 +0000 (15:25 +0000)]
Fix problem with missing 'en' due to euro.patch: change cache file format
    slightly to coincide with that generated by fc-lang.

18 years agoFix warning.
Patrick Lam [Wed, 8 Feb 2006 03:34:17 +0000 (03:34 +0000)]
Fix warning.

18 years agoDon't reject dirs that can't be normalized (fixes lilypond, and is correct
Patrick Lam [Tue, 7 Feb 2006 22:09:01 +0000 (22:09 +0000)]
Don't reject dirs that can't be normalized (fixes lilypond, and is correct
    in the context of application font directories.)
Use normalized directory name exclusively in FcCacheReadDirs.
reviewed by: plam

18 years agoPerf optimizations. Inline FcValueCanonicalize, reduce FcValueListPtrU
Patrick Lam [Tue, 7 Feb 2006 21:15:33 +0000 (21:15 +0000)]
Perf optimizations. Inline FcValueCanonicalize, reduce FcValueListPtrU
    usage, remove redundant cast.
reviewed by: plam

18 years agosrc/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
Patrick Lam [Tue, 7 Feb 2006 20:56:48 +0000 (20:56 +0000)]
src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf. Declare extern for
    static arrays as arrays, not pointers. (Part of the fix for 'fonts
    don't have en' issue after Euro patch.)
(I forgot to commit the ChangeLog last time.)
reviewed by: plam

18 years agoFix hidden variable warning.
Patrick Lam [Tue, 7 Feb 2006 03:53:32 +0000 (03:53 +0000)]
Fix hidden variable warning.

18 years agoRemove de-escaping logic because FcCacheWriteString doesn't escape anyway.
Patrick Lam [Tue, 7 Feb 2006 02:33:57 +0000 (02:33 +0000)]
Remove de-escaping logic because FcCacheWriteString doesn't escape anyway.
    Do blockwise reading instead of byte-wise for performance.

18 years agoTakashi Iwai <tiwai@suse.de>
Patrick Lam [Tue, 7 Feb 2006 02:22:50 +0000 (02:22 +0000)]
Takashi Iwai <tiwai@suse.de>
Don't loop infinitely on recursive symlinks (client-side).

18 years agoDon't loop infinitely on recursive symlinks.
Patrick Lam [Mon, 6 Feb 2006 23:11:41 +0000 (23:11 +0000)]
Don't loop infinitely on recursive symlinks.
reviewed by: plam

18 years agoSkip subdirs when skipping over stale bits of global cache. Introduce state
Patrick Lam [Mon, 6 Feb 2006 22:44:02 +0000 (22:44 +0000)]
Skip subdirs when skipping over stale bits of global cache. Introduce state
    machine into FcGlobalCacheDir to avoid doing inappropriate operations
    on global dir entries, e.g. writing out an out-of-date cache entry.
reviewed by: plam

18 years agoHoist FcFileIsDir check out of FcFileScanConfig loop.
Patrick Lam [Mon, 6 Feb 2006 21:52:15 +0000 (21:52 +0000)]
Hoist FcFileIsDir check out of FcFileScanConfig loop.
reviewed by: plam

18 years agoDon't rescan when trying to normalize a non-declared font dir. Don't add
Patrick Lam [Mon, 6 Feb 2006 19:25:45 +0000 (19:25 +0000)]
Don't rescan when trying to normalize a non-declared font dir. Don't add
    font dirs multiple times (even if they're aliased).
reviewed by: plam

18 years agoExplain apples/oranges comparison and fix compilation error.
Patrick Lam [Mon, 6 Feb 2006 14:44:46 +0000 (14:44 +0000)]
Explain apples/oranges comparison and fix compilation error.
reviewed by: plam

18 years agoInsert check for integer overflow in # of fonts.
Patrick Lam [Mon, 6 Feb 2006 14:14:21 +0000 (14:14 +0000)]
Insert check for integer overflow in # of fonts.
reviewed by: plam

18 years agoMake 'make distcheck' work with automake 1.6.3.
Patrick Lam [Sun, 5 Feb 2006 04:11:08 +0000 (04:11 +0000)]
Make 'make distcheck' work with automake 1.6.3.
reviewed by: plam

18 years agosrc/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave, FcDirCacheConsume,
Patrick Lam [Sun, 5 Feb 2006 02:57:21 +0000 (02:57 +0000)]
src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave, FcDirCacheConsume,
    FcDirCacheWrite)
Check I/O call return values and eliminate unused variable warnings.
reviewed by: plam

18 years agosrc/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
Patrick Lam [Sat, 4 Feb 2006 00:09:42 +0000 (00:09 +0000)]
src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
Fix memory leak.
reviewed by: plam

18 years agoGracefully handle the case where a cache asserts that it has a negative
Patrick Lam [Sat, 4 Feb 2006 00:04:00 +0000 (00:04 +0000)]
Gracefully handle the case where a cache asserts that it has a negative
    number of fonts, causing overflow.
reviewed by: plam

18 years agoFix double free in error case.
Patrick Lam [Fri, 3 Feb 2006 23:47:37 +0000 (23:47 +0000)]
Fix double free in error case.

18 years agoStephan Kulow <coolo@suse.de> reviewed by: plam
Patrick Lam [Tue, 31 Jan 2006 07:30:23 +0000 (07:30 +0000)]
Stephan Kulow <coolo@suse.de> reviewed by: plam
Replace 'stamp' target with mkinstalldirs.

18 years agoToast broken global cache files.
Patrick Lam [Tue, 31 Jan 2006 07:16:22 +0000 (07:16 +0000)]
Toast broken global cache files.
reviewed by: plam

18 years agoActually use the directories that I added to the global cache. Fixes 'make
Patrick Lam [Tue, 31 Jan 2006 04:42:20 +0000 (04:42 +0000)]
Actually use the directories that I added to the global cache. Fixes 'make
    check'.

18 years agoDon't stop scanning if a directory in fonts.conf doesn't exist, because
Patrick Lam [Tue, 31 Jan 2006 04:07:45 +0000 (04:07 +0000)]
Don't stop scanning if a directory in fonts.conf doesn't exist, because
    subsequent directories might exist.
reviewed by: plam

18 years agoMake global cache work again after putting dir names into global cache (I
Patrick Lam [Mon, 30 Jan 2006 16:31:56 +0000 (16:31 +0000)]
Make global cache work again after putting dir names into global cache (I
    misplaced the recording of a file offset).

18 years agoUpdate fc-cat to handle subdir lists in global cache file.
Patrick Lam [Mon, 30 Jan 2006 15:59:17 +0000 (15:59 +0000)]
Update fc-cat to handle subdir lists in global cache file.
Another FcCacheReadString return value check.

18 years agoMake fccache more resilient to broken cache files by checking return value
Patrick Lam [Mon, 30 Jan 2006 15:44:13 +0000 (15:44 +0000)]
Make fccache more resilient to broken cache files by checking return value
    of FcCacheReadString all the time.
reviewed by: plam

18 years agoRemove references to dead fontconfig(3) manpages in other fontconfig
Patrick Lam [Mon, 30 Jan 2006 14:43:04 +0000 (14:43 +0000)]
Remove references to dead fontconfig(3) manpages in other fontconfig
    manpages.
reviewed by: plam

18 years agoFix world's tiniest typo in code example.
Patrick Lam [Mon, 30 Jan 2006 04:51:22 +0000 (04:51 +0000)]
Fix world's tiniest typo in code example.
reviewed by: plam

18 years agoFix global cache reads of subdirectories.
Patrick Lam [Mon, 30 Jan 2006 04:47:17 +0000 (04:47 +0000)]
Fix global cache reads of subdirectories.
reviewed by: plam

18 years agoAdd documentation for FcConfigNormalizeFontDir.
Patrick Lam [Mon, 30 Jan 2006 04:27:53 +0000 (04:27 +0000)]
Add documentation for FcConfigNormalizeFontDir.
Write directory information to global caches to fix make check (reported by
    Ronny V. Vindenes). This changes the global cache format again.

18 years agoMove FcConfigNormalizeFontDir call so that it doesn't result in infinite
Patrick Lam [Fri, 27 Jan 2006 05:47:59 +0000 (05:47 +0000)]
Move FcConfigNormalizeFontDir call so that it doesn't result in infinite
    recursion (reported by Ronny V. Vindenes).

18 years agoAdd a couple of missing normalizations to make fc-cache work right; only
Patrick Lam [Fri, 27 Jan 2006 00:27:37 +0000 (00:27 +0000)]
Add a couple of missing normalizations to make fc-cache work right; only
    scan subdirectories once.

18 years agoDon't crash on non-existant directories in global cache.
Patrick Lam [Thu, 26 Jan 2006 16:11:41 +0000 (16:11 +0000)]
Don't crash on non-existant directories in global cache.
reviewed by: plam

18 years agoStop trampling the directory name when writing out caches. (with Mike
Patrick Lam [Thu, 26 Jan 2006 16:09:12 +0000 (16:09 +0000)]
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.

18 years agoFix additional memory leaks reported by Ronny V. Vindenes: don't invoke
Patrick Lam [Wed, 25 Jan 2006 14:52:49 +0000 (14:52 +0000)]
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.

18 years agoTreat zh-hk fonts differently from zh-tw fonts. This patch may cause
Patrick Lam [Wed, 25 Jan 2006 02:54:37 +0000 (02:54 +0000)]
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.
reviewed by: plam

18 years agoFix memory leaks reported by Ronny V. Vindenes.
Patrick Lam [Wed, 25 Jan 2006 02:33:46 +0000 (02:33 +0000)]
Fix memory leaks reported by Ronny V. Vindenes.

18 years agoFix for unaligned memory accesses.
Patrick Lam [Thu, 19 Jan 2006 19:20:30 +0000 (19:20 +0000)]
Fix for unaligned memory accesses.
reviewed by: plam

18 years agoProperly order the FcConfigAddFontDir and FcConfigNormalizeFontDir calls to
Patrick Lam [Wed, 18 Jan 2006 15:41:15 +0000 (15:41 +0000)]
Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir calls to
    avoid crashes.
reviewed by: plam

18 years agoFix segfault when consuming zero-length caches in fc-cat (which has no
Patrick Lam [Sun, 15 Jan 2006 05:31:58 +0000 (05:31 +0000)]
Fix segfault when consuming zero-length caches in fc-cat (which has no
    config, so FcConfigAddFontDir shouldn't be called.)

18 years agoCompare device numbers as well as inodes. Always normalize directory names
Patrick Lam [Sat, 14 Jan 2006 21:23:03 +0000 (21:23 +0000)]
Compare device numbers as well as inodes. Always normalize directory names
    before comparing them.
Allocate extra space for appended '/' in directory name.
reviewed by: plam

18 years agoExplicitly add font dirs to config.fontDirs even if they're empty. Set
Patrick Lam [Tue, 10 Jan 2006 13:15:05 +0000 (13:15 +0000)]
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.

18 years agoNormalize font dirs by using the form, as given in fonts.conf, and recorded
Patrick Lam [Mon, 9 Jan 2006 13:58:04 +0000 (13:58 +0000)]
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.

18 years agoFix matching bug when multiple elements match; don't use the sum of all
Patrick Lam [Sun, 8 Jan 2006 10:58:30 +0000 (10:58 +0000)]
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).

18 years agoFix matching bug when multiple elements match; don't use the sum of all
Patrick Lam [Sun, 8 Jan 2006 10:58:05 +0000 (10:58 +0000)]
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).

18 years agoProperly skip past dir caches that contain zero fonts (as occurs in global
Patrick Lam [Sun, 8 Jan 2006 10:50:51 +0000 (10:50 +0000)]
Properly skip past dir caches that contain zero fonts (as occurs in global
    caches.) Reported by Mike Fabian.

18 years agoPrint out full pathname in fc-match -v as well. Reported by Frederic
Patrick Lam [Sat, 7 Jan 2006 06:36:24 +0000 (06:36 +0000)]
Print out full pathname in fc-match -v as well. Reported by Frederic
    Crozat.
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)
reviewed by: plam

18 years agoAdd self to AUTHORS list.
Patrick Lam [Thu, 5 Jan 2006 15:12:22 +0000 (15:12 +0000)]
Add self to AUTHORS list.
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.

18 years agoFix double-free which occurs because FcValueCanonicalize doesn't create an
Patrick Lam [Mon, 2 Jan 2006 17:20:23 +0000 (17:20 +0000)]
Fix double-free which occurs because FcValueCanonicalize doesn't create an
    extra copy of the returned value, it only canonicalizes it.
reviewed by: plam

18 years agoFix version of .cache file (currently 1 -> currently 2). Reported by Jim
Patrick Lam [Mon, 2 Jan 2006 17:18:22 +0000 (17:18 +0000)]
Fix version of .cache file (currently 1 -> currently 2). Reported by Jim
    Osborn.

18 years agoFix version of .cache file (currently 1 -> currently 2). Reported by Jim
Patrick Lam [Mon, 2 Jan 2006 17:13:48 +0000 (17:13 +0000)]
Fix version of .cache file (currently 1 -> currently 2). Reported by Jim
    Osborn.

18 years agoShut up GCC warnings on amd.
Patrick Lam [Wed, 21 Dec 2005 20:00:20 +0000 (20:00 +0000)]
Shut up GCC warnings on amd.
reviewed by: plam

18 years agoAvoid check on _fcBankId nullness and fix case where it used to crash.
Patrick Lam [Wed, 21 Dec 2005 05:37:10 +0000 (05:37 +0000)]
Avoid check on _fcBankId nullness and fix case where it used to crash.

18 years agoBump version to 2.3.93. fc-2_3_93
Patrick Lam [Wed, 21 Dec 2005 03:31:19 +0000 (03:31 +0000)]
Bump version to 2.3.93.
Use open instead of fopen (requested by Phil Race for Sun).
src/fccache.c (FcDirCacheWrite);
Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig dir.

18 years agoRestore code to skip over PCF fonts that have no encoded characters. (We
Patrick Lam [Tue, 20 Dec 2005 20:35:47 +0000 (20:35 +0000)]
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.)

18 years agoRead and write the original location as a fallback for the hashed cache
Patrick Lam [Mon, 12 Dec 2005 20:45:54 +0000 (20:45 +0000)]
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.

18 years agoImprove error message when fc-cache can't write the cache. Add missing
Patrick Lam [Mon, 12 Dec 2005 13:46:45 +0000 (13:46 +0000)]
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.

18 years agoFix crash reported by Frederic Crozat when using libxml2.
Patrick Lam [Mon, 12 Dec 2005 13:20:41 +0000 (13:20 +0000)]
Fix crash reported by Frederic Crozat when using libxml2.
reviewed by: plam

18 years agoMigrate cache files from fonts directories to /var/cache/fontconfig. This
Patrick Lam [Fri, 9 Dec 2005 16:36:45 +0000 (16:36 +0000)]
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.

18 years agoBecause we've changed FcPatternAddString to use FcStrStaticName and not
Patrick Lam [Thu, 8 Dec 2005 05:54:27 +0000 (05:54 +0000)]
Because we've changed FcPatternAddString to use FcStrStaticName and not
    FcValueSave, explicitly handle the case of a null string.

18 years agoFix warnings.
Patrick Lam [Wed, 7 Dec 2005 03:55:25 +0000 (03:55 +0000)]
Fix warnings.

18 years agoDon't assign types to user object names.
Patrick Lam [Tue, 6 Dec 2005 18:57:43 +0000 (18:57 +0000)]
Don't assign types to user object names.

18 years agoDon't free strings that have been returned from FcStrStaticName.
Patrick Lam [Mon, 5 Dec 2005 16:08:01 +0000 (16:08 +0000)]
Don't free strings that have been returned from FcStrStaticName.

18 years agoAdd codepath for reading global cache files as well.
Patrick Lam [Thu, 1 Dec 2005 07:12:45 +0000 (07:12 +0000)]
Add codepath for reading global cache files as well.

18 years agoAdd config file for Persian fonts from Sharif FarsiWeb, Inc.
Patrick Lam [Thu, 1 Dec 2005 06:27:07 +0000 (06:27 +0000)]
Add config file for Persian fonts from Sharif FarsiWeb, Inc.
reviewed by: plam

18 years agoOnly add a config file to the set of config files once.
Patrick Lam [Wed, 30 Nov 2005 22:13:21 +0000 (22:13 +0000)]
Only add a config file to the set of config files once.
reviewed by: plam