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
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
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
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
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
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
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.
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.
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.
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
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
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.
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.
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).
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).
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
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.
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
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.
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.
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.
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.
Patrick Lam [Tue, 29 Nov 2005 14:57:10 +0000 (14:57 +0000)]
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.
reviewed by: plam
Patrick Lam [Tue, 29 Nov 2005 06:23:00 +0000 (06:23 +0000)]
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.
Patrick Lam [Tue, 29 Nov 2005 06:09:18 +0000 (06:09 +0000)]
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.
Patrick Lam [Mon, 28 Nov 2005 01:40:53 +0000 (01:40 +0000)]
Stephan Kulow <coolo@suse.de> Michael Matz <matz@suse.de> reviewed by: plam
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.
Patrick Lam [Fri, 25 Nov 2005 02:16:42 +0000 (02:16 +0000)]
Fix the debian changelog so that debian/rules works again, make it create a
debian package for release 2.3.92-1. Acknowledge change in NMU of
debian package.
Patrick Lam [Thu, 24 Nov 2005 21:40:20 +0000 (21:40 +0000)]
Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
Check for type validity during FcPatternAddWithBinding, don't verify type
in FcFontMatch, don't call FcCanonicalize here (which always does a
deep copy).
reviewed by: plam
Patrick Lam [Sat, 19 Nov 2005 22:38:39 +0000 (22:38 +0000)]
Get rid of the use of freetype internal headers in fcfreetype.c, since
those headers will go away with freetype 2.2. Replace with public
domain ftglue code from pango. Note that the patch removes some extra
error checking in FT_Get_BDF_Property() and comments out the skipping
of empty pcf fonts.
reviewed by: plam
Patrick Lam [Sat, 19 Nov 2005 22:37:24 +0000 (22:37 +0000)]
Get rid of the use of freetype internal headers in fcfreetype.c, since
those headers will go away with freetype 2.2. Replace with public
domain ftglue code from pango. Note that the patch removes some extra
error checking in FT_Get_BDF_Property() and comments out the skipping
of empty pcf fonts.
reviewed by: plam
Patrick Lam [Sat, 19 Nov 2005 22:32:13 +0000 (22:32 +0000)]
Get rid of the use of freetype internal headers in fcfreetype.c, since
those headers will go away with freetype 2.2. Replace with public
domain ftglue code from pango. Note that the patch removes some extra
error checking in FT_Get_BDF_Property() and comments out the skipping
of empty pcf fonts.
reviewed by: plam
Patrick Lam [Sat, 19 Nov 2005 16:24:53 +0000 (16:24 +0000)]
Further fix of patch from 2005-11-04: miscounted numbers count
(numbers_count); didn't strip duplicate numbers (langBankNumbers); and
leafidx_offset and numbers_offset in fcLangCharSets are wrong.
Removed leafidx_count and numbers_count since they are the same and
replaced them with offset_count.
reviewed by: plam