1 2006-03-22 Patrick Lam <plam@mit.edu>
4 On Windows, unlink before rename. Reported by Tim Evans.
6 2006-03-15 Patrick Lam <plam@mit.edu>
10 Fix typos in orth files. Reported by Denis Jacquerye.
12 2006-03-08 Patrick Lam <plam@mit.edu>
14 * config/config.guess:
17 Fix Makefile.am for removal of debian/ directory.
19 2006-03-08 Patrick Lam <plam@mit.edu>
22 Ignore debian/ directory for CVS.
24 2006-03-08 Patrick Lam <plam@mit.edu>
27 Now remove debian/ directory.
29 2006-03-08 Patrick Lam <plam@mit.edu>
32 Remove debian/ directory from sources. See Debian's subversion
33 server at svn://svn.debian.org/pkg-freedesktop/trunk/fontconfig
36 2006-03-08 Denis Jacquerye <moyogo@gmail.com>
40 * fc-lang/iso639-1, fc-lang/iso639-2:
42 Add orthography for Lingala.
44 2006-03-08 Carl Worth <cworth@cworth.org>
48 * conf.d/10LohitGujarati.conf:
50 Add a configuration file that disables hinting for the Lohit
51 Gujarati font (since the hinting distort some glyphs quite badly).
53 2006-03-08 Egmont Koblinger <egmont@uhulinux.hu>
56 * src/fcdir.c (FcDirScanConfig):
58 Sort directory entries while scanning them from disk;
59 prevents Heisenbugs due to file ordering in a directory.
61 2006-03-07 Behdad Esfahbod <behdad@cs.toronto.edu>
64 * src/fcfreetype.c (GetScriptTags):
65 * src/ftglue.c, src/ftglue.h:
67 Remove stuff we don't use, make get_{char,short,long} functions
68 of ftglue macros to be inlined.
71 * src/fcname.c (FcObjectSerialize):
73 Code cleanups (excess prototype, old-style function definition).
75 2006-03-05 Patrick Lam <plam@mit.edu>
76 * src/fcpat.c (FcPatternGetString):
78 Because we hacked FcPatternGet, we don't really need to expand the
79 filename again in FcPatternGetString.
81 2006-03-05 Patrick Lam <plam@mit.edu>
82 * src/fcpat.c (FcPatternGetString, FcPatternGet):
84 Ok, so some people (wine!) use FcPatternGet to fetch FC_FILE.
85 Make that work. Reported by Bernhard Rosenkraenzer.
87 2006-03-03 Patrick Lam <plam@mit.edu>
90 Include inttypes.h instead of stdint.h if appropriate.
92 2006-03-03 Patrick Lam <plam@mit.edu>
93 * fc-cat/fc-cat.c (FcFileIsDir):
94 * fc-glyphname/fc-flyphname.c:
96 More stub definitions and remove FcFileIsDir from fc-cat.
98 2006-03-03 Patrick Lam <plam@mit.edu>
101 Fix compilation on AIX with stub definitions (bug 6097).
103 2006-03-03 Patrick Lam <plam@mit.edu>
104 * src/fccache.c (FcCacheSkipToArch, FcDirCacheProduce):
105 * src/fcfreetype.c (GetScriptTags):
106 * src/fcfs.c (FcFontSetDistributeBytes):
107 * src/fcpat.c (FcValueListEntCreate, FcValueListNeededBytes):
109 Get rid of C++-style comments.
111 2006-03-03 Patrick Lam <plam@mit.edu>
114 Enable creation of 2.3.94 Debian packages.
116 2006-03-02 Egmont Koblinger <egmont@uhulinux.hu>
119 * src/fclang.c (FcCharSetForLang):
121 Fix suspicious return expression which causes junk
124 2006-02-24 Patrick Lam <plam@mit.edu>
128 * fontconfig/fontconfig.h:
130 Bump version to 2.3.94.
132 2006-02-24 Patrick Lam <plam@mit.edu>
137 2006-02-24 Patrick Lam <plam@mit.edu>
138 * conf.d/10-fonts-persian.conf:
140 Remove unconditional emboldening (per Behdad's instructions).
144 Add @s to hide some echos.
146 2006-02-24 Mike Fabian <mfabian@suse.de>
147 Takashi Iwai <tiwai@suse.de>
150 * src/fcfreetype.c (GetScriptTags):
152 Fix double-free on error case.
154 2006-02-21 Patrick Lam <plam@mit.edu>
155 * fc-lang/fc-lang.c (scan):
157 Strip \r and whitespace from input; fixes bug 3454.
159 2006-02-21 Patrick Lam <plam@mit.edu>
160 * fc-lang/fc-lang.c (main):
162 Allocate large arrays statically in fc-lang to fix crashes under
165 2006-02-21 Diego Petten <flameeyes@gentoo.org>
166 * src/fcfreetype.c (FcFreeTypeCharIndex):
168 Pass the buck; make fontconfig not crash on pango badness.
170 2006-02-21 Patrick Lam <plam@mit.edu>
171 * conf.d/10-fonts-persian.conf:
173 Use embeddedbitmap rather than rh_prefer_bitmap.
175 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
178 * src/fccache.c (FcDirCacheWrite):
179 * src/fcdir.c (FcFileScanConfig):
180 * src/fcfreetype.c (FcStringInPatternElement):
181 * src/fcxml.c (FcParseFamilies):
182 * src/ftglue.c (ftglue_face_goto_table):
184 Eliminate redundancies.
186 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
189 * fc-list/fc-list.c (main):
190 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
191 * src/fcstr.c (FcStrStr):
192 * src/fcxml.c (FcConfigSaveAttr):
194 Eliminate unused vars reported by Intel's compiler.
196 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
201 Remove one more archaic character.
203 2006-02-21 Ross Burton <ross@burtonini.com>
204 reviewed by: plam, keithp
206 * src/fcxml.c (FcParsePatelt):
208 Freeze patterns created by configuration file for tiny
209 memory savings (every little bit helps).
211 2006-02-21 Mike Fabian <mfabian@suse.de>
214 * fc-cat/fc-cat.c (main):
216 Initialize fontconfig library in fc-cat to avoid segfault.
218 2006-02-18 Patrick Lam <plam@mit.edu>
219 * fc-cache/fc-cache.c (scanDirs):
220 * src/fccache.c (FcCacheReadDirs):
221 * src/fcdir.c (FcDirScanConfig):
223 Fix the underlying cause of the below segfault (must usually
224 call FcDirCacheHasCurrentArch after FcDirCacheValid).
226 2006-02-18 Patrick Lam <plam@mit.edu>
227 * src/fccache.c (FcDirCacheHasCurrentArch):
229 Fix triggering of segfault caused by misreading cache files
230 (reported by fcrozat).
232 2006-02-17 Patrick Lam <plam@mit.edu>
233 * src/fcint.h (FC_CACHE_MAGIC):
235 Bump up magic version; we changed the binary format.
237 2006-02-17 Patrick Lam <plam@mit.edu>
238 * fc-cat/fc-cat.c (main):
240 Enable fc-cat to print out old-style cache info when given a
243 2006-02-16 Patrick Lam <plam@mit.edu>
244 * src/fccache.c (FcDirCacheHasCurrentArch):
246 Deal correctly with changing FC_CACHE_MAGIC.
248 2006-02-16 Patrick Lam <plam@mit.edu>
249 * fc-cache/fc-cache.c (usage, scanDirs, main):
251 Add -r --really-force option which blows away cache files and then
254 2006-02-16 Patrick Lam <plam@mit.edu>
255 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
257 Don't bail if fontconfig can't remove a dir cache file.
258 Skip the ID of a cache file when copying.
259 Eliminate 'source file too small' bug in FcDirCacheWrite.
261 2006-02-13 Patrick Lam <plam@mit.edu>
262 * src/fcfreetype.c (FcFreeTypeQuery):
264 Fix memory leak in error condition code.
266 2006-02-13 Mike Fabian <mfabian@suse.de>
268 * src/fcfreetype.c (FcFreeTypeQuery):
270 Skip bitmap fonts which can't even get it together enough to
271 declare a family name; this appears to reproduce previous
272 fontconfig behaviour.
274 2006-02-10 Takashi Iwai <tiwai@suse.de>
276 * src/fccache.c (FcDirCacheOpen):
278 Try to open /var/cache/fontconfig/[hashed name] before
279 fonts.cache-2 in a directory, because /var/cache/fontconfig
280 failures ought to be fixable, unlike fonts.cache-2 failures,
281 which may leave you screwed.
283 2006-02-10 Takashi Iwai <tiwai@suse.de>
285 * src/fcmatch.c (FcFontSetMatch):
287 Use a tri-state to mark the fonts which didn't get blocked but
288 were just missing an element, to distinguish them from the
289 fonts that do match the element.
291 2006-02-10 Takashi Iwai <tiwai@suse.de>
293 * src/fcmatch.c (FcFontSetMatch):
295 Don't kill fonts because they don't declare an element that's
298 2006-02-09 Patrick Lam <plam@mit.edu>
299 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
300 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
302 Define and pass O_BINARY to open if appropriate, for those
303 platforms that need it. Reported by Doodle.
305 2006-02-09 Patrick Lam <plam@mit.edu>
306 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
309 Fix problem with missing 'en' due to euro.patch: change
310 cache file format slightly to coincide with that generated
313 2006-02-07 Patrick Lam <plam@mit.edu>
314 * src/fccache.c (FcCacheReadDirs):
318 2006-02-07 Patrick Lam <plam@mit.edu>
319 * src/fcdir.c (FcDirScanConfig):
321 Don't reject dirs that can't be normalized (fixes lilypond, and
322 is correct in the context of application font directories.)
324 2006-02-07 Takashi Iwai <tiwai@suse.de>
327 * src/fccache.c (FcCacheReadDirs):
329 Use normalized directory name exclusively in FcCacheReadDirs.
331 2006-02-07 Dirk Mueller <dmueller@suse.com>
334 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
336 Perf optimizations. Inline FcValueCanonicalize,
337 reduce FcValueListPtrU usage, remove redundant cast.
339 2006-02-07 Takashi Iwai <tiwai@suse.de>
342 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
345 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
346 Declare extern for static arrays as arrays, not pointers.
347 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
349 2006-02-07 Dirk Mueller <dmueller@suse.com>
362 Add Euro sign to list of symbols required by European languages.
364 2006-02-07 Patrick Lam <plam@mit.edu>
365 * src/fccache.c (FcCacheReadString):
367 Fix hidden variable warning.
369 2006-02-07 Dirk Mueller <dmueller@suse.com>
372 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
374 Remove de-escaping logic because FcCacheWriteString
375 doesn't escape anyway. Do blockwise reading instead
376 of byte-wise for performance.
378 2006-02-06 Patrick Lam <plam@mit.edu>
379 Takashi Iwai <tiwai@suse.de>
381 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
383 Don't loop infinitely on recursive symlinks (client-side).
385 2006-02-06 Takashi Iwai <tiwai@suse.de>
387 * fc-cache/fc-cache.c (scanDirs, main):
389 Don't loop infinitely on recursive symlinks.
391 2006-02-06 Takashi Iwai <tiwai@suse.de>
393 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
394 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
395 FcGlobalCacheSave, FcCacheReadDirs):
398 Skip subdirs when skipping over stale bits of global cache.
399 Introduce state machine into FcGlobalCacheDir to avoid
400 doing inappropriate operations on global dir entries, e.g.
401 writing out an out-of-date cache entry.
403 2006-02-06 Takashi Iwai <tiwai@suse.de>
405 * src/fcdir.c (FcFileScanConfig):
407 Hoist FcFileIsDir check out of FcFileScanConfig loop.
409 2006-02-06 Takashi Iwai <tiwai@suse.de>
412 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
413 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
415 Don't rescan when trying to normalize a non-declared font dir.
416 Don't add font dirs multiple times (even if they're aliased).
418 2006-02-06 Dirk Mueller <dmueller@suse.de>
421 * src/fcfs.c (FcFontSetUnserialize):
423 Explain apples/oranges comparison and fix compilation error.
425 2006-02-06 Dirk Mueller <dmueller@suse.de>
428 * src/fcfs.c (FcFontSetUnserialize):
430 Insert check for integer overflow in # of fonts.
432 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
436 * fc-cache/Makefile.am:
437 * fc-cat/Makefile.am:
438 * fc-list/Makefile.am:
440 Make 'make distcheck' work with automake 1.6.3.
442 2006-02-03 Takashi IWAI <tiwai@suse.de>
445 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
448 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
449 FcDirCacheConsume, FcDirCacheWrite)
450 * src/fcxml.c (FcConfigMessage):
452 Check I/O call return values and eliminate unused variable
455 2006-02-03 Takashi Iwai <tiwai@suse.de>
458 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
462 2006-02-03 Dirk Mueller <dmueller@suse.de>
465 * src/fcfs.c (FcFontSetUnserialize):
467 Gracefully handle the case where a cache asserts that it
468 has a negative number of fonts, causing overflow.
470 2006-02-03 Patrick Lam <plam@mit.edu>
471 * src/fccache.c (FcDirCacheUnlink):
473 Fix double free in error case.
475 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
476 Stephan Kulow <coolo@suse.de>
479 * fc-cache/Makefile.am:
481 Replace 'stamp' target with mkinstalldirs.
483 2006-01-31 Mike Fabian <mfabian@suse.de>
486 * src/fccache.c (FcGlobalCacheLoad):
488 Toast broken global cache files.
490 2006-01-30 Patrick Lam <plam@mit.edu>
491 * src/fccache.c (FcGlobalCacheReadDir):
493 Actually use the directories that I added to the global cache.
496 2006-01-30 Mike Fabian <mfabian@suse.de>
499 * fc-cache/fc-cache.c (scanDirs):
501 Don't stop scanning if a directory in fonts.conf doesn't
502 exist, because subsequent directories might exist.
504 2006-01-30 Patrick Lam <plam@mit.edu>
505 * src/fccache.c (FcGlobalCacheLoad):
507 Make global cache work again after putting dir names into global
508 cache (I misplaced the recording of a file offset).
510 2006-01-30 Patrick Lam <plam@mit.edu>
511 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
513 Update fc-cat to handle subdir lists in global cache file.
515 * src/fccache.c (FcGlobalCacheLoad):
517 Another FcCacheReadString return value check.
519 2006-01-30 Mike Fabian <mfabian@suse.de>
522 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
523 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
525 Make fccache more resilient to broken cache files by checking
526 return value of FcCacheReadString all the time.
528 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
531 * fc-match/fc-match.1:
532 * fc-lang/fc-lang.man:
534 Remove references to dead fontconfig(3) manpages in
535 other fontconfig manpages.
537 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
540 * doc/fcpattern.fncs:
542 Fix world's tiniest typo in code example.
544 2006-01-29 Mike Fabian <mfabian@suse.de>
547 * src/fccache.c (FcGlobalCacheReadDir):
549 Fix global cache reads of subdirectories.
551 2006-01-29 Patrick Lam <plam@mit.edu>
553 Add documentation for FcConfigNormalizeFontDir.
555 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
556 FcGlobalCacheUpdate, FcGlobalCacheSave):
557 * src/fcdir.c (FcDirScanConfig):
560 Write directory information to global caches to fix make check
561 (reported by Ronny V. Vindenes). This changes the global cache
564 2006-01-27 Patrick Lam <plam@mit.edu>
565 * fc-cache/fc-cache.c (scanDirs):
566 * fontconfig/fontconfig.h:
568 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
570 Move FcConfigNormalizeFontDir call so that it doesn't result in
571 infinite recursion (reported by Ronny V. Vindenes).
573 2006-01-26 Patrick Lam <plam@mit.edu>
574 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
575 * src/fccfg.c (FcConfigNormalizeFontDir):
577 Add a couple of missing normalizations to make fc-cache work
578 right; only scan subdirectories once.
580 2006-01-26 Mike Fabian <mfabian@suse.de>
583 * src/fcacache.c (FcGlobalCacheReadDir):
585 Don't crash on non-existant directories in global cache.
587 2006-01-26 Patrick Lam <plam@mit.edu>
588 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
589 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
590 * src/fcdir.c (FcDirScanConfig):
591 * src/fcxml.c (FcEndElement):
593 Stop trampling the directory name when writing out caches.
594 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
595 subdirs when necessary. Don't scan directories that can't be
598 2006-01-25 Patrick Lam <plam@mit.edu>
599 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
600 * src/fccfg.c (FcConfigEvaluate):
601 * src/fcfreetype.c (FcPatternAddWithBinding):
603 Fix additional memory leaks reported by Ronny V. Vindenes: don't
604 invoke FcValueSave on hashed static strings in
605 FcPatternAddWithBinding.
607 Add another st_dev check in FcDirCacheOpen.
609 2006-01-24 James Su <james.su@gmail.com>
612 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
613 * fc-lang/zh_hk.orth:
615 Treat zh-hk fonts differently from zh-tw fonts. This patch may
616 cause fontconfig to treat A-X fonts differently from A-Y fonts;
617 please mail the fontconfig list if this causes any problems.
619 2006-01-24 Patrick Lam <plam@mit.edu>
620 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
621 * src/fcfreetype.c (FcFreeTypeQuery):
623 Fix memory leaks reported by Ronny V. Vindenes.
625 2006-01-19 Andreas Schwab <schwab@suse.de>
628 * src/fcpat.c (FcStrNeededBytes):
630 Fix for unaligned memory accesses.
632 2006-01-18 Mike Fabian <mfabian@suse.de>
635 * src/fcdir.c (FcDirScanConfig):
637 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
638 calls to avoid crashes.
640 2006-01-14 Patrick Lam <plam@mit.edu>
641 * src/fccache.c (FcDirCacheConsume):
643 Fix segfault when consuming zero-length caches in fc-cat
644 (which has no config, so FcConfigAddFontDir shouldn't be called.)
646 2006-01-14 Patrick Lam <plam@mit.edu>
647 * fc-cache/fc-cache.c (scanDirs):
648 * fontconfig/fontconfig.h:
649 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
650 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
651 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
652 * src/fcdir.c (FcDirScanConfig):
655 Compare device numbers as well as inodes.
656 Always normalize directory names before comparing them.
658 2006-01-11 Mike Fabian <mfabian@suse.de>
661 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
663 Allocate extra space for appended '/' in directory name.
665 2006-01-10 Patrick Lam <plam@mit.edu>
666 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
667 FcDirCacheValid, FcDirCacheHasCurrentArch,
668 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
669 * fc-cache/fc-cache.c (main):
671 Explicitly add font dirs to config.fontDirs even if they're empty.
672 Set current config in fc-cache.c.
673 Fix treatment of cache directory as read from cache file; don't
674 use string equality to determine if we have the right file,
677 2006-01-09 Patrick Lam <plam@mit.edu>
678 * fc-cache/fc-cache.c (scanDirs):
679 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
680 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
681 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
682 * src/fccfg.c (FcConfigNormalizeFontDir):
683 * src/fcdir.c (FcDirScanConfig):
686 Normalize font dirs by using the form, as given in fonts.conf, and
687 recorded in FcConfig's fontDirs string set, as canonical.
689 Actually update config.fontDirs as font directories are scanned.
691 2006-01-08 James Su <james.su@gmail.com>
692 * src/fcmatch.c (FcFontSetMatch):
694 Fix matching bug when multiple elements match; don't use
695 the sum of all scores, but the best score.
697 Also more perf opts, e.g. evaluate best over all font sets
698 rather than on a per-set basis (and other changes).
700 2006-01-08 Patrick Lam <plam@mit.edu>
701 * src/fccache.c (FcDirCacheConsume):
703 Properly skip past dir caches that contain zero fonts (as occurs
704 in global caches.) Reported by Mike Fabian.
706 2006-01-06 Patrick Lam <plam@mit.edu>
707 * src/fcdbg.c (FcPatternPrint):
709 Print out full pathname in fc-match -v as well. Reported by
712 2006-01-06 Mike Fabian <mfabian@suse.de>
715 * src/fcname.c (FcNameParse):
717 Fix bug where fc-match crashes when given __DUMMY__ property to
720 (I added the __DUMMY__ string to enable callers of
721 FcObjectToPtrLookup to distinguish an error return from a
722 successful return. -PL)
724 2006-01-05 Patrick Lam <plam@mit.edu>
727 Add self to AUTHORS list.
729 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
730 FcCacheFileRead, FcCachePrintSet, main):
731 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
732 FcGlobalCacheSave, FcCacheNextOffset,
733 FcDirCacheHasCurrentArch, FcDirCacheRead,
734 FcDirCacheConsume, FcDirCacheWrite):
736 * src/fcpat.c (comment):
738 Minor change to global cache file format to fix fc-cat bug
739 reported by Frederic Crozat, and buglet with not globally caching
740 directories with zero fonts cached.
742 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
745 * src/fccfg.c (FcConfigEvaluate):
747 Fix double-free which occurs because FcValueCanonicalize doesn't
748 create an extra copy of the returned value, it only canonicalizes
751 2006-01-02 Patrick Lam <plam@mit.edu>
752 * doc/fontconfig-user.sgml:
754 Fix version of .cache file (currently 1 -> currently 2). Reported
757 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
760 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
762 Shut up GCC warnings on amd.
764 2005-12-20 Patrick Lam <plam@mit.edu>
768 * fontconfig/fontconfig.h:
770 Bump version to 2.3.93.
772 2005-12-20 Patrick Lam <plam@mit.edu>
773 * src/fccharset.c (FcLangCharSetPopulate):
774 * src/fcint.h (FcCacheBankToIndex):
776 Avoid check on _fcBankId nullness and fix case where it used to
779 2005-12-20 Patrick Lam <plam@mit.edu>
780 * src/fcxml.c (FcConfigParseAndLoad):
782 Use open instead of fopen (requested by Phil Race for Sun).
784 2005-12-20 Patrick Lam <plam@mit.edu>
785 * src/fccache.c (FcDirCacheWrite);
786 * fc-cache/Makefile.am:
788 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
791 2005-12-20 Patrick Lam <plam@mit.edu>
792 * src/fcfreetype.c (FcFreeTypeQuery):
794 Restore code to skip over PCF fonts that have no encoded
796 (We guess that a font is PCF by presence of the PIXEL_SIZE
799 2005-12-12 Patrick Lam <plam@mit.edu>
800 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
802 Read and write the original location as a fallback for the
803 hashed cache file locations. This is mostly for users to be
804 able to have per-directory cache files.
806 2005-12-12 Patrick Lam <plam@mit.edu>
807 * fc-cache/fc-cache.c (scanDirs):
808 * fc-cache/Makefile.am:
809 * src/fccache.c (FcDirCacheHashName):
811 Improve error message when fc-cache can't write the cache. Add
812 missing slash. Reported by Behdad. Incorporate Behdad's patch to
813 create /var/cache/fontconfig when appropriate.
815 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
818 * src/fcxml.c (FcConfigGetAttribute):
820 Fix crash reported by Frederic Crozat when using libxml2.
822 2005-12-09 Patrick Lam <plam@mit.edu>
825 * fc-cache/Makefile.am:
826 * fc-cat/Makefile.am:
828 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
829 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
830 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
831 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
832 FcDirCacheHasCurrentArch, FcDirCacheHashName,
833 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
835 Migrate cache files from fonts directories to
836 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
837 but requires that all caches get rebuilt.
839 Also, autogen.sh now needs the additional parameter
840 --localstatedir=/var.
842 2005-12-07 Patrick Lam <plam@mit.edu>
843 * src/fcpat.c (FcPatternAddString):
845 Because we've changed FcPatternAddString to use FcStrStaticName
846 and not FcValueSave, explicitly handle the case of a null string.
848 2005-12-06 Patrick Lam <plam@mit.edu>
849 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
853 2005-12-05 Patrick Lam <plam@mit.edu>
854 * src/fcname.c (FcNameGetObjectType):
856 Don't assign types to user object names.
858 2005-12-05 Patrick Lam <plam@mit.edu>
859 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
861 Don't free strings that have been returned from FcStrStaticName.
863 2005-12-01 Patrick Lam <plam@mit.edu>
864 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
866 Add codepath for reading global cache files as well.
868 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
871 * conf.d/10-fonts.persian.conf:
872 * conf.d/Makefile.am:
874 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
876 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
879 * src/fcxml.c (FcConfigParseAndLoad):
881 Only add a config file to the set of config files once.
883 2005-11-29 Patrick Lam <plam@mit.edu>
884 * src/fcint.h (FcCacheBankToIndex);
886 Fix segfault by guarding array dereference.
888 2005-11-29 Dirk Mueller <dmueller@suse.de>
892 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
893 FcCacheBankToIndex, FcCacheBankToIndexMTF,
897 Refactor FcCacheBankToIndex into an inlineable part
898 (in fcint.h) which checks the front of the list and a
899 non-inlineable part which finds and moves the appropriate element
900 to the front of the list.
902 2005-11-29 Patrick Lam <plam@mit.edu>
903 * src/fccfg.c (FcConfigBuildFonts):
904 * src/fccache.c (FcCacheReadDirs):
906 Make the perf guys hate me a bit less: hoist the directory-name
907 FcConfigAcceptFont check for cached fonts up to directory cache
908 read time, rather than running it for each font.
910 2005-11-29 Patrick Lam <plam@mit.edu>
911 * src/fccfg.c (FcConfigBuildFonts):
913 * src/fcpat.c (FcPatternFindFullFname):
915 Don't make FcPatternFindFullFname available to fccfg, it's not
916 really safe. Instead go through FcPatternGetString (sorry,
917 perf guys.) Also, use globs for dirs as well.
919 2005-11-28 Patrick Lam <plam@mit.edu>
920 * src/fccfg.c (FcConfigBuildFonts):
924 2005-11-28 Patrick Lam <plam@mit.edu>
926 * src/fcpat.c (FcPatternFindFullFname):
927 * src/fccfg.c (FcConfigBuildFonts):
929 Fix problem dating back at least to 2.3.2 where globs weren't
930 being applied to patterns loaded from a cache.
932 2005-11-28 Patrick Lam <plam@mit.edu>
933 * doc/fontconfig-user.sgml:
935 Fix some obvious spelling mistakes.
937 2005-11-28 Dirk Mueller <dmueller@suse.com>
938 Stephan Kulow <coolo@suse.de>
941 * src/fcmatch.c (FcFontSetMatch):
943 Don't kill all fonts during match (oops!)
946 2005-11-25 Dirk Mueller <dmueller@suse.com>
947 Stephan Kulow <coolo@suse.de>
948 Michael Matz <matz@suse.de>
951 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
954 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
955 inline FcCompare into FcFontSetMatch and reorder the
956 loops, adding a boolean array which blocks patterns from future
957 consideration if they're known to not be best on some past
960 2005-11-26 Dirk Mueller <dmueller@suse.com>
963 * src/fcmatch.c (FcCompareValueList):
967 2005-11-25 Patrick Lam <plam@mit.edu>
968 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
970 Don't do random matching when bad objects are passed into
973 2005-11-25 Patrick Lam <plam@mit.edu>
975 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
976 FcPatternSerialize, FcPatternUnserialize,
977 FcValueListEnsureBank, FcValueListDistributeBytes,
978 FcValueListUnserialize):
980 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
981 _fcPatternElts, _fcValueLists for consistency.
983 2005-11-25 Dirk Mueller <dmueller@suse.com>
988 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
990 2005-11-25 Patrick Lam <plam@mit.edu>
992 * src/fccache.c (FcDirCacheConsume):
993 * src/fccharset.c (FcCharSetUnserialize):
994 * src/fcfs.c (FcFontSetUnserialize):
995 * src/fclang.c (FcLangSetUnserialize):
996 * src/fcname.c (FcObjectUnserialize):
997 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
998 FcPatternUnserialize):
1000 Pass around FcCache *s to the Unserialize functions for extra
1001 consistency (and less overhead, for what that's worth).
1003 2005-11-24 Dirk Mueller <dmueller@suse.com>
1007 * src/fcmatch.c (FcCompare*, FcFontSetSort):
1008 * src/fcname.c (FcNameUnparseValue):
1010 Inline the *PtrU functions to gain perf.
1011 Remove unneeded params for the FcCompare* functions.
1013 2005-11-24 Dirk Mueller <dmueller@suse.com>
1016 * src/fcint.h, fontconfig/fontconfig.h:
1018 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
1020 * src/fcpat.c, src/fcint.h, src/fcname.c:
1022 Check for type validity during FcPatternAddWithBinding, don't
1023 verify type in FcFontMatch, don't call FcCanonicalize here
1024 (which always does a deep copy).
1026 2005-11-24 Dirk Mueller <dmueller@suse.com>
1029 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
1030 * src/fcpat.c (FcPatternAddWithBinding):
1032 Make FcCompareString and FcCompareFamily less expensive.
1033 Only add a value for FC_FAMILY if the proposed value is a string.
1035 2005-11-24 Dirk Mueller <dmueller@suse.com>
1038 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
1039 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
1040 * src/fcint.h (FcDebug):
1042 Inline FcDebug invocations and only initialize once, in FcInit*.
1043 Improve debug msg in FcPatternPrint.
1045 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1048 * fontconfig/fontconfig.h:
1051 Minor code warning cleanups.
1053 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1056 * fc-match/fc-match.c (main):
1058 Make getopt_long accept -s parameter to fc-match as well.
1060 2005-11-21 Dirk Mueller <dmueller@suse.com>
1063 * src/fcmatch.c (FcCompareValueList):
1065 Manually perform inlining & partial redundancy elimination to
1066 reduce calls to FcValueListPtrU.
1068 2005-11-21 Dirk Mueller <dmueller@suse.com>
1071 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
1072 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
1074 Only invoke strlen() when really necessary.
1076 2005-11-19 Matthias Clasen <mclasen@redhat.com>
1080 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
1081 FcFontCapabilities):
1085 Get rid of the use of freetype internal headers in fcfreetype.c,
1086 since those headers will go away with freetype 2.2. Replace with
1087 public domain ftglue code from pango. Note that the patch removes
1088 some extra error checking in FT_Get_BDF_Property() and comments
1089 out the skipping of empty pcf fonts.
1091 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
1094 * fc-lang/fc-lang.c (main):
1096 Further fix of patch from 2005-11-04: miscounted numbers count
1097 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
1098 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
1100 Removed leafidx_count and numbers_count since they are the same
1101 and replaced them with offset_count.
1103 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1106 * fc-cat/fc-cat.c (main):
1108 Don't crash when fc-cat invoked with no arguments.
1110 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1113 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
1115 Fix invalid read access caused by premature free and
1116 GCC4 warnings in libxml2 codepath.
1118 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
1121 * src/fccfg.c (FcConfigValues):
1123 List iteration not needed in FcConfigValues, since it's building
1124 up the list itself; we can just strip FcVoid elements during
1127 2005-11-17 Patrick Lam <plam@mit.edu>
1128 * src/fccfg.c (FcConfigValues):
1130 Fix crash on invalid constants in config files (forgot to update
1131 a pointer upon list iteration.)
1133 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
1136 * src/fcxml.c (FcTypecheckExpr):
1138 Complain about invalid constants in config files.
1140 2005-11-17 Andreas Schwab <schwab@suse.de>
1143 * src/fccache.c (FcGlobalCacheSave):
1145 Don't add current_arch_start more than once.
1147 2005-11-16 Patrick Lam <plam@mit.edu>
1148 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1149 * src/fcfs.c (FcFontSetUnserialize):
1150 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1151 * src/fcpat.c (FcStrUnserialize):
1153 Fix ordering of ALIGN with respect to saving block_ptr; add
1154 another ALIGN to fcfs.c.
1156 2005-11-16 Patrick Lam <plam@mit.edu>
1157 * src/fccache.c (FcDirCacheProduce)
1159 Fix case where alignment bytes bumped up metadata->count
1160 causing unwarranted failures to write cache files.
1161 (Reported by Stephan Kulow).
1163 2005-11-16 Patrick Lam <plam@mit.edu>
1164 * src/fccache.c (FcDirCacheProduce):
1165 * src/fccharset.c (FcCharSetDistributeBytes):
1166 * src/fcfs.c (FcFontSetDistributeBytes):
1168 * src/fclang.c (FcLangSetDistributeBytes):
1169 * src/fcname.c (FcObjectDistributeBytes):
1170 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1173 Add *NeededBytesAlign(), which overestimates the padding which is
1174 later added by the new ALIGN macro. Fix alignment problems on
1175 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1176 version by Andreas Schwab).
1178 2005-11-16 Stephan Kulow <coolo@kde.org>
1183 Use sysconf to determine proper PAGESIZE value; this
1184 appears to be POSIX-compliant. (reported by Andreas Schwab)
1186 2005-11-04 Patrick Lam <plam@mit.edu>
1187 * fc-lang/fc-lang.c:
1192 Fix bug 2878 (excessive relocations at startup for charsets,
1193 reported by Ross Burton): fc-lang/fc-lang now creates the
1194 static form of the langset, not the dynamic form, so that
1195 the charsets should now be in .rodata.
1197 2005-11-04 Patrick Lam <plam@mit.edu>
1198 * src/fcdir.c (FcDirScanConfig):
1200 Add test for validity of directory caches that
1201 somehow got lost (reported by make distcheck).
1203 2005-11-04 Patrick Lam <plam@mit.edu>
1207 * fontconfig/fontconfig.h:
1209 Bump version to 2.3.92.
1211 2005-11-02 Patrick Lam <plam@mit.edu>
1212 * src/fcpat.c (FcPatternDuplicate):
1214 Fix argument ordering problem in call to FcPatternTransferFullFname.
1216 2005-11-02 Patrick Lam <plam@mit.edu>
1217 * src/fcfreetype.c (FcFreetypeQuery):
1218 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1219 FcPatternTransferFullFname):
1221 Fix warnings and embarrassing double-free error.
1223 2005-11-02 Zhe Su <zsu@novell.com>
1228 Change the rule for artificial emboldening in fonts.conf.in. This
1229 enables the support for artificial emboldening included in cairo.
1231 2005-11-02 Patrick Lam <plam@mit.edu>
1232 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1234 Don't zero out full names for FC_REF_CONSTANT fonts;
1235 also, duplicate full names when transferring, and free
1236 full names when freeing the associated font.
1237 Reported by Jinghua Luo.
1239 2005-11-02 Patrick Lam <plam@mit.edu>
1240 * fc-cache/fc-cache.c (scanDirs):
1241 * src/fcpat.c (FcValueListSerialize):
1243 Revert the previous patch and commit the correct patch:
1244 I forgot a canonicalization in FcValueListSerialize, so
1245 that it would choke on already-serialized input files. Duh!
1247 2005-11-02 Patrick Lam <plam@mit.edu>
1248 * fc-cache/fc-cache.c (scanDirs):
1250 Forcibly rescan a directory before writing a fresh local
1251 cache file for that directory, fixing the losing-fonts
1252 problem reported by Mike Fabian and also apparently the
1253 font cache file corruption.
1255 2005-11-02 Patrick Lam <plam@mit.edu>
1256 * src/fccache.c (FcGlobalCacheLoad):
1258 Fix thinko: actually, the whole global cache is stale
1259 if the global cache is older than the (newest) config file.
1261 2005-11-02 Patrick Lam <plam@mit.edu>
1262 * src/fccache.c (FcGlobalCacheLoad):
1263 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1266 Declare the global cache of a directory's contents to be stale if
1267 the directory is newer than the (newest) configuration file.
1269 2005-10-31 Patrick Lam <plam@mit.edu>
1271 * src/fclist.c (FcListAppend):
1272 * src/fcmatch.c (FcFontRenderPrepare):
1273 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1274 FcPatternFreeze, FcPatternBaseFreeze):
1276 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1277 applications continue breaking.
1279 2005-10-31 Patrick Lam <plam@mit.edu>
1280 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1281 * src/fcfreetype.c (FcFreeTypeQuery):
1283 Fix small memory error (tried to free argv); use basename and
1284 dirname correctly (they can modify their arguments).
1286 2005-10-31 Patrick Lam <plam@mit.edu>
1294 Reinstate basename patch, but keep a hash table linking FcPatterns
1295 to their fully-qualified font names for clients' benefit. Clients
1296 only pay for the font names once they request the FC_FILE property
1297 from an FcPattern, but the font name is malloc'd at that point (i.e.
1298 not mmapped: that's impossible, since it may vary between machines.)
1299 Clients do have to pay for a copy of the path name per cache file.
1301 Note that FcPatternGetString now does some rewriting if you ask
1302 for an FC_FILE, appending the pathname as appropriate.
1304 2005-10-31 Patrick Lam <plam@mit.edu>
1305 * src/fcfreetype.c (FcFreeTypeQuery):
1307 Revert basename patch, which breaks fontconfig clients on my system.
1309 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1312 * fontconfig/fonts.conf.in:
1313 * fontconfig/fontconfig.h:
1317 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1318 to load embedded bitmaps or not.
1320 2005-10-25 Patrick Lam <plam@mit.edu>
1321 * src/fcfreetype.c (FcFreeTypeQuery):
1323 Only add basename to patterns' FC_FILE element, not any part of
1326 2005-10-22 Patrick Lam <plam@mit.edu>
1329 Add some more consts, fixing more GCC4 warnings.
1331 2005-10-22 Zhe Su <zsu@novell.com>
1334 Support localized font family and style names.
1335 This has been reported to break old apps like xfd, but modern
1336 (gtk+/qt/mozilla) apps work fine.
1338 2005-10-21 Patrick Lam <plam@mit.edu>
1339 * src/fccache.c (FcGlobalCacheLoad):
1341 Destroy the global cache file if it's terminally broken. (reported by
1344 2005-10-21 Patrick Lam <plam@mit.edu>
1345 * fc-list/fc-list.c (main):
1346 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1347 * fontconfig/fontconfig.h:
1349 Prevent fc-list from escaping strings when printing them (reported by
1352 2005-10-20 Marcus Meissner <meissner@suse.de>
1355 * fontconfig/fontconfig.h:
1357 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1359 2005-10-14 Ross Burton <ross@burtonini.com>
1362 * fc-glyphname/fc-glyphname.c:
1365 Add consts to variables so as to move arrays into .rodata.
1367 2005-10-14 Mike Fabian <mfabian@suse.de>
1370 * src/fccache.c (FcDirCacheUnlink):
1372 Check existence of directory cache file before attempting to unlink.
1374 2005-10-13 Patrick Lam <plam@mit.edu>
1375 * src/fccache.c (FcDirCacheUnlink):
1377 Fix flipped return value on unlink. (Reported by Mike Fabian)
1379 2005-10-12 Patrick Lam <plam@mit.edu>
1382 * src/fcdir.c (FcDirScanConfig):
1385 When fc-cache is run without --force, use directory cache files
1386 to speed up fc-cache run time. (Reported by Mike Fabian)
1388 2005-10-06 Patrick Lam <plam@mit.edu>
1390 * src/fcname.c (FcObjectToPtr):
1391 * src/fcpat.c (FcStrStaticName):
1393 Add padding to make valgrind and glibc not hate each other
1394 when calling strlen().
1396 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1397 reviewed by: plam & keithp
1401 Modify config file to use Greek fonts before Asian fonts with
1404 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1405 reviewed by: plam & keithp
1409 Use libtool -no-undefined flag on all platforms.
1411 2005-10-05 Patrick Lam <plam@mit.edu>
1412 * src/fccache.c (FcCacheHaveBank):
1414 Implement move-to-front array for banks (perf regression
1415 reported by Ronny V. Vindenes).
1417 2005-10-04 Patrick Lam <plam@mit.edu>
1418 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1419 FcDirCacheHasCurrentArch):
1420 * fc-cache/fc-cache.c (scanDirs):
1421 * fontconfig/fontconfig.h:
1423 Add new API which unlinks directory caches and checks dir caches
1424 for existence of appropriate sections. Fix fc-cache to unlink
1425 stale cache files and save directory caches that lack relevant
1428 2005-10-03 Patrick Lam <plam@mit.edu>
1429 * src/fccache.c (FcDirCacheValid):
1431 Ensure that a directory cache has the appropriate section
1432 before reporting that it is valid (reported by Matthias Clasen).
1434 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1442 Use libxml2 if requested (with --enable-libxml2) or if
1443 expat is not available.
1445 2005-09-29 Patrick Lam <plam@mit.edu>
1446 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1448 Fix multi-arch cache files: compute the position for the
1449 block to be added using info from OrigFile, not NewFile.
1451 2005-09-28 Patrick Lam <plam@mit.edu>
1452 * src/fccache.c (FcCacheMachineSignature):
1454 Cast results of sizeof() to unsigned int to get rid of
1455 warnings on x86_64 (thanks Matthias Clasen).
1457 2005-09-27 Patrick Lam <plam@mit.edu>
1458 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1461 Use FcAtomic to rewrite cache files.
1463 2005-09-27 Patrick Lam <plam@mit.edu>
1465 * src/fccache.c (FcDirCacheWrite):
1467 Don't unlink the fonts.cache-2 file even if there's no data
1468 to write; just write an empty cache file. (thanks Lubos Lunak)
1470 2005-09-27 Patrick Lam <plam@mit.edu>
1472 * src/fccache.c (FcDirCacheWrite):
1474 Allocate room for the subdirectory names in each
1475 directory cache. Thanks to James Cloos for finding
1476 and diagnosing this bug!
1478 2005-09-22 Patrick Lam <plam@mit.edu>
1480 * fc-cache/fc-cache.sgml:
1481 * src/fccache.c (FcDirCacheWrite):
1482 * src/fccache.h (struct FcCache):
1484 Update documentation -- fc-cache's man page now says that you
1485 need to run fc-cache once per cached architecture; add some
1486 documentation to the FcCache structure.
1488 Make fc-cache write out fonts.cache-2 files for directories with
1489 no fonts (i.e. only subdirectories).
1491 2005-09-22 Patrick Lam <plam@mit.edu>
1493 * fc-cache/fc-cache.sgml:
1494 * fc-case/fc-case.c:
1495 * fc-glyphname/fc-glyphname.c:
1501 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1505 * fc-lang/fc-lang.c:
1506 * fontconfig/fcprivate.h:
1507 * fontconfig/fontconfig.h:
1521 Implement new mmaped cache for font information.
1522 Bump so revision to 2.3.90.
1524 2005-07-25 Keith Packard <keithp@keithp.com>
1526 * doc/fontconfig-user.sgml:
1527 * fc-glyphname/fc-glyphname.c: (scan), (main):
1528 * fc-lang/fc-lang.c: (FcConfigHome):
1529 * fc-match/fc-match.c: (main):
1530 * src/fccfg.c: (FcConfigHome):
1531 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1532 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1533 (addtag), (FcFontCapabilities):
1534 * src/fcpat.c: (FcValueListEntCreate):
1535 * src/fcstr.c: (FcStrCaseWalkerInit):
1536 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1538 Various GCC 4 cleanups for signed vs unsigned char
1540 Match only [0-9]*.conf files in <include>{directory}</include>
1541 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1543 2005-07-15 Carl Worth <cworth@cworth.org>
1546 * src/fcinit.c: (FcFini):
1547 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1550 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1551 Pull the FcObjectStateName hash table out to file scope, and add
1552 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1555 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1558 2005-06-16 Patrick Lam <plam@MIT.EDU>
1562 * src/fccfg.c: (FcConfigCompareValue):
1563 Make FcOpNotContains use FcStrStr for strings so that
1564 it matches semantics for !FcOpContains.
1566 2005-05-20 Keith Packard <keithp@keithp.com>
1570 Move fontconfig source package to libs as per override
1572 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1574 reviewed by: Mike Fabian
1577 The ka.orth file requires several characters which are not
1578 used anymore in modern Georgian and which are missing in the free
1579 Georgian TrueType fonts downloadable at:
1581 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1583 2005-04-27 Keith Packard <keithp@keithp.com>
1587 Update date to real 2.3.2 release date.
1588 Fix change attributions
1590 2005-04-27 Keith Packard <keithp@keithp.com>
1593 Bump so revision for 2.3.2
1594 * fc-cache/fc-cache.c: (scanDirs):
1595 Fix a few minor leaks in error cases.
1597 2005-04-23 Keith Packard <keithp@keithp.com>
1602 * fontconfig/fontconfig.h:
1603 Update for version 2.3.2
1605 2005-04-21 Keith Packard <keithp@keithp.com>
1607 * debian/fontconfig.postinst:
1608 Don't force bitmap font enable in default
1609 configuration; allows users to override this in
1619 * debian/po/pt_BR.po:
1620 * debian/po/templates.pot:
1622 * debian/po/zh_CN.po:
1623 Updated translations
1625 * fc-cache/fc-cache.c: (main):
1626 Destroy font configuration on exit to help valgrind
1629 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1630 (FcFreeTypeCheckGlyph):
1631 Use own transcoding routines in preference to iconv
1632 which appears to have leaks in some translators.
1633 Call iconv_close after using iconv (oops).
1635 Prefer unicode encoding of Euro char as some
1636 fonts mis-encode Euro in other ones.
1638 Must fetch bitmap glyphs to get width values
1639 to check for monospace/dual-width fonts.
1641 2005-04-13 Ross Burton <ross@burtonini.com>
1644 Check that a pattern isn't already frozen in FcPatternFreeze.
1646 2005-03-31 Ross Burton <ross@burtonini.com>
1651 Run all FcPattern objects through FcObjectStaticName, so that
1652 compares can be done on pointers instead of strings (#2659)
1654 2005-03-17 Tor Lillqvist <tml@novell.com>
1656 * src/fontconfig.def.in: Add the .dll to the dll name.
1658 2005-03-10 Keith Packard <keithp@keithp.com>
1660 * debian/README.Debian:
1661 Update to reflect configuration changes
1663 * debian/fontconfig.postinst:
1664 Fix Autohint vs Autohinter mistake
1665 * debian/fontconfig.templates:
1666 Adopt changes from Josselin Mouette for configuration descriptions
1667 Update debian to version 2.3.1-2
1669 2005-03-08 Keith Packard <keithp@keithp.com>
1673 Update debian for 2.3.1
1675 2005-03-09 Tor Lillqvist <tml@novell.com>
1677 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1680 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1683 2005-03-08 Keith Packard <keithp@keithp.com>
1687 * fontconfig/fontconfig.h:
1690 2005-03-05 Keith Packard <keithp@keithp.com>
1692 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1693 Include space and remove numbers from valid script tags.
1694 This ensures that tags like 'lao ' work while rejecting
1695 those which have any digits.
1696 Eliminate a spurious debugging variable (len)
1698 2005-03-05 Keith Packard <keithp@keithp.com>
1700 * src/fcfreetype.c: (addtag), (GetScriptTags),
1701 (FcFontCapabilities):
1702 Rework GSUB/GPOS script parsing to survive broken fonts.
1703 Thanks for the broken font go to Manish Singh
1705 2005-03-05 Keith Packard <keithp@keithp.com>
1710 * debian/fontconfig.config:
1711 * debian/fontconfig.templates:
1713 Include 2.3 release information in changelog
1714 Add Josselin Mouette as an Uploader
1715 Set hinting_type to low priority configuration option
1718 * debian/fontconfig.postinst:
1719 yes_bitmaps.conf -> yes-bitmaps.conf
1725 2005-03-02 Keith Packard <keithp@keithp.com>
1728 * conf.d/Makefile.am:
1729 * conf.d/autohint.conf:
1730 * conf.d/no-sub-pixel.conf:
1731 * conf.d/sub-pixel.conf:
1732 * conf.d/unhinted.conf:
1733 * debian/autohint.conf:
1734 * debian/fontconfig.install:
1735 * debian/fontconfig.postinst:
1736 * debian/fontconfig.templates:
1737 * debian/no-sub-pixel.conf:
1738 * debian/unhinted.conf:
1739 Move debian-specific conf file examples upstream.
1741 Sub-pixel configuration examples must smash subpixel value
1742 as Xft always sets it from X.
1744 Change sub-pixel rendering debconf descriptions from
1745 Enable/Disable to Always/Never.
1747 2005-03-02 Keith Packard <keithp@keithp.com>
1750 * conf.d/.cvsignore:
1752 Ignore more build detritus
1755 Add debian package construction stuff.
1757 * config/config.guess:
1758 * config/config.sub:
1759 Update to newer versions of these tools
1762 Get library manuals to build again (we love automake).
1764 * debian/README.Debian:
1765 * debian/autohint.conf:
1770 * debian/fontconfig-udeb.install:
1771 * debian/fontconfig.config:
1772 * debian/fontconfig.defoma:
1773 * debian/fontconfig.dirs:
1774 * debian/fontconfig.install:
1775 * debian/fontconfig.postinst:
1776 * debian/fontconfig.postrm:
1777 * debian/fontconfig.templates:
1778 * debian/libfontconfig1-dev.install:
1779 * debian/libfontconfig1.install:
1780 * debian/local.conf.md5sum:
1781 * debian/no-sub-pixel.conf:
1782 * debian/po/POTFILES.in:
1791 * debian/po/pt_BR.po:
1792 * debian/po/templates.pot:
1794 * debian/po/zh_CN.po:
1796 * debian/unhinted.conf:
1797 Update debian build system to switch maintainers and
1798 deal with 2.3 functionality
1800 2005-03-01 Keith Packard <keithp@keithp.com>
1804 * fontconfig/fontconfig.h:
1807 2005-03-01 Keith Packard <keithp@keithp.com>
1810 Generate and install PDF versions of the manuals
1812 * doc/fcpattern.fncs:
1815 * doc/fcstring.fncs:
1816 Add missing exported functions, fix data types
1818 * doc/fontconfig-devel.sgml:
1819 Add missing pattern elements.
1821 * doc/fontconfig-user.sgml:
1822 Add missing pattern elements. Document conf.d usage,
1823 clarify available orthography list. Fix some config file
1824 attributes. Complete list of constants.
1826 * fontconfig/fontconfig.h:
1827 Mark FC_SOURCE deprecated.
1829 * src/fcfreetype.c: (FcFreeTypeQuery):
1830 Don't set FC_SOURCE any longer.
1832 2005-02-28 Keith Packard <keithp@keithp.com>
1835 * conf.d/Makefile.am:
1837 * conf.d/no-bitmaps.conf:
1838 * conf.d/sub-pixel.conf:
1839 * conf.d/yes-bitmaps.conf:
1841 Create prototype /etc/fonts/conf.d directory with a few
1842 sample configuration files.
1843 Deprecate use of local.conf for local customizations in favor of
1844 this directory based scheme which is more easily integrated into
1845 installation systems.
1848 Tag FC_EMBOLDEN as a boolean variable
1850 2005-02-10 Keith Packard <keithp@keithp.com>
1852 reviewed by: pborelli@katamail.com
1854 * src/fcdir.c: (FcFileScanConfig):
1855 Free patterns from fonts which are rejected by configuration
1858 2005-01-28 Keith Packard <keithp@keithp.com>
1862 * fontconfig/fontconfig.h:
1863 Update for version 2.2.99
1865 2005-01-28 Keith Packard <keithp@keithp.com>
1868 Add a few pointers (#2284, #2285)
1870 2005-01-28 Keith Packard <keithp@keithp.com>
1873 * src/fcname.c: (FcNameBool):
1874 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1875 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1876 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1877 Polite typechecking for test and edit expressions. Helps
1878 catch errors in the font configuration. (bug 229)
1880 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1882 reviewed by: Keith Packard <keithp@keithp.com>
1885 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1887 2005-01-13 Keith Packard <keithp@keithp.com>
1889 * doc/fontconfig-user.sgml:
1890 Add SEE ALSO section (bug 2085)
1892 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1894 reviewed by: Keith Packard <keithp@keithp.com>
1899 * fc-case/Makefile.am:
1900 * fc-glyphname/Makefile.am:
1901 * fc-lang/Makefile.am:
1902 * src/fontconfig.def.in:
1903 Cross compiling fixes (bug 280)
1905 2005-01-13 Keith Packard <keithp@keithp.com>
1908 Update blanks list (Closes bug 86)
1910 2005-01-04 Keith Packard <keithp@keithp.com>
1912 * src/fccache.c: (FcCacheFontSetAdd):
1913 Verify that every font pattern loaded from cache has
1914 both FC_FILE and FC_FAMILY entries.
1915 Attempt to fix bug #2219.
1917 2004-12-29 Keith Packard <keithp@keithp.com>
1921 * fontconfig/fontconfig.h:
1922 Update for version 2.2.98
1924 2004-12-29 Keith Packard <keithp@keithp.com>
1926 * fontconfig/fontconfig.h:
1927 Document ASCII limitations of Fc character conversion macros
1928 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1929 Fix off-by-one error in utf-8 case walking code.
1930 Add FcStrDowncase (useful for testing case conversion functions)
1932 2004-12-29 Keith Packard <keithp@keithp.com>
1935 * fc-case/.cvsignore:
1936 clean up CVS ignore lists
1937 * fc-lang/iso-3166.txt:
1938 Add territory database
1940 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1942 Reviewed by: Keith Packard
1945 Remove Han characters from Korean orthography
1947 2004-12-29 Keith Packard <keithp@keithp.com>
1950 Reorder utility programs to make sure fc-case is run before fc-lang
1951 as fc-lang uses fcstr.c which uses fccase.h
1955 2004-12-29 Keith Packard <keithp@keithp.com>
1958 Adopt some RedHat suggestions for standard font configuration.
1962 * fc-case/CaseFolding.txt:
1963 * fc-case/Makefile.am:
1964 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1965 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1966 (dump), (parseRaw), (caseFoldReadRaw), (main):
1967 * fc-case/fccase.tmpl.h:
1968 Add new helper program 'fc-case' to construct case folding
1969 tables from standard Unicode CaseFolding.txt file
1972 * src/fclist.c: (FcListValueHash):
1973 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1974 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1975 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1976 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1977 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1978 Re-implement case insensitive functions with Unicode
1979 aware versions (including full case folding mappings)
1981 2004-12-13 Keith Packard <keithp@keithp.com>
1983 reviewed by: Owen Taylor <otaylor@redhat.com>
1985 * src/fcmatch.c: (FcFontSetSort):
1986 I changed FcFontSetSort to respect the generic aliases better
1987 in the face of language matching.
1989 What I did was to ammend the strict sort order used by FcFontSort so
1990 that it 'satisfies' the language specified in the pattern by locating
1991 the best matching font supporting each pattern language and then
1992 ignores language in the remaining fonts for purposes of matching.
1994 So, when asking for 'sans:lang=en', you'll get an English font first,
1995 and then the remaining fonts sorted with respect to the 'sans' alias
1996 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1998 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
2000 reviewed by: Keith Packard <keithp@keithp.com>
2002 * fontconfig/fontconfig.h:
2005 Configuration changes to request synthetic emboldening of
2006 fonts. The actual emboldening code will live in Xft.
2008 2004-12-09 John Thacker <thacker@math.cornell.edu>
2010 reviewed by: Keith Packard <keithp@keithp.com>
2014 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
2015 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
2016 и), and don't even appear in KOI8-R. (The hypothesis that they
2017 don't appear in KOI8-R due to their similarity with Latin I and i is
2018 eliminated by their presence in KOI8-U.) I have a couple of fonts
2019 with Russian support that don't have the letter.
2021 Therefore, 0406 and 0456 should be removed from or commented out of
2024 2004-12-06 michael meeks <mmeeks@novell.com>
2026 Reviewed by: Keith Packard <keithp@keithp.com>
2028 * src/fcinit.c: (FcMemReport):
2030 * src/fclist.c: (FcObjectSetAdd):
2031 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
2032 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
2033 * src/fcxml.c: (FcParsePatelt):
2034 memoize strings and share a single copy for all uses. Note that
2035 this could be improved further by using statically allocated blocks
2036 and gluing multiple strings together, but I'm basically lazy.
2037 In my environment with 800 font files, I get a savings of about 90KB.
2039 2004-12-06 Keith Packard <keithp@keithp.com>
2043 * config/Makedefs.in:
2046 * doc/fcatomic.fncs:
2047 * doc/fcblanks.fncs:
2048 * doc/fccharset.fncs:
2049 * doc/fcconfig.fncs:
2050 * doc/fcconstant.fncs:
2052 * doc/fcfontset.fncs:
2053 * doc/fcfreetype.fncs:
2055 * doc/fcmatrix.fncs:
2056 * doc/fcobjectset.fncs:
2057 * doc/fcobjecttype.fncs:
2058 * doc/fcpattern.fncs:
2059 * doc/fcstring.fncs:
2060 * doc/fcstrset.fncs:
2062 * doc/fontconfig-devel.sgml:
2063 * doc/fontconfig-user.sgml:
2065 * doc/version.sgml.in:
2066 * fc-cache/Makefile.am:
2067 * fc-cache/fc-cache.c:
2068 * fc-glyphname/Makefile.am:
2069 * fc-glyphname/fc-glyphname.c:
2070 * fc-glyphname/fcglyphname.tmpl.h:
2071 * fc-lang/Makefile.am:
2081 * fc-lang/az_ir.orth:
2115 * fc-lang/fc-lang.c:
2116 * fc-lang/fc-lang.man:
2117 * fc-lang/fclang.tmpl.h:
2162 * fc-lang/ku_ir.orth:
2195 * fc-lang/ps_af.orth:
2196 * fc-lang/ps_pk.orth:
2225 * fc-lang/ti_er.orth:
2226 * fc-lang/ti_et.orth:
2252 * fc-lang/zh_cn.orth:
2253 * fc-lang/zh_hk.orth:
2254 * fc-lang/zh_mo.orth:
2255 * fc-lang/zh_sg.orth:
2256 * fc-lang/zh_tw.orth:
2258 * fc-list/Makefile.am:
2259 * fc-list/fc-list.c:
2260 * fc-match/Makefile.am:
2261 * fc-match/fc-match.1:
2262 * fc-match/fc-match.c:
2263 * fontconfig/fcfreetype.h:
2264 * fontconfig/fcprivate.h:
2265 * fontconfig/fontconfig.h:
2286 Change files from ISO-Latin-1 to UTF-8
2288 2004-12-04 Keith Packard <keithp@keithp.com>
2291 Update links to new freedesktop.org locations
2293 Add uninstall-local to get rid of fonts.conf and local.conf if they
2294 match the distributed versions. Fixes 'make distcheck'
2296 2004-12-04 Keith Packard <keithp@keithp.com>
2300 * fontconfig/fontconfig.h:
2301 Updates for version 2.2.97
2303 2004-12-04 Owen Taylor <otaylor@redhat.com>
2305 reviewed by: Keith Packard <keithp@keithp.com>
2307 * fc-cache/fc-cache.c: (main):
2308 Sleep for two seconds before exiting to make sure timestamps
2309 for future changes have distinct mod times in the file system.
2312 Add Punjabi orthography. Bug #1671.
2314 2004-12-04 Keith Packard <keithp@keithp.com>
2317 Just remove the FC_FONTDATE -- it has locale issues and
2318 annoys redhat multi-arch installs. Now that all X fonts are
2319 included without prejudice, the chances of the date being at
2320 all interesting are rather limited. Bug #505.
2322 Add copyright and license
2324 2004-12-04 Keith Packard <keithp@keithp.com>
2327 Change default set of fonts to include all of
2328 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2329 * doc/fontconfig-user.sgml:
2330 Document new <include>directory-name</include> semantics
2332 add <include ignore_missing="yes">conf.d</include>
2334 Add selectfont to ignore bitmap fonts, add comment for
2335 selectfont which accepts bitmap fonts.
2338 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2339 Allow <include> configuration elements to reference directories.
2340 Parse and load all files of the form [0-9]* in sorted order.
2342 2004-12-04 Keith Packard <keithp@keithp.com>
2345 Report command line for $srcdir/configure accurately.
2348 2004-12-04 Keith Packard <keithp@keithp.com>
2350 * src/fcfreetype.c: (FcFreeTypeQuery):
2351 Check for non-empty face->family_name and face->style_name
2352 before using those for the font. Empty names match everything.
2355 2004-12-04 Keith Packard <keithp@keithp.com>
2358 * fontconfig/fontconfig.h:
2359 * src/fcfreetype.c: (FcFreeTypeQuery):
2361 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2362 available. This provides font file format information (BDF, Type 1,
2363 PCF, TrueType) for each font. Closes #109.
2365 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2367 reviewed by: Keith Packard <keithp@keithp.com>
2369 * doc/fontconfig-user.sgml:
2372 * fontconfig/fontconfig.h:
2373 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2374 (GetScriptTags), (FcFontCapabilities):
2376 Add detection for font capabilities (bug #105)
2378 2004-12-04 Keith Packard <keithp@keithp.com>
2381 Move existing fonts.conf to fonts.conf.bak
2384 Add detection of iconv
2386 * doc/fcpattern.fncs:
2387 * doc/fontconfig-devel.sgml:
2388 * doc/fontconfig-user.sgml:
2390 Document new selectfont elements
2393 Switch to UTF-8 in comment
2395 * fontconfig/fontconfig.h:
2397 Add fullname, and family/style/fullname language entries
2399 * src/fccache.c: (FcCacheFontSetAdd):
2400 * src/fcdir.c: (FcFileScanConfig):
2401 Respect selectfont/*/glob
2404 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2405 (FcConfigCompareValue), (FcConfigPatternsAdd),
2406 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2407 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2408 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2409 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2410 Add support for selectfont
2412 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2413 (FcStringInPatternElement), (FcFreeTypeQuery):
2414 Add multi-lingual family/style/fullname support
2416 * src/fclist.c: (FcListPatternMatchAny):
2417 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2419 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2420 (FcObjectStaticName):
2421 Add new FcPatternRemove/FcPatternAppend.
2422 FcObjectStaticName stores computed pattern element names which
2423 are required to be static.
2425 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2430 Remove spurious / after $(DESTDIR)
2432 2004-06-30 Keith Packard <keithp@keithp.com>
2436 * fontconfig/fontconfig.h:
2439 2004-06-30 Keith Packard <keithp@keithp.com>
2441 Provided by: Lubos Lunak <l.lunak@suse.cz>
2443 * src/fccfg.c: (FcConfigUptoDate):
2444 However FcConfigUptoDate() doesn't seem to work. See the attached
2445 patch. First there's an obvious misplaced parenthesis making it
2446 return always false, and second, even this call fails to detect font
2447 changes (e.g. adding a new font to
2448 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2449 well. The problem seems to be triggered by my fonts.conf specifying
2450 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2451 doesn't include subdirs, unlike config->fontDirs.
2453 2004-06-03 Keith Packard <keithp@keithp.com>
2455 * fontconfig/fontconfig.h:
2456 Remove comma at end of FcResult enum definition.
2458 2004-05-29 Keith Packard <keithp@keithp.com>
2461 Add steps to md5sum release
2463 2004-05-29 Keith Packard <keithp@keithp.com>
2467 * fontconfig/fontconfig.h:
2470 2004-05-29 Keith Packard <keithp@keithp.com>
2472 * fontconfig/fontconfig.h:
2473 * src/fcmatch.c: (FcFontSetMatch):
2474 Add FcResultOutOfMemory to provide an accurate error when
2475 FcFontSetMatch fails in this way
2478 Make #warning about lacking various FreeType features indicate
2479 which version those features appeared so users know how to
2480 fix the problem (Thanks to Anton Tropashko)
2482 2004-05-05 Keith Packard <keithp@keithp.com>
2484 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2485 Replace MIN/MAX/ABS macros which happen to have come
2486 from FreeType with fontconfig-specific ones (FC_*)
2488 2004-04-23 Keith Packard <keithp@keithp.com>
2491 Extend release preparation instructions to include
2492 notification and distribution steps
2494 2004-04-23 Keith Packard <keithp@keithp.com>
2498 * fontconfig/fontconfig.h:
2499 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2501 2004-04-23 Keith Packard <keithp@keithp.com>
2504 Ignore a few more autotool files
2506 2004-04-14 Keith Packard <keithp@keithp.com>
2509 Add instructions for doing a release
2511 * fontconfig.spec.in:
2512 clean up .spec file; perhaps this will be useful to somebody...
2516 * fontconfig/fontconfig.h:
2519 * fc-lang/fc-lang.c:
2520 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2522 * fc-glyphname/Makefile.am:
2523 * fc-lang/Makefile.am:
2524 * fc-list/Makefile.am:
2525 * fc-match/Makefile.am:
2527 Add WARN_CFLAGS to pass -W flags for GCC systems
2529 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2530 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2531 Change various char types around to match across
2533 Fixed bug in using available_sizes[i].height which
2534 is in pixels, not 64ths of a pixel.
2536 2004-03-06 Keith Packard <keithp@keithp.com>
2538 * src/fcfreetype.c: (FcFreeTypeQuery):
2539 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2540 matches looking for explicit values prefer exact matches
2542 2004-03-02 Keith Packard <keithp@keithp.com>
2544 Supplied by: mfabian@suse.de (Mike FABIAN)
2546 * src/fcfreetype.c: (FcFreeTypeQuery):
2547 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2548 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2550 2004-02-21 Manish Singh <yosh@gimp.org>
2552 * fc-glyphname/fc-glyphname.c: (main):
2553 Cast strlen to int for printf, so we're 64-bit clean.
2555 2004-02-11 Keith Packard <keithp@keithp.com>
2558 * src/fcfreetype.c: (FcGetPixelSize):
2559 Ok, so I messed up the test for y_ppem. Let's see if I
2560 got it right this time.
2562 2004-02-10 Keith Packard <keithp@keithp.com>
2565 * src/fcfreetype.c: (FcGetPixelSize):
2566 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2567 FT_Bitmap_Size record. Add a configure.in test for this
2568 and change the code accordingly (using height instead).
2570 2004-02-06 Keith Packard <keithp@keithp.com>
2573 Add Low Saxon orthography
2574 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2576 * src/fccfg.c: (FcConfigNewestFile):
2577 Oops. Left 'newest.set' unset, which would miscompute
2580 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2581 (FcFreeTypeCheckGlyph):
2582 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2583 font properties (which report the wrong value in current FreeType)
2585 Don't attempt to check for empty glyphs in non-scalable fonts; they
2588 2004-02-01 Tor Lillqvist <tml@iki.fi>
2590 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2591 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2592 cache if config->cache is NULL, which happens if FcConfigHome() is
2593 NULL. Guard against that by using the temp folder in that case.
2595 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2597 * fc-lang/az_ir.orth:
2598 * fc-lang/ku_ir.orth:
2599 * fc-lang/ps_af.orth:
2600 * fc-lang/ps_pk.orth:
2601 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2602 (Afghan and Pakistani).
2604 Updated Urdu orthography with real data.
2606 2003-12-11 Carl Worth <cworth@east.isi.edu>
2608 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2611 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2613 (all-local): Remove excessive whitespace.
2615 * autogen.sh: Add 'set -e' to abort when any program fails,
2616 (avoids printing of 'now type make' after configure aborts).
2618 2003-11-17 Eric Christopherson <rakko@charter.net>
2620 reviewed by: Keith Packard <keithp@keithp.com>
2623 * fontconfig/fcfreetype.h:
2625 Switch to FreeType 2.1.7 style includes. Bug #150.
2627 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2629 * fc-list/fc-list.sgml: Add some example usages.
2631 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2634 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2637 2003-10-27 Keith Packard <keith@keithp.com>
2640 * fontconfig/fontconfig.h:
2641 Update to version 2.2.92
2643 2003-10-27 Keith Packard <keithp@keithp.com>
2648 * fc-cache/Makefile.am:
2649 * fc-glyphname/Makefile.am:
2650 * fc-lang/Makefile.am:
2651 * fc-list/Makefile.am:
2652 * fc-match/Makefile.am:
2655 Yet more cleanups to finish getting 'make distcheck' working
2656 This has been tested to ensure that it even works from a _build
2659 2003-10-26 Keith Packard <keithp@keithp.com>
2663 * fc-cache/Makefile.am:
2664 * fc-glyphname/Makefile.am:
2665 * fc-lang/Makefile.am:
2666 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2667 * fc-list/Makefile.am:
2668 * fc-match/Makefile.am:
2669 Attempts to fix 'make distcheck' work. Things are
2670 progressing pretty well, but there are still failures
2671 long into the process dealing with docs (as always).
2673 The big changes here are mostly to make $(srcdir) != "."
2674 work correctly, fixing the docbook related sections and
2675 fc-lang were particularily tricky. Docbook refuses to load
2676 system entities from anywhere other than where the original .sgml
2677 file was located, so no luck looking in "." for the
2678 configure-generated version.sgml and confdir.sgml files.
2680 fc-lang needed help finding .orth files; added a -d option
2681 to set the directory as the least evil of many options.
2683 Now to go use a faster machine and try and wring out the last
2686 2003-10-26 Keith Packard <keithp@keithp.com>
2690 2003-10-26 Keith Packard <keithp@keithp.com>
2693 Include confdir.sgml.in in EXTRA_DIST
2695 2003-10-09 Josselin Mouette <joss@debian.org>
2697 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2698 * fc-list/fc-list.sgml fc-list/Makefile.am:
2699 Replace fc-cache and fc-list manpages with more detailed, SGML
2702 2003-09-23 Owen Taylor <otaylor@redhat.com>
2704 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2705 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2706 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2709 2003-09-23 Owen Taylor <otaylor@redhat.com>
2711 * fc-lang/ka.orth: Remove Georgian capitals, they
2712 aren't used for normal writing. (Bug #116)
2714 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2716 * doc/fontconfig-devel.sgml:
2717 * doc/fontconfig-user.sgml:
2718 * fontconfig/fontconfig.h:
2720 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2721 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2723 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2724 monospace and dual-width fonts, allow roughly a 3% variance in the
2727 2003-08-31 Manish Singh <yosh@gimp.org>
2729 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2732 2003-08-15 Carl Worth <cworth@isi.edu>
2734 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2735 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2737 * src/fcpat.c (FcValueListEntDestroy): New function to support
2738 FcFini memory cleanup. Some statistics are not kept in
2740 (FcValueListFreeze): Move hashTable outside this function so it
2741 can be accessed by FcValueListThawAll.
2742 (FcValueListThawAll): New function complements FcValueListFreeze.
2743 (FcPatternBaseFreeze): Move hashTable outside this function so it
2744 can be accessed by FcPatternBaseThawAll.
2745 (FcPatternBaseThawAll): New function complements
2746 FcPatternBaseFreeze.
2747 (FcPatternThawAll): New function complements FcPatternFreeze.
2749 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2751 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2752 allocated FcCharLeafEnt "blocks" so they can be freed later.
2753 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2754 can be accessed by FcCharSetThawAllLeaf.
2755 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2756 (FcCharSetFreezeBase): Move hashTable outside this function so it
2757 can be accessed by FcCharSetThawAll.
2758 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2760 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2761 (FcConfigDestroy): Fic leak of FcBlanks.
2763 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2764 (main): Add call to FcFini when finished.
2766 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2767 static. Add prototypes.
2769 * doc/fcinit.fncs: Add documentation for FcFini function.
2771 * doc/edit-sgml.c: Mark several local functions as static. Add
2774 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2776 2003-06-15 Tor Lillqvist <tml@iki.fi>
2778 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2779 before comparing (needed on Windows).
2781 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2783 2003-06-13 Tor Lillqvist <tml@iki.fi>
2785 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2788 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2789 WINDOWSFONTDIR token.
2791 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2792 end, not to confuse libtool, which expects the EXPORTS line to be
2793 the first. Add FcConfigEnableHome.
2795 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2796 built as a DLL on Win32.
2798 2003-06-09 Keith Packard <keithp@keithp.com>
2800 * Tag version 2.2.90
2802 2003-06-09 Keith Packard <keithp@keithp.com>
2804 * Optimization in FcLangSetIndex was broken, occasionally
2805 returning a pointer to the wrong location on miss
2807 * Add fc-match to test font matching from the command line.
2809 2003-05-31 Keith Packard <keithp@keithp.com>
2811 * (Bug 85) add support for culmus fonts
2812 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2813 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2815 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2817 * Fix "contains" op for strings and langsets.
2819 2003-05-17 Keith Packard <keithp@keithp.com>
2821 * Fix build error with BDF prop local. Free langset after query
2823 2003-05-14 Keith Packard <keithp@keithp.com>
2825 * Extract spacing from XLFD atom
2827 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2829 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2830 disappeared in 1.30.
2832 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2834 2003-05-12 Keith Packard <keithp@keithp.com>
2836 * Use FcIsWidth to share code
2838 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2839 misclassifying some Han fonts as monospaced.
2841 2003-05-07 Keith Packard <keithp@keithp.com>
2843 * Add filename-based accept/reject to ammend available fonts.
2845 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2846 older FreeType releases.
2848 2003-05-06 Keith Packard <keithp@keithp.com>
2850 * Remove 0b82 and Tamil numbers from tamil
2851 orthography (Jungshik Shin <jshin@mailaps.org>)
2853 2003-05-04 Keith Packard <keithp@keithp.com>
2855 + Map glyph names in fonts with adobe custom encoding to unicode
2857 2003-05-02 Keith Packard <keithp@keithp.com>
2859 * Add FC_WEIGHT_BOOK as weight 75
2861 2003-04-30 Keith Packard <keithp@keithp.com>
2863 * Typo in bitstream foundry name
2865 2003-04-24 Keith Packard <keithp@keithp.com>
2867 * Eliminate italic_angle check for PS fonts
2869 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2871 * Getting closer to fixing /etc/fonts hard-coding.
2873 2003-04-22 Keith Packard <keithp@keithp.com>
2875 * Update autogen.sh to work with newer automake versions
2876 * Handle pattern elements moving during multiple edits
2878 2003-04-23 James Henstridge <james@daa.com.au>
2880 * doc/fontconfig-devel.sgml: close the <para> element.
2882 * doc/fcpattern.fncs: close the <para> element.
2884 * doc/func.sgml: close the <refsynopsisdiv> element.
2886 2003-04-22 Keith Packard <keithp@keithp.com
2888 * Update autogen.sh to work with newer automake versions
2889 * Handle pattern elements moving during multiple edits
2891 2003-04-17 Colin Walters <walters@debian.org>
2893 + Remove some unused variables, and initialize some other ones so
2894 gcc doesn't warn us.
2896 2003-04-16 Keith Packard <keithp@keithp.com>
2898 + tag version 2.1.94
2900 2003-04-16 Keith Packard <keithp@keithp.com>
2902 + add BDF property fetching support for foundry
2903 (from Juliusz Chroboczek)
2904 + add BDF property fetching support for width
2906 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2908 + Implemented foundry generation for Type 1 and TrueType
2910 2003-04-11 Gerard Escalante <g2@magestudios.net>
2912 + Retrieve information from Type1 FontInfo dictionaries
2914 2003-04-07 Colin Walters <walters@verbum.org>
2916 + src/Makefile.am: Fix dummy makefile target names when
2917 MS_LIB_AVAILABLE isn't set.
2919 2003-03-22 Tor Lillqvist <tml@iki.fi>
2921 Changes for Windows:
2923 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2925 + We don't want to hardcode the fonts.conf file location in the
2926 DLL, so we look up the DLL location at run-time in a DllMain()
2927 function. The fonts.conf location is deduced from that.
2929 + The colon can't be used as path separator on Windows,
2930 semicolon is used instead. File path components can be separated
2931 with either slash or backslash. Absolute paths can also begin
2932 with a drive letter.
2934 + Add internal function FcStrLastSlash that strrchr's the last
2935 slash, or backslash on Windows.
2937 + There is no link() on Windows. For atomicity checks, mkdir a
2938 lock directory instead.
2940 + In addition to HOME, also look for USERPROFILE.
2942 + Recognize the special font directory token WINDOWSFONTDIR, to
2943 use the system's font directory.
2945 + Remove the fontconfig-def.cpp that was obsolete. Add
2946 fontconfig.def(.in), without internal functions.
2948 + Add a fontconfig-zip(.in) script, used to build a binary
2951 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2952 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2953 to main package and man3/* to devel package
2955 + Added missing defattr(-, root, root) to main RPM package
2957 + Added HTML and text development documentation to -devel subpackage
2959 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2960 + Added back the configure macro options --disable-docs, otherwise
2961 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2962 version number) unconditionally, causing RPM to fail the build due
2963 to _unpackaged_files_terminate_build. We pick up the pregenerated
2964 docs with %doc already.
2966 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2967 + Removed commented out rpm macro define at top of spec file,
2968 replacing it with a simple explanation, since rpm macros are
2969 expanded by rpm even in comments.
2971 + Changed /usr/bin to _bindir in BuildRequires lines
2973 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2975 + Reorganized file manifest lists
2977 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2979 + fontconfig.spec.in: Improvements from Red Hat spec file.
2981 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2983 + docs/*.sgml: SGML fixes.
2985 Sat Mar 1 17:28:53 PST 2003 keithp
2986 + Ok, so the ChangeLog is a bit out of date
2988 + Lots of bugs fixed; most are in bugzilla, the
2989 biggest problems were in cache management where
2990 Owen discovered the library would lose badly when
2991 combining fonts-cache and ~/.fonts-cache data
2993 + Converted from autoconf to automake. This after
2994 getting patches accepted into libtool to allow
2995 the '-version-number' argument which lets
2996 packages set version numbers explicitly rather
2997 than the roundabout libtool way
2999 + Converted documentation to SGML using the docbook
3000 DTD. Now .txt and .html documents are installed
3001 in /usr/share/doc/fontconfig and there's no
3002 man page. Perhaps a man version can be written
3005 Sat Aug 31 15:21:22 PDT 2002 keithp
3006 + Xrender and Xft had several bugs related to
3007 rendering manually placed or poly-face text
3009 + Added more complete memory tracing in fontconfig
3010 Checked with (patched) mozilla and found no leaks
3012 + Updated Latin orthographies by comparing those from
3013 evertype.com with those from eki.ee. Tried to make
3014 sensible choices, including chars that occured in both
3015 and leaving some optional chars out that occured only
3018 Mon Aug 26 16:33:04 PDT 2002 keithp
3019 + Owen discovered that FcLangSetHasLang wasn't actually
3020 checking the language set.
3022 Mon Aug 26 13:37:23 PDT 2002 keithp
3023 + Append a version number to cache filenames
3025 Thu Aug 22 11:36:18 PDT 2002 keithp
3027 + Add "contains" and "not_contains" operators and elements to
3030 + Changed semantics of eq operator for LangSets to check for
3031 FcLangEqual so that any match will do
3033 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
3034 of FcValueEqual to check for identical values when inserting into
3035 the results. This broke when the above semantic change was made,
3036 now it uses FcValueEqual which is "more correct" in any case.
3038 Thu Aug 22 00:32:29 PDT 2002 keithp
3040 + Reimplement FC_LANG as new datatype. Lists of strings
3041 was consuming over a megabyte of memory for 401 fonts.
3043 + Freeze patterns loaded from cache files. This shares
3044 common value lists and common patterns which saves
3045 considerable memory.
3047 + Change the denotation of 'constant' charsets to use special
3048 ref value instead of separate boolean.
3050 + Clean up leak tracing stuff, found several unannoted alloc/free
3053 Tue Aug 20 16:17:37 PDT 2002 keithp
3055 + Fix memory leak when parsing matrices from XML
3057 Mon Aug 19 11:57:27 PDT 2002 keithp
3059 + Fix autoconf files to pass FONTCONFIG_PATH on
3060 compile line so that ${prefix} gets substituted
3063 + Use getc_unlocked/putc_unlocked on systems that
3064 provide them to avoid damage done to stdio by posix
3066 + Eliminate FC_PATTERN and FcTypePattern in favor of
3067 an extended api for FcConfigSubstitute which takes
3068 both the font and the pattern.
3070 + Add 'sans serif' alias for 'sans-serif' as some apps
3071 can't handle hyphens in family names
3073 + Eliminate pretense of support for libxml2
3075 + Comment origins of Han orthographies
3077 Tue Jul 30 18:37:09 PDT 2002 keithp
3079 + Add binding property to edit element so that strong
3080 binding values may be inserted by the config file.
3081 The default remains weak.
3083 Sun 28 Jul 04:16:55 PDT 2002 keithp
3085 + Tagged release candidate 1 in the CVS tree and
3086 placed fcpackage.rc1.tar.gz for distribution
3088 Thu Aug 1 08:55:08 PDT 2002 keithp
3090 + Fixed autoconf builds to always specify install
3091 target files (for BSD). Also fixed to
3092 define FONTCONFIG_PATH in config.h so that
3093 nonstandard installs will actually work.