1 2006-01-06 Patrick Lam <plam@mit.edu>
2 * src/fcdbg.c (FcPatternPrint):
4 Print out full pathname in fc-match -v as well. Reported by
7 2006-01-06 Mike Fabian <mfabian@suse.de>
10 * src/fcname.c (FcNameParse):
12 Fix bug where fc-match crashes when given __DUMMY__ property to
15 (I added the __DUMMY__ string to enable callers of
16 FcObjectToPtrLookup to distinguish an error return from a
17 successful return. -PL)
19 2006-01-05 Patrick Lam <plam@mit.edu>
22 Add self to AUTHORS list.
24 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
25 FcCacheFileRead, FcCachePrintSet, main):
26 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
27 FcGlobalCacheSave, FcCacheNextOffset,
28 FcDirCacheHasCurrentArch, FcDirCacheRead,
29 FcDirCacheConsume, FcDirCacheWrite):
31 * src/fcpat.c (comment):
33 Minor change to global cache file format to fix fc-cat bug
34 reported by Frederic Crozat, and buglet with not globally caching
35 directories with zero fonts cached.
37 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
40 * src/fccfg.c (FcConfigEvaluate):
42 Fix double-free which occurs because FcValueCanonicalize doesn't
43 create an extra copy of the returned value, it only canonicalizes
46 2006-01-02 Patrick Lam <plam@mit.edu>
47 * doc/fontconfig-user.sgml:
49 Fix version of .cache file (currently 1 -> currently 2). Reported
52 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
55 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
57 Shut up GCC warnings on amd.
59 2005-12-20 Patrick Lam <plam@mit.edu>
63 * fontconfig/fontconfig.h:
65 Bump version to 2.3.93.
67 2005-12-20 Patrick Lam <plam@mit.edu>
68 * src/fccharset.c (FcLangCharSetPopulate):
69 * src/fcint.h (FcCacheBankToIndex):
71 Avoid check on _fcBankId nullness and fix case where it used to
74 2005-12-20 Patrick Lam <plam@mit.edu>
75 * src/fcxml.c (FcConfigParseAndLoad):
77 Use open instead of fopen (requested by Phil Race for Sun).
79 2005-12-20 Patrick Lam <plam@mit.edu>
80 * src/fccache.c (FcDirCacheWrite);
81 * fc-cache/Makefile.am:
83 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
86 2005-12-20 Patrick Lam <plam@mit.edu>
87 * src/fcfreetype.c (FcFreeTypeQuery):
89 Restore code to skip over PCF fonts that have no encoded
91 (We guess that a font is PCF by presence of the PIXEL_SIZE
94 2005-12-12 Patrick Lam <plam@mit.edu>
95 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
97 Read and write the original location as a fallback for the
98 hashed cache file locations. This is mostly for users to be
99 able to have per-directory cache files.
101 2005-12-12 Patrick Lam <plam@mit.edu>
102 * fc-cache/fc-cache.c (scanDirs):
103 * fc-cache/Makefile.am:
104 * src/fccache.c (FcDirCacheHashName):
106 Improve error message when fc-cache can't write the cache. Add
107 missing slash. Reported by Behdad. Incorporate Behdad's patch to
108 create /var/cache/fontconfig when appropriate.
110 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
113 * src/fcxml.c (FcConfigGetAttribute):
115 Fix crash reported by Frederic Crozat when using libxml2.
117 2005-12-09 Patrick Lam <plam@mit.edu>
120 * fc-cache/Makefile.am:
121 * fc-cat/Makefile.am:
123 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
124 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
125 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
126 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
127 FcDirCacheHasCurrentArch, FcDirCacheHashName,
128 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
130 Migrate cache files from fonts directories to
131 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
132 but requires that all caches get rebuilt.
134 Also, autogen.sh now needs the additional parameter
135 --localstatedir=/var.
137 2005-12-07 Patrick Lam <plam@mit.edu>
138 * src/fcpat.c (FcPatternAddString):
140 Because we've changed FcPatternAddString to use FcStrStaticName
141 and not FcValueSave, explicitly handle the case of a null string.
143 2005-12-06 Patrick Lam <plam@mit.edu>
144 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
148 2005-12-05 Patrick Lam <plam@mit.edu>
149 * src/fcname.c (FcNameGetObjectType):
151 Don't assign types to user object names.
153 2005-12-05 Patrick Lam <plam@mit.edu>
154 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
156 Don't free strings that have been returned from FcStrStaticName.
158 2005-12-01 Patrick Lam <plam@mit.edu>
159 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
161 Add codepath for reading global cache files as well.
163 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
166 * conf.d/10-fonts.persian.conf:
167 * conf.d/Makefile.am:
169 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
171 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
174 * src/fcxml.c (FcConfigParseAndLoad):
176 Only add a config file to the set of config files once.
178 2005-11-29 Patrick Lam <plam@mit.edu>
179 * src/fcint.h (FcCacheBankToIndex);
181 Fix segfault by guarding array dereference.
183 2005-11-29 Dirk Mueller <dmueller@suse.de>
187 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
188 FcCacheBankToIndex, FcCacheBankToIndexMTF,
192 Refactor FcCacheBankToIndex into an inlineable part
193 (in fcint.h) which checks the front of the list and a
194 non-inlineable part which finds and moves the appropriate element
195 to the front of the list.
197 2005-11-29 Patrick Lam <plam@mit.edu>
198 * src/fccfg.c (FcConfigBuildFonts):
199 * src/fccache.c (FcCacheReadDirs):
201 Make the perf guys hate me a bit less: hoist the directory-name
202 FcConfigAcceptFont check for cached fonts up to directory cache
203 read time, rather than running it for each font.
205 2005-11-29 Patrick Lam <plam@mit.edu>
206 * src/fccfg.c (FcConfigBuildFonts):
208 * src/fcpat.c (FcPatternFindFullFname):
210 Don't make FcPatternFindFullFname available to fccfg, it's not
211 really safe. Instead go through FcPatternGetString (sorry,
212 perf guys.) Also, use globs for dirs as well.
214 2005-11-28 Patrick Lam <plam@mit.edu>
215 * src/fccfg.c (FcConfigBuildFonts):
219 2005-11-28 Patrick Lam <plam@mit.edu>
221 * src/fcpat.c (FcPatternFindFullFname):
222 * src/fccfg.c (FcConfigBuildFonts):
224 Fix problem dating back at least to 2.3.2 where globs weren't
225 being applied to patterns loaded from a cache.
227 2005-11-28 Patrick Lam <plam@mit.edu>
228 * doc/fontconfig-user.sgml:
230 Fix some obvious spelling mistakes.
232 2005-11-28 Dirk Mueller <dmueller@suse.com>
233 Stephan Kulow <coolo@suse.de>
236 * src/fcmatch.c (FcFontSetMatch):
238 Don't kill all fonts during match (oops!)
241 2005-11-25 Dirk Mueller <dmueller@suse.com>
242 Stephan Kulow <coolo@suse.de>
243 Michael Matz <matz@suse.de>
246 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
249 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
250 inline FcCompare into FcFontSetMatch and reorder the
251 loops, adding a boolean array which blocks patterns from future
252 consideration if they're known to not be best on some past
255 2005-11-26 Dirk Mueller <dmueller@suse.com>
258 * src/fcmatch.c (FcCompareValueList):
262 2005-11-25 Patrick Lam <plam@mit.edu>
263 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
265 Don't do random matching when bad objects are passed into
268 2005-11-25 Patrick Lam <plam@mit.edu>
270 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
271 FcPatternSerialize, FcPatternUnserialize,
272 FcValueListEnsureBank, FcValueListDistributeBytes,
273 FcValueListUnserialize):
275 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
276 _fcPatternElts, _fcValueLists for consistency.
278 2005-11-25 Dirk Mueller <dmueller@suse.com>
283 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
285 2005-11-25 Patrick Lam <plam@mit.edu>
287 * src/fccache.c (FcDirCacheConsume):
288 * src/fccharset.c (FcCharSetUnserialize):
289 * src/fcfs.c (FcFontSetUnserialize):
290 * src/fclang.c (FcLangSetUnserialize):
291 * src/fcname.c (FcObjectUnserialize):
292 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
293 FcPatternUnserialize):
295 Pass around FcCache *s to the Unserialize functions for extra
296 consistency (and less overhead, for what that's worth).
298 2005-11-24 Dirk Mueller <dmueller@suse.com>
302 * src/fcmatch.c (FcCompare*, FcFontSetSort):
303 * src/fcname.c (FcNameUnparseValue):
305 Inline the *PtrU functions to gain perf.
306 Remove unneeded params for the FcCompare* functions.
308 2005-11-24 Dirk Mueller <dmueller@suse.com>
311 * src/fcint.h, fontconfig/fontconfig.h:
313 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
315 * src/fcpat.c, src/fcint.h, src/fcname.c:
317 Check for type validity during FcPatternAddWithBinding, don't
318 verify type in FcFontMatch, don't call FcCanonicalize here
319 (which always does a deep copy).
321 2005-11-24 Dirk Mueller <dmueller@suse.com>
324 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
325 * src/fcpat.c (FcPatternAddWithBinding):
327 Make FcCompareString and FcCompareFamily less expensive.
328 Only add a value for FC_FAMILY if the proposed value is a string.
330 2005-11-24 Dirk Mueller <dmueller@suse.com>
333 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
334 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
335 * src/fcint.h (FcDebug):
337 Inline FcDebug invocations and only initialize once, in FcInit*.
338 Improve debug msg in FcPatternPrint.
340 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
343 * fontconfig/fontconfig.h:
346 Minor code warning cleanups.
348 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
351 * fc-match/fc-match.c (main):
353 Make getopt_long accept -s parameter to fc-match as well.
355 2005-11-21 Dirk Mueller <dmueller@suse.com>
358 * src/fcmatch.c (FcCompareValueList):
360 Manually perform inlining & partial redundancy elimination to
361 reduce calls to FcValueListPtrU.
363 2005-11-21 Dirk Mueller <dmueller@suse.com>
366 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
367 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
369 Only invoke strlen() when really necessary.
371 2005-11-19 Matthias Clasen <mclasen@redhat.com>
375 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
380 Get rid of the use of freetype internal headers in fcfreetype.c,
381 since those headers will go away with freetype 2.2. Replace with
382 public domain ftglue code from pango. Note that the patch removes
383 some extra error checking in FT_Get_BDF_Property() and comments
384 out the skipping of empty pcf fonts.
386 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
389 * fc-lang/fc-lang.c (main):
391 Further fix of patch from 2005-11-04: miscounted numbers count
392 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
393 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
395 Removed leafidx_count and numbers_count since they are the same
396 and replaced them with offset_count.
398 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
401 * fc-cat/fc-cat.c (main):
403 Don't crash when fc-cat invoked with no arguments.
405 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
408 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
410 Fix invalid read access caused by premature free and
411 GCC4 warnings in libxml2 codepath.
413 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
416 * src/fccfg.c (FcConfigValues):
418 List iteration not needed in FcConfigValues, since it's building
419 up the list itself; we can just strip FcVoid elements during
422 2005-11-17 Patrick Lam <plam@mit.edu>
423 * src/fccfg.c (FcConfigValues):
425 Fix crash on invalid constants in config files (forgot to update
426 a pointer upon list iteration.)
428 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
431 * src/fcxml.c (FcTypecheckExpr):
433 Complain about invalid constants in config files.
435 2005-11-17 Andreas Schwab <schwab@suse.de>
438 * src/fccache.c (FcGlobalCacheSave):
440 Don't add current_arch_start more than once.
442 2005-11-16 Patrick Lam <plam@mit.edu>
443 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
444 * src/fcfs.c (FcFontSetUnserialize):
445 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
446 * src/fcpat.c (FcStrUnserialize):
448 Fix ordering of ALIGN with respect to saving block_ptr; add
449 another ALIGN to fcfs.c.
451 2005-11-16 Patrick Lam <plam@mit.edu>
452 * src/fccache.c (FcDirCacheProduce)
454 Fix case where alignment bytes bumped up metadata->count
455 causing unwarranted failures to write cache files.
456 (Reported by Stephan Kulow).
458 2005-11-16 Patrick Lam <plam@mit.edu>
459 * src/fccache.c (FcDirCacheProduce):
460 * src/fccharset.c (FcCharSetDistributeBytes):
461 * src/fcfs.c (FcFontSetDistributeBytes):
463 * src/fclang.c (FcLangSetDistributeBytes):
464 * src/fcname.c (FcObjectDistributeBytes):
465 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
468 Add *NeededBytesAlign(), which overestimates the padding which is
469 later added by the new ALIGN macro. Fix alignment problems on
470 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
471 version by Andreas Schwab).
473 2005-11-16 Stephan Kulow <coolo@kde.org>
478 Use sysconf to determine proper PAGESIZE value; this
479 appears to be POSIX-compliant. (reported by Andreas Schwab)
481 2005-11-04 Patrick Lam <plam@mit.edu>
487 Fix bug 2878 (excessive relocations at startup for charsets,
488 reported by Ross Burton): fc-lang/fc-lang now creates the
489 static form of the langset, not the dynamic form, so that
490 the charsets should now be in .rodata.
492 2005-11-04 Patrick Lam <plam@mit.edu>
493 * src/fcdir.c (FcDirScanConfig):
495 Add test for validity of directory caches that
496 somehow got lost (reported by make distcheck).
498 2005-11-04 Patrick Lam <plam@mit.edu>
502 * fontconfig/fontconfig.h:
504 Bump version to 2.3.92.
506 2005-11-02 Patrick Lam <plam@mit.edu>
507 * src/fcpat.c (FcPatternDuplicate):
509 Fix argument ordering problem in call to FcPatternTransferFullFname.
511 2005-11-02 Patrick Lam <plam@mit.edu>
512 * src/fcfreetype.c (FcFreetypeQuery):
513 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
514 FcPatternTransferFullFname):
516 Fix warnings and embarrassing double-free error.
518 2005-11-02 Zhe Su <zsu@novell.com>
523 Change the rule for artificial emboldening in fonts.conf.in. This
524 enables the support for artificial emboldening included in cairo.
526 2005-11-02 Patrick Lam <plam@mit.edu>
527 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
529 Don't zero out full names for FC_REF_CONSTANT fonts;
530 also, duplicate full names when transferring, and free
531 full names when freeing the associated font.
532 Reported by Jinghua Luo.
534 2005-11-02 Patrick Lam <plam@mit.edu>
535 * fc-cache/fc-cache.c (scanDirs):
536 * src/fcpat.c (FcValueListSerialize):
538 Revert the previous patch and commit the correct patch:
539 I forgot a canonicalization in FcValueListSerialize, so
540 that it would choke on already-serialized input files. Duh!
542 2005-11-02 Patrick Lam <plam@mit.edu>
543 * fc-cache/fc-cache.c (scanDirs):
545 Forcibly rescan a directory before writing a fresh local
546 cache file for that directory, fixing the losing-fonts
547 problem reported by Mike Fabian and also apparently the
548 font cache file corruption.
550 2005-11-02 Patrick Lam <plam@mit.edu>
551 * src/fccache.c (FcGlobalCacheLoad):
553 Fix thinko: actually, the whole global cache is stale
554 if the global cache is older than the (newest) config file.
556 2005-11-02 Patrick Lam <plam@mit.edu>
557 * src/fccache.c (FcGlobalCacheLoad):
558 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
561 Declare the global cache of a directory's contents to be stale if
562 the directory is newer than the (newest) configuration file.
564 2005-10-31 Patrick Lam <plam@mit.edu>
566 * src/fclist.c (FcListAppend):
567 * src/fcmatch.c (FcFontRenderPrepare):
568 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
569 FcPatternFreeze, FcPatternBaseFreeze):
571 Copy the full pathname whenever duplicating an FcPattern; otherwise,
572 applications continue breaking.
574 2005-10-31 Patrick Lam <plam@mit.edu>
575 * fc-cat/fc-cat.c (FcCacheFileRead, main):
576 * src/fcfreetype.c (FcFreeTypeQuery):
578 Fix small memory error (tried to free argv); use basename and
579 dirname correctly (they can modify their arguments).
581 2005-10-31 Patrick Lam <plam@mit.edu>
589 Reinstate basename patch, but keep a hash table linking FcPatterns
590 to their fully-qualified font names for clients' benefit. Clients
591 only pay for the font names once they request the FC_FILE property
592 from an FcPattern, but the font name is malloc'd at that point (i.e.
593 not mmapped: that's impossible, since it may vary between machines.)
594 Clients do have to pay for a copy of the path name per cache file.
596 Note that FcPatternGetString now does some rewriting if you ask
597 for an FC_FILE, appending the pathname as appropriate.
599 2005-10-31 Patrick Lam <plam@mit.edu>
600 * src/fcfreetype.c (FcFreeTypeQuery):
602 Revert basename patch, which breaks fontconfig clients on my system.
604 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
607 * fontconfig/fonts.conf.in:
608 * fontconfig/fontconfig.h:
612 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
613 to load embedded bitmaps or not.
615 2005-10-25 Patrick Lam <plam@mit.edu>
616 * src/fcfreetype.c (FcFreeTypeQuery):
618 Only add basename to patterns' FC_FILE element, not any part of
621 2005-10-22 Patrick Lam <plam@mit.edu>
624 Add some more consts, fixing more GCC4 warnings.
626 2005-10-22 Zhe Su <zsu@novell.com>
629 Support localized font family and style names.
630 This has been reported to break old apps like xfd, but modern
631 (gtk+/qt/mozilla) apps work fine.
633 2005-10-21 Patrick Lam <plam@mit.edu>
634 * src/fccache.c (FcGlobalCacheLoad):
636 Destroy the global cache file if it's terminally broken. (reported by
639 2005-10-21 Patrick Lam <plam@mit.edu>
640 * fc-list/fc-list.c (main):
641 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
642 * fontconfig/fontconfig.h:
644 Prevent fc-list from escaping strings when printing them (reported by
647 2005-10-20 Marcus Meissner <meissner@suse.de>
650 * fontconfig/fontconfig.h:
652 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
654 2005-10-14 Ross Burton <ross@burtonini.com>
657 * fc-glyphname/fc-glyphname.c:
660 Add consts to variables so as to move arrays into .rodata.
662 2005-10-14 Mike Fabian <mfabian@suse.de>
665 * src/fccache.c (FcDirCacheUnlink):
667 Check existence of directory cache file before attempting to unlink.
669 2005-10-13 Patrick Lam <plam@mit.edu>
670 * src/fccache.c (FcDirCacheUnlink):
672 Fix flipped return value on unlink. (Reported by Mike Fabian)
674 2005-10-12 Patrick Lam <plam@mit.edu>
677 * src/fcdir.c (FcDirScanConfig):
680 When fc-cache is run without --force, use directory cache files
681 to speed up fc-cache run time. (Reported by Mike Fabian)
683 2005-10-06 Patrick Lam <plam@mit.edu>
685 * src/fcname.c (FcObjectToPtr):
686 * src/fcpat.c (FcStrStaticName):
688 Add padding to make valgrind and glibc not hate each other
689 when calling strlen().
691 2005-10-05 Simos Xenitellis <simos74@gmx.net>
692 reviewed by: plam & keithp
696 Modify config file to use Greek fonts before Asian fonts with
699 2005-10-05 Christian Biesinger <cbiesinger@web.de>
700 reviewed by: plam & keithp
704 Use libtool -no-undefined flag on all platforms.
706 2005-10-05 Patrick Lam <plam@mit.edu>
707 * src/fccache.c (FcCacheHaveBank):
709 Implement move-to-front array for banks (perf regression
710 reported by Ronny V. Vindenes).
712 2005-10-04 Patrick Lam <plam@mit.edu>
713 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
714 FcDirCacheHasCurrentArch):
715 * fc-cache/fc-cache.c (scanDirs):
716 * fontconfig/fontconfig.h:
718 Add new API which unlinks directory caches and checks dir caches
719 for existence of appropriate sections. Fix fc-cache to unlink
720 stale cache files and save directory caches that lack relevant
723 2005-10-03 Patrick Lam <plam@mit.edu>
724 * src/fccache.c (FcDirCacheValid):
726 Ensure that a directory cache has the appropriate section
727 before reporting that it is valid (reported by Matthias Clasen).
729 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
737 Use libxml2 if requested (with --enable-libxml2) or if
738 expat is not available.
740 2005-09-29 Patrick Lam <plam@mit.edu>
741 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
743 Fix multi-arch cache files: compute the position for the
744 block to be added using info from OrigFile, not NewFile.
746 2005-09-28 Patrick Lam <plam@mit.edu>
747 * src/fccache.c (FcCacheMachineSignature):
749 Cast results of sizeof() to unsigned int to get rid of
750 warnings on x86_64 (thanks Matthias Clasen).
752 2005-09-27 Patrick Lam <plam@mit.edu>
753 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
756 Use FcAtomic to rewrite cache files.
758 2005-09-27 Patrick Lam <plam@mit.edu>
760 * src/fccache.c (FcDirCacheWrite):
762 Don't unlink the fonts.cache-2 file even if there's no data
763 to write; just write an empty cache file. (thanks Lubos Lunak)
765 2005-09-27 Patrick Lam <plam@mit.edu>
767 * src/fccache.c (FcDirCacheWrite):
769 Allocate room for the subdirectory names in each
770 directory cache. Thanks to James Cloos for finding
771 and diagnosing this bug!
773 2005-09-22 Patrick Lam <plam@mit.edu>
775 * fc-cache/fc-cache.sgml:
776 * src/fccache.c (FcDirCacheWrite):
777 * src/fccache.h (struct FcCache):
779 Update documentation -- fc-cache's man page now says that you
780 need to run fc-cache once per cached architecture; add some
781 documentation to the FcCache structure.
783 Make fc-cache write out fonts.cache-2 files for directories with
784 no fonts (i.e. only subdirectories).
786 2005-09-22 Patrick Lam <plam@mit.edu>
788 * fc-cache/fc-cache.sgml:
790 * fc-glyphname/fc-glyphname.c:
796 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
801 * fontconfig/fcprivate.h:
802 * fontconfig/fontconfig.h:
816 Implement new mmaped cache for font information.
817 Bump so revision to 2.3.90.
819 2005-07-25 Keith Packard <keithp@keithp.com>
821 * doc/fontconfig-user.sgml:
822 * fc-glyphname/fc-glyphname.c: (scan), (main):
823 * fc-lang/fc-lang.c: (FcConfigHome):
824 * fc-match/fc-match.c: (main):
825 * src/fccfg.c: (FcConfigHome):
826 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
827 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
828 (addtag), (FcFontCapabilities):
829 * src/fcpat.c: (FcValueListEntCreate):
830 * src/fcstr.c: (FcStrCaseWalkerInit):
831 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
833 Various GCC 4 cleanups for signed vs unsigned char
835 Match only [0-9]*.conf files in <include>{directory}</include>
836 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
838 2005-07-15 Carl Worth <cworth@cworth.org>
841 * src/fcinit.c: (FcFini):
842 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
845 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
846 Pull the FcObjectStateName hash table out to file scope, and add
847 FcObjectStaticNameFini so that FcFini will cleanup this hash table
850 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
853 2005-06-16 Patrick Lam <plam@MIT.EDU>
857 * src/fccfg.c: (FcConfigCompareValue):
858 Make FcOpNotContains use FcStrStr for strings so that
859 it matches semantics for !FcOpContains.
861 2005-05-20 Keith Packard <keithp@keithp.com>
865 Move fontconfig source package to libs as per override
867 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
869 reviewed by: Mike Fabian
872 The ka.orth file requires several characters which are not
873 used anymore in modern Georgian and which are missing in the free
874 Georgian TrueType fonts downloadable at:
876 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
878 2005-04-27 Keith Packard <keithp@keithp.com>
882 Update date to real 2.3.2 release date.
883 Fix change attributions
885 2005-04-27 Keith Packard <keithp@keithp.com>
888 Bump so revision for 2.3.2
889 * fc-cache/fc-cache.c: (scanDirs):
890 Fix a few minor leaks in error cases.
892 2005-04-23 Keith Packard <keithp@keithp.com>
897 * fontconfig/fontconfig.h:
898 Update for version 2.3.2
900 2005-04-21 Keith Packard <keithp@keithp.com>
902 * debian/fontconfig.postinst:
903 Don't force bitmap font enable in default
904 configuration; allows users to override this in
914 * debian/po/pt_BR.po:
915 * debian/po/templates.pot:
917 * debian/po/zh_CN.po:
920 * fc-cache/fc-cache.c: (main):
921 Destroy font configuration on exit to help valgrind
924 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
925 (FcFreeTypeCheckGlyph):
926 Use own transcoding routines in preference to iconv
927 which appears to have leaks in some translators.
928 Call iconv_close after using iconv (oops).
930 Prefer unicode encoding of Euro char as some
931 fonts mis-encode Euro in other ones.
933 Must fetch bitmap glyphs to get width values
934 to check for monospace/dual-width fonts.
936 2005-04-13 Ross Burton <ross@burtonini.com>
939 Check that a pattern isn't already frozen in FcPatternFreeze.
941 2005-03-31 Ross Burton <ross@burtonini.com>
946 Run all FcPattern objects through FcObjectStaticName, so that
947 compares can be done on pointers instead of strings (#2659)
949 2005-03-17 Tor Lillqvist <tml@novell.com>
951 * src/fontconfig.def.in: Add the .dll to the dll name.
953 2005-03-10 Keith Packard <keithp@keithp.com>
955 * debian/README.Debian:
956 Update to reflect configuration changes
958 * debian/fontconfig.postinst:
959 Fix Autohint vs Autohinter mistake
960 * debian/fontconfig.templates:
961 Adopt changes from Josselin Mouette for configuration descriptions
962 Update debian to version 2.3.1-2
964 2005-03-08 Keith Packard <keithp@keithp.com>
968 Update debian for 2.3.1
970 2005-03-09 Tor Lillqvist <tml@novell.com>
972 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
975 * src/fccfg.c (FcConfigFileExists): Check also drive letter
978 2005-03-08 Keith Packard <keithp@keithp.com>
982 * fontconfig/fontconfig.h:
985 2005-03-05 Keith Packard <keithp@keithp.com>
987 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
988 Include space and remove numbers from valid script tags.
989 This ensures that tags like 'lao ' work while rejecting
990 those which have any digits.
991 Eliminate a spurious debugging variable (len)
993 2005-03-05 Keith Packard <keithp@keithp.com>
995 * src/fcfreetype.c: (addtag), (GetScriptTags),
996 (FcFontCapabilities):
997 Rework GSUB/GPOS script parsing to survive broken fonts.
998 Thanks for the broken font go to Manish Singh
1000 2005-03-05 Keith Packard <keithp@keithp.com>
1005 * debian/fontconfig.config:
1006 * debian/fontconfig.templates:
1008 Include 2.3 release information in changelog
1009 Add Josselin Mouette as an Uploader
1010 Set hinting_type to low priority configuration option
1013 * debian/fontconfig.postinst:
1014 yes_bitmaps.conf -> yes-bitmaps.conf
1020 2005-03-02 Keith Packard <keithp@keithp.com>
1023 * conf.d/Makefile.am:
1024 * conf.d/autohint.conf:
1025 * conf.d/no-sub-pixel.conf:
1026 * conf.d/sub-pixel.conf:
1027 * conf.d/unhinted.conf:
1028 * debian/autohint.conf:
1029 * debian/fontconfig.install:
1030 * debian/fontconfig.postinst:
1031 * debian/fontconfig.templates:
1032 * debian/no-sub-pixel.conf:
1033 * debian/unhinted.conf:
1034 Move debian-specific conf file examples upstream.
1036 Sub-pixel configuration examples must smash subpixel value
1037 as Xft always sets it from X.
1039 Change sub-pixel rendering debconf descriptions from
1040 Enable/Disable to Always/Never.
1042 2005-03-02 Keith Packard <keithp@keithp.com>
1045 * conf.d/.cvsignore:
1047 Ignore more build detritus
1050 Add debian package construction stuff.
1052 * config/config.guess:
1053 * config/config.sub:
1054 Update to newer versions of these tools
1057 Get library manuals to build again (we love automake).
1059 * debian/README.Debian:
1060 * debian/autohint.conf:
1065 * debian/fontconfig-udeb.install:
1066 * debian/fontconfig.config:
1067 * debian/fontconfig.defoma:
1068 * debian/fontconfig.dirs:
1069 * debian/fontconfig.install:
1070 * debian/fontconfig.postinst:
1071 * debian/fontconfig.postrm:
1072 * debian/fontconfig.templates:
1073 * debian/libfontconfig1-dev.install:
1074 * debian/libfontconfig1.install:
1075 * debian/local.conf.md5sum:
1076 * debian/no-sub-pixel.conf:
1077 * debian/po/POTFILES.in:
1086 * debian/po/pt_BR.po:
1087 * debian/po/templates.pot:
1089 * debian/po/zh_CN.po:
1091 * debian/unhinted.conf:
1092 Update debian build system to switch maintainers and
1093 deal with 2.3 functionality
1095 2005-03-01 Keith Packard <keithp@keithp.com>
1099 * fontconfig/fontconfig.h:
1102 2005-03-01 Keith Packard <keithp@keithp.com>
1105 Generate and install PDF versions of the manuals
1107 * doc/fcpattern.fncs:
1110 * doc/fcstring.fncs:
1111 Add missing exported functions, fix data types
1113 * doc/fontconfig-devel.sgml:
1114 Add missing pattern elements.
1116 * doc/fontconfig-user.sgml:
1117 Add missing pattern elements. Document conf.d usage,
1118 clarify available orthography list. Fix some config file
1119 attributes. Complete list of constants.
1121 * fontconfig/fontconfig.h:
1122 Mark FC_SOURCE deprecated.
1124 * src/fcfreetype.c: (FcFreeTypeQuery):
1125 Don't set FC_SOURCE any longer.
1127 2005-02-28 Keith Packard <keithp@keithp.com>
1130 * conf.d/Makefile.am:
1132 * conf.d/no-bitmaps.conf:
1133 * conf.d/sub-pixel.conf:
1134 * conf.d/yes-bitmaps.conf:
1136 Create prototype /etc/fonts/conf.d directory with a few
1137 sample configuration files.
1138 Deprecate use of local.conf for local customizations in favor of
1139 this directory based scheme which is more easily integrated into
1140 installation systems.
1143 Tag FC_EMBOLDEN as a boolean variable
1145 2005-02-10 Keith Packard <keithp@keithp.com>
1147 reviewed by: pborelli@katamail.com
1149 * src/fcdir.c: (FcFileScanConfig):
1150 Free patterns from fonts which are rejected by configuration
1153 2005-01-28 Keith Packard <keithp@keithp.com>
1157 * fontconfig/fontconfig.h:
1158 Update for version 2.2.99
1160 2005-01-28 Keith Packard <keithp@keithp.com>
1163 Add a few pointers (#2284, #2285)
1165 2005-01-28 Keith Packard <keithp@keithp.com>
1168 * src/fcname.c: (FcNameBool):
1169 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1170 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1171 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1172 Polite typechecking for test and edit expressions. Helps
1173 catch errors in the font configuration. (bug 229)
1175 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1177 reviewed by: Keith Packard <keithp@keithp.com>
1180 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1182 2005-01-13 Keith Packard <keithp@keithp.com>
1184 * doc/fontconfig-user.sgml:
1185 Add SEE ALSO section (bug 2085)
1187 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1189 reviewed by: Keith Packard <keithp@keithp.com>
1194 * fc-case/Makefile.am:
1195 * fc-glyphname/Makefile.am:
1196 * fc-lang/Makefile.am:
1197 * src/fontconfig.def.in:
1198 Cross compiling fixes (bug 280)
1200 2005-01-13 Keith Packard <keithp@keithp.com>
1203 Update blanks list (Closes bug 86)
1205 2005-01-04 Keith Packard <keithp@keithp.com>
1207 * src/fccache.c: (FcCacheFontSetAdd):
1208 Verify that every font pattern loaded from cache has
1209 both FC_FILE and FC_FAMILY entries.
1210 Attempt to fix bug #2219.
1212 2004-12-29 Keith Packard <keithp@keithp.com>
1216 * fontconfig/fontconfig.h:
1217 Update for version 2.2.98
1219 2004-12-29 Keith Packard <keithp@keithp.com>
1221 * fontconfig/fontconfig.h:
1222 Document ASCII limitations of Fc character conversion macros
1223 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1224 Fix off-by-one error in utf-8 case walking code.
1225 Add FcStrDowncase (useful for testing case conversion functions)
1227 2004-12-29 Keith Packard <keithp@keithp.com>
1230 * fc-case/.cvsignore:
1231 clean up CVS ignore lists
1232 * fc-lang/iso-3166.txt:
1233 Add territory database
1235 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1237 Reviewed by: Keith Packard
1240 Remove Han characters from Korean orthography
1242 2004-12-29 Keith Packard <keithp@keithp.com>
1245 Reorder utility programs to make sure fc-case is run before fc-lang
1246 as fc-lang uses fcstr.c which uses fccase.h
1250 2004-12-29 Keith Packard <keithp@keithp.com>
1253 Adopt some RedHat suggestions for standard font configuration.
1257 * fc-case/CaseFolding.txt:
1258 * fc-case/Makefile.am:
1259 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1260 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1261 (dump), (parseRaw), (caseFoldReadRaw), (main):
1262 * fc-case/fccase.tmpl.h:
1263 Add new helper program 'fc-case' to construct case folding
1264 tables from standard Unicode CaseFolding.txt file
1267 * src/fclist.c: (FcListValueHash):
1268 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1269 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1270 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1271 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1272 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1273 Re-implement case insensitive functions with Unicode
1274 aware versions (including full case folding mappings)
1276 2004-12-13 Keith Packard <keithp@keithp.com>
1278 reviewed by: Owen Taylor <otaylor@redhat.com>
1280 * src/fcmatch.c: (FcFontSetSort):
1281 I changed FcFontSetSort to respect the generic aliases better
1282 in the face of language matching.
1284 What I did was to ammend the strict sort order used by FcFontSort so
1285 that it 'satisfies' the language specified in the pattern by locating
1286 the best matching font supporting each pattern language and then
1287 ignores language in the remaining fonts for purposes of matching.
1289 So, when asking for 'sans:lang=en', you'll get an English font first,
1290 and then the remaining fonts sorted with respect to the 'sans' alias
1291 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1293 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1295 reviewed by: Keith Packard <keithp@keithp.com>
1297 * fontconfig/fontconfig.h:
1300 Configuration changes to request synthetic emboldening of
1301 fonts. The actual emboldening code will live in Xft.
1303 2004-12-09 John Thacker <thacker@math.cornell.edu>
1305 reviewed by: Keith Packard <keithp@keithp.com>
1309 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1310 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1311 и), and don't even appear in KOI8-R. (The hypothesis that they
1312 don't appear in KOI8-R due to their similarity with Latin I and i is
1313 eliminated by their presence in KOI8-U.) I have a couple of fonts
1314 with Russian support that don't have the letter.
1316 Therefore, 0406 and 0456 should be removed from or commented out of
1319 2004-12-06 michael meeks <mmeeks@novell.com>
1321 Reviewed by: Keith Packard <keithp@keithp.com>
1323 * src/fcinit.c: (FcMemReport):
1325 * src/fclist.c: (FcObjectSetAdd):
1326 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1327 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1328 * src/fcxml.c: (FcParsePatelt):
1329 memoize strings and share a single copy for all uses. Note that
1330 this could be improved further by using statically allocated blocks
1331 and gluing multiple strings together, but I'm basically lazy.
1332 In my environment with 800 font files, I get a savings of about 90KB.
1334 2004-12-06 Keith Packard <keithp@keithp.com>
1338 * config/Makedefs.in:
1341 * doc/fcatomic.fncs:
1342 * doc/fcblanks.fncs:
1343 * doc/fccharset.fncs:
1344 * doc/fcconfig.fncs:
1345 * doc/fcconstant.fncs:
1347 * doc/fcfontset.fncs:
1348 * doc/fcfreetype.fncs:
1350 * doc/fcmatrix.fncs:
1351 * doc/fcobjectset.fncs:
1352 * doc/fcobjecttype.fncs:
1353 * doc/fcpattern.fncs:
1354 * doc/fcstring.fncs:
1355 * doc/fcstrset.fncs:
1357 * doc/fontconfig-devel.sgml:
1358 * doc/fontconfig-user.sgml:
1360 * doc/version.sgml.in:
1361 * fc-cache/Makefile.am:
1362 * fc-cache/fc-cache.c:
1363 * fc-glyphname/Makefile.am:
1364 * fc-glyphname/fc-glyphname.c:
1365 * fc-glyphname/fcglyphname.tmpl.h:
1366 * fc-lang/Makefile.am:
1376 * fc-lang/az_ir.orth:
1410 * fc-lang/fc-lang.c:
1411 * fc-lang/fc-lang.man:
1412 * fc-lang/fclang.tmpl.h:
1457 * fc-lang/ku_ir.orth:
1490 * fc-lang/ps_af.orth:
1491 * fc-lang/ps_pk.orth:
1520 * fc-lang/ti_er.orth:
1521 * fc-lang/ti_et.orth:
1547 * fc-lang/zh_cn.orth:
1548 * fc-lang/zh_hk.orth:
1549 * fc-lang/zh_mo.orth:
1550 * fc-lang/zh_sg.orth:
1551 * fc-lang/zh_tw.orth:
1553 * fc-list/Makefile.am:
1554 * fc-list/fc-list.c:
1555 * fc-match/Makefile.am:
1556 * fc-match/fc-match.1:
1557 * fc-match/fc-match.c:
1558 * fontconfig/fcfreetype.h:
1559 * fontconfig/fcprivate.h:
1560 * fontconfig/fontconfig.h:
1581 Change files from ISO-Latin-1 to UTF-8
1583 2004-12-04 Keith Packard <keithp@keithp.com>
1586 Update links to new freedesktop.org locations
1588 Add uninstall-local to get rid of fonts.conf and local.conf if they
1589 match the distributed versions. Fixes 'make distcheck'
1591 2004-12-04 Keith Packard <keithp@keithp.com>
1595 * fontconfig/fontconfig.h:
1596 Updates for version 2.2.97
1598 2004-12-04 Owen Taylor <otaylor@redhat.com>
1600 reviewed by: Keith Packard <keithp@keithp.com>
1602 * fc-cache/fc-cache.c: (main):
1603 Sleep for two seconds before exiting to make sure timestamps
1604 for future changes have distinct mod times in the file system.
1607 Add Punjabi orthography. Bug #1671.
1609 2004-12-04 Keith Packard <keithp@keithp.com>
1612 Just remove the FC_FONTDATE -- it has locale issues and
1613 annoys redhat multi-arch installs. Now that all X fonts are
1614 included without prejudice, the chances of the date being at
1615 all interesting are rather limited. Bug #505.
1617 Add copyright and license
1619 2004-12-04 Keith Packard <keithp@keithp.com>
1622 Change default set of fonts to include all of
1623 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
1624 * doc/fontconfig-user.sgml:
1625 Document new <include>directory-name</include> semantics
1627 add <include ignore_missing="yes">conf.d</include>
1629 Add selectfont to ignore bitmap fonts, add comment for
1630 selectfont which accepts bitmap fonts.
1633 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
1634 Allow <include> configuration elements to reference directories.
1635 Parse and load all files of the form [0-9]* in sorted order.
1637 2004-12-04 Keith Packard <keithp@keithp.com>
1640 Report command line for $srcdir/configure accurately.
1643 2004-12-04 Keith Packard <keithp@keithp.com>
1645 * src/fcfreetype.c: (FcFreeTypeQuery):
1646 Check for non-empty face->family_name and face->style_name
1647 before using those for the font. Empty names match everything.
1650 2004-12-04 Keith Packard <keithp@keithp.com>
1653 * fontconfig/fontconfig.h:
1654 * src/fcfreetype.c: (FcFreeTypeQuery):
1656 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
1657 available. This provides font file format information (BDF, Type 1,
1658 PCF, TrueType) for each font. Closes #109.
1660 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
1662 reviewed by: Keith Packard <keithp@keithp.com>
1664 * doc/fontconfig-user.sgml:
1667 * fontconfig/fontconfig.h:
1668 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
1669 (GetScriptTags), (FcFontCapabilities):
1671 Add detection for font capabilities (bug #105)
1673 2004-12-04 Keith Packard <keithp@keithp.com>
1676 Move existing fonts.conf to fonts.conf.bak
1679 Add detection of iconv
1681 * doc/fcpattern.fncs:
1682 * doc/fontconfig-devel.sgml:
1683 * doc/fontconfig-user.sgml:
1685 Document new selectfont elements
1688 Switch to UTF-8 in comment
1690 * fontconfig/fontconfig.h:
1692 Add fullname, and family/style/fullname language entries
1694 * src/fccache.c: (FcCacheFontSetAdd):
1695 * src/fcdir.c: (FcFileScanConfig):
1696 Respect selectfont/*/glob
1699 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
1700 (FcConfigCompareValue), (FcConfigPatternsAdd),
1701 (FcConfigPatternsMatch), (FcConfigAcceptFont):
1702 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
1703 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
1704 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
1705 Add support for selectfont
1707 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1708 (FcStringInPatternElement), (FcFreeTypeQuery):
1709 Add multi-lingual family/style/fullname support
1711 * src/fclist.c: (FcListPatternMatchAny):
1712 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
1714 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
1715 (FcObjectStaticName):
1716 Add new FcPatternRemove/FcPatternAppend.
1717 FcObjectStaticName stores computed pattern element names which
1718 are required to be static.
1720 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
1725 Remove spurious / after $(DESTDIR)
1727 2004-06-30 Keith Packard <keithp@keithp.com>
1731 * fontconfig/fontconfig.h:
1734 2004-06-30 Keith Packard <keithp@keithp.com>
1736 Provided by: Lubos Lunak <l.lunak@suse.cz>
1738 * src/fccfg.c: (FcConfigUptoDate):
1739 However FcConfigUptoDate() doesn't seem to work. See the attached
1740 patch. First there's an obvious misplaced parenthesis making it
1741 return always false, and second, even this call fails to detect font
1742 changes (e.g. adding a new font to
1743 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
1744 well. The problem seems to be triggered by my fonts.conf specifying
1745 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
1746 doesn't include subdirs, unlike config->fontDirs.
1748 2004-06-03 Keith Packard <keithp@keithp.com>
1750 * fontconfig/fontconfig.h:
1751 Remove comma at end of FcResult enum definition.
1753 2004-05-29 Keith Packard <keithp@keithp.com>
1756 Add steps to md5sum release
1758 2004-05-29 Keith Packard <keithp@keithp.com>
1762 * fontconfig/fontconfig.h:
1765 2004-05-29 Keith Packard <keithp@keithp.com>
1767 * fontconfig/fontconfig.h:
1768 * src/fcmatch.c: (FcFontSetMatch):
1769 Add FcResultOutOfMemory to provide an accurate error when
1770 FcFontSetMatch fails in this way
1773 Make #warning about lacking various FreeType features indicate
1774 which version those features appeared so users know how to
1775 fix the problem (Thanks to Anton Tropashko)
1777 2004-05-05 Keith Packard <keithp@keithp.com>
1779 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
1780 Replace MIN/MAX/ABS macros which happen to have come
1781 from FreeType with fontconfig-specific ones (FC_*)
1783 2004-04-23 Keith Packard <keithp@keithp.com>
1786 Extend release preparation instructions to include
1787 notification and distribution steps
1789 2004-04-23 Keith Packard <keithp@keithp.com>
1793 * fontconfig/fontconfig.h:
1794 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
1796 2004-04-23 Keith Packard <keithp@keithp.com>
1799 Ignore a few more autotool files
1801 2004-04-14 Keith Packard <keithp@keithp.com>
1804 Add instructions for doing a release
1806 * fontconfig.spec.in:
1807 clean up .spec file; perhaps this will be useful to somebody...
1811 * fontconfig/fontconfig.h:
1814 * fc-lang/fc-lang.c:
1815 Make 'scanopen' static so GCC doesn't whine about lacking prototype
1817 * fc-glyphname/Makefile.am:
1818 * fc-lang/Makefile.am:
1819 * fc-list/Makefile.am:
1820 * fc-match/Makefile.am:
1822 Add WARN_CFLAGS to pass -W flags for GCC systems
1824 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
1825 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
1826 Change various char types around to match across
1828 Fixed bug in using available_sizes[i].height which
1829 is in pixels, not 64ths of a pixel.
1831 2004-03-06 Keith Packard <keithp@keithp.com>
1833 * src/fcfreetype.c: (FcFreeTypeQuery):
1834 Force FC_FOUNDRY and FC_WIDTH to always be set so that
1835 matches looking for explicit values prefer exact matches
1837 2004-03-02 Keith Packard <keithp@keithp.com>
1839 Supplied by: mfabian@suse.de (Mike FABIAN)
1841 * src/fcfreetype.c: (FcFreeTypeQuery):
1842 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
1843 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
1845 2004-02-21 Manish Singh <yosh@gimp.org>
1847 * fc-glyphname/fc-glyphname.c: (main):
1848 Cast strlen to int for printf, so we're 64-bit clean.
1850 2004-02-11 Keith Packard <keithp@keithp.com>
1853 * src/fcfreetype.c: (FcGetPixelSize):
1854 Ok, so I messed up the test for y_ppem. Let's see if I
1855 got it right this time.
1857 2004-02-10 Keith Packard <keithp@keithp.com>
1860 * src/fcfreetype.c: (FcGetPixelSize):
1861 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
1862 FT_Bitmap_Size record. Add a configure.in test for this
1863 and change the code accordingly (using height instead).
1865 2004-02-06 Keith Packard <keithp@keithp.com>
1868 Add Low Saxon orthography
1869 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
1871 * src/fccfg.c: (FcConfigNewestFile):
1872 Oops. Left 'newest.set' unset, which would miscompute
1875 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
1876 (FcFreeTypeCheckGlyph):
1877 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
1878 font properties (which report the wrong value in current FreeType)
1880 Don't attempt to check for empty glyphs in non-scalable fonts; they
1883 2004-02-01 Tor Lillqvist <tml@iki.fi>
1885 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
1886 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
1887 cache if config->cache is NULL, which happens if FcConfigHome() is
1888 NULL. Guard against that by using the temp folder in that case.
1890 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
1892 * fc-lang/az_ir.orth:
1893 * fc-lang/ku_ir.orth:
1894 * fc-lang/ps_af.orth:
1895 * fc-lang/ps_pk.orth:
1896 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
1897 (Afghan and Pakistani).
1899 Updated Urdu orthography with real data.
1901 2003-12-11 Carl Worth <cworth@east.isi.edu>
1903 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
1906 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
1908 (all-local): Remove excessive whitespace.
1910 * autogen.sh: Add 'set -e' to abort when any program fails,
1911 (avoids printing of 'now type make' after configure aborts).
1913 2003-11-17 Eric Christopherson <rakko@charter.net>
1915 reviewed by: Keith Packard <keithp@keithp.com>
1918 * fontconfig/fcfreetype.h:
1920 Switch to FreeType 2.1.7 style includes. Bug #150.
1922 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
1924 * fc-list/fc-list.sgml: Add some example usages.
1926 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
1929 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
1932 2003-10-27 Keith Packard <keith@keithp.com>
1935 * fontconfig/fontconfig.h:
1936 Update to version 2.2.92
1938 2003-10-27 Keith Packard <keithp@keithp.com>
1943 * fc-cache/Makefile.am:
1944 * fc-glyphname/Makefile.am:
1945 * fc-lang/Makefile.am:
1946 * fc-list/Makefile.am:
1947 * fc-match/Makefile.am:
1950 Yet more cleanups to finish getting 'make distcheck' working
1951 This has been tested to ensure that it even works from a _build
1954 2003-10-26 Keith Packard <keithp@keithp.com>
1958 * fc-cache/Makefile.am:
1959 * fc-glyphname/Makefile.am:
1960 * fc-lang/Makefile.am:
1961 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
1962 * fc-list/Makefile.am:
1963 * fc-match/Makefile.am:
1964 Attempts to fix 'make distcheck' work. Things are
1965 progressing pretty well, but there are still failures
1966 long into the process dealing with docs (as always).
1968 The big changes here are mostly to make $(srcdir) != "."
1969 work correctly, fixing the docbook related sections and
1970 fc-lang were particularily tricky. Docbook refuses to load
1971 system entities from anywhere other than where the original .sgml
1972 file was located, so no luck looking in "." for the
1973 configure-generated version.sgml and confdir.sgml files.
1975 fc-lang needed help finding .orth files; added a -d option
1976 to set the directory as the least evil of many options.
1978 Now to go use a faster machine and try and wring out the last
1981 2003-10-26 Keith Packard <keithp@keithp.com>
1985 2003-10-26 Keith Packard <keithp@keithp.com>
1988 Include confdir.sgml.in in EXTRA_DIST
1990 2003-10-09 Josselin Mouette <joss@debian.org>
1992 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
1993 * fc-list/fc-list.sgml fc-list/Makefile.am:
1994 Replace fc-cache and fc-list manpages with more detailed, SGML
1997 2003-09-23 Owen Taylor <otaylor@redhat.com>
1999 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2000 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2001 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2004 2003-09-23 Owen Taylor <otaylor@redhat.com>
2006 * fc-lang/ka.orth: Remove Georgian capitals, they
2007 aren't used for normal writing. (Bug #116)
2009 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2011 * doc/fontconfig-devel.sgml:
2012 * doc/fontconfig-user.sgml:
2013 * fontconfig/fontconfig.h:
2015 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2016 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2018 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2019 monospace and dual-width fonts, allow roughly a 3% variance in the
2022 2003-08-31 Manish Singh <yosh@gimp.org>
2024 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2027 2003-08-15 Carl Worth <cworth@isi.edu>
2029 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2030 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2032 * src/fcpat.c (FcValueListEntDestroy): New function to support
2033 FcFini memory cleanup. Some statistics are not kept in
2035 (FcValueListFreeze): Move hashTable outside this function so it
2036 can be accessed by FcValueListThawAll.
2037 (FcValueListThawAll): New function complements FcValueListFreeze.
2038 (FcPatternBaseFreeze): Move hashTable outside this function so it
2039 can be accessed by FcPatternBaseThawAll.
2040 (FcPatternBaseThawAll): New function complements
2041 FcPatternBaseFreeze.
2042 (FcPatternThawAll): New function complements FcPatternFreeze.
2044 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2046 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2047 allocated FcCharLeafEnt "blocks" so they can be freed later.
2048 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2049 can be accessed by FcCharSetThawAllLeaf.
2050 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2051 (FcCharSetFreezeBase): Move hashTable outside this function so it
2052 can be accessed by FcCharSetThawAll.
2053 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2055 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2056 (FcConfigDestroy): Fic leak of FcBlanks.
2058 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2059 (main): Add call to FcFini when finished.
2061 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2062 static. Add prototypes.
2064 * doc/fcinit.fncs: Add documentation for FcFini function.
2066 * doc/edit-sgml.c: Mark several local functions as static. Add
2069 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2071 2003-06-15 Tor Lillqvist <tml@iki.fi>
2073 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2074 before comparing (needed on Windows).
2076 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2078 2003-06-13 Tor Lillqvist <tml@iki.fi>
2080 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2083 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2084 WINDOWSFONTDIR token.
2086 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2087 end, not to confuse libtool, which expects the EXPORTS line to be
2088 the first. Add FcConfigEnableHome.
2090 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2091 built as a DLL on Win32.
2093 2003-06-09 Keith Packard <keithp@keithp.com>
2095 * Tag version 2.2.90
2097 2003-06-09 Keith Packard <keithp@keithp.com>
2099 * Optimization in FcLangSetIndex was broken, occasionally
2100 returning a pointer to the wrong location on miss
2102 * Add fc-match to test font matching from the command line.
2104 2003-05-31 Keith Packard <keithp@keithp.com>
2106 * (Bug 85) add support for culmus fonts
2107 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2108 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2110 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2112 * Fix "contains" op for strings and langsets.
2114 2003-05-17 Keith Packard <keithp@keithp.com>
2116 * Fix build error with BDF prop local. Free langset after query
2118 2003-05-14 Keith Packard <keithp@keithp.com>
2120 * Extract spacing from XLFD atom
2122 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2124 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2125 disappeared in 1.30.
2127 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2129 2003-05-12 Keith Packard <keithp@keithp.com>
2131 * Use FcIsWidth to share code
2133 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2134 misclassifying some Han fonts as monospaced.
2136 2003-05-07 Keith Packard <keithp@keithp.com>
2138 * Add filename-based accept/reject to ammend available fonts.
2140 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2141 older FreeType releases.
2143 2003-05-06 Keith Packard <keithp@keithp.com>
2145 * Remove 0b82 and Tamil numbers from tamil
2146 orthography (Jungshik Shin <jshin@mailaps.org>)
2148 2003-05-04 Keith Packard <keithp@keithp.com>
2150 + Map glyph names in fonts with adobe custom encoding to unicode
2152 2003-05-02 Keith Packard <keithp@keithp.com>
2154 * Add FC_WEIGHT_BOOK as weight 75
2156 2003-04-30 Keith Packard <keithp@keithp.com>
2158 * Typo in bitstream foundry name
2160 2003-04-24 Keith Packard <keithp@keithp.com>
2162 * Eliminate italic_angle check for PS fonts
2164 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2166 * Getting closer to fixing /etc/fonts hard-coding.
2168 2003-04-22 Keith Packard <keithp@keithp.com>
2170 * Update autogen.sh to work with newer automake versions
2171 * Handle pattern elements moving during multiple edits
2173 2003-04-23 James Henstridge <james@daa.com.au>
2175 * doc/fontconfig-devel.sgml: close the <para> element.
2177 * doc/fcpattern.fncs: close the <para> element.
2179 * doc/func.sgml: close the <refsynopsisdiv> element.
2181 2003-04-22 Keith Packard <keithp@keithp.com
2183 * Update autogen.sh to work with newer automake versions
2184 * Handle pattern elements moving during multiple edits
2186 2003-04-17 Colin Walters <walters@debian.org>
2188 + Remove some unused variables, and initialize some other ones so
2189 gcc doesn't warn us.
2191 2003-04-16 Keith Packard <keithp@keithp.com>
2193 + tag version 2.1.94
2195 2003-04-16 Keith Packard <keithp@keithp.com>
2197 + add BDF property fetching support for foundry
2198 (from Juliusz Chroboczek)
2199 + add BDF property fetching support for width
2201 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2203 + Implemented foundry generation for Type 1 and TrueType
2205 2003-04-11 Gerard Escalante <g2@magestudios.net>
2207 + Retrieve information from Type1 FontInfo dictionaries
2209 2003-04-07 Colin Walters <walters@verbum.org>
2211 + src/Makefile.am: Fix dummy makefile target names when
2212 MS_LIB_AVAILABLE isn't set.
2214 2003-03-22 Tor Lillqvist <tml@iki.fi>
2216 Changes for Windows:
2218 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2220 + We don't want to hardcode the fonts.conf file location in the
2221 DLL, so we look up the DLL location at run-time in a DllMain()
2222 function. The fonts.conf location is deduced from that.
2224 + The colon can't be used as path separator on Windows,
2225 semicolon is used instead. File path components can be separated
2226 with either slash or backslash. Absolute paths can also begin
2227 with a drive letter.
2229 + Add internal function FcStrLastSlash that strrchr's the last
2230 slash, or backslash on Windows.
2232 + There is no link() on Windows. For atomicity checks, mkdir a
2233 lock directory instead.
2235 + In addition to HOME, also look for USERPROFILE.
2237 + Recognize the special font directory token WINDOWSFONTDIR, to
2238 use the system's font directory.
2240 + Remove the fontconfig-def.cpp that was obsolete. Add
2241 fontconfig.def(.in), without internal functions.
2243 + Add a fontconfig-zip(.in) script, used to build a binary
2246 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2247 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2248 to main package and man3/* to devel package
2250 + Added missing defattr(-, root, root) to main RPM package
2252 + Added HTML and text development documentation to -devel subpackage
2254 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2255 + Added back the configure macro options --disable-docs, otherwise
2256 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2257 version number) unconditionally, causing RPM to fail the build due
2258 to _unpackaged_files_terminate_build. We pick up the pregenerated
2259 docs with %doc already.
2261 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2262 + Removed commented out rpm macro define at top of spec file,
2263 replacing it with a simple explanation, since rpm macros are
2264 expanded by rpm even in comments.
2266 + Changed /usr/bin to _bindir in BuildRequires lines
2268 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2270 + Reorganized file manifest lists
2272 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2274 + fontconfig.spec.in: Improvements from Red Hat spec file.
2276 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2278 + docs/*.sgml: SGML fixes.
2280 Sat Mar 1 17:28:53 PST 2003 keithp
2281 + Ok, so the ChangeLog is a bit out of date
2283 + Lots of bugs fixed; most are in bugzilla, the
2284 biggest problems were in cache management where
2285 Owen discovered the library would lose badly when
2286 combining fonts-cache and ~/.fonts-cache data
2288 + Converted from autoconf to automake. This after
2289 getting patches accepted into libtool to allow
2290 the '-version-number' argument which lets
2291 packages set version numbers explicitly rather
2292 than the roundabout libtool way
2294 + Converted documentation to SGML using the docbook
2295 DTD. Now .txt and .html documents are installed
2296 in /usr/share/doc/fontconfig and there's no
2297 man page. Perhaps a man version can be written
2300 Sat Aug 31 15:21:22 PDT 2002 keithp
2301 + Xrender and Xft had several bugs related to
2302 rendering manually placed or poly-face text
2304 + Added more complete memory tracing in fontconfig
2305 Checked with (patched) mozilla and found no leaks
2307 + Updated Latin orthographies by comparing those from
2308 evertype.com with those from eki.ee. Tried to make
2309 sensible choices, including chars that occured in both
2310 and leaving some optional chars out that occured only
2313 Mon Aug 26 16:33:04 PDT 2002 keithp
2314 + Owen discovered that FcLangSetHasLang wasn't actually
2315 checking the language set.
2317 Mon Aug 26 13:37:23 PDT 2002 keithp
2318 + Append a version number to cache filenames
2320 Thu Aug 22 11:36:18 PDT 2002 keithp
2322 + Add "contains" and "not_contains" operators and elements to
2325 + Changed semantics of eq operator for LangSets to check for
2326 FcLangEqual so that any match will do
2328 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2329 of FcValueEqual to check for identical values when inserting into
2330 the results. This broke when the above semantic change was made,
2331 now it uses FcValueEqual which is "more correct" in any case.
2333 Thu Aug 22 00:32:29 PDT 2002 keithp
2335 + Reimplement FC_LANG as new datatype. Lists of strings
2336 was consuming over a megabyte of memory for 401 fonts.
2338 + Freeze patterns loaded from cache files. This shares
2339 common value lists and common patterns which saves
2340 considerable memory.
2342 + Change the denotation of 'constant' charsets to use special
2343 ref value instead of separate boolean.
2345 + Clean up leak tracing stuff, found several unannoted alloc/free
2348 Tue Aug 20 16:17:37 PDT 2002 keithp
2350 + Fix memory leak when parsing matrices from XML
2352 Mon Aug 19 11:57:27 PDT 2002 keithp
2354 + Fix autoconf files to pass FONTCONFIG_PATH on
2355 compile line so that ${prefix} gets substituted
2358 + Use getc_unlocked/putc_unlocked on systems that
2359 provide them to avoid damage done to stdio by posix
2361 + Eliminate FC_PATTERN and FcTypePattern in favor of
2362 an extended api for FcConfigSubstitute which takes
2363 both the font and the pattern.
2365 + Add 'sans serif' alias for 'sans-serif' as some apps
2366 can't handle hyphens in family names
2368 + Eliminate pretense of support for libxml2
2370 + Comment origins of Han orthographies
2372 Tue Jul 30 18:37:09 PDT 2002 keithp
2374 + Add binding property to edit element so that strong
2375 binding values may be inserted by the config file.
2376 The default remains weak.
2378 Sun 28 Jul 04:16:55 PDT 2002 keithp
2380 + Tagged release candidate 1 in the CVS tree and
2381 placed fcpackage.rc1.tar.gz for distribution
2383 Thu Aug 1 08:55:08 PDT 2002 keithp
2385 + Fixed autoconf builds to always specify install
2386 target files (for BSD). Also fixed to
2387 define FONTCONFIG_PATH in config.h so that
2388 nonstandard installs will actually work.