1 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
4 * src/fccache.c (FcDirCacheWrite):
5 * src/fcdir.c (FcFileScanConfig):
6 * src/fcfreetype.c (FcStringInPatternElement):
7 * src/fcxml.c (FcParseFamilies):
8 * src/ftglue.c (ftglue_face_goto_table):
10 Eliminate redundancies.
12 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
15 * fc-list/fc-list.c (main):
16 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
17 * src/fcstr.c (FcStrStr):
18 * src/fcxml.c (FcConfigSaveAttr):
20 Eliminate unused vars reported by Intel's compiler.
22 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
27 Remove one more archaic character.
29 2006-02-21 Ross Burton <ross@burtonini.com>
30 reviewed by: plam, keithp
32 * src/fcxml.c (FcParsePatelt):
34 Freeze patterns created by configuration file for tiny
35 memory savings (every little bit helps).
37 2006-02-21 Mike Fabian <mfabian@suse.de>
40 * fc-cat/fc-cat.c (main):
42 Initialize fontconfig library in fc-cat to avoid segfault.
44 2006-02-18 Patrick Lam <plam@mit.edu>
45 * fc-cache/fc-cache.c (scanDirs):
46 * src/fccache.c (FcCacheReadDirs):
47 * src/fcdir.c (FcDirScanConfig):
49 Fix the underlying cause of the below segfault (must usually
50 call FcDirCacheHasCurrentArch after FcDirCacheValid).
52 2006-02-18 Patrick Lam <plam@mit.edu>
53 * src/fccache.c (FcDirCacheHasCurrentArch):
55 Fix triggering of segfault caused by misreading cache files
56 (reported by fcrozat).
58 2006-02-17 Patrick Lam <plam@mit.edu>
59 * src/fcint.h (FC_CACHE_MAGIC):
61 Bump up magic version; we changed the binary format.
63 2006-02-17 Patrick Lam <plam@mit.edu>
64 * fc-cat/fc-cat.c (main):
66 Enable fc-cat to print out old-style cache info when given a
69 2006-02-16 Patrick Lam <plam@mit.edu>
70 * src/fccache.c (FcDirCacheHasCurrentArch):
72 Deal correctly with changing FC_CACHE_MAGIC.
74 2006-02-16 Patrick Lam <plam@mit.edu>
75 * fc-cache/fc-cache.c (usage, scanDirs, main):
77 Add -r --really-force option which blows away cache files and then
80 2006-02-16 Patrick Lam <plam@mit.edu>
81 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
83 Don't bail if fontconfig can't remove a dir cache file.
84 Skip the ID of a cache file when copying.
85 Eliminate 'source file too small' bug in FcDirCacheWrite.
87 2006-02-13 Patrick Lam <plam@mit.edu>
88 * src/fcfreetype.c (FcFreeTypeQuery):
90 Fix memory leak in error condition code.
92 2006-02-13 Mike Fabian <mfabian@suse.de>
94 * src/fcfreetype.c (FcFreeTypeQuery):
96 Skip bitmap fonts which can't even get it together enough to
97 declare a family name; this appears to reproduce previous
100 2006-02-10 Takashi Iwai <tiwai@suse.de>
102 * src/fccache.c (FcDirCacheOpen):
104 Try to open /var/cache/fontconfig/[hashed name] before
105 fonts.cache-2 in a directory, because /var/cache/fontconfig
106 failures ought to be fixable, unlike fonts.cache-2 failures,
107 which may leave you screwed.
109 2006-02-10 Takashi Iwai <tiwai@suse.de>
111 * src/fcmatch.c (FcFontSetMatch):
113 Use a tri-state to mark the fonts which didn't get blocked but
114 were just missing an element, to distinguish them from the
115 fonts that do match the element.
117 2006-02-10 Takashi Iwai <tiwai@suse.de>
119 * src/fcmatch.c (FcFontSetMatch):
121 Don't kill fonts because they don't declare an element that's
124 2006-02-09 Patrick Lam <plam@mit.edu>
125 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
126 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
128 Define and pass O_BINARY to open if appropriate, for those
129 platforms that need it. Reported by Doodle.
131 2006-02-09 Patrick Lam <plam@mit.edu>
132 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
135 Fix problem with missing 'en' due to euro.patch: change
136 cache file format slightly to coincide with that generated
139 2006-02-07 Patrick Lam <plam@mit.edu>
140 * src/fccache.c (FcCacheReadDirs):
144 2006-02-07 Patrick Lam <plam@mit.edu>
145 * src/fcdir.c (FcDirScanConfig):
147 Don't reject dirs that can't be normalized (fixes lilypond, and
148 is correct in the context of application font directories.)
150 2006-02-07 Takashi Iwai <tiwai@suse.de>
153 * src/fccache.c (FcCacheReadDirs):
155 Use normalized directory name exclusively in FcCacheReadDirs.
157 2006-02-07 Dirk Mueller <dmueller@suse.com>
160 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
162 Perf optimizations. Inline FcValueCanonicalize,
163 reduce FcValueListPtrU usage, remove redundant cast.
165 2006-02-07 Takashi Iwai <tiwai@suse.de>
168 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
171 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
172 Declare extern for static arrays as arrays, not pointers.
173 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
175 2006-02-07 Dirk Mueller <dmueller@suse.com>
188 Add Euro sign to list of symbols required by European languages.
190 2006-02-07 Patrick Lam <plam@mit.edu>
191 * src/fccache.c (FcCacheReadString):
193 Fix hidden variable warning.
195 2006-02-07 Dirk Mueller <dmueller@suse.com>
198 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
200 Remove de-escaping logic because FcCacheWriteString
201 doesn't escape anyway. Do blockwise reading instead
202 of byte-wise for performance.
204 2006-02-06 Patrick Lam <plam@mit.edu>
205 Takashi Iwai <tiwai@suse.de>
207 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
209 Don't loop infinitely on recursive symlinks (client-side).
211 2006-02-06 Takashi Iwai <tiwai@suse.de>
213 * fc-cache/fc-cache.c (scanDirs, main):
215 Don't loop infinitely on recursive symlinks.
217 2006-02-06 Takashi Iwai <tiwai@suse.de>
219 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
220 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
221 FcGlobalCacheSave, FcCacheReadDirs):
224 Skip subdirs when skipping over stale bits of global cache.
225 Introduce state machine into FcGlobalCacheDir to avoid
226 doing inappropriate operations on global dir entries, e.g.
227 writing out an out-of-date cache entry.
229 2006-02-06 Takashi Iwai <tiwai@suse.de>
231 * src/fcdir.c (FcFileScanConfig):
233 Hoist FcFileIsDir check out of FcFileScanConfig loop.
235 2006-02-06 Takashi Iwai <tiwai@suse.de>
238 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
239 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
241 Don't rescan when trying to normalize a non-declared font dir.
242 Don't add font dirs multiple times (even if they're aliased).
244 2006-02-06 Dirk Mueller <dmueller@suse.de>
247 * src/fcfs.c (FcFontSetUnserialize):
249 Explain apples/oranges comparison and fix compilation error.
251 2006-02-06 Dirk Mueller <dmueller@suse.de>
254 * src/fcfs.c (FcFontSetUnserialize):
256 Insert check for integer overflow in # of fonts.
258 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
262 * fc-cache/Makefile.am:
263 * fc-cat/Makefile.am:
264 * fc-list/Makefile.am:
266 Make 'make distcheck' work with automake 1.6.3.
268 2006-02-03 Takashi IWAI <tiwai@suse.de>
271 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
274 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
275 FcDirCacheConsume, FcDirCacheWrite)
276 * src/fcxml.c (FcConfigMessage):
278 Check I/O call return values and eliminate unused variable
281 2006-02-03 Takashi Iwai <tiwai@suse.de>
284 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
288 2006-02-03 Dirk Mueller <dmueller@suse.de>
291 * src/fcfs.c (FcFontSetUnserialize):
293 Gracefully handle the case where a cache asserts that it
294 has a negative number of fonts, causing overflow.
296 2006-02-03 Patrick Lam <plam@mit.edu>
297 * src/fccache.c (FcDirCacheUnlink):
299 Fix double free in error case.
301 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
302 Stephan Kulow <coolo@suse.de>
305 * fc-cache/Makefile.am:
307 Replace 'stamp' target with mkinstalldirs.
309 2006-01-31 Mike Fabian <mfabian@suse.de>
312 * src/fccache.c (FcGlobalCacheLoad):
314 Toast broken global cache files.
316 2006-01-30 Patrick Lam <plam@mit.edu>
317 * src/fccache.c (FcGlobalCacheReadDir):
319 Actually use the directories that I added to the global cache.
322 2006-01-30 Mike Fabian <mfabian@suse.de>
325 * fc-cache/fc-cache.c (scanDirs):
327 Don't stop scanning if a directory in fonts.conf doesn't
328 exist, because subsequent directories might exist.
330 2006-01-30 Patrick Lam <plam@mit.edu>
331 * src/fccache.c (FcGlobalCacheLoad):
333 Make global cache work again after putting dir names into global
334 cache (I misplaced the recording of a file offset).
336 2006-01-30 Patrick Lam <plam@mit.edu>
337 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
339 Update fc-cat to handle subdir lists in global cache file.
341 * src/fccache.c (FcGlobalCacheLoad):
343 Another FcCacheReadString return value check.
345 2006-01-30 Mike Fabian <mfabian@suse.de>
348 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
349 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
351 Make fccache more resilient to broken cache files by checking
352 return value of FcCacheReadString all the time.
354 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
357 * fc-match/fc-match.1:
358 * fc-lang/fc-lang.man:
360 Remove references to dead fontconfig(3) manpages in
361 other fontconfig manpages.
363 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
366 * doc/fcpattern.fncs:
368 Fix world's tiniest typo in code example.
370 2006-01-29 Mike Fabian <mfabian@suse.de>
373 * src/fccache.c (FcGlobalCacheReadDir):
375 Fix global cache reads of subdirectories.
377 2006-01-29 Patrick Lam <plam@mit.edu>
379 Add documentation for FcConfigNormalizeFontDir.
381 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
382 FcGlobalCacheUpdate, FcGlobalCacheSave):
383 * src/fcdir.c (FcDirScanConfig):
386 Write directory information to global caches to fix make check
387 (reported by Ronny V. Vindenes). This changes the global cache
390 2006-01-27 Patrick Lam <plam@mit.edu>
391 * fc-cache/fc-cache.c (scanDirs):
392 * fontconfig/fontconfig.h:
394 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
396 Move FcConfigNormalizeFontDir call so that it doesn't result in
397 infinite recursion (reported by Ronny V. Vindenes).
399 2006-01-26 Patrick Lam <plam@mit.edu>
400 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
401 * src/fccfg.c (FcConfigNormalizeFontDir):
403 Add a couple of missing normalizations to make fc-cache work
404 right; only scan subdirectories once.
406 2006-01-26 Mike Fabian <mfabian@suse.de>
409 * src/fcacache.c (FcGlobalCacheReadDir):
411 Don't crash on non-existant directories in global cache.
413 2006-01-26 Patrick Lam <plam@mit.edu>
414 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
415 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
416 * src/fcdir.c (FcDirScanConfig):
417 * src/fcxml.c (FcEndElement):
419 Stop trampling the directory name when writing out caches.
420 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
421 subdirs when necessary. Don't scan directories that can't be
424 2006-01-25 Patrick Lam <plam@mit.edu>
425 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
426 * src/fccfg.c (FcConfigEvaluate):
427 * src/fcfreetype.c (FcPatternAddWithBinding):
429 Fix additional memory leaks reported by Ronny V. Vindenes: don't
430 invoke FcValueSave on hashed static strings in
431 FcPatternAddWithBinding.
433 Add another st_dev check in FcDirCacheOpen.
435 2006-01-24 James Su <james.su@gmail.com>
438 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
439 * fc-lang/zh_hk.orth:
441 Treat zh-hk fonts differently from zh-tw fonts. This patch may
442 cause fontconfig to treat A-X fonts differently from A-Y fonts;
443 please mail the fontconfig list if this causes any problems.
445 2006-01-24 Patrick Lam <plam@mit.edu>
446 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
447 * src/fcfreetype.c (FcFreeTypeQuery):
449 Fix memory leaks reported by Ronny V. Vindenes.
451 2006-01-19 Andreas Schwab <schwab@suse.de>
454 * src/fcpat.c (FcStrNeededBytes):
456 Fix for unaligned memory accesses.
458 2006-01-18 Mike Fabian <mfabian@suse.de>
461 * src/fcdir.c (FcDirScanConfig):
463 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
464 calls to avoid crashes.
466 2006-01-14 Patrick Lam <plam@mit.edu>
467 * src/fccache.c (FcDirCacheConsume):
469 Fix segfault when consuming zero-length caches in fc-cat
470 (which has no config, so FcConfigAddFontDir shouldn't be called.)
472 2006-01-14 Patrick Lam <plam@mit.edu>
473 * fc-cache/fc-cache.c (scanDirs):
474 * fontconfig/fontconfig.h:
475 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
476 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
477 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
478 * src/fcdir.c (FcDirScanConfig):
481 Compare device numbers as well as inodes.
482 Always normalize directory names before comparing them.
484 2006-01-11 Mike Fabian <mfabian@suse.de>
487 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
489 Allocate extra space for appended '/' in directory name.
491 2006-01-10 Patrick Lam <plam@mit.edu>
492 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
493 FcDirCacheValid, FcDirCacheHasCurrentArch,
494 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
495 * fc-cache/fc-cache.c (main):
497 Explicitly add font dirs to config.fontDirs even if they're empty.
498 Set current config in fc-cache.c.
499 Fix treatment of cache directory as read from cache file; don't
500 use string equality to determine if we have the right file,
503 2006-01-09 Patrick Lam <plam@mit.edu>
504 * fc-cache/fc-cache.c (scanDirs):
505 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
506 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
507 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
508 * src/fccfg.c (FcConfigNormalizeFontDir):
509 * src/fcdir.c (FcDirScanConfig):
512 Normalize font dirs by using the form, as given in fonts.conf, and
513 recorded in FcConfig's fontDirs string set, as canonical.
515 Actually update config.fontDirs as font directories are scanned.
517 2006-01-08 James Su <james.su@gmail.com>
518 * src/fcmatch.c (FcFontSetMatch):
520 Fix matching bug when multiple elements match; don't use
521 the sum of all scores, but the best score.
523 Also more perf opts, e.g. evaluate best over all font sets
524 rather than on a per-set basis (and other changes).
526 2006-01-08 Patrick Lam <plam@mit.edu>
527 * src/fccache.c (FcDirCacheConsume):
529 Properly skip past dir caches that contain zero fonts (as occurs
530 in global caches.) Reported by Mike Fabian.
532 2006-01-06 Patrick Lam <plam@mit.edu>
533 * src/fcdbg.c (FcPatternPrint):
535 Print out full pathname in fc-match -v as well. Reported by
538 2006-01-06 Mike Fabian <mfabian@suse.de>
541 * src/fcname.c (FcNameParse):
543 Fix bug where fc-match crashes when given __DUMMY__ property to
546 (I added the __DUMMY__ string to enable callers of
547 FcObjectToPtrLookup to distinguish an error return from a
548 successful return. -PL)
550 2006-01-05 Patrick Lam <plam@mit.edu>
553 Add self to AUTHORS list.
555 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
556 FcCacheFileRead, FcCachePrintSet, main):
557 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
558 FcGlobalCacheSave, FcCacheNextOffset,
559 FcDirCacheHasCurrentArch, FcDirCacheRead,
560 FcDirCacheConsume, FcDirCacheWrite):
562 * src/fcpat.c (comment):
564 Minor change to global cache file format to fix fc-cat bug
565 reported by Frederic Crozat, and buglet with not globally caching
566 directories with zero fonts cached.
568 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
571 * src/fccfg.c (FcConfigEvaluate):
573 Fix double-free which occurs because FcValueCanonicalize doesn't
574 create an extra copy of the returned value, it only canonicalizes
577 2006-01-02 Patrick Lam <plam@mit.edu>
578 * doc/fontconfig-user.sgml:
580 Fix version of .cache file (currently 1 -> currently 2). Reported
583 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
586 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
588 Shut up GCC warnings on amd.
590 2005-12-20 Patrick Lam <plam@mit.edu>
594 * fontconfig/fontconfig.h:
596 Bump version to 2.3.93.
598 2005-12-20 Patrick Lam <plam@mit.edu>
599 * src/fccharset.c (FcLangCharSetPopulate):
600 * src/fcint.h (FcCacheBankToIndex):
602 Avoid check on _fcBankId nullness and fix case where it used to
605 2005-12-20 Patrick Lam <plam@mit.edu>
606 * src/fcxml.c (FcConfigParseAndLoad):
608 Use open instead of fopen (requested by Phil Race for Sun).
610 2005-12-20 Patrick Lam <plam@mit.edu>
611 * src/fccache.c (FcDirCacheWrite);
612 * fc-cache/Makefile.am:
614 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
617 2005-12-20 Patrick Lam <plam@mit.edu>
618 * src/fcfreetype.c (FcFreeTypeQuery):
620 Restore code to skip over PCF fonts that have no encoded
622 (We guess that a font is PCF by presence of the PIXEL_SIZE
625 2005-12-12 Patrick Lam <plam@mit.edu>
626 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
628 Read and write the original location as a fallback for the
629 hashed cache file locations. This is mostly for users to be
630 able to have per-directory cache files.
632 2005-12-12 Patrick Lam <plam@mit.edu>
633 * fc-cache/fc-cache.c (scanDirs):
634 * fc-cache/Makefile.am:
635 * src/fccache.c (FcDirCacheHashName):
637 Improve error message when fc-cache can't write the cache. Add
638 missing slash. Reported by Behdad. Incorporate Behdad's patch to
639 create /var/cache/fontconfig when appropriate.
641 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
644 * src/fcxml.c (FcConfigGetAttribute):
646 Fix crash reported by Frederic Crozat when using libxml2.
648 2005-12-09 Patrick Lam <plam@mit.edu>
651 * fc-cache/Makefile.am:
652 * fc-cat/Makefile.am:
654 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
655 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
656 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
657 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
658 FcDirCacheHasCurrentArch, FcDirCacheHashName,
659 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
661 Migrate cache files from fonts directories to
662 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
663 but requires that all caches get rebuilt.
665 Also, autogen.sh now needs the additional parameter
666 --localstatedir=/var.
668 2005-12-07 Patrick Lam <plam@mit.edu>
669 * src/fcpat.c (FcPatternAddString):
671 Because we've changed FcPatternAddString to use FcStrStaticName
672 and not FcValueSave, explicitly handle the case of a null string.
674 2005-12-06 Patrick Lam <plam@mit.edu>
675 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
679 2005-12-05 Patrick Lam <plam@mit.edu>
680 * src/fcname.c (FcNameGetObjectType):
682 Don't assign types to user object names.
684 2005-12-05 Patrick Lam <plam@mit.edu>
685 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
687 Don't free strings that have been returned from FcStrStaticName.
689 2005-12-01 Patrick Lam <plam@mit.edu>
690 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
692 Add codepath for reading global cache files as well.
694 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
697 * conf.d/10-fonts.persian.conf:
698 * conf.d/Makefile.am:
700 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
702 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
705 * src/fcxml.c (FcConfigParseAndLoad):
707 Only add a config file to the set of config files once.
709 2005-11-29 Patrick Lam <plam@mit.edu>
710 * src/fcint.h (FcCacheBankToIndex);
712 Fix segfault by guarding array dereference.
714 2005-11-29 Dirk Mueller <dmueller@suse.de>
718 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
719 FcCacheBankToIndex, FcCacheBankToIndexMTF,
723 Refactor FcCacheBankToIndex into an inlineable part
724 (in fcint.h) which checks the front of the list and a
725 non-inlineable part which finds and moves the appropriate element
726 to the front of the list.
728 2005-11-29 Patrick Lam <plam@mit.edu>
729 * src/fccfg.c (FcConfigBuildFonts):
730 * src/fccache.c (FcCacheReadDirs):
732 Make the perf guys hate me a bit less: hoist the directory-name
733 FcConfigAcceptFont check for cached fonts up to directory cache
734 read time, rather than running it for each font.
736 2005-11-29 Patrick Lam <plam@mit.edu>
737 * src/fccfg.c (FcConfigBuildFonts):
739 * src/fcpat.c (FcPatternFindFullFname):
741 Don't make FcPatternFindFullFname available to fccfg, it's not
742 really safe. Instead go through FcPatternGetString (sorry,
743 perf guys.) Also, use globs for dirs as well.
745 2005-11-28 Patrick Lam <plam@mit.edu>
746 * src/fccfg.c (FcConfigBuildFonts):
750 2005-11-28 Patrick Lam <plam@mit.edu>
752 * src/fcpat.c (FcPatternFindFullFname):
753 * src/fccfg.c (FcConfigBuildFonts):
755 Fix problem dating back at least to 2.3.2 where globs weren't
756 being applied to patterns loaded from a cache.
758 2005-11-28 Patrick Lam <plam@mit.edu>
759 * doc/fontconfig-user.sgml:
761 Fix some obvious spelling mistakes.
763 2005-11-28 Dirk Mueller <dmueller@suse.com>
764 Stephan Kulow <coolo@suse.de>
767 * src/fcmatch.c (FcFontSetMatch):
769 Don't kill all fonts during match (oops!)
772 2005-11-25 Dirk Mueller <dmueller@suse.com>
773 Stephan Kulow <coolo@suse.de>
774 Michael Matz <matz@suse.de>
777 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
780 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
781 inline FcCompare into FcFontSetMatch and reorder the
782 loops, adding a boolean array which blocks patterns from future
783 consideration if they're known to not be best on some past
786 2005-11-26 Dirk Mueller <dmueller@suse.com>
789 * src/fcmatch.c (FcCompareValueList):
793 2005-11-25 Patrick Lam <plam@mit.edu>
794 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
796 Don't do random matching when bad objects are passed into
799 2005-11-25 Patrick Lam <plam@mit.edu>
801 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
802 FcPatternSerialize, FcPatternUnserialize,
803 FcValueListEnsureBank, FcValueListDistributeBytes,
804 FcValueListUnserialize):
806 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
807 _fcPatternElts, _fcValueLists for consistency.
809 2005-11-25 Dirk Mueller <dmueller@suse.com>
814 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
816 2005-11-25 Patrick Lam <plam@mit.edu>
818 * src/fccache.c (FcDirCacheConsume):
819 * src/fccharset.c (FcCharSetUnserialize):
820 * src/fcfs.c (FcFontSetUnserialize):
821 * src/fclang.c (FcLangSetUnserialize):
822 * src/fcname.c (FcObjectUnserialize):
823 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
824 FcPatternUnserialize):
826 Pass around FcCache *s to the Unserialize functions for extra
827 consistency (and less overhead, for what that's worth).
829 2005-11-24 Dirk Mueller <dmueller@suse.com>
833 * src/fcmatch.c (FcCompare*, FcFontSetSort):
834 * src/fcname.c (FcNameUnparseValue):
836 Inline the *PtrU functions to gain perf.
837 Remove unneeded params for the FcCompare* functions.
839 2005-11-24 Dirk Mueller <dmueller@suse.com>
842 * src/fcint.h, fontconfig/fontconfig.h:
844 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
846 * src/fcpat.c, src/fcint.h, src/fcname.c:
848 Check for type validity during FcPatternAddWithBinding, don't
849 verify type in FcFontMatch, don't call FcCanonicalize here
850 (which always does a deep copy).
852 2005-11-24 Dirk Mueller <dmueller@suse.com>
855 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
856 * src/fcpat.c (FcPatternAddWithBinding):
858 Make FcCompareString and FcCompareFamily less expensive.
859 Only add a value for FC_FAMILY if the proposed value is a string.
861 2005-11-24 Dirk Mueller <dmueller@suse.com>
864 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
865 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
866 * src/fcint.h (FcDebug):
868 Inline FcDebug invocations and only initialize once, in FcInit*.
869 Improve debug msg in FcPatternPrint.
871 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
874 * fontconfig/fontconfig.h:
877 Minor code warning cleanups.
879 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
882 * fc-match/fc-match.c (main):
884 Make getopt_long accept -s parameter to fc-match as well.
886 2005-11-21 Dirk Mueller <dmueller@suse.com>
889 * src/fcmatch.c (FcCompareValueList):
891 Manually perform inlining & partial redundancy elimination to
892 reduce calls to FcValueListPtrU.
894 2005-11-21 Dirk Mueller <dmueller@suse.com>
897 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
898 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
900 Only invoke strlen() when really necessary.
902 2005-11-19 Matthias Clasen <mclasen@redhat.com>
906 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
911 Get rid of the use of freetype internal headers in fcfreetype.c,
912 since those headers will go away with freetype 2.2. Replace with
913 public domain ftglue code from pango. Note that the patch removes
914 some extra error checking in FT_Get_BDF_Property() and comments
915 out the skipping of empty pcf fonts.
917 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
920 * fc-lang/fc-lang.c (main):
922 Further fix of patch from 2005-11-04: miscounted numbers count
923 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
924 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
926 Removed leafidx_count and numbers_count since they are the same
927 and replaced them with offset_count.
929 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
932 * fc-cat/fc-cat.c (main):
934 Don't crash when fc-cat invoked with no arguments.
936 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
939 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
941 Fix invalid read access caused by premature free and
942 GCC4 warnings in libxml2 codepath.
944 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
947 * src/fccfg.c (FcConfigValues):
949 List iteration not needed in FcConfigValues, since it's building
950 up the list itself; we can just strip FcVoid elements during
953 2005-11-17 Patrick Lam <plam@mit.edu>
954 * src/fccfg.c (FcConfigValues):
956 Fix crash on invalid constants in config files (forgot to update
957 a pointer upon list iteration.)
959 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
962 * src/fcxml.c (FcTypecheckExpr):
964 Complain about invalid constants in config files.
966 2005-11-17 Andreas Schwab <schwab@suse.de>
969 * src/fccache.c (FcGlobalCacheSave):
971 Don't add current_arch_start more than once.
973 2005-11-16 Patrick Lam <plam@mit.edu>
974 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
975 * src/fcfs.c (FcFontSetUnserialize):
976 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
977 * src/fcpat.c (FcStrUnserialize):
979 Fix ordering of ALIGN with respect to saving block_ptr; add
980 another ALIGN to fcfs.c.
982 2005-11-16 Patrick Lam <plam@mit.edu>
983 * src/fccache.c (FcDirCacheProduce)
985 Fix case where alignment bytes bumped up metadata->count
986 causing unwarranted failures to write cache files.
987 (Reported by Stephan Kulow).
989 2005-11-16 Patrick Lam <plam@mit.edu>
990 * src/fccache.c (FcDirCacheProduce):
991 * src/fccharset.c (FcCharSetDistributeBytes):
992 * src/fcfs.c (FcFontSetDistributeBytes):
994 * src/fclang.c (FcLangSetDistributeBytes):
995 * src/fcname.c (FcObjectDistributeBytes):
996 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
999 Add *NeededBytesAlign(), which overestimates the padding which is
1000 later added by the new ALIGN macro. Fix alignment problems on
1001 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1002 version by Andreas Schwab).
1004 2005-11-16 Stephan Kulow <coolo@kde.org>
1009 Use sysconf to determine proper PAGESIZE value; this
1010 appears to be POSIX-compliant. (reported by Andreas Schwab)
1012 2005-11-04 Patrick Lam <plam@mit.edu>
1013 * fc-lang/fc-lang.c:
1018 Fix bug 2878 (excessive relocations at startup for charsets,
1019 reported by Ross Burton): fc-lang/fc-lang now creates the
1020 static form of the langset, not the dynamic form, so that
1021 the charsets should now be in .rodata.
1023 2005-11-04 Patrick Lam <plam@mit.edu>
1024 * src/fcdir.c (FcDirScanConfig):
1026 Add test for validity of directory caches that
1027 somehow got lost (reported by make distcheck).
1029 2005-11-04 Patrick Lam <plam@mit.edu>
1033 * fontconfig/fontconfig.h:
1035 Bump version to 2.3.92.
1037 2005-11-02 Patrick Lam <plam@mit.edu>
1038 * src/fcpat.c (FcPatternDuplicate):
1040 Fix argument ordering problem in call to FcPatternTransferFullFname.
1042 2005-11-02 Patrick Lam <plam@mit.edu>
1043 * src/fcfreetype.c (FcFreetypeQuery):
1044 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1045 FcPatternTransferFullFname):
1047 Fix warnings and embarrassing double-free error.
1049 2005-11-02 Zhe Su <zsu@novell.com>
1054 Change the rule for artificial emboldening in fonts.conf.in. This
1055 enables the support for artificial emboldening included in cairo.
1057 2005-11-02 Patrick Lam <plam@mit.edu>
1058 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1060 Don't zero out full names for FC_REF_CONSTANT fonts;
1061 also, duplicate full names when transferring, and free
1062 full names when freeing the associated font.
1063 Reported by Jinghua Luo.
1065 2005-11-02 Patrick Lam <plam@mit.edu>
1066 * fc-cache/fc-cache.c (scanDirs):
1067 * src/fcpat.c (FcValueListSerialize):
1069 Revert the previous patch and commit the correct patch:
1070 I forgot a canonicalization in FcValueListSerialize, so
1071 that it would choke on already-serialized input files. Duh!
1073 2005-11-02 Patrick Lam <plam@mit.edu>
1074 * fc-cache/fc-cache.c (scanDirs):
1076 Forcibly rescan a directory before writing a fresh local
1077 cache file for that directory, fixing the losing-fonts
1078 problem reported by Mike Fabian and also apparently the
1079 font cache file corruption.
1081 2005-11-02 Patrick Lam <plam@mit.edu>
1082 * src/fccache.c (FcGlobalCacheLoad):
1084 Fix thinko: actually, the whole global cache is stale
1085 if the global cache is older than the (newest) config file.
1087 2005-11-02 Patrick Lam <plam@mit.edu>
1088 * src/fccache.c (FcGlobalCacheLoad):
1089 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1092 Declare the global cache of a directory's contents to be stale if
1093 the directory is newer than the (newest) configuration file.
1095 2005-10-31 Patrick Lam <plam@mit.edu>
1097 * src/fclist.c (FcListAppend):
1098 * src/fcmatch.c (FcFontRenderPrepare):
1099 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1100 FcPatternFreeze, FcPatternBaseFreeze):
1102 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1103 applications continue breaking.
1105 2005-10-31 Patrick Lam <plam@mit.edu>
1106 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1107 * src/fcfreetype.c (FcFreeTypeQuery):
1109 Fix small memory error (tried to free argv); use basename and
1110 dirname correctly (they can modify their arguments).
1112 2005-10-31 Patrick Lam <plam@mit.edu>
1120 Reinstate basename patch, but keep a hash table linking FcPatterns
1121 to their fully-qualified font names for clients' benefit. Clients
1122 only pay for the font names once they request the FC_FILE property
1123 from an FcPattern, but the font name is malloc'd at that point (i.e.
1124 not mmapped: that's impossible, since it may vary between machines.)
1125 Clients do have to pay for a copy of the path name per cache file.
1127 Note that FcPatternGetString now does some rewriting if you ask
1128 for an FC_FILE, appending the pathname as appropriate.
1130 2005-10-31 Patrick Lam <plam@mit.edu>
1131 * src/fcfreetype.c (FcFreeTypeQuery):
1133 Revert basename patch, which breaks fontconfig clients on my system.
1135 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1138 * fontconfig/fonts.conf.in:
1139 * fontconfig/fontconfig.h:
1143 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1144 to load embedded bitmaps or not.
1146 2005-10-25 Patrick Lam <plam@mit.edu>
1147 * src/fcfreetype.c (FcFreeTypeQuery):
1149 Only add basename to patterns' FC_FILE element, not any part of
1152 2005-10-22 Patrick Lam <plam@mit.edu>
1155 Add some more consts, fixing more GCC4 warnings.
1157 2005-10-22 Zhe Su <zsu@novell.com>
1160 Support localized font family and style names.
1161 This has been reported to break old apps like xfd, but modern
1162 (gtk+/qt/mozilla) apps work fine.
1164 2005-10-21 Patrick Lam <plam@mit.edu>
1165 * src/fccache.c (FcGlobalCacheLoad):
1167 Destroy the global cache file if it's terminally broken. (reported by
1170 2005-10-21 Patrick Lam <plam@mit.edu>
1171 * fc-list/fc-list.c (main):
1172 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1173 * fontconfig/fontconfig.h:
1175 Prevent fc-list from escaping strings when printing them (reported by
1178 2005-10-20 Marcus Meissner <meissner@suse.de>
1181 * fontconfig/fontconfig.h:
1183 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1185 2005-10-14 Ross Burton <ross@burtonini.com>
1188 * fc-glyphname/fc-glyphname.c:
1191 Add consts to variables so as to move arrays into .rodata.
1193 2005-10-14 Mike Fabian <mfabian@suse.de>
1196 * src/fccache.c (FcDirCacheUnlink):
1198 Check existence of directory cache file before attempting to unlink.
1200 2005-10-13 Patrick Lam <plam@mit.edu>
1201 * src/fccache.c (FcDirCacheUnlink):
1203 Fix flipped return value on unlink. (Reported by Mike Fabian)
1205 2005-10-12 Patrick Lam <plam@mit.edu>
1208 * src/fcdir.c (FcDirScanConfig):
1211 When fc-cache is run without --force, use directory cache files
1212 to speed up fc-cache run time. (Reported by Mike Fabian)
1214 2005-10-06 Patrick Lam <plam@mit.edu>
1216 * src/fcname.c (FcObjectToPtr):
1217 * src/fcpat.c (FcStrStaticName):
1219 Add padding to make valgrind and glibc not hate each other
1220 when calling strlen().
1222 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1223 reviewed by: plam & keithp
1227 Modify config file to use Greek fonts before Asian fonts with
1230 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1231 reviewed by: plam & keithp
1235 Use libtool -no-undefined flag on all platforms.
1237 2005-10-05 Patrick Lam <plam@mit.edu>
1238 * src/fccache.c (FcCacheHaveBank):
1240 Implement move-to-front array for banks (perf regression
1241 reported by Ronny V. Vindenes).
1243 2005-10-04 Patrick Lam <plam@mit.edu>
1244 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1245 FcDirCacheHasCurrentArch):
1246 * fc-cache/fc-cache.c (scanDirs):
1247 * fontconfig/fontconfig.h:
1249 Add new API which unlinks directory caches and checks dir caches
1250 for existence of appropriate sections. Fix fc-cache to unlink
1251 stale cache files and save directory caches that lack relevant
1254 2005-10-03 Patrick Lam <plam@mit.edu>
1255 * src/fccache.c (FcDirCacheValid):
1257 Ensure that a directory cache has the appropriate section
1258 before reporting that it is valid (reported by Matthias Clasen).
1260 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1268 Use libxml2 if requested (with --enable-libxml2) or if
1269 expat is not available.
1271 2005-09-29 Patrick Lam <plam@mit.edu>
1272 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1274 Fix multi-arch cache files: compute the position for the
1275 block to be added using info from OrigFile, not NewFile.
1277 2005-09-28 Patrick Lam <plam@mit.edu>
1278 * src/fccache.c (FcCacheMachineSignature):
1280 Cast results of sizeof() to unsigned int to get rid of
1281 warnings on x86_64 (thanks Matthias Clasen).
1283 2005-09-27 Patrick Lam <plam@mit.edu>
1284 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1287 Use FcAtomic to rewrite cache files.
1289 2005-09-27 Patrick Lam <plam@mit.edu>
1291 * src/fccache.c (FcDirCacheWrite):
1293 Don't unlink the fonts.cache-2 file even if there's no data
1294 to write; just write an empty cache file. (thanks Lubos Lunak)
1296 2005-09-27 Patrick Lam <plam@mit.edu>
1298 * src/fccache.c (FcDirCacheWrite):
1300 Allocate room for the subdirectory names in each
1301 directory cache. Thanks to James Cloos for finding
1302 and diagnosing this bug!
1304 2005-09-22 Patrick Lam <plam@mit.edu>
1306 * fc-cache/fc-cache.sgml:
1307 * src/fccache.c (FcDirCacheWrite):
1308 * src/fccache.h (struct FcCache):
1310 Update documentation -- fc-cache's man page now says that you
1311 need to run fc-cache once per cached architecture; add some
1312 documentation to the FcCache structure.
1314 Make fc-cache write out fonts.cache-2 files for directories with
1315 no fonts (i.e. only subdirectories).
1317 2005-09-22 Patrick Lam <plam@mit.edu>
1319 * fc-cache/fc-cache.sgml:
1320 * fc-case/fc-case.c:
1321 * fc-glyphname/fc-glyphname.c:
1327 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1331 * fc-lang/fc-lang.c:
1332 * fontconfig/fcprivate.h:
1333 * fontconfig/fontconfig.h:
1347 Implement new mmaped cache for font information.
1348 Bump so revision to 2.3.90.
1350 2005-07-25 Keith Packard <keithp@keithp.com>
1352 * doc/fontconfig-user.sgml:
1353 * fc-glyphname/fc-glyphname.c: (scan), (main):
1354 * fc-lang/fc-lang.c: (FcConfigHome):
1355 * fc-match/fc-match.c: (main):
1356 * src/fccfg.c: (FcConfigHome):
1357 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1358 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1359 (addtag), (FcFontCapabilities):
1360 * src/fcpat.c: (FcValueListEntCreate):
1361 * src/fcstr.c: (FcStrCaseWalkerInit):
1362 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1364 Various GCC 4 cleanups for signed vs unsigned char
1366 Match only [0-9]*.conf files in <include>{directory}</include>
1367 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1369 2005-07-15 Carl Worth <cworth@cworth.org>
1372 * src/fcinit.c: (FcFini):
1373 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1376 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1377 Pull the FcObjectStateName hash table out to file scope, and add
1378 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1381 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1384 2005-06-16 Patrick Lam <plam@MIT.EDU>
1388 * src/fccfg.c: (FcConfigCompareValue):
1389 Make FcOpNotContains use FcStrStr for strings so that
1390 it matches semantics for !FcOpContains.
1392 2005-05-20 Keith Packard <keithp@keithp.com>
1396 Move fontconfig source package to libs as per override
1398 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1400 reviewed by: Mike Fabian
1403 The ka.orth file requires several characters which are not
1404 used anymore in modern Georgian and which are missing in the free
1405 Georgian TrueType fonts downloadable at:
1407 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1409 2005-04-27 Keith Packard <keithp@keithp.com>
1413 Update date to real 2.3.2 release date.
1414 Fix change attributions
1416 2005-04-27 Keith Packard <keithp@keithp.com>
1419 Bump so revision for 2.3.2
1420 * fc-cache/fc-cache.c: (scanDirs):
1421 Fix a few minor leaks in error cases.
1423 2005-04-23 Keith Packard <keithp@keithp.com>
1428 * fontconfig/fontconfig.h:
1429 Update for version 2.3.2
1431 2005-04-21 Keith Packard <keithp@keithp.com>
1433 * debian/fontconfig.postinst:
1434 Don't force bitmap font enable in default
1435 configuration; allows users to override this in
1445 * debian/po/pt_BR.po:
1446 * debian/po/templates.pot:
1448 * debian/po/zh_CN.po:
1449 Updated translations
1451 * fc-cache/fc-cache.c: (main):
1452 Destroy font configuration on exit to help valgrind
1455 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1456 (FcFreeTypeCheckGlyph):
1457 Use own transcoding routines in preference to iconv
1458 which appears to have leaks in some translators.
1459 Call iconv_close after using iconv (oops).
1461 Prefer unicode encoding of Euro char as some
1462 fonts mis-encode Euro in other ones.
1464 Must fetch bitmap glyphs to get width values
1465 to check for monospace/dual-width fonts.
1467 2005-04-13 Ross Burton <ross@burtonini.com>
1470 Check that a pattern isn't already frozen in FcPatternFreeze.
1472 2005-03-31 Ross Burton <ross@burtonini.com>
1477 Run all FcPattern objects through FcObjectStaticName, so that
1478 compares can be done on pointers instead of strings (#2659)
1480 2005-03-17 Tor Lillqvist <tml@novell.com>
1482 * src/fontconfig.def.in: Add the .dll to the dll name.
1484 2005-03-10 Keith Packard <keithp@keithp.com>
1486 * debian/README.Debian:
1487 Update to reflect configuration changes
1489 * debian/fontconfig.postinst:
1490 Fix Autohint vs Autohinter mistake
1491 * debian/fontconfig.templates:
1492 Adopt changes from Josselin Mouette for configuration descriptions
1493 Update debian to version 2.3.1-2
1495 2005-03-08 Keith Packard <keithp@keithp.com>
1499 Update debian for 2.3.1
1501 2005-03-09 Tor Lillqvist <tml@novell.com>
1503 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1506 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1509 2005-03-08 Keith Packard <keithp@keithp.com>
1513 * fontconfig/fontconfig.h:
1516 2005-03-05 Keith Packard <keithp@keithp.com>
1518 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1519 Include space and remove numbers from valid script tags.
1520 This ensures that tags like 'lao ' work while rejecting
1521 those which have any digits.
1522 Eliminate a spurious debugging variable (len)
1524 2005-03-05 Keith Packard <keithp@keithp.com>
1526 * src/fcfreetype.c: (addtag), (GetScriptTags),
1527 (FcFontCapabilities):
1528 Rework GSUB/GPOS script parsing to survive broken fonts.
1529 Thanks for the broken font go to Manish Singh
1531 2005-03-05 Keith Packard <keithp@keithp.com>
1536 * debian/fontconfig.config:
1537 * debian/fontconfig.templates:
1539 Include 2.3 release information in changelog
1540 Add Josselin Mouette as an Uploader
1541 Set hinting_type to low priority configuration option
1544 * debian/fontconfig.postinst:
1545 yes_bitmaps.conf -> yes-bitmaps.conf
1551 2005-03-02 Keith Packard <keithp@keithp.com>
1554 * conf.d/Makefile.am:
1555 * conf.d/autohint.conf:
1556 * conf.d/no-sub-pixel.conf:
1557 * conf.d/sub-pixel.conf:
1558 * conf.d/unhinted.conf:
1559 * debian/autohint.conf:
1560 * debian/fontconfig.install:
1561 * debian/fontconfig.postinst:
1562 * debian/fontconfig.templates:
1563 * debian/no-sub-pixel.conf:
1564 * debian/unhinted.conf:
1565 Move debian-specific conf file examples upstream.
1567 Sub-pixel configuration examples must smash subpixel value
1568 as Xft always sets it from X.
1570 Change sub-pixel rendering debconf descriptions from
1571 Enable/Disable to Always/Never.
1573 2005-03-02 Keith Packard <keithp@keithp.com>
1576 * conf.d/.cvsignore:
1578 Ignore more build detritus
1581 Add debian package construction stuff.
1583 * config/config.guess:
1584 * config/config.sub:
1585 Update to newer versions of these tools
1588 Get library manuals to build again (we love automake).
1590 * debian/README.Debian:
1591 * debian/autohint.conf:
1596 * debian/fontconfig-udeb.install:
1597 * debian/fontconfig.config:
1598 * debian/fontconfig.defoma:
1599 * debian/fontconfig.dirs:
1600 * debian/fontconfig.install:
1601 * debian/fontconfig.postinst:
1602 * debian/fontconfig.postrm:
1603 * debian/fontconfig.templates:
1604 * debian/libfontconfig1-dev.install:
1605 * debian/libfontconfig1.install:
1606 * debian/local.conf.md5sum:
1607 * debian/no-sub-pixel.conf:
1608 * debian/po/POTFILES.in:
1617 * debian/po/pt_BR.po:
1618 * debian/po/templates.pot:
1620 * debian/po/zh_CN.po:
1622 * debian/unhinted.conf:
1623 Update debian build system to switch maintainers and
1624 deal with 2.3 functionality
1626 2005-03-01 Keith Packard <keithp@keithp.com>
1630 * fontconfig/fontconfig.h:
1633 2005-03-01 Keith Packard <keithp@keithp.com>
1636 Generate and install PDF versions of the manuals
1638 * doc/fcpattern.fncs:
1641 * doc/fcstring.fncs:
1642 Add missing exported functions, fix data types
1644 * doc/fontconfig-devel.sgml:
1645 Add missing pattern elements.
1647 * doc/fontconfig-user.sgml:
1648 Add missing pattern elements. Document conf.d usage,
1649 clarify available orthography list. Fix some config file
1650 attributes. Complete list of constants.
1652 * fontconfig/fontconfig.h:
1653 Mark FC_SOURCE deprecated.
1655 * src/fcfreetype.c: (FcFreeTypeQuery):
1656 Don't set FC_SOURCE any longer.
1658 2005-02-28 Keith Packard <keithp@keithp.com>
1661 * conf.d/Makefile.am:
1663 * conf.d/no-bitmaps.conf:
1664 * conf.d/sub-pixel.conf:
1665 * conf.d/yes-bitmaps.conf:
1667 Create prototype /etc/fonts/conf.d directory with a few
1668 sample configuration files.
1669 Deprecate use of local.conf for local customizations in favor of
1670 this directory based scheme which is more easily integrated into
1671 installation systems.
1674 Tag FC_EMBOLDEN as a boolean variable
1676 2005-02-10 Keith Packard <keithp@keithp.com>
1678 reviewed by: pborelli@katamail.com
1680 * src/fcdir.c: (FcFileScanConfig):
1681 Free patterns from fonts which are rejected by configuration
1684 2005-01-28 Keith Packard <keithp@keithp.com>
1688 * fontconfig/fontconfig.h:
1689 Update for version 2.2.99
1691 2005-01-28 Keith Packard <keithp@keithp.com>
1694 Add a few pointers (#2284, #2285)
1696 2005-01-28 Keith Packard <keithp@keithp.com>
1699 * src/fcname.c: (FcNameBool):
1700 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1701 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1702 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1703 Polite typechecking for test and edit expressions. Helps
1704 catch errors in the font configuration. (bug 229)
1706 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1708 reviewed by: Keith Packard <keithp@keithp.com>
1711 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1713 2005-01-13 Keith Packard <keithp@keithp.com>
1715 * doc/fontconfig-user.sgml:
1716 Add SEE ALSO section (bug 2085)
1718 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1720 reviewed by: Keith Packard <keithp@keithp.com>
1725 * fc-case/Makefile.am:
1726 * fc-glyphname/Makefile.am:
1727 * fc-lang/Makefile.am:
1728 * src/fontconfig.def.in:
1729 Cross compiling fixes (bug 280)
1731 2005-01-13 Keith Packard <keithp@keithp.com>
1734 Update blanks list (Closes bug 86)
1736 2005-01-04 Keith Packard <keithp@keithp.com>
1738 * src/fccache.c: (FcCacheFontSetAdd):
1739 Verify that every font pattern loaded from cache has
1740 both FC_FILE and FC_FAMILY entries.
1741 Attempt to fix bug #2219.
1743 2004-12-29 Keith Packard <keithp@keithp.com>
1747 * fontconfig/fontconfig.h:
1748 Update for version 2.2.98
1750 2004-12-29 Keith Packard <keithp@keithp.com>
1752 * fontconfig/fontconfig.h:
1753 Document ASCII limitations of Fc character conversion macros
1754 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1755 Fix off-by-one error in utf-8 case walking code.
1756 Add FcStrDowncase (useful for testing case conversion functions)
1758 2004-12-29 Keith Packard <keithp@keithp.com>
1761 * fc-case/.cvsignore:
1762 clean up CVS ignore lists
1763 * fc-lang/iso-3166.txt:
1764 Add territory database
1766 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1768 Reviewed by: Keith Packard
1771 Remove Han characters from Korean orthography
1773 2004-12-29 Keith Packard <keithp@keithp.com>
1776 Reorder utility programs to make sure fc-case is run before fc-lang
1777 as fc-lang uses fcstr.c which uses fccase.h
1781 2004-12-29 Keith Packard <keithp@keithp.com>
1784 Adopt some RedHat suggestions for standard font configuration.
1788 * fc-case/CaseFolding.txt:
1789 * fc-case/Makefile.am:
1790 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1791 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1792 (dump), (parseRaw), (caseFoldReadRaw), (main):
1793 * fc-case/fccase.tmpl.h:
1794 Add new helper program 'fc-case' to construct case folding
1795 tables from standard Unicode CaseFolding.txt file
1798 * src/fclist.c: (FcListValueHash):
1799 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1800 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1801 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1802 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1803 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1804 Re-implement case insensitive functions with Unicode
1805 aware versions (including full case folding mappings)
1807 2004-12-13 Keith Packard <keithp@keithp.com>
1809 reviewed by: Owen Taylor <otaylor@redhat.com>
1811 * src/fcmatch.c: (FcFontSetSort):
1812 I changed FcFontSetSort to respect the generic aliases better
1813 in the face of language matching.
1815 What I did was to ammend the strict sort order used by FcFontSort so
1816 that it 'satisfies' the language specified in the pattern by locating
1817 the best matching font supporting each pattern language and then
1818 ignores language in the remaining fonts for purposes of matching.
1820 So, when asking for 'sans:lang=en', you'll get an English font first,
1821 and then the remaining fonts sorted with respect to the 'sans' alias
1822 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1824 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1826 reviewed by: Keith Packard <keithp@keithp.com>
1828 * fontconfig/fontconfig.h:
1831 Configuration changes to request synthetic emboldening of
1832 fonts. The actual emboldening code will live in Xft.
1834 2004-12-09 John Thacker <thacker@math.cornell.edu>
1836 reviewed by: Keith Packard <keithp@keithp.com>
1840 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1841 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1842 и), and don't even appear in KOI8-R. (The hypothesis that they
1843 don't appear in KOI8-R due to their similarity with Latin I and i is
1844 eliminated by their presence in KOI8-U.) I have a couple of fonts
1845 with Russian support that don't have the letter.
1847 Therefore, 0406 and 0456 should be removed from or commented out of
1850 2004-12-06 michael meeks <mmeeks@novell.com>
1852 Reviewed by: Keith Packard <keithp@keithp.com>
1854 * src/fcinit.c: (FcMemReport):
1856 * src/fclist.c: (FcObjectSetAdd):
1857 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1858 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1859 * src/fcxml.c: (FcParsePatelt):
1860 memoize strings and share a single copy for all uses. Note that
1861 this could be improved further by using statically allocated blocks
1862 and gluing multiple strings together, but I'm basically lazy.
1863 In my environment with 800 font files, I get a savings of about 90KB.
1865 2004-12-06 Keith Packard <keithp@keithp.com>
1869 * config/Makedefs.in:
1872 * doc/fcatomic.fncs:
1873 * doc/fcblanks.fncs:
1874 * doc/fccharset.fncs:
1875 * doc/fcconfig.fncs:
1876 * doc/fcconstant.fncs:
1878 * doc/fcfontset.fncs:
1879 * doc/fcfreetype.fncs:
1881 * doc/fcmatrix.fncs:
1882 * doc/fcobjectset.fncs:
1883 * doc/fcobjecttype.fncs:
1884 * doc/fcpattern.fncs:
1885 * doc/fcstring.fncs:
1886 * doc/fcstrset.fncs:
1888 * doc/fontconfig-devel.sgml:
1889 * doc/fontconfig-user.sgml:
1891 * doc/version.sgml.in:
1892 * fc-cache/Makefile.am:
1893 * fc-cache/fc-cache.c:
1894 * fc-glyphname/Makefile.am:
1895 * fc-glyphname/fc-glyphname.c:
1896 * fc-glyphname/fcglyphname.tmpl.h:
1897 * fc-lang/Makefile.am:
1907 * fc-lang/az_ir.orth:
1941 * fc-lang/fc-lang.c:
1942 * fc-lang/fc-lang.man:
1943 * fc-lang/fclang.tmpl.h:
1988 * fc-lang/ku_ir.orth:
2021 * fc-lang/ps_af.orth:
2022 * fc-lang/ps_pk.orth:
2051 * fc-lang/ti_er.orth:
2052 * fc-lang/ti_et.orth:
2078 * fc-lang/zh_cn.orth:
2079 * fc-lang/zh_hk.orth:
2080 * fc-lang/zh_mo.orth:
2081 * fc-lang/zh_sg.orth:
2082 * fc-lang/zh_tw.orth:
2084 * fc-list/Makefile.am:
2085 * fc-list/fc-list.c:
2086 * fc-match/Makefile.am:
2087 * fc-match/fc-match.1:
2088 * fc-match/fc-match.c:
2089 * fontconfig/fcfreetype.h:
2090 * fontconfig/fcprivate.h:
2091 * fontconfig/fontconfig.h:
2112 Change files from ISO-Latin-1 to UTF-8
2114 2004-12-04 Keith Packard <keithp@keithp.com>
2117 Update links to new freedesktop.org locations
2119 Add uninstall-local to get rid of fonts.conf and local.conf if they
2120 match the distributed versions. Fixes 'make distcheck'
2122 2004-12-04 Keith Packard <keithp@keithp.com>
2126 * fontconfig/fontconfig.h:
2127 Updates for version 2.2.97
2129 2004-12-04 Owen Taylor <otaylor@redhat.com>
2131 reviewed by: Keith Packard <keithp@keithp.com>
2133 * fc-cache/fc-cache.c: (main):
2134 Sleep for two seconds before exiting to make sure timestamps
2135 for future changes have distinct mod times in the file system.
2138 Add Punjabi orthography. Bug #1671.
2140 2004-12-04 Keith Packard <keithp@keithp.com>
2143 Just remove the FC_FONTDATE -- it has locale issues and
2144 annoys redhat multi-arch installs. Now that all X fonts are
2145 included without prejudice, the chances of the date being at
2146 all interesting are rather limited. Bug #505.
2148 Add copyright and license
2150 2004-12-04 Keith Packard <keithp@keithp.com>
2153 Change default set of fonts to include all of
2154 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2155 * doc/fontconfig-user.sgml:
2156 Document new <include>directory-name</include> semantics
2158 add <include ignore_missing="yes">conf.d</include>
2160 Add selectfont to ignore bitmap fonts, add comment for
2161 selectfont which accepts bitmap fonts.
2164 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2165 Allow <include> configuration elements to reference directories.
2166 Parse and load all files of the form [0-9]* in sorted order.
2168 2004-12-04 Keith Packard <keithp@keithp.com>
2171 Report command line for $srcdir/configure accurately.
2174 2004-12-04 Keith Packard <keithp@keithp.com>
2176 * src/fcfreetype.c: (FcFreeTypeQuery):
2177 Check for non-empty face->family_name and face->style_name
2178 before using those for the font. Empty names match everything.
2181 2004-12-04 Keith Packard <keithp@keithp.com>
2184 * fontconfig/fontconfig.h:
2185 * src/fcfreetype.c: (FcFreeTypeQuery):
2187 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2188 available. This provides font file format information (BDF, Type 1,
2189 PCF, TrueType) for each font. Closes #109.
2191 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2193 reviewed by: Keith Packard <keithp@keithp.com>
2195 * doc/fontconfig-user.sgml:
2198 * fontconfig/fontconfig.h:
2199 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2200 (GetScriptTags), (FcFontCapabilities):
2202 Add detection for font capabilities (bug #105)
2204 2004-12-04 Keith Packard <keithp@keithp.com>
2207 Move existing fonts.conf to fonts.conf.bak
2210 Add detection of iconv
2212 * doc/fcpattern.fncs:
2213 * doc/fontconfig-devel.sgml:
2214 * doc/fontconfig-user.sgml:
2216 Document new selectfont elements
2219 Switch to UTF-8 in comment
2221 * fontconfig/fontconfig.h:
2223 Add fullname, and family/style/fullname language entries
2225 * src/fccache.c: (FcCacheFontSetAdd):
2226 * src/fcdir.c: (FcFileScanConfig):
2227 Respect selectfont/*/glob
2230 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2231 (FcConfigCompareValue), (FcConfigPatternsAdd),
2232 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2233 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2234 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2235 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2236 Add support for selectfont
2238 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2239 (FcStringInPatternElement), (FcFreeTypeQuery):
2240 Add multi-lingual family/style/fullname support
2242 * src/fclist.c: (FcListPatternMatchAny):
2243 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2245 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2246 (FcObjectStaticName):
2247 Add new FcPatternRemove/FcPatternAppend.
2248 FcObjectStaticName stores computed pattern element names which
2249 are required to be static.
2251 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2256 Remove spurious / after $(DESTDIR)
2258 2004-06-30 Keith Packard <keithp@keithp.com>
2262 * fontconfig/fontconfig.h:
2265 2004-06-30 Keith Packard <keithp@keithp.com>
2267 Provided by: Lubos Lunak <l.lunak@suse.cz>
2269 * src/fccfg.c: (FcConfigUptoDate):
2270 However FcConfigUptoDate() doesn't seem to work. See the attached
2271 patch. First there's an obvious misplaced parenthesis making it
2272 return always false, and second, even this call fails to detect font
2273 changes (e.g. adding a new font to
2274 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2275 well. The problem seems to be triggered by my fonts.conf specifying
2276 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2277 doesn't include subdirs, unlike config->fontDirs.
2279 2004-06-03 Keith Packard <keithp@keithp.com>
2281 * fontconfig/fontconfig.h:
2282 Remove comma at end of FcResult enum definition.
2284 2004-05-29 Keith Packard <keithp@keithp.com>
2287 Add steps to md5sum release
2289 2004-05-29 Keith Packard <keithp@keithp.com>
2293 * fontconfig/fontconfig.h:
2296 2004-05-29 Keith Packard <keithp@keithp.com>
2298 * fontconfig/fontconfig.h:
2299 * src/fcmatch.c: (FcFontSetMatch):
2300 Add FcResultOutOfMemory to provide an accurate error when
2301 FcFontSetMatch fails in this way
2304 Make #warning about lacking various FreeType features indicate
2305 which version those features appeared so users know how to
2306 fix the problem (Thanks to Anton Tropashko)
2308 2004-05-05 Keith Packard <keithp@keithp.com>
2310 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2311 Replace MIN/MAX/ABS macros which happen to have come
2312 from FreeType with fontconfig-specific ones (FC_*)
2314 2004-04-23 Keith Packard <keithp@keithp.com>
2317 Extend release preparation instructions to include
2318 notification and distribution steps
2320 2004-04-23 Keith Packard <keithp@keithp.com>
2324 * fontconfig/fontconfig.h:
2325 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2327 2004-04-23 Keith Packard <keithp@keithp.com>
2330 Ignore a few more autotool files
2332 2004-04-14 Keith Packard <keithp@keithp.com>
2335 Add instructions for doing a release
2337 * fontconfig.spec.in:
2338 clean up .spec file; perhaps this will be useful to somebody...
2342 * fontconfig/fontconfig.h:
2345 * fc-lang/fc-lang.c:
2346 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2348 * fc-glyphname/Makefile.am:
2349 * fc-lang/Makefile.am:
2350 * fc-list/Makefile.am:
2351 * fc-match/Makefile.am:
2353 Add WARN_CFLAGS to pass -W flags for GCC systems
2355 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2356 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2357 Change various char types around to match across
2359 Fixed bug in using available_sizes[i].height which
2360 is in pixels, not 64ths of a pixel.
2362 2004-03-06 Keith Packard <keithp@keithp.com>
2364 * src/fcfreetype.c: (FcFreeTypeQuery):
2365 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2366 matches looking for explicit values prefer exact matches
2368 2004-03-02 Keith Packard <keithp@keithp.com>
2370 Supplied by: mfabian@suse.de (Mike FABIAN)
2372 * src/fcfreetype.c: (FcFreeTypeQuery):
2373 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2374 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2376 2004-02-21 Manish Singh <yosh@gimp.org>
2378 * fc-glyphname/fc-glyphname.c: (main):
2379 Cast strlen to int for printf, so we're 64-bit clean.
2381 2004-02-11 Keith Packard <keithp@keithp.com>
2384 * src/fcfreetype.c: (FcGetPixelSize):
2385 Ok, so I messed up the test for y_ppem. Let's see if I
2386 got it right this time.
2388 2004-02-10 Keith Packard <keithp@keithp.com>
2391 * src/fcfreetype.c: (FcGetPixelSize):
2392 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2393 FT_Bitmap_Size record. Add a configure.in test for this
2394 and change the code accordingly (using height instead).
2396 2004-02-06 Keith Packard <keithp@keithp.com>
2399 Add Low Saxon orthography
2400 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2402 * src/fccfg.c: (FcConfigNewestFile):
2403 Oops. Left 'newest.set' unset, which would miscompute
2406 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2407 (FcFreeTypeCheckGlyph):
2408 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2409 font properties (which report the wrong value in current FreeType)
2411 Don't attempt to check for empty glyphs in non-scalable fonts; they
2414 2004-02-01 Tor Lillqvist <tml@iki.fi>
2416 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2417 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2418 cache if config->cache is NULL, which happens if FcConfigHome() is
2419 NULL. Guard against that by using the temp folder in that case.
2421 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2423 * fc-lang/az_ir.orth:
2424 * fc-lang/ku_ir.orth:
2425 * fc-lang/ps_af.orth:
2426 * fc-lang/ps_pk.orth:
2427 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2428 (Afghan and Pakistani).
2430 Updated Urdu orthography with real data.
2432 2003-12-11 Carl Worth <cworth@east.isi.edu>
2434 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2437 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2439 (all-local): Remove excessive whitespace.
2441 * autogen.sh: Add 'set -e' to abort when any program fails,
2442 (avoids printing of 'now type make' after configure aborts).
2444 2003-11-17 Eric Christopherson <rakko@charter.net>
2446 reviewed by: Keith Packard <keithp@keithp.com>
2449 * fontconfig/fcfreetype.h:
2451 Switch to FreeType 2.1.7 style includes. Bug #150.
2453 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2455 * fc-list/fc-list.sgml: Add some example usages.
2457 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2460 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2463 2003-10-27 Keith Packard <keith@keithp.com>
2466 * fontconfig/fontconfig.h:
2467 Update to version 2.2.92
2469 2003-10-27 Keith Packard <keithp@keithp.com>
2474 * fc-cache/Makefile.am:
2475 * fc-glyphname/Makefile.am:
2476 * fc-lang/Makefile.am:
2477 * fc-list/Makefile.am:
2478 * fc-match/Makefile.am:
2481 Yet more cleanups to finish getting 'make distcheck' working
2482 This has been tested to ensure that it even works from a _build
2485 2003-10-26 Keith Packard <keithp@keithp.com>
2489 * fc-cache/Makefile.am:
2490 * fc-glyphname/Makefile.am:
2491 * fc-lang/Makefile.am:
2492 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2493 * fc-list/Makefile.am:
2494 * fc-match/Makefile.am:
2495 Attempts to fix 'make distcheck' work. Things are
2496 progressing pretty well, but there are still failures
2497 long into the process dealing with docs (as always).
2499 The big changes here are mostly to make $(srcdir) != "."
2500 work correctly, fixing the docbook related sections and
2501 fc-lang were particularily tricky. Docbook refuses to load
2502 system entities from anywhere other than where the original .sgml
2503 file was located, so no luck looking in "." for the
2504 configure-generated version.sgml and confdir.sgml files.
2506 fc-lang needed help finding .orth files; added a -d option
2507 to set the directory as the least evil of many options.
2509 Now to go use a faster machine and try and wring out the last
2512 2003-10-26 Keith Packard <keithp@keithp.com>
2516 2003-10-26 Keith Packard <keithp@keithp.com>
2519 Include confdir.sgml.in in EXTRA_DIST
2521 2003-10-09 Josselin Mouette <joss@debian.org>
2523 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2524 * fc-list/fc-list.sgml fc-list/Makefile.am:
2525 Replace fc-cache and fc-list manpages with more detailed, SGML
2528 2003-09-23 Owen Taylor <otaylor@redhat.com>
2530 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2531 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2532 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2535 2003-09-23 Owen Taylor <otaylor@redhat.com>
2537 * fc-lang/ka.orth: Remove Georgian capitals, they
2538 aren't used for normal writing. (Bug #116)
2540 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2542 * doc/fontconfig-devel.sgml:
2543 * doc/fontconfig-user.sgml:
2544 * fontconfig/fontconfig.h:
2546 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2547 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2549 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2550 monospace and dual-width fonts, allow roughly a 3% variance in the
2553 2003-08-31 Manish Singh <yosh@gimp.org>
2555 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2558 2003-08-15 Carl Worth <cworth@isi.edu>
2560 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2561 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2563 * src/fcpat.c (FcValueListEntDestroy): New function to support
2564 FcFini memory cleanup. Some statistics are not kept in
2566 (FcValueListFreeze): Move hashTable outside this function so it
2567 can be accessed by FcValueListThawAll.
2568 (FcValueListThawAll): New function complements FcValueListFreeze.
2569 (FcPatternBaseFreeze): Move hashTable outside this function so it
2570 can be accessed by FcPatternBaseThawAll.
2571 (FcPatternBaseThawAll): New function complements
2572 FcPatternBaseFreeze.
2573 (FcPatternThawAll): New function complements FcPatternFreeze.
2575 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2577 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2578 allocated FcCharLeafEnt "blocks" so they can be freed later.
2579 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2580 can be accessed by FcCharSetThawAllLeaf.
2581 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2582 (FcCharSetFreezeBase): Move hashTable outside this function so it
2583 can be accessed by FcCharSetThawAll.
2584 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2586 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2587 (FcConfigDestroy): Fic leak of FcBlanks.
2589 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2590 (main): Add call to FcFini when finished.
2592 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2593 static. Add prototypes.
2595 * doc/fcinit.fncs: Add documentation for FcFini function.
2597 * doc/edit-sgml.c: Mark several local functions as static. Add
2600 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2602 2003-06-15 Tor Lillqvist <tml@iki.fi>
2604 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2605 before comparing (needed on Windows).
2607 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2609 2003-06-13 Tor Lillqvist <tml@iki.fi>
2611 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2614 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2615 WINDOWSFONTDIR token.
2617 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2618 end, not to confuse libtool, which expects the EXPORTS line to be
2619 the first. Add FcConfigEnableHome.
2621 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2622 built as a DLL on Win32.
2624 2003-06-09 Keith Packard <keithp@keithp.com>
2626 * Tag version 2.2.90
2628 2003-06-09 Keith Packard <keithp@keithp.com>
2630 * Optimization in FcLangSetIndex was broken, occasionally
2631 returning a pointer to the wrong location on miss
2633 * Add fc-match to test font matching from the command line.
2635 2003-05-31 Keith Packard <keithp@keithp.com>
2637 * (Bug 85) add support for culmus fonts
2638 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2639 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2641 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2643 * Fix "contains" op for strings and langsets.
2645 2003-05-17 Keith Packard <keithp@keithp.com>
2647 * Fix build error with BDF prop local. Free langset after query
2649 2003-05-14 Keith Packard <keithp@keithp.com>
2651 * Extract spacing from XLFD atom
2653 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2655 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2656 disappeared in 1.30.
2658 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2660 2003-05-12 Keith Packard <keithp@keithp.com>
2662 * Use FcIsWidth to share code
2664 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2665 misclassifying some Han fonts as monospaced.
2667 2003-05-07 Keith Packard <keithp@keithp.com>
2669 * Add filename-based accept/reject to ammend available fonts.
2671 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2672 older FreeType releases.
2674 2003-05-06 Keith Packard <keithp@keithp.com>
2676 * Remove 0b82 and Tamil numbers from tamil
2677 orthography (Jungshik Shin <jshin@mailaps.org>)
2679 2003-05-04 Keith Packard <keithp@keithp.com>
2681 + Map glyph names in fonts with adobe custom encoding to unicode
2683 2003-05-02 Keith Packard <keithp@keithp.com>
2685 * Add FC_WEIGHT_BOOK as weight 75
2687 2003-04-30 Keith Packard <keithp@keithp.com>
2689 * Typo in bitstream foundry name
2691 2003-04-24 Keith Packard <keithp@keithp.com>
2693 * Eliminate italic_angle check for PS fonts
2695 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2697 * Getting closer to fixing /etc/fonts hard-coding.
2699 2003-04-22 Keith Packard <keithp@keithp.com>
2701 * Update autogen.sh to work with newer automake versions
2702 * Handle pattern elements moving during multiple edits
2704 2003-04-23 James Henstridge <james@daa.com.au>
2706 * doc/fontconfig-devel.sgml: close the <para> element.
2708 * doc/fcpattern.fncs: close the <para> element.
2710 * doc/func.sgml: close the <refsynopsisdiv> element.
2712 2003-04-22 Keith Packard <keithp@keithp.com
2714 * Update autogen.sh to work with newer automake versions
2715 * Handle pattern elements moving during multiple edits
2717 2003-04-17 Colin Walters <walters@debian.org>
2719 + Remove some unused variables, and initialize some other ones so
2720 gcc doesn't warn us.
2722 2003-04-16 Keith Packard <keithp@keithp.com>
2724 + tag version 2.1.94
2726 2003-04-16 Keith Packard <keithp@keithp.com>
2728 + add BDF property fetching support for foundry
2729 (from Juliusz Chroboczek)
2730 + add BDF property fetching support for width
2732 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2734 + Implemented foundry generation for Type 1 and TrueType
2736 2003-04-11 Gerard Escalante <g2@magestudios.net>
2738 + Retrieve information from Type1 FontInfo dictionaries
2740 2003-04-07 Colin Walters <walters@verbum.org>
2742 + src/Makefile.am: Fix dummy makefile target names when
2743 MS_LIB_AVAILABLE isn't set.
2745 2003-03-22 Tor Lillqvist <tml@iki.fi>
2747 Changes for Windows:
2749 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2751 + We don't want to hardcode the fonts.conf file location in the
2752 DLL, so we look up the DLL location at run-time in a DllMain()
2753 function. The fonts.conf location is deduced from that.
2755 + The colon can't be used as path separator on Windows,
2756 semicolon is used instead. File path components can be separated
2757 with either slash or backslash. Absolute paths can also begin
2758 with a drive letter.
2760 + Add internal function FcStrLastSlash that strrchr's the last
2761 slash, or backslash on Windows.
2763 + There is no link() on Windows. For atomicity checks, mkdir a
2764 lock directory instead.
2766 + In addition to HOME, also look for USERPROFILE.
2768 + Recognize the special font directory token WINDOWSFONTDIR, to
2769 use the system's font directory.
2771 + Remove the fontconfig-def.cpp that was obsolete. Add
2772 fontconfig.def(.in), without internal functions.
2774 + Add a fontconfig-zip(.in) script, used to build a binary
2777 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2778 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2779 to main package and man3/* to devel package
2781 + Added missing defattr(-, root, root) to main RPM package
2783 + Added HTML and text development documentation to -devel subpackage
2785 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2786 + Added back the configure macro options --disable-docs, otherwise
2787 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2788 version number) unconditionally, causing RPM to fail the build due
2789 to _unpackaged_files_terminate_build. We pick up the pregenerated
2790 docs with %doc already.
2792 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2793 + Removed commented out rpm macro define at top of spec file,
2794 replacing it with a simple explanation, since rpm macros are
2795 expanded by rpm even in comments.
2797 + Changed /usr/bin to _bindir in BuildRequires lines
2799 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2801 + Reorganized file manifest lists
2803 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2805 + fontconfig.spec.in: Improvements from Red Hat spec file.
2807 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2809 + docs/*.sgml: SGML fixes.
2811 Sat Mar 1 17:28:53 PST 2003 keithp
2812 + Ok, so the ChangeLog is a bit out of date
2814 + Lots of bugs fixed; most are in bugzilla, the
2815 biggest problems were in cache management where
2816 Owen discovered the library would lose badly when
2817 combining fonts-cache and ~/.fonts-cache data
2819 + Converted from autoconf to automake. This after
2820 getting patches accepted into libtool to allow
2821 the '-version-number' argument which lets
2822 packages set version numbers explicitly rather
2823 than the roundabout libtool way
2825 + Converted documentation to SGML using the docbook
2826 DTD. Now .txt and .html documents are installed
2827 in /usr/share/doc/fontconfig and there's no
2828 man page. Perhaps a man version can be written
2831 Sat Aug 31 15:21:22 PDT 2002 keithp
2832 + Xrender and Xft had several bugs related to
2833 rendering manually placed or poly-face text
2835 + Added more complete memory tracing in fontconfig
2836 Checked with (patched) mozilla and found no leaks
2838 + Updated Latin orthographies by comparing those from
2839 evertype.com with those from eki.ee. Tried to make
2840 sensible choices, including chars that occured in both
2841 and leaving some optional chars out that occured only
2844 Mon Aug 26 16:33:04 PDT 2002 keithp
2845 + Owen discovered that FcLangSetHasLang wasn't actually
2846 checking the language set.
2848 Mon Aug 26 13:37:23 PDT 2002 keithp
2849 + Append a version number to cache filenames
2851 Thu Aug 22 11:36:18 PDT 2002 keithp
2853 + Add "contains" and "not_contains" operators and elements to
2856 + Changed semantics of eq operator for LangSets to check for
2857 FcLangEqual so that any match will do
2859 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2860 of FcValueEqual to check for identical values when inserting into
2861 the results. This broke when the above semantic change was made,
2862 now it uses FcValueEqual which is "more correct" in any case.
2864 Thu Aug 22 00:32:29 PDT 2002 keithp
2866 + Reimplement FC_LANG as new datatype. Lists of strings
2867 was consuming over a megabyte of memory for 401 fonts.
2869 + Freeze patterns loaded from cache files. This shares
2870 common value lists and common patterns which saves
2871 considerable memory.
2873 + Change the denotation of 'constant' charsets to use special
2874 ref value instead of separate boolean.
2876 + Clean up leak tracing stuff, found several unannoted alloc/free
2879 Tue Aug 20 16:17:37 PDT 2002 keithp
2881 + Fix memory leak when parsing matrices from XML
2883 Mon Aug 19 11:57:27 PDT 2002 keithp
2885 + Fix autoconf files to pass FONTCONFIG_PATH on
2886 compile line so that ${prefix} gets substituted
2889 + Use getc_unlocked/putc_unlocked on systems that
2890 provide them to avoid damage done to stdio by posix
2892 + Eliminate FC_PATTERN and FcTypePattern in favor of
2893 an extended api for FcConfigSubstitute which takes
2894 both the font and the pattern.
2896 + Add 'sans serif' alias for 'sans-serif' as some apps
2897 can't handle hyphens in family names
2899 + Eliminate pretense of support for libxml2
2901 + Comment origins of Han orthographies
2903 Tue Jul 30 18:37:09 PDT 2002 keithp
2905 + Add binding property to edit element so that strong
2906 binding values may be inserted by the config file.
2907 The default remains weak.
2909 Sun 28 Jul 04:16:55 PDT 2002 keithp
2911 + Tagged release candidate 1 in the CVS tree and
2912 placed fcpackage.rc1.tar.gz for distribution
2914 Thu Aug 1 08:55:08 PDT 2002 keithp
2916 + Fixed autoconf builds to always specify install
2917 target files (for BSD). Also fixed to
2918 define FONTCONFIG_PATH in config.h so that
2919 nonstandard installs will actually work.