1 2006-03-08 Patrick Lam <plam@mit.edu>
4 Ignore debian/ directory for CVS.
6 2006-03-08 Patrick Lam <plam@mit.edu>
9 Now remove debian/ directory.
11 2006-03-08 Patrick Lam <plam@mit.edu>
14 Remove debian/ directory from sources. See Debian's subversion
15 server at svn://svn.debian.org/pkg-freedesktop/trunk/fontconfig
18 2006-03-08 Denis Jacquerye <moyogo@gmail.com>
22 * fc-lang/iso639-1, fc-lang/iso639-2:
24 Add orthography for Lingala.
26 2006-03-08 Carl Worth <cworth@cworth.org>
30 * conf.d/10LohitGujarati.conf:
32 Add a configuration file that disables hinting for the Lohit
33 Gujarati font (since the hinting distort some glyphs quite badly).
35 2006-03-08 Egmont Koblinger <egmont@uhulinux.hu>
38 * src/fcdir.c (FcDirScanConfig):
40 Sort directory entries while scanning them from disk;
41 prevents Heisenbugs due to file ordering in a directory.
43 2006-03-07 Behdad Esfahbod <behdad@cs.toronto.edu>
46 * src/fcfreetype.c (GetScriptTags):
47 * src/ftglue.c, src/ftglue.h:
49 Remove stuff we don't use, make get_{char,short,long} functions
50 of ftglue macros to be inlined.
53 * src/fcname.c (FcObjectSerialize):
55 Code cleanups (excess prototype, old-style function definition).
57 2006-03-05 Patrick Lam <plam@mit.edu>
58 * src/fcpat.c (FcPatternGetString):
60 Because we hacked FcPatternGet, we don't really need to expand the
61 filename again in FcPatternGetString.
63 2006-03-05 Patrick Lam <plam@mit.edu>
64 * src/fcpat.c (FcPatternGetString, FcPatternGet):
66 Ok, so some people (wine!) use FcPatternGet to fetch FC_FILE.
67 Make that work. Reported by Bernhard Rosenkraenzer.
69 2006-03-03 Patrick Lam <plam@mit.edu>
72 Include inttypes.h instead of stdint.h if appropriate.
74 2006-03-03 Patrick Lam <plam@mit.edu>
75 * fc-cat/fc-cat.c (FcFileIsDir):
76 * fc-glyphname/fc-flyphname.c:
78 More stub definitions and remove FcFileIsDir from fc-cat.
80 2006-03-03 Patrick Lam <plam@mit.edu>
83 Fix compilation on AIX with stub definitions (bug 6097).
85 2006-03-03 Patrick Lam <plam@mit.edu>
86 * src/fccache.c (FcCacheSkipToArch, FcDirCacheProduce):
87 * src/fcfreetype.c (GetScriptTags):
88 * src/fcfs.c (FcFontSetDistributeBytes):
89 * src/fcpat.c (FcValueListEntCreate, FcValueListNeededBytes):
91 Get rid of C++-style comments.
93 2006-03-03 Patrick Lam <plam@mit.edu>
96 Enable creation of 2.3.94 Debian packages.
98 2006-03-02 Egmont Koblinger <egmont@uhulinux.hu>
101 * src/fclang.c (FcCharSetForLang):
103 Fix suspicious return expression which causes junk
106 2006-02-24 Patrick Lam <plam@mit.edu>
110 * fontconfig/fontconfig.h:
112 Bump version to 2.3.94.
114 2006-02-24 Patrick Lam <plam@mit.edu>
119 2006-02-24 Patrick Lam <plam@mit.edu>
120 * conf.d/10-fonts-persian.conf:
122 Remove unconditional emboldening (per Behdad's instructions).
126 Add @s to hide some echos.
128 2006-02-24 Mike Fabian <mfabian@suse.de>
129 Takashi Iwai <tiwai@suse.de>
132 * src/fcfreetype.c (GetScriptTags):
134 Fix double-free on error case.
136 2006-02-21 Patrick Lam <plam@mit.edu>
137 * fc-lang/fc-lang.c (scan):
139 Strip \r and whitespace from input; fixes bug 3454.
141 2006-02-21 Patrick Lam <plam@mit.edu>
142 * fc-lang/fc-lang.c (main):
144 Allocate large arrays statically in fc-lang to fix crashes under
147 2006-02-21 Diego Petten <flameeyes@gentoo.org>
148 * src/fcfreetype.c (FcFreeTypeCharIndex):
150 Pass the buck; make fontconfig not crash on pango badness.
152 2006-02-21 Patrick Lam <plam@mit.edu>
153 * conf.d/10-fonts-persian.conf:
155 Use embeddedbitmap rather than rh_prefer_bitmap.
157 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
160 * src/fccache.c (FcDirCacheWrite):
161 * src/fcdir.c (FcFileScanConfig):
162 * src/fcfreetype.c (FcStringInPatternElement):
163 * src/fcxml.c (FcParseFamilies):
164 * src/ftglue.c (ftglue_face_goto_table):
166 Eliminate redundancies.
168 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
171 * fc-list/fc-list.c (main):
172 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
173 * src/fcstr.c (FcStrStr):
174 * src/fcxml.c (FcConfigSaveAttr):
176 Eliminate unused vars reported by Intel's compiler.
178 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
183 Remove one more archaic character.
185 2006-02-21 Ross Burton <ross@burtonini.com>
186 reviewed by: plam, keithp
188 * src/fcxml.c (FcParsePatelt):
190 Freeze patterns created by configuration file for tiny
191 memory savings (every little bit helps).
193 2006-02-21 Mike Fabian <mfabian@suse.de>
196 * fc-cat/fc-cat.c (main):
198 Initialize fontconfig library in fc-cat to avoid segfault.
200 2006-02-18 Patrick Lam <plam@mit.edu>
201 * fc-cache/fc-cache.c (scanDirs):
202 * src/fccache.c (FcCacheReadDirs):
203 * src/fcdir.c (FcDirScanConfig):
205 Fix the underlying cause of the below segfault (must usually
206 call FcDirCacheHasCurrentArch after FcDirCacheValid).
208 2006-02-18 Patrick Lam <plam@mit.edu>
209 * src/fccache.c (FcDirCacheHasCurrentArch):
211 Fix triggering of segfault caused by misreading cache files
212 (reported by fcrozat).
214 2006-02-17 Patrick Lam <plam@mit.edu>
215 * src/fcint.h (FC_CACHE_MAGIC):
217 Bump up magic version; we changed the binary format.
219 2006-02-17 Patrick Lam <plam@mit.edu>
220 * fc-cat/fc-cat.c (main):
222 Enable fc-cat to print out old-style cache info when given a
225 2006-02-16 Patrick Lam <plam@mit.edu>
226 * src/fccache.c (FcDirCacheHasCurrentArch):
228 Deal correctly with changing FC_CACHE_MAGIC.
230 2006-02-16 Patrick Lam <plam@mit.edu>
231 * fc-cache/fc-cache.c (usage, scanDirs, main):
233 Add -r --really-force option which blows away cache files and then
236 2006-02-16 Patrick Lam <plam@mit.edu>
237 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
239 Don't bail if fontconfig can't remove a dir cache file.
240 Skip the ID of a cache file when copying.
241 Eliminate 'source file too small' bug in FcDirCacheWrite.
243 2006-02-13 Patrick Lam <plam@mit.edu>
244 * src/fcfreetype.c (FcFreeTypeQuery):
246 Fix memory leak in error condition code.
248 2006-02-13 Mike Fabian <mfabian@suse.de>
250 * src/fcfreetype.c (FcFreeTypeQuery):
252 Skip bitmap fonts which can't even get it together enough to
253 declare a family name; this appears to reproduce previous
254 fontconfig behaviour.
256 2006-02-10 Takashi Iwai <tiwai@suse.de>
258 * src/fccache.c (FcDirCacheOpen):
260 Try to open /var/cache/fontconfig/[hashed name] before
261 fonts.cache-2 in a directory, because /var/cache/fontconfig
262 failures ought to be fixable, unlike fonts.cache-2 failures,
263 which may leave you screwed.
265 2006-02-10 Takashi Iwai <tiwai@suse.de>
267 * src/fcmatch.c (FcFontSetMatch):
269 Use a tri-state to mark the fonts which didn't get blocked but
270 were just missing an element, to distinguish them from the
271 fonts that do match the element.
273 2006-02-10 Takashi Iwai <tiwai@suse.de>
275 * src/fcmatch.c (FcFontSetMatch):
277 Don't kill fonts because they don't declare an element that's
280 2006-02-09 Patrick Lam <plam@mit.edu>
281 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
282 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
284 Define and pass O_BINARY to open if appropriate, for those
285 platforms that need it. Reported by Doodle.
287 2006-02-09 Patrick Lam <plam@mit.edu>
288 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
291 Fix problem with missing 'en' due to euro.patch: change
292 cache file format slightly to coincide with that generated
295 2006-02-07 Patrick Lam <plam@mit.edu>
296 * src/fccache.c (FcCacheReadDirs):
300 2006-02-07 Patrick Lam <plam@mit.edu>
301 * src/fcdir.c (FcDirScanConfig):
303 Don't reject dirs that can't be normalized (fixes lilypond, and
304 is correct in the context of application font directories.)
306 2006-02-07 Takashi Iwai <tiwai@suse.de>
309 * src/fccache.c (FcCacheReadDirs):
311 Use normalized directory name exclusively in FcCacheReadDirs.
313 2006-02-07 Dirk Mueller <dmueller@suse.com>
316 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
318 Perf optimizations. Inline FcValueCanonicalize,
319 reduce FcValueListPtrU usage, remove redundant cast.
321 2006-02-07 Takashi Iwai <tiwai@suse.de>
324 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
327 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
328 Declare extern for static arrays as arrays, not pointers.
329 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
331 2006-02-07 Dirk Mueller <dmueller@suse.com>
344 Add Euro sign to list of symbols required by European languages.
346 2006-02-07 Patrick Lam <plam@mit.edu>
347 * src/fccache.c (FcCacheReadString):
349 Fix hidden variable warning.
351 2006-02-07 Dirk Mueller <dmueller@suse.com>
354 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
356 Remove de-escaping logic because FcCacheWriteString
357 doesn't escape anyway. Do blockwise reading instead
358 of byte-wise for performance.
360 2006-02-06 Patrick Lam <plam@mit.edu>
361 Takashi Iwai <tiwai@suse.de>
363 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
365 Don't loop infinitely on recursive symlinks (client-side).
367 2006-02-06 Takashi Iwai <tiwai@suse.de>
369 * fc-cache/fc-cache.c (scanDirs, main):
371 Don't loop infinitely on recursive symlinks.
373 2006-02-06 Takashi Iwai <tiwai@suse.de>
375 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
376 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
377 FcGlobalCacheSave, FcCacheReadDirs):
380 Skip subdirs when skipping over stale bits of global cache.
381 Introduce state machine into FcGlobalCacheDir to avoid
382 doing inappropriate operations on global dir entries, e.g.
383 writing out an out-of-date cache entry.
385 2006-02-06 Takashi Iwai <tiwai@suse.de>
387 * src/fcdir.c (FcFileScanConfig):
389 Hoist FcFileIsDir check out of FcFileScanConfig loop.
391 2006-02-06 Takashi Iwai <tiwai@suse.de>
394 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
395 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
397 Don't rescan when trying to normalize a non-declared font dir.
398 Don't add font dirs multiple times (even if they're aliased).
400 2006-02-06 Dirk Mueller <dmueller@suse.de>
403 * src/fcfs.c (FcFontSetUnserialize):
405 Explain apples/oranges comparison and fix compilation error.
407 2006-02-06 Dirk Mueller <dmueller@suse.de>
410 * src/fcfs.c (FcFontSetUnserialize):
412 Insert check for integer overflow in # of fonts.
414 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
418 * fc-cache/Makefile.am:
419 * fc-cat/Makefile.am:
420 * fc-list/Makefile.am:
422 Make 'make distcheck' work with automake 1.6.3.
424 2006-02-03 Takashi IWAI <tiwai@suse.de>
427 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
430 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
431 FcDirCacheConsume, FcDirCacheWrite)
432 * src/fcxml.c (FcConfigMessage):
434 Check I/O call return values and eliminate unused variable
437 2006-02-03 Takashi Iwai <tiwai@suse.de>
440 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
444 2006-02-03 Dirk Mueller <dmueller@suse.de>
447 * src/fcfs.c (FcFontSetUnserialize):
449 Gracefully handle the case where a cache asserts that it
450 has a negative number of fonts, causing overflow.
452 2006-02-03 Patrick Lam <plam@mit.edu>
453 * src/fccache.c (FcDirCacheUnlink):
455 Fix double free in error case.
457 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
458 Stephan Kulow <coolo@suse.de>
461 * fc-cache/Makefile.am:
463 Replace 'stamp' target with mkinstalldirs.
465 2006-01-31 Mike Fabian <mfabian@suse.de>
468 * src/fccache.c (FcGlobalCacheLoad):
470 Toast broken global cache files.
472 2006-01-30 Patrick Lam <plam@mit.edu>
473 * src/fccache.c (FcGlobalCacheReadDir):
475 Actually use the directories that I added to the global cache.
478 2006-01-30 Mike Fabian <mfabian@suse.de>
481 * fc-cache/fc-cache.c (scanDirs):
483 Don't stop scanning if a directory in fonts.conf doesn't
484 exist, because subsequent directories might exist.
486 2006-01-30 Patrick Lam <plam@mit.edu>
487 * src/fccache.c (FcGlobalCacheLoad):
489 Make global cache work again after putting dir names into global
490 cache (I misplaced the recording of a file offset).
492 2006-01-30 Patrick Lam <plam@mit.edu>
493 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
495 Update fc-cat to handle subdir lists in global cache file.
497 * src/fccache.c (FcGlobalCacheLoad):
499 Another FcCacheReadString return value check.
501 2006-01-30 Mike Fabian <mfabian@suse.de>
504 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
505 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
507 Make fccache more resilient to broken cache files by checking
508 return value of FcCacheReadString all the time.
510 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
513 * fc-match/fc-match.1:
514 * fc-lang/fc-lang.man:
516 Remove references to dead fontconfig(3) manpages in
517 other fontconfig manpages.
519 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
522 * doc/fcpattern.fncs:
524 Fix world's tiniest typo in code example.
526 2006-01-29 Mike Fabian <mfabian@suse.de>
529 * src/fccache.c (FcGlobalCacheReadDir):
531 Fix global cache reads of subdirectories.
533 2006-01-29 Patrick Lam <plam@mit.edu>
535 Add documentation for FcConfigNormalizeFontDir.
537 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
538 FcGlobalCacheUpdate, FcGlobalCacheSave):
539 * src/fcdir.c (FcDirScanConfig):
542 Write directory information to global caches to fix make check
543 (reported by Ronny V. Vindenes). This changes the global cache
546 2006-01-27 Patrick Lam <plam@mit.edu>
547 * fc-cache/fc-cache.c (scanDirs):
548 * fontconfig/fontconfig.h:
550 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
552 Move FcConfigNormalizeFontDir call so that it doesn't result in
553 infinite recursion (reported by Ronny V. Vindenes).
555 2006-01-26 Patrick Lam <plam@mit.edu>
556 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
557 * src/fccfg.c (FcConfigNormalizeFontDir):
559 Add a couple of missing normalizations to make fc-cache work
560 right; only scan subdirectories once.
562 2006-01-26 Mike Fabian <mfabian@suse.de>
565 * src/fcacache.c (FcGlobalCacheReadDir):
567 Don't crash on non-existant directories in global cache.
569 2006-01-26 Patrick Lam <plam@mit.edu>
570 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
571 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
572 * src/fcdir.c (FcDirScanConfig):
573 * src/fcxml.c (FcEndElement):
575 Stop trampling the directory name when writing out caches.
576 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
577 subdirs when necessary. Don't scan directories that can't be
580 2006-01-25 Patrick Lam <plam@mit.edu>
581 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
582 * src/fccfg.c (FcConfigEvaluate):
583 * src/fcfreetype.c (FcPatternAddWithBinding):
585 Fix additional memory leaks reported by Ronny V. Vindenes: don't
586 invoke FcValueSave on hashed static strings in
587 FcPatternAddWithBinding.
589 Add another st_dev check in FcDirCacheOpen.
591 2006-01-24 James Su <james.su@gmail.com>
594 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
595 * fc-lang/zh_hk.orth:
597 Treat zh-hk fonts differently from zh-tw fonts. This patch may
598 cause fontconfig to treat A-X fonts differently from A-Y fonts;
599 please mail the fontconfig list if this causes any problems.
601 2006-01-24 Patrick Lam <plam@mit.edu>
602 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
603 * src/fcfreetype.c (FcFreeTypeQuery):
605 Fix memory leaks reported by Ronny V. Vindenes.
607 2006-01-19 Andreas Schwab <schwab@suse.de>
610 * src/fcpat.c (FcStrNeededBytes):
612 Fix for unaligned memory accesses.
614 2006-01-18 Mike Fabian <mfabian@suse.de>
617 * src/fcdir.c (FcDirScanConfig):
619 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
620 calls to avoid crashes.
622 2006-01-14 Patrick Lam <plam@mit.edu>
623 * src/fccache.c (FcDirCacheConsume):
625 Fix segfault when consuming zero-length caches in fc-cat
626 (which has no config, so FcConfigAddFontDir shouldn't be called.)
628 2006-01-14 Patrick Lam <plam@mit.edu>
629 * fc-cache/fc-cache.c (scanDirs):
630 * fontconfig/fontconfig.h:
631 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
632 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
633 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
634 * src/fcdir.c (FcDirScanConfig):
637 Compare device numbers as well as inodes.
638 Always normalize directory names before comparing them.
640 2006-01-11 Mike Fabian <mfabian@suse.de>
643 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
645 Allocate extra space for appended '/' in directory name.
647 2006-01-10 Patrick Lam <plam@mit.edu>
648 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
649 FcDirCacheValid, FcDirCacheHasCurrentArch,
650 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
651 * fc-cache/fc-cache.c (main):
653 Explicitly add font dirs to config.fontDirs even if they're empty.
654 Set current config in fc-cache.c.
655 Fix treatment of cache directory as read from cache file; don't
656 use string equality to determine if we have the right file,
659 2006-01-09 Patrick Lam <plam@mit.edu>
660 * fc-cache/fc-cache.c (scanDirs):
661 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
662 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
663 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
664 * src/fccfg.c (FcConfigNormalizeFontDir):
665 * src/fcdir.c (FcDirScanConfig):
668 Normalize font dirs by using the form, as given in fonts.conf, and
669 recorded in FcConfig's fontDirs string set, as canonical.
671 Actually update config.fontDirs as font directories are scanned.
673 2006-01-08 James Su <james.su@gmail.com>
674 * src/fcmatch.c (FcFontSetMatch):
676 Fix matching bug when multiple elements match; don't use
677 the sum of all scores, but the best score.
679 Also more perf opts, e.g. evaluate best over all font sets
680 rather than on a per-set basis (and other changes).
682 2006-01-08 Patrick Lam <plam@mit.edu>
683 * src/fccache.c (FcDirCacheConsume):
685 Properly skip past dir caches that contain zero fonts (as occurs
686 in global caches.) Reported by Mike Fabian.
688 2006-01-06 Patrick Lam <plam@mit.edu>
689 * src/fcdbg.c (FcPatternPrint):
691 Print out full pathname in fc-match -v as well. Reported by
694 2006-01-06 Mike Fabian <mfabian@suse.de>
697 * src/fcname.c (FcNameParse):
699 Fix bug where fc-match crashes when given __DUMMY__ property to
702 (I added the __DUMMY__ string to enable callers of
703 FcObjectToPtrLookup to distinguish an error return from a
704 successful return. -PL)
706 2006-01-05 Patrick Lam <plam@mit.edu>
709 Add self to AUTHORS list.
711 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
712 FcCacheFileRead, FcCachePrintSet, main):
713 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
714 FcGlobalCacheSave, FcCacheNextOffset,
715 FcDirCacheHasCurrentArch, FcDirCacheRead,
716 FcDirCacheConsume, FcDirCacheWrite):
718 * src/fcpat.c (comment):
720 Minor change to global cache file format to fix fc-cat bug
721 reported by Frederic Crozat, and buglet with not globally caching
722 directories with zero fonts cached.
724 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
727 * src/fccfg.c (FcConfigEvaluate):
729 Fix double-free which occurs because FcValueCanonicalize doesn't
730 create an extra copy of the returned value, it only canonicalizes
733 2006-01-02 Patrick Lam <plam@mit.edu>
734 * doc/fontconfig-user.sgml:
736 Fix version of .cache file (currently 1 -> currently 2). Reported
739 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
742 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
744 Shut up GCC warnings on amd.
746 2005-12-20 Patrick Lam <plam@mit.edu>
750 * fontconfig/fontconfig.h:
752 Bump version to 2.3.93.
754 2005-12-20 Patrick Lam <plam@mit.edu>
755 * src/fccharset.c (FcLangCharSetPopulate):
756 * src/fcint.h (FcCacheBankToIndex):
758 Avoid check on _fcBankId nullness and fix case where it used to
761 2005-12-20 Patrick Lam <plam@mit.edu>
762 * src/fcxml.c (FcConfigParseAndLoad):
764 Use open instead of fopen (requested by Phil Race for Sun).
766 2005-12-20 Patrick Lam <plam@mit.edu>
767 * src/fccache.c (FcDirCacheWrite);
768 * fc-cache/Makefile.am:
770 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
773 2005-12-20 Patrick Lam <plam@mit.edu>
774 * src/fcfreetype.c (FcFreeTypeQuery):
776 Restore code to skip over PCF fonts that have no encoded
778 (We guess that a font is PCF by presence of the PIXEL_SIZE
781 2005-12-12 Patrick Lam <plam@mit.edu>
782 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
784 Read and write the original location as a fallback for the
785 hashed cache file locations. This is mostly for users to be
786 able to have per-directory cache files.
788 2005-12-12 Patrick Lam <plam@mit.edu>
789 * fc-cache/fc-cache.c (scanDirs):
790 * fc-cache/Makefile.am:
791 * src/fccache.c (FcDirCacheHashName):
793 Improve error message when fc-cache can't write the cache. Add
794 missing slash. Reported by Behdad. Incorporate Behdad's patch to
795 create /var/cache/fontconfig when appropriate.
797 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
800 * src/fcxml.c (FcConfigGetAttribute):
802 Fix crash reported by Frederic Crozat when using libxml2.
804 2005-12-09 Patrick Lam <plam@mit.edu>
807 * fc-cache/Makefile.am:
808 * fc-cat/Makefile.am:
810 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
811 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
812 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
813 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
814 FcDirCacheHasCurrentArch, FcDirCacheHashName,
815 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
817 Migrate cache files from fonts directories to
818 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
819 but requires that all caches get rebuilt.
821 Also, autogen.sh now needs the additional parameter
822 --localstatedir=/var.
824 2005-12-07 Patrick Lam <plam@mit.edu>
825 * src/fcpat.c (FcPatternAddString):
827 Because we've changed FcPatternAddString to use FcStrStaticName
828 and not FcValueSave, explicitly handle the case of a null string.
830 2005-12-06 Patrick Lam <plam@mit.edu>
831 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
835 2005-12-05 Patrick Lam <plam@mit.edu>
836 * src/fcname.c (FcNameGetObjectType):
838 Don't assign types to user object names.
840 2005-12-05 Patrick Lam <plam@mit.edu>
841 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
843 Don't free strings that have been returned from FcStrStaticName.
845 2005-12-01 Patrick Lam <plam@mit.edu>
846 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
848 Add codepath for reading global cache files as well.
850 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
853 * conf.d/10-fonts.persian.conf:
854 * conf.d/Makefile.am:
856 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
858 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
861 * src/fcxml.c (FcConfigParseAndLoad):
863 Only add a config file to the set of config files once.
865 2005-11-29 Patrick Lam <plam@mit.edu>
866 * src/fcint.h (FcCacheBankToIndex);
868 Fix segfault by guarding array dereference.
870 2005-11-29 Dirk Mueller <dmueller@suse.de>
874 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
875 FcCacheBankToIndex, FcCacheBankToIndexMTF,
879 Refactor FcCacheBankToIndex into an inlineable part
880 (in fcint.h) which checks the front of the list and a
881 non-inlineable part which finds and moves the appropriate element
882 to the front of the list.
884 2005-11-29 Patrick Lam <plam@mit.edu>
885 * src/fccfg.c (FcConfigBuildFonts):
886 * src/fccache.c (FcCacheReadDirs):
888 Make the perf guys hate me a bit less: hoist the directory-name
889 FcConfigAcceptFont check for cached fonts up to directory cache
890 read time, rather than running it for each font.
892 2005-11-29 Patrick Lam <plam@mit.edu>
893 * src/fccfg.c (FcConfigBuildFonts):
895 * src/fcpat.c (FcPatternFindFullFname):
897 Don't make FcPatternFindFullFname available to fccfg, it's not
898 really safe. Instead go through FcPatternGetString (sorry,
899 perf guys.) Also, use globs for dirs as well.
901 2005-11-28 Patrick Lam <plam@mit.edu>
902 * src/fccfg.c (FcConfigBuildFonts):
906 2005-11-28 Patrick Lam <plam@mit.edu>
908 * src/fcpat.c (FcPatternFindFullFname):
909 * src/fccfg.c (FcConfigBuildFonts):
911 Fix problem dating back at least to 2.3.2 where globs weren't
912 being applied to patterns loaded from a cache.
914 2005-11-28 Patrick Lam <plam@mit.edu>
915 * doc/fontconfig-user.sgml:
917 Fix some obvious spelling mistakes.
919 2005-11-28 Dirk Mueller <dmueller@suse.com>
920 Stephan Kulow <coolo@suse.de>
923 * src/fcmatch.c (FcFontSetMatch):
925 Don't kill all fonts during match (oops!)
928 2005-11-25 Dirk Mueller <dmueller@suse.com>
929 Stephan Kulow <coolo@suse.de>
930 Michael Matz <matz@suse.de>
933 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
936 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
937 inline FcCompare into FcFontSetMatch and reorder the
938 loops, adding a boolean array which blocks patterns from future
939 consideration if they're known to not be best on some past
942 2005-11-26 Dirk Mueller <dmueller@suse.com>
945 * src/fcmatch.c (FcCompareValueList):
949 2005-11-25 Patrick Lam <plam@mit.edu>
950 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
952 Don't do random matching when bad objects are passed into
955 2005-11-25 Patrick Lam <plam@mit.edu>
957 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
958 FcPatternSerialize, FcPatternUnserialize,
959 FcValueListEnsureBank, FcValueListDistributeBytes,
960 FcValueListUnserialize):
962 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
963 _fcPatternElts, _fcValueLists for consistency.
965 2005-11-25 Dirk Mueller <dmueller@suse.com>
970 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
972 2005-11-25 Patrick Lam <plam@mit.edu>
974 * src/fccache.c (FcDirCacheConsume):
975 * src/fccharset.c (FcCharSetUnserialize):
976 * src/fcfs.c (FcFontSetUnserialize):
977 * src/fclang.c (FcLangSetUnserialize):
978 * src/fcname.c (FcObjectUnserialize):
979 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
980 FcPatternUnserialize):
982 Pass around FcCache *s to the Unserialize functions for extra
983 consistency (and less overhead, for what that's worth).
985 2005-11-24 Dirk Mueller <dmueller@suse.com>
989 * src/fcmatch.c (FcCompare*, FcFontSetSort):
990 * src/fcname.c (FcNameUnparseValue):
992 Inline the *PtrU functions to gain perf.
993 Remove unneeded params for the FcCompare* functions.
995 2005-11-24 Dirk Mueller <dmueller@suse.com>
998 * src/fcint.h, fontconfig/fontconfig.h:
1000 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
1002 * src/fcpat.c, src/fcint.h, src/fcname.c:
1004 Check for type validity during FcPatternAddWithBinding, don't
1005 verify type in FcFontMatch, don't call FcCanonicalize here
1006 (which always does a deep copy).
1008 2005-11-24 Dirk Mueller <dmueller@suse.com>
1011 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
1012 * src/fcpat.c (FcPatternAddWithBinding):
1014 Make FcCompareString and FcCompareFamily less expensive.
1015 Only add a value for FC_FAMILY if the proposed value is a string.
1017 2005-11-24 Dirk Mueller <dmueller@suse.com>
1020 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
1021 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
1022 * src/fcint.h (FcDebug):
1024 Inline FcDebug invocations and only initialize once, in FcInit*.
1025 Improve debug msg in FcPatternPrint.
1027 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1030 * fontconfig/fontconfig.h:
1033 Minor code warning cleanups.
1035 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1038 * fc-match/fc-match.c (main):
1040 Make getopt_long accept -s parameter to fc-match as well.
1042 2005-11-21 Dirk Mueller <dmueller@suse.com>
1045 * src/fcmatch.c (FcCompareValueList):
1047 Manually perform inlining & partial redundancy elimination to
1048 reduce calls to FcValueListPtrU.
1050 2005-11-21 Dirk Mueller <dmueller@suse.com>
1053 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
1054 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
1056 Only invoke strlen() when really necessary.
1058 2005-11-19 Matthias Clasen <mclasen@redhat.com>
1062 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
1063 FcFontCapabilities):
1067 Get rid of the use of freetype internal headers in fcfreetype.c,
1068 since those headers will go away with freetype 2.2. Replace with
1069 public domain ftglue code from pango. Note that the patch removes
1070 some extra error checking in FT_Get_BDF_Property() and comments
1071 out the skipping of empty pcf fonts.
1073 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
1076 * fc-lang/fc-lang.c (main):
1078 Further fix of patch from 2005-11-04: miscounted numbers count
1079 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
1080 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
1082 Removed leafidx_count and numbers_count since they are the same
1083 and replaced them with offset_count.
1085 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1088 * fc-cat/fc-cat.c (main):
1090 Don't crash when fc-cat invoked with no arguments.
1092 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1095 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
1097 Fix invalid read access caused by premature free and
1098 GCC4 warnings in libxml2 codepath.
1100 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
1103 * src/fccfg.c (FcConfigValues):
1105 List iteration not needed in FcConfigValues, since it's building
1106 up the list itself; we can just strip FcVoid elements during
1109 2005-11-17 Patrick Lam <plam@mit.edu>
1110 * src/fccfg.c (FcConfigValues):
1112 Fix crash on invalid constants in config files (forgot to update
1113 a pointer upon list iteration.)
1115 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
1118 * src/fcxml.c (FcTypecheckExpr):
1120 Complain about invalid constants in config files.
1122 2005-11-17 Andreas Schwab <schwab@suse.de>
1125 * src/fccache.c (FcGlobalCacheSave):
1127 Don't add current_arch_start more than once.
1129 2005-11-16 Patrick Lam <plam@mit.edu>
1130 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1131 * src/fcfs.c (FcFontSetUnserialize):
1132 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1133 * src/fcpat.c (FcStrUnserialize):
1135 Fix ordering of ALIGN with respect to saving block_ptr; add
1136 another ALIGN to fcfs.c.
1138 2005-11-16 Patrick Lam <plam@mit.edu>
1139 * src/fccache.c (FcDirCacheProduce)
1141 Fix case where alignment bytes bumped up metadata->count
1142 causing unwarranted failures to write cache files.
1143 (Reported by Stephan Kulow).
1145 2005-11-16 Patrick Lam <plam@mit.edu>
1146 * src/fccache.c (FcDirCacheProduce):
1147 * src/fccharset.c (FcCharSetDistributeBytes):
1148 * src/fcfs.c (FcFontSetDistributeBytes):
1150 * src/fclang.c (FcLangSetDistributeBytes):
1151 * src/fcname.c (FcObjectDistributeBytes):
1152 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1155 Add *NeededBytesAlign(), which overestimates the padding which is
1156 later added by the new ALIGN macro. Fix alignment problems on
1157 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1158 version by Andreas Schwab).
1160 2005-11-16 Stephan Kulow <coolo@kde.org>
1165 Use sysconf to determine proper PAGESIZE value; this
1166 appears to be POSIX-compliant. (reported by Andreas Schwab)
1168 2005-11-04 Patrick Lam <plam@mit.edu>
1169 * fc-lang/fc-lang.c:
1174 Fix bug 2878 (excessive relocations at startup for charsets,
1175 reported by Ross Burton): fc-lang/fc-lang now creates the
1176 static form of the langset, not the dynamic form, so that
1177 the charsets should now be in .rodata.
1179 2005-11-04 Patrick Lam <plam@mit.edu>
1180 * src/fcdir.c (FcDirScanConfig):
1182 Add test for validity of directory caches that
1183 somehow got lost (reported by make distcheck).
1185 2005-11-04 Patrick Lam <plam@mit.edu>
1189 * fontconfig/fontconfig.h:
1191 Bump version to 2.3.92.
1193 2005-11-02 Patrick Lam <plam@mit.edu>
1194 * src/fcpat.c (FcPatternDuplicate):
1196 Fix argument ordering problem in call to FcPatternTransferFullFname.
1198 2005-11-02 Patrick Lam <plam@mit.edu>
1199 * src/fcfreetype.c (FcFreetypeQuery):
1200 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1201 FcPatternTransferFullFname):
1203 Fix warnings and embarrassing double-free error.
1205 2005-11-02 Zhe Su <zsu@novell.com>
1210 Change the rule for artificial emboldening in fonts.conf.in. This
1211 enables the support for artificial emboldening included in cairo.
1213 2005-11-02 Patrick Lam <plam@mit.edu>
1214 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1216 Don't zero out full names for FC_REF_CONSTANT fonts;
1217 also, duplicate full names when transferring, and free
1218 full names when freeing the associated font.
1219 Reported by Jinghua Luo.
1221 2005-11-02 Patrick Lam <plam@mit.edu>
1222 * fc-cache/fc-cache.c (scanDirs):
1223 * src/fcpat.c (FcValueListSerialize):
1225 Revert the previous patch and commit the correct patch:
1226 I forgot a canonicalization in FcValueListSerialize, so
1227 that it would choke on already-serialized input files. Duh!
1229 2005-11-02 Patrick Lam <plam@mit.edu>
1230 * fc-cache/fc-cache.c (scanDirs):
1232 Forcibly rescan a directory before writing a fresh local
1233 cache file for that directory, fixing the losing-fonts
1234 problem reported by Mike Fabian and also apparently the
1235 font cache file corruption.
1237 2005-11-02 Patrick Lam <plam@mit.edu>
1238 * src/fccache.c (FcGlobalCacheLoad):
1240 Fix thinko: actually, the whole global cache is stale
1241 if the global cache is older than the (newest) config file.
1243 2005-11-02 Patrick Lam <plam@mit.edu>
1244 * src/fccache.c (FcGlobalCacheLoad):
1245 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1248 Declare the global cache of a directory's contents to be stale if
1249 the directory is newer than the (newest) configuration file.
1251 2005-10-31 Patrick Lam <plam@mit.edu>
1253 * src/fclist.c (FcListAppend):
1254 * src/fcmatch.c (FcFontRenderPrepare):
1255 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1256 FcPatternFreeze, FcPatternBaseFreeze):
1258 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1259 applications continue breaking.
1261 2005-10-31 Patrick Lam <plam@mit.edu>
1262 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1263 * src/fcfreetype.c (FcFreeTypeQuery):
1265 Fix small memory error (tried to free argv); use basename and
1266 dirname correctly (they can modify their arguments).
1268 2005-10-31 Patrick Lam <plam@mit.edu>
1276 Reinstate basename patch, but keep a hash table linking FcPatterns
1277 to their fully-qualified font names for clients' benefit. Clients
1278 only pay for the font names once they request the FC_FILE property
1279 from an FcPattern, but the font name is malloc'd at that point (i.e.
1280 not mmapped: that's impossible, since it may vary between machines.)
1281 Clients do have to pay for a copy of the path name per cache file.
1283 Note that FcPatternGetString now does some rewriting if you ask
1284 for an FC_FILE, appending the pathname as appropriate.
1286 2005-10-31 Patrick Lam <plam@mit.edu>
1287 * src/fcfreetype.c (FcFreeTypeQuery):
1289 Revert basename patch, which breaks fontconfig clients on my system.
1291 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1294 * fontconfig/fonts.conf.in:
1295 * fontconfig/fontconfig.h:
1299 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1300 to load embedded bitmaps or not.
1302 2005-10-25 Patrick Lam <plam@mit.edu>
1303 * src/fcfreetype.c (FcFreeTypeQuery):
1305 Only add basename to patterns' FC_FILE element, not any part of
1308 2005-10-22 Patrick Lam <plam@mit.edu>
1311 Add some more consts, fixing more GCC4 warnings.
1313 2005-10-22 Zhe Su <zsu@novell.com>
1316 Support localized font family and style names.
1317 This has been reported to break old apps like xfd, but modern
1318 (gtk+/qt/mozilla) apps work fine.
1320 2005-10-21 Patrick Lam <plam@mit.edu>
1321 * src/fccache.c (FcGlobalCacheLoad):
1323 Destroy the global cache file if it's terminally broken. (reported by
1326 2005-10-21 Patrick Lam <plam@mit.edu>
1327 * fc-list/fc-list.c (main):
1328 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1329 * fontconfig/fontconfig.h:
1331 Prevent fc-list from escaping strings when printing them (reported by
1334 2005-10-20 Marcus Meissner <meissner@suse.de>
1337 * fontconfig/fontconfig.h:
1339 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1341 2005-10-14 Ross Burton <ross@burtonini.com>
1344 * fc-glyphname/fc-glyphname.c:
1347 Add consts to variables so as to move arrays into .rodata.
1349 2005-10-14 Mike Fabian <mfabian@suse.de>
1352 * src/fccache.c (FcDirCacheUnlink):
1354 Check existence of directory cache file before attempting to unlink.
1356 2005-10-13 Patrick Lam <plam@mit.edu>
1357 * src/fccache.c (FcDirCacheUnlink):
1359 Fix flipped return value on unlink. (Reported by Mike Fabian)
1361 2005-10-12 Patrick Lam <plam@mit.edu>
1364 * src/fcdir.c (FcDirScanConfig):
1367 When fc-cache is run without --force, use directory cache files
1368 to speed up fc-cache run time. (Reported by Mike Fabian)
1370 2005-10-06 Patrick Lam <plam@mit.edu>
1372 * src/fcname.c (FcObjectToPtr):
1373 * src/fcpat.c (FcStrStaticName):
1375 Add padding to make valgrind and glibc not hate each other
1376 when calling strlen().
1378 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1379 reviewed by: plam & keithp
1383 Modify config file to use Greek fonts before Asian fonts with
1386 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1387 reviewed by: plam & keithp
1391 Use libtool -no-undefined flag on all platforms.
1393 2005-10-05 Patrick Lam <plam@mit.edu>
1394 * src/fccache.c (FcCacheHaveBank):
1396 Implement move-to-front array for banks (perf regression
1397 reported by Ronny V. Vindenes).
1399 2005-10-04 Patrick Lam <plam@mit.edu>
1400 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1401 FcDirCacheHasCurrentArch):
1402 * fc-cache/fc-cache.c (scanDirs):
1403 * fontconfig/fontconfig.h:
1405 Add new API which unlinks directory caches and checks dir caches
1406 for existence of appropriate sections. Fix fc-cache to unlink
1407 stale cache files and save directory caches that lack relevant
1410 2005-10-03 Patrick Lam <plam@mit.edu>
1411 * src/fccache.c (FcDirCacheValid):
1413 Ensure that a directory cache has the appropriate section
1414 before reporting that it is valid (reported by Matthias Clasen).
1416 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1424 Use libxml2 if requested (with --enable-libxml2) or if
1425 expat is not available.
1427 2005-09-29 Patrick Lam <plam@mit.edu>
1428 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1430 Fix multi-arch cache files: compute the position for the
1431 block to be added using info from OrigFile, not NewFile.
1433 2005-09-28 Patrick Lam <plam@mit.edu>
1434 * src/fccache.c (FcCacheMachineSignature):
1436 Cast results of sizeof() to unsigned int to get rid of
1437 warnings on x86_64 (thanks Matthias Clasen).
1439 2005-09-27 Patrick Lam <plam@mit.edu>
1440 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1443 Use FcAtomic to rewrite cache files.
1445 2005-09-27 Patrick Lam <plam@mit.edu>
1447 * src/fccache.c (FcDirCacheWrite):
1449 Don't unlink the fonts.cache-2 file even if there's no data
1450 to write; just write an empty cache file. (thanks Lubos Lunak)
1452 2005-09-27 Patrick Lam <plam@mit.edu>
1454 * src/fccache.c (FcDirCacheWrite):
1456 Allocate room for the subdirectory names in each
1457 directory cache. Thanks to James Cloos for finding
1458 and diagnosing this bug!
1460 2005-09-22 Patrick Lam <plam@mit.edu>
1462 * fc-cache/fc-cache.sgml:
1463 * src/fccache.c (FcDirCacheWrite):
1464 * src/fccache.h (struct FcCache):
1466 Update documentation -- fc-cache's man page now says that you
1467 need to run fc-cache once per cached architecture; add some
1468 documentation to the FcCache structure.
1470 Make fc-cache write out fonts.cache-2 files for directories with
1471 no fonts (i.e. only subdirectories).
1473 2005-09-22 Patrick Lam <plam@mit.edu>
1475 * fc-cache/fc-cache.sgml:
1476 * fc-case/fc-case.c:
1477 * fc-glyphname/fc-glyphname.c:
1483 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1487 * fc-lang/fc-lang.c:
1488 * fontconfig/fcprivate.h:
1489 * fontconfig/fontconfig.h:
1503 Implement new mmaped cache for font information.
1504 Bump so revision to 2.3.90.
1506 2005-07-25 Keith Packard <keithp@keithp.com>
1508 * doc/fontconfig-user.sgml:
1509 * fc-glyphname/fc-glyphname.c: (scan), (main):
1510 * fc-lang/fc-lang.c: (FcConfigHome):
1511 * fc-match/fc-match.c: (main):
1512 * src/fccfg.c: (FcConfigHome):
1513 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1514 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1515 (addtag), (FcFontCapabilities):
1516 * src/fcpat.c: (FcValueListEntCreate):
1517 * src/fcstr.c: (FcStrCaseWalkerInit):
1518 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1520 Various GCC 4 cleanups for signed vs unsigned char
1522 Match only [0-9]*.conf files in <include>{directory}</include>
1523 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1525 2005-07-15 Carl Worth <cworth@cworth.org>
1528 * src/fcinit.c: (FcFini):
1529 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1532 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1533 Pull the FcObjectStateName hash table out to file scope, and add
1534 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1537 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1540 2005-06-16 Patrick Lam <plam@MIT.EDU>
1544 * src/fccfg.c: (FcConfigCompareValue):
1545 Make FcOpNotContains use FcStrStr for strings so that
1546 it matches semantics for !FcOpContains.
1548 2005-05-20 Keith Packard <keithp@keithp.com>
1552 Move fontconfig source package to libs as per override
1554 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1556 reviewed by: Mike Fabian
1559 The ka.orth file requires several characters which are not
1560 used anymore in modern Georgian and which are missing in the free
1561 Georgian TrueType fonts downloadable at:
1563 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1565 2005-04-27 Keith Packard <keithp@keithp.com>
1569 Update date to real 2.3.2 release date.
1570 Fix change attributions
1572 2005-04-27 Keith Packard <keithp@keithp.com>
1575 Bump so revision for 2.3.2
1576 * fc-cache/fc-cache.c: (scanDirs):
1577 Fix a few minor leaks in error cases.
1579 2005-04-23 Keith Packard <keithp@keithp.com>
1584 * fontconfig/fontconfig.h:
1585 Update for version 2.3.2
1587 2005-04-21 Keith Packard <keithp@keithp.com>
1589 * debian/fontconfig.postinst:
1590 Don't force bitmap font enable in default
1591 configuration; allows users to override this in
1601 * debian/po/pt_BR.po:
1602 * debian/po/templates.pot:
1604 * debian/po/zh_CN.po:
1605 Updated translations
1607 * fc-cache/fc-cache.c: (main):
1608 Destroy font configuration on exit to help valgrind
1611 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1612 (FcFreeTypeCheckGlyph):
1613 Use own transcoding routines in preference to iconv
1614 which appears to have leaks in some translators.
1615 Call iconv_close after using iconv (oops).
1617 Prefer unicode encoding of Euro char as some
1618 fonts mis-encode Euro in other ones.
1620 Must fetch bitmap glyphs to get width values
1621 to check for monospace/dual-width fonts.
1623 2005-04-13 Ross Burton <ross@burtonini.com>
1626 Check that a pattern isn't already frozen in FcPatternFreeze.
1628 2005-03-31 Ross Burton <ross@burtonini.com>
1633 Run all FcPattern objects through FcObjectStaticName, so that
1634 compares can be done on pointers instead of strings (#2659)
1636 2005-03-17 Tor Lillqvist <tml@novell.com>
1638 * src/fontconfig.def.in: Add the .dll to the dll name.
1640 2005-03-10 Keith Packard <keithp@keithp.com>
1642 * debian/README.Debian:
1643 Update to reflect configuration changes
1645 * debian/fontconfig.postinst:
1646 Fix Autohint vs Autohinter mistake
1647 * debian/fontconfig.templates:
1648 Adopt changes from Josselin Mouette for configuration descriptions
1649 Update debian to version 2.3.1-2
1651 2005-03-08 Keith Packard <keithp@keithp.com>
1655 Update debian for 2.3.1
1657 2005-03-09 Tor Lillqvist <tml@novell.com>
1659 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1662 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1665 2005-03-08 Keith Packard <keithp@keithp.com>
1669 * fontconfig/fontconfig.h:
1672 2005-03-05 Keith Packard <keithp@keithp.com>
1674 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1675 Include space and remove numbers from valid script tags.
1676 This ensures that tags like 'lao ' work while rejecting
1677 those which have any digits.
1678 Eliminate a spurious debugging variable (len)
1680 2005-03-05 Keith Packard <keithp@keithp.com>
1682 * src/fcfreetype.c: (addtag), (GetScriptTags),
1683 (FcFontCapabilities):
1684 Rework GSUB/GPOS script parsing to survive broken fonts.
1685 Thanks for the broken font go to Manish Singh
1687 2005-03-05 Keith Packard <keithp@keithp.com>
1692 * debian/fontconfig.config:
1693 * debian/fontconfig.templates:
1695 Include 2.3 release information in changelog
1696 Add Josselin Mouette as an Uploader
1697 Set hinting_type to low priority configuration option
1700 * debian/fontconfig.postinst:
1701 yes_bitmaps.conf -> yes-bitmaps.conf
1707 2005-03-02 Keith Packard <keithp@keithp.com>
1710 * conf.d/Makefile.am:
1711 * conf.d/autohint.conf:
1712 * conf.d/no-sub-pixel.conf:
1713 * conf.d/sub-pixel.conf:
1714 * conf.d/unhinted.conf:
1715 * debian/autohint.conf:
1716 * debian/fontconfig.install:
1717 * debian/fontconfig.postinst:
1718 * debian/fontconfig.templates:
1719 * debian/no-sub-pixel.conf:
1720 * debian/unhinted.conf:
1721 Move debian-specific conf file examples upstream.
1723 Sub-pixel configuration examples must smash subpixel value
1724 as Xft always sets it from X.
1726 Change sub-pixel rendering debconf descriptions from
1727 Enable/Disable to Always/Never.
1729 2005-03-02 Keith Packard <keithp@keithp.com>
1732 * conf.d/.cvsignore:
1734 Ignore more build detritus
1737 Add debian package construction stuff.
1739 * config/config.guess:
1740 * config/config.sub:
1741 Update to newer versions of these tools
1744 Get library manuals to build again (we love automake).
1746 * debian/README.Debian:
1747 * debian/autohint.conf:
1752 * debian/fontconfig-udeb.install:
1753 * debian/fontconfig.config:
1754 * debian/fontconfig.defoma:
1755 * debian/fontconfig.dirs:
1756 * debian/fontconfig.install:
1757 * debian/fontconfig.postinst:
1758 * debian/fontconfig.postrm:
1759 * debian/fontconfig.templates:
1760 * debian/libfontconfig1-dev.install:
1761 * debian/libfontconfig1.install:
1762 * debian/local.conf.md5sum:
1763 * debian/no-sub-pixel.conf:
1764 * debian/po/POTFILES.in:
1773 * debian/po/pt_BR.po:
1774 * debian/po/templates.pot:
1776 * debian/po/zh_CN.po:
1778 * debian/unhinted.conf:
1779 Update debian build system to switch maintainers and
1780 deal with 2.3 functionality
1782 2005-03-01 Keith Packard <keithp@keithp.com>
1786 * fontconfig/fontconfig.h:
1789 2005-03-01 Keith Packard <keithp@keithp.com>
1792 Generate and install PDF versions of the manuals
1794 * doc/fcpattern.fncs:
1797 * doc/fcstring.fncs:
1798 Add missing exported functions, fix data types
1800 * doc/fontconfig-devel.sgml:
1801 Add missing pattern elements.
1803 * doc/fontconfig-user.sgml:
1804 Add missing pattern elements. Document conf.d usage,
1805 clarify available orthography list. Fix some config file
1806 attributes. Complete list of constants.
1808 * fontconfig/fontconfig.h:
1809 Mark FC_SOURCE deprecated.
1811 * src/fcfreetype.c: (FcFreeTypeQuery):
1812 Don't set FC_SOURCE any longer.
1814 2005-02-28 Keith Packard <keithp@keithp.com>
1817 * conf.d/Makefile.am:
1819 * conf.d/no-bitmaps.conf:
1820 * conf.d/sub-pixel.conf:
1821 * conf.d/yes-bitmaps.conf:
1823 Create prototype /etc/fonts/conf.d directory with a few
1824 sample configuration files.
1825 Deprecate use of local.conf for local customizations in favor of
1826 this directory based scheme which is more easily integrated into
1827 installation systems.
1830 Tag FC_EMBOLDEN as a boolean variable
1832 2005-02-10 Keith Packard <keithp@keithp.com>
1834 reviewed by: pborelli@katamail.com
1836 * src/fcdir.c: (FcFileScanConfig):
1837 Free patterns from fonts which are rejected by configuration
1840 2005-01-28 Keith Packard <keithp@keithp.com>
1844 * fontconfig/fontconfig.h:
1845 Update for version 2.2.99
1847 2005-01-28 Keith Packard <keithp@keithp.com>
1850 Add a few pointers (#2284, #2285)
1852 2005-01-28 Keith Packard <keithp@keithp.com>
1855 * src/fcname.c: (FcNameBool):
1856 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1857 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1858 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1859 Polite typechecking for test and edit expressions. Helps
1860 catch errors in the font configuration. (bug 229)
1862 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1864 reviewed by: Keith Packard <keithp@keithp.com>
1867 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1869 2005-01-13 Keith Packard <keithp@keithp.com>
1871 * doc/fontconfig-user.sgml:
1872 Add SEE ALSO section (bug 2085)
1874 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1876 reviewed by: Keith Packard <keithp@keithp.com>
1881 * fc-case/Makefile.am:
1882 * fc-glyphname/Makefile.am:
1883 * fc-lang/Makefile.am:
1884 * src/fontconfig.def.in:
1885 Cross compiling fixes (bug 280)
1887 2005-01-13 Keith Packard <keithp@keithp.com>
1890 Update blanks list (Closes bug 86)
1892 2005-01-04 Keith Packard <keithp@keithp.com>
1894 * src/fccache.c: (FcCacheFontSetAdd):
1895 Verify that every font pattern loaded from cache has
1896 both FC_FILE and FC_FAMILY entries.
1897 Attempt to fix bug #2219.
1899 2004-12-29 Keith Packard <keithp@keithp.com>
1903 * fontconfig/fontconfig.h:
1904 Update for version 2.2.98
1906 2004-12-29 Keith Packard <keithp@keithp.com>
1908 * fontconfig/fontconfig.h:
1909 Document ASCII limitations of Fc character conversion macros
1910 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1911 Fix off-by-one error in utf-8 case walking code.
1912 Add FcStrDowncase (useful for testing case conversion functions)
1914 2004-12-29 Keith Packard <keithp@keithp.com>
1917 * fc-case/.cvsignore:
1918 clean up CVS ignore lists
1919 * fc-lang/iso-3166.txt:
1920 Add territory database
1922 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1924 Reviewed by: Keith Packard
1927 Remove Han characters from Korean orthography
1929 2004-12-29 Keith Packard <keithp@keithp.com>
1932 Reorder utility programs to make sure fc-case is run before fc-lang
1933 as fc-lang uses fcstr.c which uses fccase.h
1937 2004-12-29 Keith Packard <keithp@keithp.com>
1940 Adopt some RedHat suggestions for standard font configuration.
1944 * fc-case/CaseFolding.txt:
1945 * fc-case/Makefile.am:
1946 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1947 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1948 (dump), (parseRaw), (caseFoldReadRaw), (main):
1949 * fc-case/fccase.tmpl.h:
1950 Add new helper program 'fc-case' to construct case folding
1951 tables from standard Unicode CaseFolding.txt file
1954 * src/fclist.c: (FcListValueHash):
1955 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1956 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1957 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1958 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1959 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1960 Re-implement case insensitive functions with Unicode
1961 aware versions (including full case folding mappings)
1963 2004-12-13 Keith Packard <keithp@keithp.com>
1965 reviewed by: Owen Taylor <otaylor@redhat.com>
1967 * src/fcmatch.c: (FcFontSetSort):
1968 I changed FcFontSetSort to respect the generic aliases better
1969 in the face of language matching.
1971 What I did was to ammend the strict sort order used by FcFontSort so
1972 that it 'satisfies' the language specified in the pattern by locating
1973 the best matching font supporting each pattern language and then
1974 ignores language in the remaining fonts for purposes of matching.
1976 So, when asking for 'sans:lang=en', you'll get an English font first,
1977 and then the remaining fonts sorted with respect to the 'sans' alias
1978 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1980 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1982 reviewed by: Keith Packard <keithp@keithp.com>
1984 * fontconfig/fontconfig.h:
1987 Configuration changes to request synthetic emboldening of
1988 fonts. The actual emboldening code will live in Xft.
1990 2004-12-09 John Thacker <thacker@math.cornell.edu>
1992 reviewed by: Keith Packard <keithp@keithp.com>
1996 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1997 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1998 и), and don't even appear in KOI8-R. (The hypothesis that they
1999 don't appear in KOI8-R due to their similarity with Latin I and i is
2000 eliminated by their presence in KOI8-U.) I have a couple of fonts
2001 with Russian support that don't have the letter.
2003 Therefore, 0406 and 0456 should be removed from or commented out of
2006 2004-12-06 michael meeks <mmeeks@novell.com>
2008 Reviewed by: Keith Packard <keithp@keithp.com>
2010 * src/fcinit.c: (FcMemReport):
2012 * src/fclist.c: (FcObjectSetAdd):
2013 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
2014 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
2015 * src/fcxml.c: (FcParsePatelt):
2016 memoize strings and share a single copy for all uses. Note that
2017 this could be improved further by using statically allocated blocks
2018 and gluing multiple strings together, but I'm basically lazy.
2019 In my environment with 800 font files, I get a savings of about 90KB.
2021 2004-12-06 Keith Packard <keithp@keithp.com>
2025 * config/Makedefs.in:
2028 * doc/fcatomic.fncs:
2029 * doc/fcblanks.fncs:
2030 * doc/fccharset.fncs:
2031 * doc/fcconfig.fncs:
2032 * doc/fcconstant.fncs:
2034 * doc/fcfontset.fncs:
2035 * doc/fcfreetype.fncs:
2037 * doc/fcmatrix.fncs:
2038 * doc/fcobjectset.fncs:
2039 * doc/fcobjecttype.fncs:
2040 * doc/fcpattern.fncs:
2041 * doc/fcstring.fncs:
2042 * doc/fcstrset.fncs:
2044 * doc/fontconfig-devel.sgml:
2045 * doc/fontconfig-user.sgml:
2047 * doc/version.sgml.in:
2048 * fc-cache/Makefile.am:
2049 * fc-cache/fc-cache.c:
2050 * fc-glyphname/Makefile.am:
2051 * fc-glyphname/fc-glyphname.c:
2052 * fc-glyphname/fcglyphname.tmpl.h:
2053 * fc-lang/Makefile.am:
2063 * fc-lang/az_ir.orth:
2097 * fc-lang/fc-lang.c:
2098 * fc-lang/fc-lang.man:
2099 * fc-lang/fclang.tmpl.h:
2144 * fc-lang/ku_ir.orth:
2177 * fc-lang/ps_af.orth:
2178 * fc-lang/ps_pk.orth:
2207 * fc-lang/ti_er.orth:
2208 * fc-lang/ti_et.orth:
2234 * fc-lang/zh_cn.orth:
2235 * fc-lang/zh_hk.orth:
2236 * fc-lang/zh_mo.orth:
2237 * fc-lang/zh_sg.orth:
2238 * fc-lang/zh_tw.orth:
2240 * fc-list/Makefile.am:
2241 * fc-list/fc-list.c:
2242 * fc-match/Makefile.am:
2243 * fc-match/fc-match.1:
2244 * fc-match/fc-match.c:
2245 * fontconfig/fcfreetype.h:
2246 * fontconfig/fcprivate.h:
2247 * fontconfig/fontconfig.h:
2268 Change files from ISO-Latin-1 to UTF-8
2270 2004-12-04 Keith Packard <keithp@keithp.com>
2273 Update links to new freedesktop.org locations
2275 Add uninstall-local to get rid of fonts.conf and local.conf if they
2276 match the distributed versions. Fixes 'make distcheck'
2278 2004-12-04 Keith Packard <keithp@keithp.com>
2282 * fontconfig/fontconfig.h:
2283 Updates for version 2.2.97
2285 2004-12-04 Owen Taylor <otaylor@redhat.com>
2287 reviewed by: Keith Packard <keithp@keithp.com>
2289 * fc-cache/fc-cache.c: (main):
2290 Sleep for two seconds before exiting to make sure timestamps
2291 for future changes have distinct mod times in the file system.
2294 Add Punjabi orthography. Bug #1671.
2296 2004-12-04 Keith Packard <keithp@keithp.com>
2299 Just remove the FC_FONTDATE -- it has locale issues and
2300 annoys redhat multi-arch installs. Now that all X fonts are
2301 included without prejudice, the chances of the date being at
2302 all interesting are rather limited. Bug #505.
2304 Add copyright and license
2306 2004-12-04 Keith Packard <keithp@keithp.com>
2309 Change default set of fonts to include all of
2310 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2311 * doc/fontconfig-user.sgml:
2312 Document new <include>directory-name</include> semantics
2314 add <include ignore_missing="yes">conf.d</include>
2316 Add selectfont to ignore bitmap fonts, add comment for
2317 selectfont which accepts bitmap fonts.
2320 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2321 Allow <include> configuration elements to reference directories.
2322 Parse and load all files of the form [0-9]* in sorted order.
2324 2004-12-04 Keith Packard <keithp@keithp.com>
2327 Report command line for $srcdir/configure accurately.
2330 2004-12-04 Keith Packard <keithp@keithp.com>
2332 * src/fcfreetype.c: (FcFreeTypeQuery):
2333 Check for non-empty face->family_name and face->style_name
2334 before using those for the font. Empty names match everything.
2337 2004-12-04 Keith Packard <keithp@keithp.com>
2340 * fontconfig/fontconfig.h:
2341 * src/fcfreetype.c: (FcFreeTypeQuery):
2343 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2344 available. This provides font file format information (BDF, Type 1,
2345 PCF, TrueType) for each font. Closes #109.
2347 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2349 reviewed by: Keith Packard <keithp@keithp.com>
2351 * doc/fontconfig-user.sgml:
2354 * fontconfig/fontconfig.h:
2355 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2356 (GetScriptTags), (FcFontCapabilities):
2358 Add detection for font capabilities (bug #105)
2360 2004-12-04 Keith Packard <keithp@keithp.com>
2363 Move existing fonts.conf to fonts.conf.bak
2366 Add detection of iconv
2368 * doc/fcpattern.fncs:
2369 * doc/fontconfig-devel.sgml:
2370 * doc/fontconfig-user.sgml:
2372 Document new selectfont elements
2375 Switch to UTF-8 in comment
2377 * fontconfig/fontconfig.h:
2379 Add fullname, and family/style/fullname language entries
2381 * src/fccache.c: (FcCacheFontSetAdd):
2382 * src/fcdir.c: (FcFileScanConfig):
2383 Respect selectfont/*/glob
2386 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2387 (FcConfigCompareValue), (FcConfigPatternsAdd),
2388 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2389 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2390 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2391 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2392 Add support for selectfont
2394 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2395 (FcStringInPatternElement), (FcFreeTypeQuery):
2396 Add multi-lingual family/style/fullname support
2398 * src/fclist.c: (FcListPatternMatchAny):
2399 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2401 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2402 (FcObjectStaticName):
2403 Add new FcPatternRemove/FcPatternAppend.
2404 FcObjectStaticName stores computed pattern element names which
2405 are required to be static.
2407 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2412 Remove spurious / after $(DESTDIR)
2414 2004-06-30 Keith Packard <keithp@keithp.com>
2418 * fontconfig/fontconfig.h:
2421 2004-06-30 Keith Packard <keithp@keithp.com>
2423 Provided by: Lubos Lunak <l.lunak@suse.cz>
2425 * src/fccfg.c: (FcConfigUptoDate):
2426 However FcConfigUptoDate() doesn't seem to work. See the attached
2427 patch. First there's an obvious misplaced parenthesis making it
2428 return always false, and second, even this call fails to detect font
2429 changes (e.g. adding a new font to
2430 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2431 well. The problem seems to be triggered by my fonts.conf specifying
2432 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2433 doesn't include subdirs, unlike config->fontDirs.
2435 2004-06-03 Keith Packard <keithp@keithp.com>
2437 * fontconfig/fontconfig.h:
2438 Remove comma at end of FcResult enum definition.
2440 2004-05-29 Keith Packard <keithp@keithp.com>
2443 Add steps to md5sum release
2445 2004-05-29 Keith Packard <keithp@keithp.com>
2449 * fontconfig/fontconfig.h:
2452 2004-05-29 Keith Packard <keithp@keithp.com>
2454 * fontconfig/fontconfig.h:
2455 * src/fcmatch.c: (FcFontSetMatch):
2456 Add FcResultOutOfMemory to provide an accurate error when
2457 FcFontSetMatch fails in this way
2460 Make #warning about lacking various FreeType features indicate
2461 which version those features appeared so users know how to
2462 fix the problem (Thanks to Anton Tropashko)
2464 2004-05-05 Keith Packard <keithp@keithp.com>
2466 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2467 Replace MIN/MAX/ABS macros which happen to have come
2468 from FreeType with fontconfig-specific ones (FC_*)
2470 2004-04-23 Keith Packard <keithp@keithp.com>
2473 Extend release preparation instructions to include
2474 notification and distribution steps
2476 2004-04-23 Keith Packard <keithp@keithp.com>
2480 * fontconfig/fontconfig.h:
2481 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2483 2004-04-23 Keith Packard <keithp@keithp.com>
2486 Ignore a few more autotool files
2488 2004-04-14 Keith Packard <keithp@keithp.com>
2491 Add instructions for doing a release
2493 * fontconfig.spec.in:
2494 clean up .spec file; perhaps this will be useful to somebody...
2498 * fontconfig/fontconfig.h:
2501 * fc-lang/fc-lang.c:
2502 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2504 * fc-glyphname/Makefile.am:
2505 * fc-lang/Makefile.am:
2506 * fc-list/Makefile.am:
2507 * fc-match/Makefile.am:
2509 Add WARN_CFLAGS to pass -W flags for GCC systems
2511 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2512 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2513 Change various char types around to match across
2515 Fixed bug in using available_sizes[i].height which
2516 is in pixels, not 64ths of a pixel.
2518 2004-03-06 Keith Packard <keithp@keithp.com>
2520 * src/fcfreetype.c: (FcFreeTypeQuery):
2521 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2522 matches looking for explicit values prefer exact matches
2524 2004-03-02 Keith Packard <keithp@keithp.com>
2526 Supplied by: mfabian@suse.de (Mike FABIAN)
2528 * src/fcfreetype.c: (FcFreeTypeQuery):
2529 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2530 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2532 2004-02-21 Manish Singh <yosh@gimp.org>
2534 * fc-glyphname/fc-glyphname.c: (main):
2535 Cast strlen to int for printf, so we're 64-bit clean.
2537 2004-02-11 Keith Packard <keithp@keithp.com>
2540 * src/fcfreetype.c: (FcGetPixelSize):
2541 Ok, so I messed up the test for y_ppem. Let's see if I
2542 got it right this time.
2544 2004-02-10 Keith Packard <keithp@keithp.com>
2547 * src/fcfreetype.c: (FcGetPixelSize):
2548 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2549 FT_Bitmap_Size record. Add a configure.in test for this
2550 and change the code accordingly (using height instead).
2552 2004-02-06 Keith Packard <keithp@keithp.com>
2555 Add Low Saxon orthography
2556 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2558 * src/fccfg.c: (FcConfigNewestFile):
2559 Oops. Left 'newest.set' unset, which would miscompute
2562 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2563 (FcFreeTypeCheckGlyph):
2564 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2565 font properties (which report the wrong value in current FreeType)
2567 Don't attempt to check for empty glyphs in non-scalable fonts; they
2570 2004-02-01 Tor Lillqvist <tml@iki.fi>
2572 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2573 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2574 cache if config->cache is NULL, which happens if FcConfigHome() is
2575 NULL. Guard against that by using the temp folder in that case.
2577 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2579 * fc-lang/az_ir.orth:
2580 * fc-lang/ku_ir.orth:
2581 * fc-lang/ps_af.orth:
2582 * fc-lang/ps_pk.orth:
2583 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2584 (Afghan and Pakistani).
2586 Updated Urdu orthography with real data.
2588 2003-12-11 Carl Worth <cworth@east.isi.edu>
2590 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2593 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2595 (all-local): Remove excessive whitespace.
2597 * autogen.sh: Add 'set -e' to abort when any program fails,
2598 (avoids printing of 'now type make' after configure aborts).
2600 2003-11-17 Eric Christopherson <rakko@charter.net>
2602 reviewed by: Keith Packard <keithp@keithp.com>
2605 * fontconfig/fcfreetype.h:
2607 Switch to FreeType 2.1.7 style includes. Bug #150.
2609 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2611 * fc-list/fc-list.sgml: Add some example usages.
2613 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2616 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2619 2003-10-27 Keith Packard <keith@keithp.com>
2622 * fontconfig/fontconfig.h:
2623 Update to version 2.2.92
2625 2003-10-27 Keith Packard <keithp@keithp.com>
2630 * fc-cache/Makefile.am:
2631 * fc-glyphname/Makefile.am:
2632 * fc-lang/Makefile.am:
2633 * fc-list/Makefile.am:
2634 * fc-match/Makefile.am:
2637 Yet more cleanups to finish getting 'make distcheck' working
2638 This has been tested to ensure that it even works from a _build
2641 2003-10-26 Keith Packard <keithp@keithp.com>
2645 * fc-cache/Makefile.am:
2646 * fc-glyphname/Makefile.am:
2647 * fc-lang/Makefile.am:
2648 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2649 * fc-list/Makefile.am:
2650 * fc-match/Makefile.am:
2651 Attempts to fix 'make distcheck' work. Things are
2652 progressing pretty well, but there are still failures
2653 long into the process dealing with docs (as always).
2655 The big changes here are mostly to make $(srcdir) != "."
2656 work correctly, fixing the docbook related sections and
2657 fc-lang were particularily tricky. Docbook refuses to load
2658 system entities from anywhere other than where the original .sgml
2659 file was located, so no luck looking in "." for the
2660 configure-generated version.sgml and confdir.sgml files.
2662 fc-lang needed help finding .orth files; added a -d option
2663 to set the directory as the least evil of many options.
2665 Now to go use a faster machine and try and wring out the last
2668 2003-10-26 Keith Packard <keithp@keithp.com>
2672 2003-10-26 Keith Packard <keithp@keithp.com>
2675 Include confdir.sgml.in in EXTRA_DIST
2677 2003-10-09 Josselin Mouette <joss@debian.org>
2679 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2680 * fc-list/fc-list.sgml fc-list/Makefile.am:
2681 Replace fc-cache and fc-list manpages with more detailed, SGML
2684 2003-09-23 Owen Taylor <otaylor@redhat.com>
2686 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2687 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2688 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2691 2003-09-23 Owen Taylor <otaylor@redhat.com>
2693 * fc-lang/ka.orth: Remove Georgian capitals, they
2694 aren't used for normal writing. (Bug #116)
2696 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2698 * doc/fontconfig-devel.sgml:
2699 * doc/fontconfig-user.sgml:
2700 * fontconfig/fontconfig.h:
2702 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2703 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2705 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2706 monospace and dual-width fonts, allow roughly a 3% variance in the
2709 2003-08-31 Manish Singh <yosh@gimp.org>
2711 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2714 2003-08-15 Carl Worth <cworth@isi.edu>
2716 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2717 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2719 * src/fcpat.c (FcValueListEntDestroy): New function to support
2720 FcFini memory cleanup. Some statistics are not kept in
2722 (FcValueListFreeze): Move hashTable outside this function so it
2723 can be accessed by FcValueListThawAll.
2724 (FcValueListThawAll): New function complements FcValueListFreeze.
2725 (FcPatternBaseFreeze): Move hashTable outside this function so it
2726 can be accessed by FcPatternBaseThawAll.
2727 (FcPatternBaseThawAll): New function complements
2728 FcPatternBaseFreeze.
2729 (FcPatternThawAll): New function complements FcPatternFreeze.
2731 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2733 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2734 allocated FcCharLeafEnt "blocks" so they can be freed later.
2735 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2736 can be accessed by FcCharSetThawAllLeaf.
2737 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2738 (FcCharSetFreezeBase): Move hashTable outside this function so it
2739 can be accessed by FcCharSetThawAll.
2740 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2742 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2743 (FcConfigDestroy): Fic leak of FcBlanks.
2745 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2746 (main): Add call to FcFini when finished.
2748 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2749 static. Add prototypes.
2751 * doc/fcinit.fncs: Add documentation for FcFini function.
2753 * doc/edit-sgml.c: Mark several local functions as static. Add
2756 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2758 2003-06-15 Tor Lillqvist <tml@iki.fi>
2760 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2761 before comparing (needed on Windows).
2763 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2765 2003-06-13 Tor Lillqvist <tml@iki.fi>
2767 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2770 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2771 WINDOWSFONTDIR token.
2773 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2774 end, not to confuse libtool, which expects the EXPORTS line to be
2775 the first. Add FcConfigEnableHome.
2777 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2778 built as a DLL on Win32.
2780 2003-06-09 Keith Packard <keithp@keithp.com>
2782 * Tag version 2.2.90
2784 2003-06-09 Keith Packard <keithp@keithp.com>
2786 * Optimization in FcLangSetIndex was broken, occasionally
2787 returning a pointer to the wrong location on miss
2789 * Add fc-match to test font matching from the command line.
2791 2003-05-31 Keith Packard <keithp@keithp.com>
2793 * (Bug 85) add support for culmus fonts
2794 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2795 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2797 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2799 * Fix "contains" op for strings and langsets.
2801 2003-05-17 Keith Packard <keithp@keithp.com>
2803 * Fix build error with BDF prop local. Free langset after query
2805 2003-05-14 Keith Packard <keithp@keithp.com>
2807 * Extract spacing from XLFD atom
2809 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2811 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2812 disappeared in 1.30.
2814 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2816 2003-05-12 Keith Packard <keithp@keithp.com>
2818 * Use FcIsWidth to share code
2820 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2821 misclassifying some Han fonts as monospaced.
2823 2003-05-07 Keith Packard <keithp@keithp.com>
2825 * Add filename-based accept/reject to ammend available fonts.
2827 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2828 older FreeType releases.
2830 2003-05-06 Keith Packard <keithp@keithp.com>
2832 * Remove 0b82 and Tamil numbers from tamil
2833 orthography (Jungshik Shin <jshin@mailaps.org>)
2835 2003-05-04 Keith Packard <keithp@keithp.com>
2837 + Map glyph names in fonts with adobe custom encoding to unicode
2839 2003-05-02 Keith Packard <keithp@keithp.com>
2841 * Add FC_WEIGHT_BOOK as weight 75
2843 2003-04-30 Keith Packard <keithp@keithp.com>
2845 * Typo in bitstream foundry name
2847 2003-04-24 Keith Packard <keithp@keithp.com>
2849 * Eliminate italic_angle check for PS fonts
2851 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2853 * Getting closer to fixing /etc/fonts hard-coding.
2855 2003-04-22 Keith Packard <keithp@keithp.com>
2857 * Update autogen.sh to work with newer automake versions
2858 * Handle pattern elements moving during multiple edits
2860 2003-04-23 James Henstridge <james@daa.com.au>
2862 * doc/fontconfig-devel.sgml: close the <para> element.
2864 * doc/fcpattern.fncs: close the <para> element.
2866 * doc/func.sgml: close the <refsynopsisdiv> element.
2868 2003-04-22 Keith Packard <keithp@keithp.com
2870 * Update autogen.sh to work with newer automake versions
2871 * Handle pattern elements moving during multiple edits
2873 2003-04-17 Colin Walters <walters@debian.org>
2875 + Remove some unused variables, and initialize some other ones so
2876 gcc doesn't warn us.
2878 2003-04-16 Keith Packard <keithp@keithp.com>
2880 + tag version 2.1.94
2882 2003-04-16 Keith Packard <keithp@keithp.com>
2884 + add BDF property fetching support for foundry
2885 (from Juliusz Chroboczek)
2886 + add BDF property fetching support for width
2888 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2890 + Implemented foundry generation for Type 1 and TrueType
2892 2003-04-11 Gerard Escalante <g2@magestudios.net>
2894 + Retrieve information from Type1 FontInfo dictionaries
2896 2003-04-07 Colin Walters <walters@verbum.org>
2898 + src/Makefile.am: Fix dummy makefile target names when
2899 MS_LIB_AVAILABLE isn't set.
2901 2003-03-22 Tor Lillqvist <tml@iki.fi>
2903 Changes for Windows:
2905 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2907 + We don't want to hardcode the fonts.conf file location in the
2908 DLL, so we look up the DLL location at run-time in a DllMain()
2909 function. The fonts.conf location is deduced from that.
2911 + The colon can't be used as path separator on Windows,
2912 semicolon is used instead. File path components can be separated
2913 with either slash or backslash. Absolute paths can also begin
2914 with a drive letter.
2916 + Add internal function FcStrLastSlash that strrchr's the last
2917 slash, or backslash on Windows.
2919 + There is no link() on Windows. For atomicity checks, mkdir a
2920 lock directory instead.
2922 + In addition to HOME, also look for USERPROFILE.
2924 + Recognize the special font directory token WINDOWSFONTDIR, to
2925 use the system's font directory.
2927 + Remove the fontconfig-def.cpp that was obsolete. Add
2928 fontconfig.def(.in), without internal functions.
2930 + Add a fontconfig-zip(.in) script, used to build a binary
2933 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2934 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2935 to main package and man3/* to devel package
2937 + Added missing defattr(-, root, root) to main RPM package
2939 + Added HTML and text development documentation to -devel subpackage
2941 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2942 + Added back the configure macro options --disable-docs, otherwise
2943 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2944 version number) unconditionally, causing RPM to fail the build due
2945 to _unpackaged_files_terminate_build. We pick up the pregenerated
2946 docs with %doc already.
2948 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2949 + Removed commented out rpm macro define at top of spec file,
2950 replacing it with a simple explanation, since rpm macros are
2951 expanded by rpm even in comments.
2953 + Changed /usr/bin to _bindir in BuildRequires lines
2955 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2957 + Reorganized file manifest lists
2959 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2961 + fontconfig.spec.in: Improvements from Red Hat spec file.
2963 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2965 + docs/*.sgml: SGML fixes.
2967 Sat Mar 1 17:28:53 PST 2003 keithp
2968 + Ok, so the ChangeLog is a bit out of date
2970 + Lots of bugs fixed; most are in bugzilla, the
2971 biggest problems were in cache management where
2972 Owen discovered the library would lose badly when
2973 combining fonts-cache and ~/.fonts-cache data
2975 + Converted from autoconf to automake. This after
2976 getting patches accepted into libtool to allow
2977 the '-version-number' argument which lets
2978 packages set version numbers explicitly rather
2979 than the roundabout libtool way
2981 + Converted documentation to SGML using the docbook
2982 DTD. Now .txt and .html documents are installed
2983 in /usr/share/doc/fontconfig and there's no
2984 man page. Perhaps a man version can be written
2987 Sat Aug 31 15:21:22 PDT 2002 keithp
2988 + Xrender and Xft had several bugs related to
2989 rendering manually placed or poly-face text
2991 + Added more complete memory tracing in fontconfig
2992 Checked with (patched) mozilla and found no leaks
2994 + Updated Latin orthographies by comparing those from
2995 evertype.com with those from eki.ee. Tried to make
2996 sensible choices, including chars that occured in both
2997 and leaving some optional chars out that occured only
3000 Mon Aug 26 16:33:04 PDT 2002 keithp
3001 + Owen discovered that FcLangSetHasLang wasn't actually
3002 checking the language set.
3004 Mon Aug 26 13:37:23 PDT 2002 keithp
3005 + Append a version number to cache filenames
3007 Thu Aug 22 11:36:18 PDT 2002 keithp
3009 + Add "contains" and "not_contains" operators and elements to
3012 + Changed semantics of eq operator for LangSets to check for
3013 FcLangEqual so that any match will do
3015 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
3016 of FcValueEqual to check for identical values when inserting into
3017 the results. This broke when the above semantic change was made,
3018 now it uses FcValueEqual which is "more correct" in any case.
3020 Thu Aug 22 00:32:29 PDT 2002 keithp
3022 + Reimplement FC_LANG as new datatype. Lists of strings
3023 was consuming over a megabyte of memory for 401 fonts.
3025 + Freeze patterns loaded from cache files. This shares
3026 common value lists and common patterns which saves
3027 considerable memory.
3029 + Change the denotation of 'constant' charsets to use special
3030 ref value instead of separate boolean.
3032 + Clean up leak tracing stuff, found several unannoted alloc/free
3035 Tue Aug 20 16:17:37 PDT 2002 keithp
3037 + Fix memory leak when parsing matrices from XML
3039 Mon Aug 19 11:57:27 PDT 2002 keithp
3041 + Fix autoconf files to pass FONTCONFIG_PATH on
3042 compile line so that ${prefix} gets substituted
3045 + Use getc_unlocked/putc_unlocked on systems that
3046 provide them to avoid damage done to stdio by posix
3048 + Eliminate FC_PATTERN and FcTypePattern in favor of
3049 an extended api for FcConfigSubstitute which takes
3050 both the font and the pattern.
3052 + Add 'sans serif' alias for 'sans-serif' as some apps
3053 can't handle hyphens in family names
3055 + Eliminate pretense of support for libxml2
3057 + Comment origins of Han orthographies
3059 Tue Jul 30 18:37:09 PDT 2002 keithp
3061 + Add binding property to edit element so that strong
3062 binding values may be inserted by the config file.
3063 The default remains weak.
3065 Sun 28 Jul 04:16:55 PDT 2002 keithp
3067 + Tagged release candidate 1 in the CVS tree and
3068 placed fcpackage.rc1.tar.gz for distribution
3070 Thu Aug 1 08:55:08 PDT 2002 keithp
3072 + Fixed autoconf builds to always specify install
3073 target files (for BSD). Also fixed to
3074 define FONTCONFIG_PATH in config.h so that
3075 nonstandard installs will actually work.