]> git.wh0rd.org - fontconfig.git/log
fontconfig.git
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

18 years agosrc/fcint.h (FcCacheBankToIndex);
Patrick Lam [Tue, 29 Nov 2005 15:04:06 +0000 (15:04 +0000)] 
src/fcint.h (FcCacheBankToIndex);
Fix segfault by guarding array dereference.

18 years agoRefactor FcCacheBankToIndex into an inlineable part (in fcint.h) which
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

18 years agoMake the perf guys hate me a bit less: hoist the directory-name
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.

18 years agoDon't make FcPatternFindFullFname available to fccfg, it's not really safe.
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.

18 years agoFix segfault.
Patrick Lam [Tue, 29 Nov 2005 00:21:05 +0000 (00:21 +0000)] 
Fix segfault.

18 years agoUpdate autogenerated config.* files.
Patrick Lam [Tue, 29 Nov 2005 00:16:02 +0000 (00:16 +0000)] 
Update autogenerated config.* files.

18 years agoFix problem dating back at least to 2.3.2 where globs weren't being applied
Patrick Lam [Tue, 29 Nov 2005 00:14:42 +0000 (00:14 +0000)] 
Fix problem dating back at least to 2.3.2 where globs weren't being applied
    to patterns loaded from a cache.
Fix some obvious spelling mistakes.

18 years agoStephan Kulow <coolo@suse.de> reviewed by: plam
Patrick Lam [Mon, 28 Nov 2005 10:54:11 +0000 (10:54 +0000)] 
Stephan Kulow <coolo@suse.de> reviewed by: plam
Don't kill all fonts during match (oops!)

18 years agoStephan Kulow <coolo@suse.de> Michael Matz <matz@suse.de> reviewed by: plam
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.

18 years agoFix incorrect merge.
Patrick Lam [Sat, 26 Nov 2005 05:05:14 +0000 (05:05 +0000)] 
Fix incorrect merge.
reviewed by: plam

18 years agoDon't do random matching when bad objects are passed into
Patrick Lam [Fri, 25 Nov 2005 16:33:58 +0000 (16:33 +0000)] 
Don't do random matching when bad objects are passed into
    FcCompareValueList.

18 years agoRename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
Patrick Lam [Fri, 25 Nov 2005 16:04:44 +0000 (16:04 +0000)] 
Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
    _fcPatternElts, _fcValueLists for consistency.

18 years agoPass the FcObjectPtr to FcCompareValueList, not the char * (perf).
Patrick Lam [Fri, 25 Nov 2005 15:54:24 +0000 (15:54 +0000)] 
Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
reviewed by: plam

18 years agoPass around FcCache *s to the Unserialize functions for extra consistency
Patrick Lam [Fri, 25 Nov 2005 15:50:34 +0000 (15:50 +0000)] 
Pass around FcCache *s to the Unserialize functions for extra consistency
    (and less overhead, for what that's worth).

18 years agoInline the *PtrU functions to gain perf. Remove unneeded params for the
Patrick Lam [Fri, 25 Nov 2005 03:00:51 +0000 (03:00 +0000)] 
Inline the *PtrU functions to gain perf. Remove unneeded params for the
    FcCompare* functions.
reviewed by: plam

18 years agoFix the debian changelog so that debian/rules works again, make it create a
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.

18 years agoMove FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
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

18 years agoMake FcCompareString and FcCompareFamily less expensive. Only add a value
Patrick Lam [Thu, 24 Nov 2005 20:20:26 +0000 (20:20 +0000)] 
Make FcCompareString and FcCompareFamily less expensive. Only add a value
    for FC_FAMILY if the proposed value is a string.
reviewed by: plam

18 years agoInline FcDebug invocations and only initialize once, in FcInit*. Improve
Patrick Lam [Thu, 24 Nov 2005 19:38:05 +0000 (19:38 +0000)] 
Inline FcDebug invocations and only initialize once, in FcInit*. Improve
    debug msg in FcPatternPrint.
reviewed by: plam

18 years agoProperly apply fcrozat's patch.
Patrick Lam [Wed, 23 Nov 2005 17:01:27 +0000 (17:01 +0000)] 
Properly apply fcrozat's patch.

18 years ago2005-11-23 Frederic Crozat <fcrozat@mandriva.com>: reviewed by: plam
Patrick Lam [Wed, 23 Nov 2005 16:36:26 +0000 (16:36 +0000)] 
2005-11-23 Frederic Crozat <fcrozat@mandriva.com>: reviewed by: plam
Minor code warning cleanups.

18 years ago2005-11-23 Frederic Crozat <fcrozat@mandriva.com>: reviewed by: plam
Patrick Lam [Wed, 23 Nov 2005 15:32:36 +0000 (15:32 +0000)] 
2005-11-23 Frederic Crozat <fcrozat@mandriva.com>: reviewed by: plam
Make getopt_long accept -s parameter to fc-match as well.

18 years agoManually perform inlining & partial redundancy elimination to reduce calls
Patrick Lam [Tue, 22 Nov 2005 04:46:55 +0000 (04:46 +0000)] 
Manually perform inlining & partial redundancy elimination to reduce calls
    to FcValueListPtrU.
Only invoke strlen() when really necessary.
reviewed by: plam
reviewed by: plam

18 years agoGet rid of the use of freetype internal headers in fcfreetype.c, since
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

18 years agoGet rid of the use of freetype internal headers in fcfreetype.c, since
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

18 years agoGet rid of the use of freetype internal headers in fcfreetype.c, since
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

18 years agoFurther fix of patch from 2005-11-04: miscounted numbers count
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

18 years agoDon't crash when fc-cat invoked with no arguments.
Patrick Lam [Fri, 18 Nov 2005 20:32:30 +0000 (20:32 +0000)] 
Don't crash when fc-cat invoked with no arguments.
Fix invalid read access caused by premature free and GCC4 warnings in
    libxml2 codepath.
reviewed by: plam
reviewed by: plam

18 years agoList iteration not needed in FcConfigValues, since it's building up the
Patrick Lam [Fri, 18 Nov 2005 04:21:10 +0000 (04:21 +0000)] 
List iteration not needed in FcConfigValues, since it's building up the
    list itself; we can just strip FcVoid elements during construction.
reviewed by: plam

18 years agoFix crash on invalid constants in config files (forgot to update a pointer
Patrick Lam [Thu, 17 Nov 2005 16:46:07 +0000 (16:46 +0000)] 
Fix crash on invalid constants in config files (forgot to update a pointer
    upon list iteration.)

18 years agoComplain about invalid constants in config files.
Patrick Lam [Thu, 17 Nov 2005 16:17:05 +0000 (16:17 +0000)] 
Complain about invalid constants in config files.
reviewed by: plam

18 years agoDon't add current_arch_start more than once.
Patrick Lam [Thu, 17 Nov 2005 15:43:39 +0000 (15:43 +0000)] 
Don't add current_arch_start more than once.
Fix ordering of ALIGN with respect to saving block_ptr; add another ALIGN
    to fcfs.c.
reviewed by: plam

18 years agosrc/fccache.c (FcDirCacheProduce)
Patrick Lam [Wed, 16 Nov 2005 17:49:01 +0000 (17:49 +0000)] 
src/fccache.c (FcDirCacheProduce)
Fix case where alignment bytes bumped up metadata->count causing
    unwarranted failures to write cache files. (Reported by Stephan Kulow).

18 years agoAdd *NeededBytesAlign(), which overestimates the padding which is later
Patrick Lam [Wed, 16 Nov 2005 15:55:17 +0000 (15:55 +0000)] 
Add *NeededBytesAlign(), which overestimates the padding which is later
    added by the new ALIGN macro. Fix alignment problems on ia64 and s390
    by bumping up block_ptr appropriately. (Earlier version by Andreas
    Schwab).
Use sysconf to determine proper PAGESIZE value; this appears to be
    POSIX-compliant. (reported by Andreas Schwab)
reviewed by: plam

18 years agoFix bug 2878 (excessive relocations at startup for charsets, reported by
Patrick Lam [Fri, 4 Nov 2005 19:31:26 +0000 (19:31 +0000)] 
Fix bug 2878 (excessive relocations at startup for charsets, reported by
    Ross Burton): fc-lang/fc-lang now creates the static form of the
    langset, not the dynamic form, so that the charsets should now be in
    .rodata.

18 years agoAdd test for validity of directory caches that somehow got lost (reported fc-2_3_92
Patrick Lam [Fri, 4 Nov 2005 16:48:32 +0000 (16:48 +0000)] 
Add test for validity of directory caches that somehow got lost (reported
    by make distcheck).

18 years agoBump version to 2.3.92.
Patrick Lam [Fri, 4 Nov 2005 06:17:00 +0000 (06:17 +0000)] 
Bump version to 2.3.92.

18 years agoFix argument ordering problem in call to FcPatternTransferFullFname.
Patrick Lam [Thu, 3 Nov 2005 04:45:57 +0000 (04:45 +0000)] 
Fix argument ordering problem in call to FcPatternTransferFullFname.

18 years agoFix warnings and embarrassing double-free error.
Patrick Lam [Thu, 3 Nov 2005 04:23:22 +0000 (04:23 +0000)] 
Fix warnings and embarrassing double-free error.

18 years agoChange the rule for artificial emboldening in fonts.conf.in. This enables
Patrick Lam [Wed, 2 Nov 2005 15:57:36 +0000 (15:57 +0000)] 
Change the rule for artificial emboldening in fonts.conf.in. This enables
    the support for artificial emboldening included in cairo.
reviewed by: plam

18 years agoDon't zero out full names for FC_REF_CONSTANT fonts; also, duplicate full
Patrick Lam [Wed, 2 Nov 2005 15:29:53 +0000 (15:29 +0000)] 
Don't zero out full names for FC_REF_CONSTANT fonts; also, duplicate full
    names when transferring, and free full names when freeing the
    associated font. Reported by Jinghua Luo.

18 years agoRevert the previous patch and commit the correct patch: I forgot a
Patrick Lam [Wed, 2 Nov 2005 07:37:00 +0000 (07:37 +0000)] 
Revert the previous patch and commit the correct patch: I forgot a
    canonicalization in FcValueListSerialize, so that it would choke on
    already-serialized input files. Duh!

18 years agoForcibly rescan a directory before writing a fresh local cache file for
Patrick Lam [Wed, 2 Nov 2005 07:01:25 +0000 (07:01 +0000)] 
Forcibly rescan a directory before writing a fresh local cache file for
    that directory, fixing the losing-fonts problem reported by Mike Fabian
    and also apparently the font cache file corruption.

18 years agoFix thinko: actually, the whole global cache is stale if the global cache
Patrick Lam [Wed, 2 Nov 2005 06:39:23 +0000 (06:39 +0000)] 
Fix thinko: actually, the whole global cache is stale if the global cache
    is older than the (newest) config file.

18 years agoDeclare the global cache of a directory's contents to be stale if the
Patrick Lam [Wed, 2 Nov 2005 06:29:14 +0000 (06:29 +0000)] 
Declare the global cache of a directory's contents to be stale if the
    directory is newer than the (newest) configuration file. S:
    ----------------------------------------------------------------------

18 years agoCopy the full pathname whenever duplicating an FcPattern; otherwise,
Patrick Lam [Tue, 1 Nov 2005 06:57:25 +0000 (06:57 +0000)] 
Copy the full pathname whenever duplicating an FcPattern; otherwise,
    applications continue breaking.

18 years agoFix small memory error (tried to free argv); use basename and dirname
Patrick Lam [Tue, 1 Nov 2005 05:52:28 +0000 (05:52 +0000)] 
Fix small memory error (tried to free argv); use basename and dirname
    correctly (they can modify their arguments).

18 years agoReinstate basename patch, but keep a hash table linking FcPatterns to their
Patrick Lam [Tue, 1 Nov 2005 05:26:27 +0000 (05:26 +0000)] 
Reinstate basename patch, but keep a hash table linking FcPatterns to their
    fully-qualified font names for clients' benefit. Clients only pay for
    the font names once they request the FC_FILE property from an
    FcPattern, but the font name is malloc'd at that point (i.e. not
    mmapped: that's impossible, since it may vary between machines.)
    Clients do have to pay for a copy of the path name per cache file.
Note that FcPatternGetString now does some rewriting if you ask for an
    FC_FILE, appending the pathname as appropriate.

18 years agoRevert basename patch, which breaks fontconfig clients on my system.
Patrick Lam [Mon, 31 Oct 2005 06:02:00 +0000 (06:02 +0000)] 
Revert basename patch, which breaks fontconfig clients on my system.

18 years agoAdd FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether to load
Patrick Lam [Wed, 26 Oct 2005 06:34:29 +0000 (06:34 +0000)] 
Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether to load
    embedded bitmaps or not.
reviewed by: plam

18 years agoOnly add basename to patterns' FC_FILE element, not any part of the
Patrick Lam [Tue, 25 Oct 2005 22:29:13 +0000 (22:29 +0000)] 
Only add basename to patterns' FC_FILE element, not any part of the
    dirname.

18 years agoAdd some more consts, fixing more GCC4 warnings.
Patrick Lam [Sat, 22 Oct 2005 15:12:05 +0000 (15:12 +0000)] 
Add some more consts, fixing more GCC4 warnings.

18 years agoSupport localized font family and style names. This has been reported to
Patrick Lam [Sat, 22 Oct 2005 14:21:14 +0000 (14:21 +0000)] 
Support localized font family and style names. This has been reported to
    break old apps like xfd, but modern (gtk+/qt/mozilla) apps work fine.
reviewed by: plam

18 years agoDestroy the global cache file if it's terminally broken. (reported by Mike
Patrick Lam [Fri, 21 Oct 2005 20:24:30 +0000 (20:24 +0000)] 
Destroy the global cache file if it's terminally broken. (reported by Mike
    Fabian)

18 years agoPrevent fc-list from escaping strings when printing them.
Patrick Lam [Fri, 21 Oct 2005 19:47:43 +0000 (19:47 +0000)] 
Prevent fc-list from escaping strings when printing them.

18 years agoAdd valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
Patrick Lam [Thu, 20 Oct 2005 20:50:21 +0000 (20:50 +0000)] 
Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
reviewed by: plam

18 years agoAdd consts to variables so as to move arrays into .rodata.
Patrick Lam [Fri, 14 Oct 2005 21:02:31 +0000 (21:02 +0000)] 
Add consts to variables so as to move arrays into .rodata.
reviewed by: plam

18 years agoCheck existence of directory cache file before attempting to unlink.
Patrick Lam [Fri, 14 Oct 2005 20:56:27 +0000 (20:56 +0000)] 
Check existence of directory cache file before attempting to unlink.
reviewed by: plam

18 years agoFix flipped return value on unlink. (Reported by Mike Fabian)
Patrick Lam [Thu, 13 Oct 2005 12:32:14 +0000 (12:32 +0000)] 
Fix flipped return value on unlink. (Reported by Mike Fabian)

18 years agoWhen fc-cache is run without --force, use directory cache files to speed up
Patrick Lam [Wed, 12 Oct 2005 07:55:42 +0000 (07:55 +0000)] 
When fc-cache is run without --force, use directory cache files to speed up
    fc-cache run time.