1 2006-03-24 Mike Fabian <mfabian@suse.de>
3 * src/fccache.c (FcGlobalCacheLoad, FcCacheSkipToArch):
5 Fix multiarch support (don't destroy multiarch files!)
7 2006-03-24 Patrick Lam <plam@mit.edu>
10 Require pkg-config. (Thanks Behdad;
11 better solution wanted for libxml2 detection!)
13 2006-03-22 Patrick Lam <plam@mit.edu>
16 On Windows, unlink before rename. Reported by Tim Evans.
18 2006-03-15 Patrick Lam <plam@mit.edu>
22 Fix typos in orth files. Reported by Denis Jacquerye.
24 2006-03-08 Patrick Lam <plam@mit.edu>
26 * config/config.guess:
29 Fix Makefile.am for removal of debian/ directory.
31 2006-03-08 Patrick Lam <plam@mit.edu>
34 Ignore debian/ directory for CVS.
36 2006-03-08 Patrick Lam <plam@mit.edu>
39 Now remove debian/ directory.
41 2006-03-08 Patrick Lam <plam@mit.edu>
44 Remove debian/ directory from sources. See Debian's subversion
45 server at svn://svn.debian.org/pkg-freedesktop/trunk/fontconfig
48 2006-03-08 Denis Jacquerye <moyogo@gmail.com>
52 * fc-lang/iso639-1, fc-lang/iso639-2:
54 Add orthography for Lingala.
56 2006-03-08 Carl Worth <cworth@cworth.org>
60 * conf.d/10LohitGujarati.conf:
62 Add a configuration file that disables hinting for the Lohit
63 Gujarati font (since the hinting distort some glyphs quite badly).
65 2006-03-08 Egmont Koblinger <egmont@uhulinux.hu>
68 * src/fcdir.c (FcDirScanConfig):
70 Sort directory entries while scanning them from disk;
71 prevents Heisenbugs due to file ordering in a directory.
73 2006-03-07 Behdad Esfahbod <behdad@cs.toronto.edu>
76 * src/fcfreetype.c (GetScriptTags):
77 * src/ftglue.c, src/ftglue.h:
79 Remove stuff we don't use, make get_{char,short,long} functions
80 of ftglue macros to be inlined.
83 * src/fcname.c (FcObjectSerialize):
85 Code cleanups (excess prototype, old-style function definition).
87 2006-03-05 Patrick Lam <plam@mit.edu>
88 * src/fcpat.c (FcPatternGetString):
90 Because we hacked FcPatternGet, we don't really need to expand the
91 filename again in FcPatternGetString.
93 2006-03-05 Patrick Lam <plam@mit.edu>
94 * src/fcpat.c (FcPatternGetString, FcPatternGet):
96 Ok, so some people (wine!) use FcPatternGet to fetch FC_FILE.
97 Make that work. Reported by Bernhard Rosenkraenzer.
99 2006-03-03 Patrick Lam <plam@mit.edu>
102 Include inttypes.h instead of stdint.h if appropriate.
104 2006-03-03 Patrick Lam <plam@mit.edu>
105 * fc-cat/fc-cat.c (FcFileIsDir):
106 * fc-glyphname/fc-flyphname.c:
108 More stub definitions and remove FcFileIsDir from fc-cat.
110 2006-03-03 Patrick Lam <plam@mit.edu>
113 Fix compilation on AIX with stub definitions (bug 6097).
115 2006-03-03 Patrick Lam <plam@mit.edu>
116 * src/fccache.c (FcCacheSkipToArch, FcDirCacheProduce):
117 * src/fcfreetype.c (GetScriptTags):
118 * src/fcfs.c (FcFontSetDistributeBytes):
119 * src/fcpat.c (FcValueListEntCreate, FcValueListNeededBytes):
121 Get rid of C++-style comments.
123 2006-03-03 Patrick Lam <plam@mit.edu>
126 Enable creation of 2.3.94 Debian packages.
128 2006-03-02 Egmont Koblinger <egmont@uhulinux.hu>
131 * src/fclang.c (FcCharSetForLang):
133 Fix suspicious return expression which causes junk
136 2006-02-24 Patrick Lam <plam@mit.edu>
140 * fontconfig/fontconfig.h:
142 Bump version to 2.3.94.
144 2006-02-24 Patrick Lam <plam@mit.edu>
149 2006-02-24 Patrick Lam <plam@mit.edu>
150 * conf.d/10-fonts-persian.conf:
152 Remove unconditional emboldening (per Behdad's instructions).
156 Add @s to hide some echos.
158 2006-02-24 Mike Fabian <mfabian@suse.de>
159 Takashi Iwai <tiwai@suse.de>
162 * src/fcfreetype.c (GetScriptTags):
164 Fix double-free on error case.
166 2006-02-21 Patrick Lam <plam@mit.edu>
167 * fc-lang/fc-lang.c (scan):
169 Strip \r and whitespace from input; fixes bug 3454.
171 2006-02-21 Patrick Lam <plam@mit.edu>
172 * fc-lang/fc-lang.c (main):
174 Allocate large arrays statically in fc-lang to fix crashes under
177 2006-02-21 Diego Petten <flameeyes@gentoo.org>
178 * src/fcfreetype.c (FcFreeTypeCharIndex):
180 Pass the buck; make fontconfig not crash on pango badness.
182 2006-02-21 Patrick Lam <plam@mit.edu>
183 * conf.d/10-fonts-persian.conf:
185 Use embeddedbitmap rather than rh_prefer_bitmap.
187 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
190 * src/fccache.c (FcDirCacheWrite):
191 * src/fcdir.c (FcFileScanConfig):
192 * src/fcfreetype.c (FcStringInPatternElement):
193 * src/fcxml.c (FcParseFamilies):
194 * src/ftglue.c (ftglue_face_goto_table):
196 Eliminate redundancies.
198 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
201 * fc-list/fc-list.c (main):
202 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
203 * src/fcstr.c (FcStrStr):
204 * src/fcxml.c (FcConfigSaveAttr):
206 Eliminate unused vars reported by Intel's compiler.
208 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
213 Remove one more archaic character.
215 2006-02-21 Ross Burton <ross@burtonini.com>
216 reviewed by: plam, keithp
218 * src/fcxml.c (FcParsePatelt):
220 Freeze patterns created by configuration file for tiny
221 memory savings (every little bit helps).
223 2006-02-21 Mike Fabian <mfabian@suse.de>
226 * fc-cat/fc-cat.c (main):
228 Initialize fontconfig library in fc-cat to avoid segfault.
230 2006-02-18 Patrick Lam <plam@mit.edu>
231 * fc-cache/fc-cache.c (scanDirs):
232 * src/fccache.c (FcCacheReadDirs):
233 * src/fcdir.c (FcDirScanConfig):
235 Fix the underlying cause of the below segfault (must usually
236 call FcDirCacheHasCurrentArch after FcDirCacheValid).
238 2006-02-18 Patrick Lam <plam@mit.edu>
239 * src/fccache.c (FcDirCacheHasCurrentArch):
241 Fix triggering of segfault caused by misreading cache files
242 (reported by fcrozat).
244 2006-02-17 Patrick Lam <plam@mit.edu>
245 * src/fcint.h (FC_CACHE_MAGIC):
247 Bump up magic version; we changed the binary format.
249 2006-02-17 Patrick Lam <plam@mit.edu>
250 * fc-cat/fc-cat.c (main):
252 Enable fc-cat to print out old-style cache info when given a
255 2006-02-16 Patrick Lam <plam@mit.edu>
256 * src/fccache.c (FcDirCacheHasCurrentArch):
258 Deal correctly with changing FC_CACHE_MAGIC.
260 2006-02-16 Patrick Lam <plam@mit.edu>
261 * fc-cache/fc-cache.c (usage, scanDirs, main):
263 Add -r --really-force option which blows away cache files and then
266 2006-02-16 Patrick Lam <plam@mit.edu>
267 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
269 Don't bail if fontconfig can't remove a dir cache file.
270 Skip the ID of a cache file when copying.
271 Eliminate 'source file too small' bug in FcDirCacheWrite.
273 2006-02-13 Patrick Lam <plam@mit.edu>
274 * src/fcfreetype.c (FcFreeTypeQuery):
276 Fix memory leak in error condition code.
278 2006-02-13 Mike Fabian <mfabian@suse.de>
280 * src/fcfreetype.c (FcFreeTypeQuery):
282 Skip bitmap fonts which can't even get it together enough to
283 declare a family name; this appears to reproduce previous
284 fontconfig behaviour.
286 2006-02-10 Takashi Iwai <tiwai@suse.de>
288 * src/fccache.c (FcDirCacheOpen):
290 Try to open /var/cache/fontconfig/[hashed name] before
291 fonts.cache-2 in a directory, because /var/cache/fontconfig
292 failures ought to be fixable, unlike fonts.cache-2 failures,
293 which may leave you screwed.
295 2006-02-10 Takashi Iwai <tiwai@suse.de>
297 * src/fcmatch.c (FcFontSetMatch):
299 Use a tri-state to mark the fonts which didn't get blocked but
300 were just missing an element, to distinguish them from the
301 fonts that do match the element.
303 2006-02-10 Takashi Iwai <tiwai@suse.de>
305 * src/fcmatch.c (FcFontSetMatch):
307 Don't kill fonts because they don't declare an element that's
310 2006-02-09 Patrick Lam <plam@mit.edu>
311 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
312 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
314 Define and pass O_BINARY to open if appropriate, for those
315 platforms that need it. Reported by Doodle.
317 2006-02-09 Patrick Lam <plam@mit.edu>
318 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
321 Fix problem with missing 'en' due to euro.patch: change
322 cache file format slightly to coincide with that generated
325 2006-02-07 Patrick Lam <plam@mit.edu>
326 * src/fccache.c (FcCacheReadDirs):
330 2006-02-07 Patrick Lam <plam@mit.edu>
331 * src/fcdir.c (FcDirScanConfig):
333 Don't reject dirs that can't be normalized (fixes lilypond, and
334 is correct in the context of application font directories.)
336 2006-02-07 Takashi Iwai <tiwai@suse.de>
339 * src/fccache.c (FcCacheReadDirs):
341 Use normalized directory name exclusively in FcCacheReadDirs.
343 2006-02-07 Dirk Mueller <dmueller@suse.com>
346 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
348 Perf optimizations. Inline FcValueCanonicalize,
349 reduce FcValueListPtrU usage, remove redundant cast.
351 2006-02-07 Takashi Iwai <tiwai@suse.de>
354 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
357 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
358 Declare extern for static arrays as arrays, not pointers.
359 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
361 2006-02-07 Dirk Mueller <dmueller@suse.com>
374 Add Euro sign to list of symbols required by European languages.
376 2006-02-07 Patrick Lam <plam@mit.edu>
377 * src/fccache.c (FcCacheReadString):
379 Fix hidden variable warning.
381 2006-02-07 Dirk Mueller <dmueller@suse.com>
384 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
386 Remove de-escaping logic because FcCacheWriteString
387 doesn't escape anyway. Do blockwise reading instead
388 of byte-wise for performance.
390 2006-02-06 Patrick Lam <plam@mit.edu>
391 Takashi Iwai <tiwai@suse.de>
393 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
395 Don't loop infinitely on recursive symlinks (client-side).
397 2006-02-06 Takashi Iwai <tiwai@suse.de>
399 * fc-cache/fc-cache.c (scanDirs, main):
401 Don't loop infinitely on recursive symlinks.
403 2006-02-06 Takashi Iwai <tiwai@suse.de>
405 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
406 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
407 FcGlobalCacheSave, FcCacheReadDirs):
410 Skip subdirs when skipping over stale bits of global cache.
411 Introduce state machine into FcGlobalCacheDir to avoid
412 doing inappropriate operations on global dir entries, e.g.
413 writing out an out-of-date cache entry.
415 2006-02-06 Takashi Iwai <tiwai@suse.de>
417 * src/fcdir.c (FcFileScanConfig):
419 Hoist FcFileIsDir check out of FcFileScanConfig loop.
421 2006-02-06 Takashi Iwai <tiwai@suse.de>
424 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
425 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
427 Don't rescan when trying to normalize a non-declared font dir.
428 Don't add font dirs multiple times (even if they're aliased).
430 2006-02-06 Dirk Mueller <dmueller@suse.de>
433 * src/fcfs.c (FcFontSetUnserialize):
435 Explain apples/oranges comparison and fix compilation error.
437 2006-02-06 Dirk Mueller <dmueller@suse.de>
440 * src/fcfs.c (FcFontSetUnserialize):
442 Insert check for integer overflow in # of fonts.
444 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
448 * fc-cache/Makefile.am:
449 * fc-cat/Makefile.am:
450 * fc-list/Makefile.am:
452 Make 'make distcheck' work with automake 1.6.3.
454 2006-02-03 Takashi IWAI <tiwai@suse.de>
457 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
460 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
461 FcDirCacheConsume, FcDirCacheWrite)
462 * src/fcxml.c (FcConfigMessage):
464 Check I/O call return values and eliminate unused variable
467 2006-02-03 Takashi Iwai <tiwai@suse.de>
470 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
474 2006-02-03 Dirk Mueller <dmueller@suse.de>
477 * src/fcfs.c (FcFontSetUnserialize):
479 Gracefully handle the case where a cache asserts that it
480 has a negative number of fonts, causing overflow.
482 2006-02-03 Patrick Lam <plam@mit.edu>
483 * src/fccache.c (FcDirCacheUnlink):
485 Fix double free in error case.
487 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
488 Stephan Kulow <coolo@suse.de>
491 * fc-cache/Makefile.am:
493 Replace 'stamp' target with mkinstalldirs.
495 2006-01-31 Mike Fabian <mfabian@suse.de>
498 * src/fccache.c (FcGlobalCacheLoad):
500 Toast broken global cache files.
502 2006-01-30 Patrick Lam <plam@mit.edu>
503 * src/fccache.c (FcGlobalCacheReadDir):
505 Actually use the directories that I added to the global cache.
508 2006-01-30 Mike Fabian <mfabian@suse.de>
511 * fc-cache/fc-cache.c (scanDirs):
513 Don't stop scanning if a directory in fonts.conf doesn't
514 exist, because subsequent directories might exist.
516 2006-01-30 Patrick Lam <plam@mit.edu>
517 * src/fccache.c (FcGlobalCacheLoad):
519 Make global cache work again after putting dir names into global
520 cache (I misplaced the recording of a file offset).
522 2006-01-30 Patrick Lam <plam@mit.edu>
523 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
525 Update fc-cat to handle subdir lists in global cache file.
527 * src/fccache.c (FcGlobalCacheLoad):
529 Another FcCacheReadString return value check.
531 2006-01-30 Mike Fabian <mfabian@suse.de>
534 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
535 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
537 Make fccache more resilient to broken cache files by checking
538 return value of FcCacheReadString all the time.
540 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
543 * fc-match/fc-match.1:
544 * fc-lang/fc-lang.man:
546 Remove references to dead fontconfig(3) manpages in
547 other fontconfig manpages.
549 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
552 * doc/fcpattern.fncs:
554 Fix world's tiniest typo in code example.
556 2006-01-29 Mike Fabian <mfabian@suse.de>
559 * src/fccache.c (FcGlobalCacheReadDir):
561 Fix global cache reads of subdirectories.
563 2006-01-29 Patrick Lam <plam@mit.edu>
565 Add documentation for FcConfigNormalizeFontDir.
567 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
568 FcGlobalCacheUpdate, FcGlobalCacheSave):
569 * src/fcdir.c (FcDirScanConfig):
572 Write directory information to global caches to fix make check
573 (reported by Ronny V. Vindenes). This changes the global cache
576 2006-01-27 Patrick Lam <plam@mit.edu>
577 * fc-cache/fc-cache.c (scanDirs):
578 * fontconfig/fontconfig.h:
580 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
582 Move FcConfigNormalizeFontDir call so that it doesn't result in
583 infinite recursion (reported by Ronny V. Vindenes).
585 2006-01-26 Patrick Lam <plam@mit.edu>
586 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
587 * src/fccfg.c (FcConfigNormalizeFontDir):
589 Add a couple of missing normalizations to make fc-cache work
590 right; only scan subdirectories once.
592 2006-01-26 Mike Fabian <mfabian@suse.de>
595 * src/fcacache.c (FcGlobalCacheReadDir):
597 Don't crash on non-existant directories in global cache.
599 2006-01-26 Patrick Lam <plam@mit.edu>
600 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
601 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
602 * src/fcdir.c (FcDirScanConfig):
603 * src/fcxml.c (FcEndElement):
605 Stop trampling the directory name when writing out caches.
606 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
607 subdirs when necessary. Don't scan directories that can't be
610 2006-01-25 Patrick Lam <plam@mit.edu>
611 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
612 * src/fccfg.c (FcConfigEvaluate):
613 * src/fcfreetype.c (FcPatternAddWithBinding):
615 Fix additional memory leaks reported by Ronny V. Vindenes: don't
616 invoke FcValueSave on hashed static strings in
617 FcPatternAddWithBinding.
619 Add another st_dev check in FcDirCacheOpen.
621 2006-01-24 James Su <james.su@gmail.com>
624 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
625 * fc-lang/zh_hk.orth:
627 Treat zh-hk fonts differently from zh-tw fonts. This patch may
628 cause fontconfig to treat A-X fonts differently from A-Y fonts;
629 please mail the fontconfig list if this causes any problems.
631 2006-01-24 Patrick Lam <plam@mit.edu>
632 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
633 * src/fcfreetype.c (FcFreeTypeQuery):
635 Fix memory leaks reported by Ronny V. Vindenes.
637 2006-01-19 Andreas Schwab <schwab@suse.de>
640 * src/fcpat.c (FcStrNeededBytes):
642 Fix for unaligned memory accesses.
644 2006-01-18 Mike Fabian <mfabian@suse.de>
647 * src/fcdir.c (FcDirScanConfig):
649 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
650 calls to avoid crashes.
652 2006-01-14 Patrick Lam <plam@mit.edu>
653 * src/fccache.c (FcDirCacheConsume):
655 Fix segfault when consuming zero-length caches in fc-cat
656 (which has no config, so FcConfigAddFontDir shouldn't be called.)
658 2006-01-14 Patrick Lam <plam@mit.edu>
659 * fc-cache/fc-cache.c (scanDirs):
660 * fontconfig/fontconfig.h:
661 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
662 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
663 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
664 * src/fcdir.c (FcDirScanConfig):
667 Compare device numbers as well as inodes.
668 Always normalize directory names before comparing them.
670 2006-01-11 Mike Fabian <mfabian@suse.de>
673 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
675 Allocate extra space for appended '/' in directory name.
677 2006-01-10 Patrick Lam <plam@mit.edu>
678 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
679 FcDirCacheValid, FcDirCacheHasCurrentArch,
680 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
681 * fc-cache/fc-cache.c (main):
683 Explicitly add font dirs to config.fontDirs even if they're empty.
684 Set current config in fc-cache.c.
685 Fix treatment of cache directory as read from cache file; don't
686 use string equality to determine if we have the right file,
689 2006-01-09 Patrick Lam <plam@mit.edu>
690 * fc-cache/fc-cache.c (scanDirs):
691 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
692 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
693 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
694 * src/fccfg.c (FcConfigNormalizeFontDir):
695 * src/fcdir.c (FcDirScanConfig):
698 Normalize font dirs by using the form, as given in fonts.conf, and
699 recorded in FcConfig's fontDirs string set, as canonical.
701 Actually update config.fontDirs as font directories are scanned.
703 2006-01-08 James Su <james.su@gmail.com>
704 * src/fcmatch.c (FcFontSetMatch):
706 Fix matching bug when multiple elements match; don't use
707 the sum of all scores, but the best score.
709 Also more perf opts, e.g. evaluate best over all font sets
710 rather than on a per-set basis (and other changes).
712 2006-01-08 Patrick Lam <plam@mit.edu>
713 * src/fccache.c (FcDirCacheConsume):
715 Properly skip past dir caches that contain zero fonts (as occurs
716 in global caches.) Reported by Mike Fabian.
718 2006-01-06 Patrick Lam <plam@mit.edu>
719 * src/fcdbg.c (FcPatternPrint):
721 Print out full pathname in fc-match -v as well. Reported by
724 2006-01-06 Mike Fabian <mfabian@suse.de>
727 * src/fcname.c (FcNameParse):
729 Fix bug where fc-match crashes when given __DUMMY__ property to
732 (I added the __DUMMY__ string to enable callers of
733 FcObjectToPtrLookup to distinguish an error return from a
734 successful return. -PL)
736 2006-01-05 Patrick Lam <plam@mit.edu>
739 Add self to AUTHORS list.
741 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
742 FcCacheFileRead, FcCachePrintSet, main):
743 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
744 FcGlobalCacheSave, FcCacheNextOffset,
745 FcDirCacheHasCurrentArch, FcDirCacheRead,
746 FcDirCacheConsume, FcDirCacheWrite):
748 * src/fcpat.c (comment):
750 Minor change to global cache file format to fix fc-cat bug
751 reported by Frederic Crozat, and buglet with not globally caching
752 directories with zero fonts cached.
754 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
757 * src/fccfg.c (FcConfigEvaluate):
759 Fix double-free which occurs because FcValueCanonicalize doesn't
760 create an extra copy of the returned value, it only canonicalizes
763 2006-01-02 Patrick Lam <plam@mit.edu>
764 * doc/fontconfig-user.sgml:
766 Fix version of .cache file (currently 1 -> currently 2). Reported
769 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
772 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
774 Shut up GCC warnings on amd.
776 2005-12-20 Patrick Lam <plam@mit.edu>
780 * fontconfig/fontconfig.h:
782 Bump version to 2.3.93.
784 2005-12-20 Patrick Lam <plam@mit.edu>
785 * src/fccharset.c (FcLangCharSetPopulate):
786 * src/fcint.h (FcCacheBankToIndex):
788 Avoid check on _fcBankId nullness and fix case where it used to
791 2005-12-20 Patrick Lam <plam@mit.edu>
792 * src/fcxml.c (FcConfigParseAndLoad):
794 Use open instead of fopen (requested by Phil Race for Sun).
796 2005-12-20 Patrick Lam <plam@mit.edu>
797 * src/fccache.c (FcDirCacheWrite);
798 * fc-cache/Makefile.am:
800 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
803 2005-12-20 Patrick Lam <plam@mit.edu>
804 * src/fcfreetype.c (FcFreeTypeQuery):
806 Restore code to skip over PCF fonts that have no encoded
808 (We guess that a font is PCF by presence of the PIXEL_SIZE
811 2005-12-12 Patrick Lam <plam@mit.edu>
812 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
814 Read and write the original location as a fallback for the
815 hashed cache file locations. This is mostly for users to be
816 able to have per-directory cache files.
818 2005-12-12 Patrick Lam <plam@mit.edu>
819 * fc-cache/fc-cache.c (scanDirs):
820 * fc-cache/Makefile.am:
821 * src/fccache.c (FcDirCacheHashName):
823 Improve error message when fc-cache can't write the cache. Add
824 missing slash. Reported by Behdad. Incorporate Behdad's patch to
825 create /var/cache/fontconfig when appropriate.
827 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
830 * src/fcxml.c (FcConfigGetAttribute):
832 Fix crash reported by Frederic Crozat when using libxml2.
834 2005-12-09 Patrick Lam <plam@mit.edu>
837 * fc-cache/Makefile.am:
838 * fc-cat/Makefile.am:
840 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
841 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
842 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
843 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
844 FcDirCacheHasCurrentArch, FcDirCacheHashName,
845 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
847 Migrate cache files from fonts directories to
848 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
849 but requires that all caches get rebuilt.
851 Also, autogen.sh now needs the additional parameter
852 --localstatedir=/var.
854 2005-12-07 Patrick Lam <plam@mit.edu>
855 * src/fcpat.c (FcPatternAddString):
857 Because we've changed FcPatternAddString to use FcStrStaticName
858 and not FcValueSave, explicitly handle the case of a null string.
860 2005-12-06 Patrick Lam <plam@mit.edu>
861 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
865 2005-12-05 Patrick Lam <plam@mit.edu>
866 * src/fcname.c (FcNameGetObjectType):
868 Don't assign types to user object names.
870 2005-12-05 Patrick Lam <plam@mit.edu>
871 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
873 Don't free strings that have been returned from FcStrStaticName.
875 2005-12-01 Patrick Lam <plam@mit.edu>
876 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
878 Add codepath for reading global cache files as well.
880 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
883 * conf.d/10-fonts.persian.conf:
884 * conf.d/Makefile.am:
886 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
888 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
891 * src/fcxml.c (FcConfigParseAndLoad):
893 Only add a config file to the set of config files once.
895 2005-11-29 Patrick Lam <plam@mit.edu>
896 * src/fcint.h (FcCacheBankToIndex);
898 Fix segfault by guarding array dereference.
900 2005-11-29 Dirk Mueller <dmueller@suse.de>
904 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
905 FcCacheBankToIndex, FcCacheBankToIndexMTF,
909 Refactor FcCacheBankToIndex into an inlineable part
910 (in fcint.h) which checks the front of the list and a
911 non-inlineable part which finds and moves the appropriate element
912 to the front of the list.
914 2005-11-29 Patrick Lam <plam@mit.edu>
915 * src/fccfg.c (FcConfigBuildFonts):
916 * src/fccache.c (FcCacheReadDirs):
918 Make the perf guys hate me a bit less: hoist the directory-name
919 FcConfigAcceptFont check for cached fonts up to directory cache
920 read time, rather than running it for each font.
922 2005-11-29 Patrick Lam <plam@mit.edu>
923 * src/fccfg.c (FcConfigBuildFonts):
925 * src/fcpat.c (FcPatternFindFullFname):
927 Don't make FcPatternFindFullFname available to fccfg, it's not
928 really safe. Instead go through FcPatternGetString (sorry,
929 perf guys.) Also, use globs for dirs as well.
931 2005-11-28 Patrick Lam <plam@mit.edu>
932 * src/fccfg.c (FcConfigBuildFonts):
936 2005-11-28 Patrick Lam <plam@mit.edu>
938 * src/fcpat.c (FcPatternFindFullFname):
939 * src/fccfg.c (FcConfigBuildFonts):
941 Fix problem dating back at least to 2.3.2 where globs weren't
942 being applied to patterns loaded from a cache.
944 2005-11-28 Patrick Lam <plam@mit.edu>
945 * doc/fontconfig-user.sgml:
947 Fix some obvious spelling mistakes.
949 2005-11-28 Dirk Mueller <dmueller@suse.com>
950 Stephan Kulow <coolo@suse.de>
953 * src/fcmatch.c (FcFontSetMatch):
955 Don't kill all fonts during match (oops!)
958 2005-11-25 Dirk Mueller <dmueller@suse.com>
959 Stephan Kulow <coolo@suse.de>
960 Michael Matz <matz@suse.de>
963 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
966 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
967 inline FcCompare into FcFontSetMatch and reorder the
968 loops, adding a boolean array which blocks patterns from future
969 consideration if they're known to not be best on some past
972 2005-11-26 Dirk Mueller <dmueller@suse.com>
975 * src/fcmatch.c (FcCompareValueList):
979 2005-11-25 Patrick Lam <plam@mit.edu>
980 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
982 Don't do random matching when bad objects are passed into
985 2005-11-25 Patrick Lam <plam@mit.edu>
987 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
988 FcPatternSerialize, FcPatternUnserialize,
989 FcValueListEnsureBank, FcValueListDistributeBytes,
990 FcValueListUnserialize):
992 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
993 _fcPatternElts, _fcValueLists for consistency.
995 2005-11-25 Dirk Mueller <dmueller@suse.com>
1000 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
1002 2005-11-25 Patrick Lam <plam@mit.edu>
1004 * src/fccache.c (FcDirCacheConsume):
1005 * src/fccharset.c (FcCharSetUnserialize):
1006 * src/fcfs.c (FcFontSetUnserialize):
1007 * src/fclang.c (FcLangSetUnserialize):
1008 * src/fcname.c (FcObjectUnserialize):
1009 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
1010 FcPatternUnserialize):
1012 Pass around FcCache *s to the Unserialize functions for extra
1013 consistency (and less overhead, for what that's worth).
1015 2005-11-24 Dirk Mueller <dmueller@suse.com>
1019 * src/fcmatch.c (FcCompare*, FcFontSetSort):
1020 * src/fcname.c (FcNameUnparseValue):
1022 Inline the *PtrU functions to gain perf.
1023 Remove unneeded params for the FcCompare* functions.
1025 2005-11-24 Dirk Mueller <dmueller@suse.com>
1028 * src/fcint.h, fontconfig/fontconfig.h:
1030 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
1032 * src/fcpat.c, src/fcint.h, src/fcname.c:
1034 Check for type validity during FcPatternAddWithBinding, don't
1035 verify type in FcFontMatch, don't call FcCanonicalize here
1036 (which always does a deep copy).
1038 2005-11-24 Dirk Mueller <dmueller@suse.com>
1041 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
1042 * src/fcpat.c (FcPatternAddWithBinding):
1044 Make FcCompareString and FcCompareFamily less expensive.
1045 Only add a value for FC_FAMILY if the proposed value is a string.
1047 2005-11-24 Dirk Mueller <dmueller@suse.com>
1050 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
1051 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
1052 * src/fcint.h (FcDebug):
1054 Inline FcDebug invocations and only initialize once, in FcInit*.
1055 Improve debug msg in FcPatternPrint.
1057 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1060 * fontconfig/fontconfig.h:
1063 Minor code warning cleanups.
1065 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1068 * fc-match/fc-match.c (main):
1070 Make getopt_long accept -s parameter to fc-match as well.
1072 2005-11-21 Dirk Mueller <dmueller@suse.com>
1075 * src/fcmatch.c (FcCompareValueList):
1077 Manually perform inlining & partial redundancy elimination to
1078 reduce calls to FcValueListPtrU.
1080 2005-11-21 Dirk Mueller <dmueller@suse.com>
1083 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
1084 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
1086 Only invoke strlen() when really necessary.
1088 2005-11-19 Matthias Clasen <mclasen@redhat.com>
1092 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
1093 FcFontCapabilities):
1097 Get rid of the use of freetype internal headers in fcfreetype.c,
1098 since those headers will go away with freetype 2.2. Replace with
1099 public domain ftglue code from pango. Note that the patch removes
1100 some extra error checking in FT_Get_BDF_Property() and comments
1101 out the skipping of empty pcf fonts.
1103 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
1106 * fc-lang/fc-lang.c (main):
1108 Further fix of patch from 2005-11-04: miscounted numbers count
1109 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
1110 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
1112 Removed leafidx_count and numbers_count since they are the same
1113 and replaced them with offset_count.
1115 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1118 * fc-cat/fc-cat.c (main):
1120 Don't crash when fc-cat invoked with no arguments.
1122 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1125 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
1127 Fix invalid read access caused by premature free and
1128 GCC4 warnings in libxml2 codepath.
1130 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
1133 * src/fccfg.c (FcConfigValues):
1135 List iteration not needed in FcConfigValues, since it's building
1136 up the list itself; we can just strip FcVoid elements during
1139 2005-11-17 Patrick Lam <plam@mit.edu>
1140 * src/fccfg.c (FcConfigValues):
1142 Fix crash on invalid constants in config files (forgot to update
1143 a pointer upon list iteration.)
1145 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
1148 * src/fcxml.c (FcTypecheckExpr):
1150 Complain about invalid constants in config files.
1152 2005-11-17 Andreas Schwab <schwab@suse.de>
1155 * src/fccache.c (FcGlobalCacheSave):
1157 Don't add current_arch_start more than once.
1159 2005-11-16 Patrick Lam <plam@mit.edu>
1160 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1161 * src/fcfs.c (FcFontSetUnserialize):
1162 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1163 * src/fcpat.c (FcStrUnserialize):
1165 Fix ordering of ALIGN with respect to saving block_ptr; add
1166 another ALIGN to fcfs.c.
1168 2005-11-16 Patrick Lam <plam@mit.edu>
1169 * src/fccache.c (FcDirCacheProduce)
1171 Fix case where alignment bytes bumped up metadata->count
1172 causing unwarranted failures to write cache files.
1173 (Reported by Stephan Kulow).
1175 2005-11-16 Patrick Lam <plam@mit.edu>
1176 * src/fccache.c (FcDirCacheProduce):
1177 * src/fccharset.c (FcCharSetDistributeBytes):
1178 * src/fcfs.c (FcFontSetDistributeBytes):
1180 * src/fclang.c (FcLangSetDistributeBytes):
1181 * src/fcname.c (FcObjectDistributeBytes):
1182 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1185 Add *NeededBytesAlign(), which overestimates the padding which is
1186 later added by the new ALIGN macro. Fix alignment problems on
1187 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1188 version by Andreas Schwab).
1190 2005-11-16 Stephan Kulow <coolo@kde.org>
1195 Use sysconf to determine proper PAGESIZE value; this
1196 appears to be POSIX-compliant. (reported by Andreas Schwab)
1198 2005-11-04 Patrick Lam <plam@mit.edu>
1199 * fc-lang/fc-lang.c:
1204 Fix bug 2878 (excessive relocations at startup for charsets,
1205 reported by Ross Burton): fc-lang/fc-lang now creates the
1206 static form of the langset, not the dynamic form, so that
1207 the charsets should now be in .rodata.
1209 2005-11-04 Patrick Lam <plam@mit.edu>
1210 * src/fcdir.c (FcDirScanConfig):
1212 Add test for validity of directory caches that
1213 somehow got lost (reported by make distcheck).
1215 2005-11-04 Patrick Lam <plam@mit.edu>
1219 * fontconfig/fontconfig.h:
1221 Bump version to 2.3.92.
1223 2005-11-02 Patrick Lam <plam@mit.edu>
1224 * src/fcpat.c (FcPatternDuplicate):
1226 Fix argument ordering problem in call to FcPatternTransferFullFname.
1228 2005-11-02 Patrick Lam <plam@mit.edu>
1229 * src/fcfreetype.c (FcFreetypeQuery):
1230 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1231 FcPatternTransferFullFname):
1233 Fix warnings and embarrassing double-free error.
1235 2005-11-02 Zhe Su <zsu@novell.com>
1240 Change the rule for artificial emboldening in fonts.conf.in. This
1241 enables the support for artificial emboldening included in cairo.
1243 2005-11-02 Patrick Lam <plam@mit.edu>
1244 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1246 Don't zero out full names for FC_REF_CONSTANT fonts;
1247 also, duplicate full names when transferring, and free
1248 full names when freeing the associated font.
1249 Reported by Jinghua Luo.
1251 2005-11-02 Patrick Lam <plam@mit.edu>
1252 * fc-cache/fc-cache.c (scanDirs):
1253 * src/fcpat.c (FcValueListSerialize):
1255 Revert the previous patch and commit the correct patch:
1256 I forgot a canonicalization in FcValueListSerialize, so
1257 that it would choke on already-serialized input files. Duh!
1259 2005-11-02 Patrick Lam <plam@mit.edu>
1260 * fc-cache/fc-cache.c (scanDirs):
1262 Forcibly rescan a directory before writing a fresh local
1263 cache file for that directory, fixing the losing-fonts
1264 problem reported by Mike Fabian and also apparently the
1265 font cache file corruption.
1267 2005-11-02 Patrick Lam <plam@mit.edu>
1268 * src/fccache.c (FcGlobalCacheLoad):
1270 Fix thinko: actually, the whole global cache is stale
1271 if the global cache is older than the (newest) config file.
1273 2005-11-02 Patrick Lam <plam@mit.edu>
1274 * src/fccache.c (FcGlobalCacheLoad):
1275 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1278 Declare the global cache of a directory's contents to be stale if
1279 the directory is newer than the (newest) configuration file.
1281 2005-10-31 Patrick Lam <plam@mit.edu>
1283 * src/fclist.c (FcListAppend):
1284 * src/fcmatch.c (FcFontRenderPrepare):
1285 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1286 FcPatternFreeze, FcPatternBaseFreeze):
1288 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1289 applications continue breaking.
1291 2005-10-31 Patrick Lam <plam@mit.edu>
1292 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1293 * src/fcfreetype.c (FcFreeTypeQuery):
1295 Fix small memory error (tried to free argv); use basename and
1296 dirname correctly (they can modify their arguments).
1298 2005-10-31 Patrick Lam <plam@mit.edu>
1306 Reinstate basename patch, but keep a hash table linking FcPatterns
1307 to their fully-qualified font names for clients' benefit. Clients
1308 only pay for the font names once they request the FC_FILE property
1309 from an FcPattern, but the font name is malloc'd at that point (i.e.
1310 not mmapped: that's impossible, since it may vary between machines.)
1311 Clients do have to pay for a copy of the path name per cache file.
1313 Note that FcPatternGetString now does some rewriting if you ask
1314 for an FC_FILE, appending the pathname as appropriate.
1316 2005-10-31 Patrick Lam <plam@mit.edu>
1317 * src/fcfreetype.c (FcFreeTypeQuery):
1319 Revert basename patch, which breaks fontconfig clients on my system.
1321 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1324 * fontconfig/fonts.conf.in:
1325 * fontconfig/fontconfig.h:
1329 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1330 to load embedded bitmaps or not.
1332 2005-10-25 Patrick Lam <plam@mit.edu>
1333 * src/fcfreetype.c (FcFreeTypeQuery):
1335 Only add basename to patterns' FC_FILE element, not any part of
1338 2005-10-22 Patrick Lam <plam@mit.edu>
1341 Add some more consts, fixing more GCC4 warnings.
1343 2005-10-22 Zhe Su <zsu@novell.com>
1346 Support localized font family and style names.
1347 This has been reported to break old apps like xfd, but modern
1348 (gtk+/qt/mozilla) apps work fine.
1350 2005-10-21 Patrick Lam <plam@mit.edu>
1351 * src/fccache.c (FcGlobalCacheLoad):
1353 Destroy the global cache file if it's terminally broken. (reported by
1356 2005-10-21 Patrick Lam <plam@mit.edu>
1357 * fc-list/fc-list.c (main):
1358 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1359 * fontconfig/fontconfig.h:
1361 Prevent fc-list from escaping strings when printing them (reported by
1364 2005-10-20 Marcus Meissner <meissner@suse.de>
1367 * fontconfig/fontconfig.h:
1369 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1371 2005-10-14 Ross Burton <ross@burtonini.com>
1374 * fc-glyphname/fc-glyphname.c:
1377 Add consts to variables so as to move arrays into .rodata.
1379 2005-10-14 Mike Fabian <mfabian@suse.de>
1382 * src/fccache.c (FcDirCacheUnlink):
1384 Check existence of directory cache file before attempting to unlink.
1386 2005-10-13 Patrick Lam <plam@mit.edu>
1387 * src/fccache.c (FcDirCacheUnlink):
1389 Fix flipped return value on unlink. (Reported by Mike Fabian)
1391 2005-10-12 Patrick Lam <plam@mit.edu>
1394 * src/fcdir.c (FcDirScanConfig):
1397 When fc-cache is run without --force, use directory cache files
1398 to speed up fc-cache run time. (Reported by Mike Fabian)
1400 2005-10-06 Patrick Lam <plam@mit.edu>
1402 * src/fcname.c (FcObjectToPtr):
1403 * src/fcpat.c (FcStrStaticName):
1405 Add padding to make valgrind and glibc not hate each other
1406 when calling strlen().
1408 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1409 reviewed by: plam & keithp
1413 Modify config file to use Greek fonts before Asian fonts with
1416 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1417 reviewed by: plam & keithp
1421 Use libtool -no-undefined flag on all platforms.
1423 2005-10-05 Patrick Lam <plam@mit.edu>
1424 * src/fccache.c (FcCacheHaveBank):
1426 Implement move-to-front array for banks (perf regression
1427 reported by Ronny V. Vindenes).
1429 2005-10-04 Patrick Lam <plam@mit.edu>
1430 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1431 FcDirCacheHasCurrentArch):
1432 * fc-cache/fc-cache.c (scanDirs):
1433 * fontconfig/fontconfig.h:
1435 Add new API which unlinks directory caches and checks dir caches
1436 for existence of appropriate sections. Fix fc-cache to unlink
1437 stale cache files and save directory caches that lack relevant
1440 2005-10-03 Patrick Lam <plam@mit.edu>
1441 * src/fccache.c (FcDirCacheValid):
1443 Ensure that a directory cache has the appropriate section
1444 before reporting that it is valid (reported by Matthias Clasen).
1446 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1454 Use libxml2 if requested (with --enable-libxml2) or if
1455 expat is not available.
1457 2005-09-29 Patrick Lam <plam@mit.edu>
1458 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1460 Fix multi-arch cache files: compute the position for the
1461 block to be added using info from OrigFile, not NewFile.
1463 2005-09-28 Patrick Lam <plam@mit.edu>
1464 * src/fccache.c (FcCacheMachineSignature):
1466 Cast results of sizeof() to unsigned int to get rid of
1467 warnings on x86_64 (thanks Matthias Clasen).
1469 2005-09-27 Patrick Lam <plam@mit.edu>
1470 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1473 Use FcAtomic to rewrite cache files.
1475 2005-09-27 Patrick Lam <plam@mit.edu>
1477 * src/fccache.c (FcDirCacheWrite):
1479 Don't unlink the fonts.cache-2 file even if there's no data
1480 to write; just write an empty cache file. (thanks Lubos Lunak)
1482 2005-09-27 Patrick Lam <plam@mit.edu>
1484 * src/fccache.c (FcDirCacheWrite):
1486 Allocate room for the subdirectory names in each
1487 directory cache. Thanks to James Cloos for finding
1488 and diagnosing this bug!
1490 2005-09-22 Patrick Lam <plam@mit.edu>
1492 * fc-cache/fc-cache.sgml:
1493 * src/fccache.c (FcDirCacheWrite):
1494 * src/fccache.h (struct FcCache):
1496 Update documentation -- fc-cache's man page now says that you
1497 need to run fc-cache once per cached architecture; add some
1498 documentation to the FcCache structure.
1500 Make fc-cache write out fonts.cache-2 files for directories with
1501 no fonts (i.e. only subdirectories).
1503 2005-09-22 Patrick Lam <plam@mit.edu>
1505 * fc-cache/fc-cache.sgml:
1506 * fc-case/fc-case.c:
1507 * fc-glyphname/fc-glyphname.c:
1513 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1517 * fc-lang/fc-lang.c:
1518 * fontconfig/fcprivate.h:
1519 * fontconfig/fontconfig.h:
1533 Implement new mmaped cache for font information.
1534 Bump so revision to 2.3.90.
1536 2005-07-25 Keith Packard <keithp@keithp.com>
1538 * doc/fontconfig-user.sgml:
1539 * fc-glyphname/fc-glyphname.c: (scan), (main):
1540 * fc-lang/fc-lang.c: (FcConfigHome):
1541 * fc-match/fc-match.c: (main):
1542 * src/fccfg.c: (FcConfigHome):
1543 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1544 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1545 (addtag), (FcFontCapabilities):
1546 * src/fcpat.c: (FcValueListEntCreate):
1547 * src/fcstr.c: (FcStrCaseWalkerInit):
1548 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1550 Various GCC 4 cleanups for signed vs unsigned char
1552 Match only [0-9]*.conf files in <include>{directory}</include>
1553 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1555 2005-07-15 Carl Worth <cworth@cworth.org>
1558 * src/fcinit.c: (FcFini):
1559 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1562 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1563 Pull the FcObjectStateName hash table out to file scope, and add
1564 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1567 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1570 2005-06-16 Patrick Lam <plam@MIT.EDU>
1574 * src/fccfg.c: (FcConfigCompareValue):
1575 Make FcOpNotContains use FcStrStr for strings so that
1576 it matches semantics for !FcOpContains.
1578 2005-05-20 Keith Packard <keithp@keithp.com>
1582 Move fontconfig source package to libs as per override
1584 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1586 reviewed by: Mike Fabian
1589 The ka.orth file requires several characters which are not
1590 used anymore in modern Georgian and which are missing in the free
1591 Georgian TrueType fonts downloadable at:
1593 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1595 2005-04-27 Keith Packard <keithp@keithp.com>
1599 Update date to real 2.3.2 release date.
1600 Fix change attributions
1602 2005-04-27 Keith Packard <keithp@keithp.com>
1605 Bump so revision for 2.3.2
1606 * fc-cache/fc-cache.c: (scanDirs):
1607 Fix a few minor leaks in error cases.
1609 2005-04-23 Keith Packard <keithp@keithp.com>
1614 * fontconfig/fontconfig.h:
1615 Update for version 2.3.2
1617 2005-04-21 Keith Packard <keithp@keithp.com>
1619 * debian/fontconfig.postinst:
1620 Don't force bitmap font enable in default
1621 configuration; allows users to override this in
1631 * debian/po/pt_BR.po:
1632 * debian/po/templates.pot:
1634 * debian/po/zh_CN.po:
1635 Updated translations
1637 * fc-cache/fc-cache.c: (main):
1638 Destroy font configuration on exit to help valgrind
1641 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1642 (FcFreeTypeCheckGlyph):
1643 Use own transcoding routines in preference to iconv
1644 which appears to have leaks in some translators.
1645 Call iconv_close after using iconv (oops).
1647 Prefer unicode encoding of Euro char as some
1648 fonts mis-encode Euro in other ones.
1650 Must fetch bitmap glyphs to get width values
1651 to check for monospace/dual-width fonts.
1653 2005-04-13 Ross Burton <ross@burtonini.com>
1656 Check that a pattern isn't already frozen in FcPatternFreeze.
1658 2005-03-31 Ross Burton <ross@burtonini.com>
1663 Run all FcPattern objects through FcObjectStaticName, so that
1664 compares can be done on pointers instead of strings (#2659)
1666 2005-03-17 Tor Lillqvist <tml@novell.com>
1668 * src/fontconfig.def.in: Add the .dll to the dll name.
1670 2005-03-10 Keith Packard <keithp@keithp.com>
1672 * debian/README.Debian:
1673 Update to reflect configuration changes
1675 * debian/fontconfig.postinst:
1676 Fix Autohint vs Autohinter mistake
1677 * debian/fontconfig.templates:
1678 Adopt changes from Josselin Mouette for configuration descriptions
1679 Update debian to version 2.3.1-2
1681 2005-03-08 Keith Packard <keithp@keithp.com>
1685 Update debian for 2.3.1
1687 2005-03-09 Tor Lillqvist <tml@novell.com>
1689 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1692 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1695 2005-03-08 Keith Packard <keithp@keithp.com>
1699 * fontconfig/fontconfig.h:
1702 2005-03-05 Keith Packard <keithp@keithp.com>
1704 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1705 Include space and remove numbers from valid script tags.
1706 This ensures that tags like 'lao ' work while rejecting
1707 those which have any digits.
1708 Eliminate a spurious debugging variable (len)
1710 2005-03-05 Keith Packard <keithp@keithp.com>
1712 * src/fcfreetype.c: (addtag), (GetScriptTags),
1713 (FcFontCapabilities):
1714 Rework GSUB/GPOS script parsing to survive broken fonts.
1715 Thanks for the broken font go to Manish Singh
1717 2005-03-05 Keith Packard <keithp@keithp.com>
1722 * debian/fontconfig.config:
1723 * debian/fontconfig.templates:
1725 Include 2.3 release information in changelog
1726 Add Josselin Mouette as an Uploader
1727 Set hinting_type to low priority configuration option
1730 * debian/fontconfig.postinst:
1731 yes_bitmaps.conf -> yes-bitmaps.conf
1737 2005-03-02 Keith Packard <keithp@keithp.com>
1740 * conf.d/Makefile.am:
1741 * conf.d/autohint.conf:
1742 * conf.d/no-sub-pixel.conf:
1743 * conf.d/sub-pixel.conf:
1744 * conf.d/unhinted.conf:
1745 * debian/autohint.conf:
1746 * debian/fontconfig.install:
1747 * debian/fontconfig.postinst:
1748 * debian/fontconfig.templates:
1749 * debian/no-sub-pixel.conf:
1750 * debian/unhinted.conf:
1751 Move debian-specific conf file examples upstream.
1753 Sub-pixel configuration examples must smash subpixel value
1754 as Xft always sets it from X.
1756 Change sub-pixel rendering debconf descriptions from
1757 Enable/Disable to Always/Never.
1759 2005-03-02 Keith Packard <keithp@keithp.com>
1762 * conf.d/.cvsignore:
1764 Ignore more build detritus
1767 Add debian package construction stuff.
1769 * config/config.guess:
1770 * config/config.sub:
1771 Update to newer versions of these tools
1774 Get library manuals to build again (we love automake).
1776 * debian/README.Debian:
1777 * debian/autohint.conf:
1782 * debian/fontconfig-udeb.install:
1783 * debian/fontconfig.config:
1784 * debian/fontconfig.defoma:
1785 * debian/fontconfig.dirs:
1786 * debian/fontconfig.install:
1787 * debian/fontconfig.postinst:
1788 * debian/fontconfig.postrm:
1789 * debian/fontconfig.templates:
1790 * debian/libfontconfig1-dev.install:
1791 * debian/libfontconfig1.install:
1792 * debian/local.conf.md5sum:
1793 * debian/no-sub-pixel.conf:
1794 * debian/po/POTFILES.in:
1803 * debian/po/pt_BR.po:
1804 * debian/po/templates.pot:
1806 * debian/po/zh_CN.po:
1808 * debian/unhinted.conf:
1809 Update debian build system to switch maintainers and
1810 deal with 2.3 functionality
1812 2005-03-01 Keith Packard <keithp@keithp.com>
1816 * fontconfig/fontconfig.h:
1819 2005-03-01 Keith Packard <keithp@keithp.com>
1822 Generate and install PDF versions of the manuals
1824 * doc/fcpattern.fncs:
1827 * doc/fcstring.fncs:
1828 Add missing exported functions, fix data types
1830 * doc/fontconfig-devel.sgml:
1831 Add missing pattern elements.
1833 * doc/fontconfig-user.sgml:
1834 Add missing pattern elements. Document conf.d usage,
1835 clarify available orthography list. Fix some config file
1836 attributes. Complete list of constants.
1838 * fontconfig/fontconfig.h:
1839 Mark FC_SOURCE deprecated.
1841 * src/fcfreetype.c: (FcFreeTypeQuery):
1842 Don't set FC_SOURCE any longer.
1844 2005-02-28 Keith Packard <keithp@keithp.com>
1847 * conf.d/Makefile.am:
1849 * conf.d/no-bitmaps.conf:
1850 * conf.d/sub-pixel.conf:
1851 * conf.d/yes-bitmaps.conf:
1853 Create prototype /etc/fonts/conf.d directory with a few
1854 sample configuration files.
1855 Deprecate use of local.conf for local customizations in favor of
1856 this directory based scheme which is more easily integrated into
1857 installation systems.
1860 Tag FC_EMBOLDEN as a boolean variable
1862 2005-02-10 Keith Packard <keithp@keithp.com>
1864 reviewed by: pborelli@katamail.com
1866 * src/fcdir.c: (FcFileScanConfig):
1867 Free patterns from fonts which are rejected by configuration
1870 2005-01-28 Keith Packard <keithp@keithp.com>
1874 * fontconfig/fontconfig.h:
1875 Update for version 2.2.99
1877 2005-01-28 Keith Packard <keithp@keithp.com>
1880 Add a few pointers (#2284, #2285)
1882 2005-01-28 Keith Packard <keithp@keithp.com>
1885 * src/fcname.c: (FcNameBool):
1886 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1887 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1888 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1889 Polite typechecking for test and edit expressions. Helps
1890 catch errors in the font configuration. (bug 229)
1892 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1894 reviewed by: Keith Packard <keithp@keithp.com>
1897 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1899 2005-01-13 Keith Packard <keithp@keithp.com>
1901 * doc/fontconfig-user.sgml:
1902 Add SEE ALSO section (bug 2085)
1904 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1906 reviewed by: Keith Packard <keithp@keithp.com>
1911 * fc-case/Makefile.am:
1912 * fc-glyphname/Makefile.am:
1913 * fc-lang/Makefile.am:
1914 * src/fontconfig.def.in:
1915 Cross compiling fixes (bug 280)
1917 2005-01-13 Keith Packard <keithp@keithp.com>
1920 Update blanks list (Closes bug 86)
1922 2005-01-04 Keith Packard <keithp@keithp.com>
1924 * src/fccache.c: (FcCacheFontSetAdd):
1925 Verify that every font pattern loaded from cache has
1926 both FC_FILE and FC_FAMILY entries.
1927 Attempt to fix bug #2219.
1929 2004-12-29 Keith Packard <keithp@keithp.com>
1933 * fontconfig/fontconfig.h:
1934 Update for version 2.2.98
1936 2004-12-29 Keith Packard <keithp@keithp.com>
1938 * fontconfig/fontconfig.h:
1939 Document ASCII limitations of Fc character conversion macros
1940 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1941 Fix off-by-one error in utf-8 case walking code.
1942 Add FcStrDowncase (useful for testing case conversion functions)
1944 2004-12-29 Keith Packard <keithp@keithp.com>
1947 * fc-case/.cvsignore:
1948 clean up CVS ignore lists
1949 * fc-lang/iso-3166.txt:
1950 Add territory database
1952 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1954 Reviewed by: Keith Packard
1957 Remove Han characters from Korean orthography
1959 2004-12-29 Keith Packard <keithp@keithp.com>
1962 Reorder utility programs to make sure fc-case is run before fc-lang
1963 as fc-lang uses fcstr.c which uses fccase.h
1967 2004-12-29 Keith Packard <keithp@keithp.com>
1970 Adopt some RedHat suggestions for standard font configuration.
1974 * fc-case/CaseFolding.txt:
1975 * fc-case/Makefile.am:
1976 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1977 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1978 (dump), (parseRaw), (caseFoldReadRaw), (main):
1979 * fc-case/fccase.tmpl.h:
1980 Add new helper program 'fc-case' to construct case folding
1981 tables from standard Unicode CaseFolding.txt file
1984 * src/fclist.c: (FcListValueHash):
1985 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1986 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1987 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1988 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1989 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1990 Re-implement case insensitive functions with Unicode
1991 aware versions (including full case folding mappings)
1993 2004-12-13 Keith Packard <keithp@keithp.com>
1995 reviewed by: Owen Taylor <otaylor@redhat.com>
1997 * src/fcmatch.c: (FcFontSetSort):
1998 I changed FcFontSetSort to respect the generic aliases better
1999 in the face of language matching.
2001 What I did was to ammend the strict sort order used by FcFontSort so
2002 that it 'satisfies' the language specified in the pattern by locating
2003 the best matching font supporting each pattern language and then
2004 ignores language in the remaining fonts for purposes of matching.
2006 So, when asking for 'sans:lang=en', you'll get an English font first,
2007 and then the remaining fonts sorted with respect to the 'sans' alias
2008 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
2010 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
2012 reviewed by: Keith Packard <keithp@keithp.com>
2014 * fontconfig/fontconfig.h:
2017 Configuration changes to request synthetic emboldening of
2018 fonts. The actual emboldening code will live in Xft.
2020 2004-12-09 John Thacker <thacker@math.cornell.edu>
2022 reviewed by: Keith Packard <keithp@keithp.com>
2026 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
2027 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
2028 и), and don't even appear in KOI8-R. (The hypothesis that they
2029 don't appear in KOI8-R due to their similarity with Latin I and i is
2030 eliminated by their presence in KOI8-U.) I have a couple of fonts
2031 with Russian support that don't have the letter.
2033 Therefore, 0406 and 0456 should be removed from or commented out of
2036 2004-12-06 michael meeks <mmeeks@novell.com>
2038 Reviewed by: Keith Packard <keithp@keithp.com>
2040 * src/fcinit.c: (FcMemReport):
2042 * src/fclist.c: (FcObjectSetAdd):
2043 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
2044 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
2045 * src/fcxml.c: (FcParsePatelt):
2046 memoize strings and share a single copy for all uses. Note that
2047 this could be improved further by using statically allocated blocks
2048 and gluing multiple strings together, but I'm basically lazy.
2049 In my environment with 800 font files, I get a savings of about 90KB.
2051 2004-12-06 Keith Packard <keithp@keithp.com>
2055 * config/Makedefs.in:
2058 * doc/fcatomic.fncs:
2059 * doc/fcblanks.fncs:
2060 * doc/fccharset.fncs:
2061 * doc/fcconfig.fncs:
2062 * doc/fcconstant.fncs:
2064 * doc/fcfontset.fncs:
2065 * doc/fcfreetype.fncs:
2067 * doc/fcmatrix.fncs:
2068 * doc/fcobjectset.fncs:
2069 * doc/fcobjecttype.fncs:
2070 * doc/fcpattern.fncs:
2071 * doc/fcstring.fncs:
2072 * doc/fcstrset.fncs:
2074 * doc/fontconfig-devel.sgml:
2075 * doc/fontconfig-user.sgml:
2077 * doc/version.sgml.in:
2078 * fc-cache/Makefile.am:
2079 * fc-cache/fc-cache.c:
2080 * fc-glyphname/Makefile.am:
2081 * fc-glyphname/fc-glyphname.c:
2082 * fc-glyphname/fcglyphname.tmpl.h:
2083 * fc-lang/Makefile.am:
2093 * fc-lang/az_ir.orth:
2127 * fc-lang/fc-lang.c:
2128 * fc-lang/fc-lang.man:
2129 * fc-lang/fclang.tmpl.h:
2174 * fc-lang/ku_ir.orth:
2207 * fc-lang/ps_af.orth:
2208 * fc-lang/ps_pk.orth:
2237 * fc-lang/ti_er.orth:
2238 * fc-lang/ti_et.orth:
2264 * fc-lang/zh_cn.orth:
2265 * fc-lang/zh_hk.orth:
2266 * fc-lang/zh_mo.orth:
2267 * fc-lang/zh_sg.orth:
2268 * fc-lang/zh_tw.orth:
2270 * fc-list/Makefile.am:
2271 * fc-list/fc-list.c:
2272 * fc-match/Makefile.am:
2273 * fc-match/fc-match.1:
2274 * fc-match/fc-match.c:
2275 * fontconfig/fcfreetype.h:
2276 * fontconfig/fcprivate.h:
2277 * fontconfig/fontconfig.h:
2298 Change files from ISO-Latin-1 to UTF-8
2300 2004-12-04 Keith Packard <keithp@keithp.com>
2303 Update links to new freedesktop.org locations
2305 Add uninstall-local to get rid of fonts.conf and local.conf if they
2306 match the distributed versions. Fixes 'make distcheck'
2308 2004-12-04 Keith Packard <keithp@keithp.com>
2312 * fontconfig/fontconfig.h:
2313 Updates for version 2.2.97
2315 2004-12-04 Owen Taylor <otaylor@redhat.com>
2317 reviewed by: Keith Packard <keithp@keithp.com>
2319 * fc-cache/fc-cache.c: (main):
2320 Sleep for two seconds before exiting to make sure timestamps
2321 for future changes have distinct mod times in the file system.
2324 Add Punjabi orthography. Bug #1671.
2326 2004-12-04 Keith Packard <keithp@keithp.com>
2329 Just remove the FC_FONTDATE -- it has locale issues and
2330 annoys redhat multi-arch installs. Now that all X fonts are
2331 included without prejudice, the chances of the date being at
2332 all interesting are rather limited. Bug #505.
2334 Add copyright and license
2336 2004-12-04 Keith Packard <keithp@keithp.com>
2339 Change default set of fonts to include all of
2340 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2341 * doc/fontconfig-user.sgml:
2342 Document new <include>directory-name</include> semantics
2344 add <include ignore_missing="yes">conf.d</include>
2346 Add selectfont to ignore bitmap fonts, add comment for
2347 selectfont which accepts bitmap fonts.
2350 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2351 Allow <include> configuration elements to reference directories.
2352 Parse and load all files of the form [0-9]* in sorted order.
2354 2004-12-04 Keith Packard <keithp@keithp.com>
2357 Report command line for $srcdir/configure accurately.
2360 2004-12-04 Keith Packard <keithp@keithp.com>
2362 * src/fcfreetype.c: (FcFreeTypeQuery):
2363 Check for non-empty face->family_name and face->style_name
2364 before using those for the font. Empty names match everything.
2367 2004-12-04 Keith Packard <keithp@keithp.com>
2370 * fontconfig/fontconfig.h:
2371 * src/fcfreetype.c: (FcFreeTypeQuery):
2373 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2374 available. This provides font file format information (BDF, Type 1,
2375 PCF, TrueType) for each font. Closes #109.
2377 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2379 reviewed by: Keith Packard <keithp@keithp.com>
2381 * doc/fontconfig-user.sgml:
2384 * fontconfig/fontconfig.h:
2385 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2386 (GetScriptTags), (FcFontCapabilities):
2388 Add detection for font capabilities (bug #105)
2390 2004-12-04 Keith Packard <keithp@keithp.com>
2393 Move existing fonts.conf to fonts.conf.bak
2396 Add detection of iconv
2398 * doc/fcpattern.fncs:
2399 * doc/fontconfig-devel.sgml:
2400 * doc/fontconfig-user.sgml:
2402 Document new selectfont elements
2405 Switch to UTF-8 in comment
2407 * fontconfig/fontconfig.h:
2409 Add fullname, and family/style/fullname language entries
2411 * src/fccache.c: (FcCacheFontSetAdd):
2412 * src/fcdir.c: (FcFileScanConfig):
2413 Respect selectfont/*/glob
2416 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2417 (FcConfigCompareValue), (FcConfigPatternsAdd),
2418 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2419 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2420 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2421 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2422 Add support for selectfont
2424 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2425 (FcStringInPatternElement), (FcFreeTypeQuery):
2426 Add multi-lingual family/style/fullname support
2428 * src/fclist.c: (FcListPatternMatchAny):
2429 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2431 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2432 (FcObjectStaticName):
2433 Add new FcPatternRemove/FcPatternAppend.
2434 FcObjectStaticName stores computed pattern element names which
2435 are required to be static.
2437 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2442 Remove spurious / after $(DESTDIR)
2444 2004-06-30 Keith Packard <keithp@keithp.com>
2448 * fontconfig/fontconfig.h:
2451 2004-06-30 Keith Packard <keithp@keithp.com>
2453 Provided by: Lubos Lunak <l.lunak@suse.cz>
2455 * src/fccfg.c: (FcConfigUptoDate):
2456 However FcConfigUptoDate() doesn't seem to work. See the attached
2457 patch. First there's an obvious misplaced parenthesis making it
2458 return always false, and second, even this call fails to detect font
2459 changes (e.g. adding a new font to
2460 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2461 well. The problem seems to be triggered by my fonts.conf specifying
2462 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2463 doesn't include subdirs, unlike config->fontDirs.
2465 2004-06-03 Keith Packard <keithp@keithp.com>
2467 * fontconfig/fontconfig.h:
2468 Remove comma at end of FcResult enum definition.
2470 2004-05-29 Keith Packard <keithp@keithp.com>
2473 Add steps to md5sum release
2475 2004-05-29 Keith Packard <keithp@keithp.com>
2479 * fontconfig/fontconfig.h:
2482 2004-05-29 Keith Packard <keithp@keithp.com>
2484 * fontconfig/fontconfig.h:
2485 * src/fcmatch.c: (FcFontSetMatch):
2486 Add FcResultOutOfMemory to provide an accurate error when
2487 FcFontSetMatch fails in this way
2490 Make #warning about lacking various FreeType features indicate
2491 which version those features appeared so users know how to
2492 fix the problem (Thanks to Anton Tropashko)
2494 2004-05-05 Keith Packard <keithp@keithp.com>
2496 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2497 Replace MIN/MAX/ABS macros which happen to have come
2498 from FreeType with fontconfig-specific ones (FC_*)
2500 2004-04-23 Keith Packard <keithp@keithp.com>
2503 Extend release preparation instructions to include
2504 notification and distribution steps
2506 2004-04-23 Keith Packard <keithp@keithp.com>
2510 * fontconfig/fontconfig.h:
2511 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2513 2004-04-23 Keith Packard <keithp@keithp.com>
2516 Ignore a few more autotool files
2518 2004-04-14 Keith Packard <keithp@keithp.com>
2521 Add instructions for doing a release
2523 * fontconfig.spec.in:
2524 clean up .spec file; perhaps this will be useful to somebody...
2528 * fontconfig/fontconfig.h:
2531 * fc-lang/fc-lang.c:
2532 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2534 * fc-glyphname/Makefile.am:
2535 * fc-lang/Makefile.am:
2536 * fc-list/Makefile.am:
2537 * fc-match/Makefile.am:
2539 Add WARN_CFLAGS to pass -W flags for GCC systems
2541 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2542 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2543 Change various char types around to match across
2545 Fixed bug in using available_sizes[i].height which
2546 is in pixels, not 64ths of a pixel.
2548 2004-03-06 Keith Packard <keithp@keithp.com>
2550 * src/fcfreetype.c: (FcFreeTypeQuery):
2551 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2552 matches looking for explicit values prefer exact matches
2554 2004-03-02 Keith Packard <keithp@keithp.com>
2556 Supplied by: mfabian@suse.de (Mike FABIAN)
2558 * src/fcfreetype.c: (FcFreeTypeQuery):
2559 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2560 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2562 2004-02-21 Manish Singh <yosh@gimp.org>
2564 * fc-glyphname/fc-glyphname.c: (main):
2565 Cast strlen to int for printf, so we're 64-bit clean.
2567 2004-02-11 Keith Packard <keithp@keithp.com>
2570 * src/fcfreetype.c: (FcGetPixelSize):
2571 Ok, so I messed up the test for y_ppem. Let's see if I
2572 got it right this time.
2574 2004-02-10 Keith Packard <keithp@keithp.com>
2577 * src/fcfreetype.c: (FcGetPixelSize):
2578 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2579 FT_Bitmap_Size record. Add a configure.in test for this
2580 and change the code accordingly (using height instead).
2582 2004-02-06 Keith Packard <keithp@keithp.com>
2585 Add Low Saxon orthography
2586 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2588 * src/fccfg.c: (FcConfigNewestFile):
2589 Oops. Left 'newest.set' unset, which would miscompute
2592 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2593 (FcFreeTypeCheckGlyph):
2594 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2595 font properties (which report the wrong value in current FreeType)
2597 Don't attempt to check for empty glyphs in non-scalable fonts; they
2600 2004-02-01 Tor Lillqvist <tml@iki.fi>
2602 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2603 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2604 cache if config->cache is NULL, which happens if FcConfigHome() is
2605 NULL. Guard against that by using the temp folder in that case.
2607 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2609 * fc-lang/az_ir.orth:
2610 * fc-lang/ku_ir.orth:
2611 * fc-lang/ps_af.orth:
2612 * fc-lang/ps_pk.orth:
2613 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2614 (Afghan and Pakistani).
2616 Updated Urdu orthography with real data.
2618 2003-12-11 Carl Worth <cworth@east.isi.edu>
2620 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2623 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2625 (all-local): Remove excessive whitespace.
2627 * autogen.sh: Add 'set -e' to abort when any program fails,
2628 (avoids printing of 'now type make' after configure aborts).
2630 2003-11-17 Eric Christopherson <rakko@charter.net>
2632 reviewed by: Keith Packard <keithp@keithp.com>
2635 * fontconfig/fcfreetype.h:
2637 Switch to FreeType 2.1.7 style includes. Bug #150.
2639 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2641 * fc-list/fc-list.sgml: Add some example usages.
2643 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2646 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2649 2003-10-27 Keith Packard <keith@keithp.com>
2652 * fontconfig/fontconfig.h:
2653 Update to version 2.2.92
2655 2003-10-27 Keith Packard <keithp@keithp.com>
2660 * fc-cache/Makefile.am:
2661 * fc-glyphname/Makefile.am:
2662 * fc-lang/Makefile.am:
2663 * fc-list/Makefile.am:
2664 * fc-match/Makefile.am:
2667 Yet more cleanups to finish getting 'make distcheck' working
2668 This has been tested to ensure that it even works from a _build
2671 2003-10-26 Keith Packard <keithp@keithp.com>
2675 * fc-cache/Makefile.am:
2676 * fc-glyphname/Makefile.am:
2677 * fc-lang/Makefile.am:
2678 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2679 * fc-list/Makefile.am:
2680 * fc-match/Makefile.am:
2681 Attempts to fix 'make distcheck' work. Things are
2682 progressing pretty well, but there are still failures
2683 long into the process dealing with docs (as always).
2685 The big changes here are mostly to make $(srcdir) != "."
2686 work correctly, fixing the docbook related sections and
2687 fc-lang were particularily tricky. Docbook refuses to load
2688 system entities from anywhere other than where the original .sgml
2689 file was located, so no luck looking in "." for the
2690 configure-generated version.sgml and confdir.sgml files.
2692 fc-lang needed help finding .orth files; added a -d option
2693 to set the directory as the least evil of many options.
2695 Now to go use a faster machine and try and wring out the last
2698 2003-10-26 Keith Packard <keithp@keithp.com>
2702 2003-10-26 Keith Packard <keithp@keithp.com>
2705 Include confdir.sgml.in in EXTRA_DIST
2707 2003-10-09 Josselin Mouette <joss@debian.org>
2709 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2710 * fc-list/fc-list.sgml fc-list/Makefile.am:
2711 Replace fc-cache and fc-list manpages with more detailed, SGML
2714 2003-09-23 Owen Taylor <otaylor@redhat.com>
2716 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2717 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2718 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2721 2003-09-23 Owen Taylor <otaylor@redhat.com>
2723 * fc-lang/ka.orth: Remove Georgian capitals, they
2724 aren't used for normal writing. (Bug #116)
2726 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2728 * doc/fontconfig-devel.sgml:
2729 * doc/fontconfig-user.sgml:
2730 * fontconfig/fontconfig.h:
2732 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2733 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2735 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2736 monospace and dual-width fonts, allow roughly a 3% variance in the
2739 2003-08-31 Manish Singh <yosh@gimp.org>
2741 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2744 2003-08-15 Carl Worth <cworth@isi.edu>
2746 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2747 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2749 * src/fcpat.c (FcValueListEntDestroy): New function to support
2750 FcFini memory cleanup. Some statistics are not kept in
2752 (FcValueListFreeze): Move hashTable outside this function so it
2753 can be accessed by FcValueListThawAll.
2754 (FcValueListThawAll): New function complements FcValueListFreeze.
2755 (FcPatternBaseFreeze): Move hashTable outside this function so it
2756 can be accessed by FcPatternBaseThawAll.
2757 (FcPatternBaseThawAll): New function complements
2758 FcPatternBaseFreeze.
2759 (FcPatternThawAll): New function complements FcPatternFreeze.
2761 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2763 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2764 allocated FcCharLeafEnt "blocks" so they can be freed later.
2765 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2766 can be accessed by FcCharSetThawAllLeaf.
2767 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2768 (FcCharSetFreezeBase): Move hashTable outside this function so it
2769 can be accessed by FcCharSetThawAll.
2770 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2772 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2773 (FcConfigDestroy): Fic leak of FcBlanks.
2775 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2776 (main): Add call to FcFini when finished.
2778 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2779 static. Add prototypes.
2781 * doc/fcinit.fncs: Add documentation for FcFini function.
2783 * doc/edit-sgml.c: Mark several local functions as static. Add
2786 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2788 2003-06-15 Tor Lillqvist <tml@iki.fi>
2790 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2791 before comparing (needed on Windows).
2793 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2795 2003-06-13 Tor Lillqvist <tml@iki.fi>
2797 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2800 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2801 WINDOWSFONTDIR token.
2803 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2804 end, not to confuse libtool, which expects the EXPORTS line to be
2805 the first. Add FcConfigEnableHome.
2807 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2808 built as a DLL on Win32.
2810 2003-06-09 Keith Packard <keithp@keithp.com>
2812 * Tag version 2.2.90
2814 2003-06-09 Keith Packard <keithp@keithp.com>
2816 * Optimization in FcLangSetIndex was broken, occasionally
2817 returning a pointer to the wrong location on miss
2819 * Add fc-match to test font matching from the command line.
2821 2003-05-31 Keith Packard <keithp@keithp.com>
2823 * (Bug 85) add support for culmus fonts
2824 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2825 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2827 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2829 * Fix "contains" op for strings and langsets.
2831 2003-05-17 Keith Packard <keithp@keithp.com>
2833 * Fix build error with BDF prop local. Free langset after query
2835 2003-05-14 Keith Packard <keithp@keithp.com>
2837 * Extract spacing from XLFD atom
2839 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2841 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2842 disappeared in 1.30.
2844 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2846 2003-05-12 Keith Packard <keithp@keithp.com>
2848 * Use FcIsWidth to share code
2850 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2851 misclassifying some Han fonts as monospaced.
2853 2003-05-07 Keith Packard <keithp@keithp.com>
2855 * Add filename-based accept/reject to ammend available fonts.
2857 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2858 older FreeType releases.
2860 2003-05-06 Keith Packard <keithp@keithp.com>
2862 * Remove 0b82 and Tamil numbers from tamil
2863 orthography (Jungshik Shin <jshin@mailaps.org>)
2865 2003-05-04 Keith Packard <keithp@keithp.com>
2867 + Map glyph names in fonts with adobe custom encoding to unicode
2869 2003-05-02 Keith Packard <keithp@keithp.com>
2871 * Add FC_WEIGHT_BOOK as weight 75
2873 2003-04-30 Keith Packard <keithp@keithp.com>
2875 * Typo in bitstream foundry name
2877 2003-04-24 Keith Packard <keithp@keithp.com>
2879 * Eliminate italic_angle check for PS fonts
2881 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2883 * Getting closer to fixing /etc/fonts hard-coding.
2885 2003-04-22 Keith Packard <keithp@keithp.com>
2887 * Update autogen.sh to work with newer automake versions
2888 * Handle pattern elements moving during multiple edits
2890 2003-04-23 James Henstridge <james@daa.com.au>
2892 * doc/fontconfig-devel.sgml: close the <para> element.
2894 * doc/fcpattern.fncs: close the <para> element.
2896 * doc/func.sgml: close the <refsynopsisdiv> element.
2898 2003-04-22 Keith Packard <keithp@keithp.com
2900 * Update autogen.sh to work with newer automake versions
2901 * Handle pattern elements moving during multiple edits
2903 2003-04-17 Colin Walters <walters@debian.org>
2905 + Remove some unused variables, and initialize some other ones so
2906 gcc doesn't warn us.
2908 2003-04-16 Keith Packard <keithp@keithp.com>
2910 + tag version 2.1.94
2912 2003-04-16 Keith Packard <keithp@keithp.com>
2914 + add BDF property fetching support for foundry
2915 (from Juliusz Chroboczek)
2916 + add BDF property fetching support for width
2918 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2920 + Implemented foundry generation for Type 1 and TrueType
2922 2003-04-11 Gerard Escalante <g2@magestudios.net>
2924 + Retrieve information from Type1 FontInfo dictionaries
2926 2003-04-07 Colin Walters <walters@verbum.org>
2928 + src/Makefile.am: Fix dummy makefile target names when
2929 MS_LIB_AVAILABLE isn't set.
2931 2003-03-22 Tor Lillqvist <tml@iki.fi>
2933 Changes for Windows:
2935 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2937 + We don't want to hardcode the fonts.conf file location in the
2938 DLL, so we look up the DLL location at run-time in a DllMain()
2939 function. The fonts.conf location is deduced from that.
2941 + The colon can't be used as path separator on Windows,
2942 semicolon is used instead. File path components can be separated
2943 with either slash or backslash. Absolute paths can also begin
2944 with a drive letter.
2946 + Add internal function FcStrLastSlash that strrchr's the last
2947 slash, or backslash on Windows.
2949 + There is no link() on Windows. For atomicity checks, mkdir a
2950 lock directory instead.
2952 + In addition to HOME, also look for USERPROFILE.
2954 + Recognize the special font directory token WINDOWSFONTDIR, to
2955 use the system's font directory.
2957 + Remove the fontconfig-def.cpp that was obsolete. Add
2958 fontconfig.def(.in), without internal functions.
2960 + Add a fontconfig-zip(.in) script, used to build a binary
2963 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2964 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2965 to main package and man3/* to devel package
2967 + Added missing defattr(-, root, root) to main RPM package
2969 + Added HTML and text development documentation to -devel subpackage
2971 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2972 + Added back the configure macro options --disable-docs, otherwise
2973 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2974 version number) unconditionally, causing RPM to fail the build due
2975 to _unpackaged_files_terminate_build. We pick up the pregenerated
2976 docs with %doc already.
2978 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2979 + Removed commented out rpm macro define at top of spec file,
2980 replacing it with a simple explanation, since rpm macros are
2981 expanded by rpm even in comments.
2983 + Changed /usr/bin to _bindir in BuildRequires lines
2985 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2987 + Reorganized file manifest lists
2989 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2991 + fontconfig.spec.in: Improvements from Red Hat spec file.
2993 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2995 + docs/*.sgml: SGML fixes.
2997 Sat Mar 1 17:28:53 PST 2003 keithp
2998 + Ok, so the ChangeLog is a bit out of date
3000 + Lots of bugs fixed; most are in bugzilla, the
3001 biggest problems were in cache management where
3002 Owen discovered the library would lose badly when
3003 combining fonts-cache and ~/.fonts-cache data
3005 + Converted from autoconf to automake. This after
3006 getting patches accepted into libtool to allow
3007 the '-version-number' argument which lets
3008 packages set version numbers explicitly rather
3009 than the roundabout libtool way
3011 + Converted documentation to SGML using the docbook
3012 DTD. Now .txt and .html documents are installed
3013 in /usr/share/doc/fontconfig and there's no
3014 man page. Perhaps a man version can be written
3017 Sat Aug 31 15:21:22 PDT 2002 keithp
3018 + Xrender and Xft had several bugs related to
3019 rendering manually placed or poly-face text
3021 + Added more complete memory tracing in fontconfig
3022 Checked with (patched) mozilla and found no leaks
3024 + Updated Latin orthographies by comparing those from
3025 evertype.com with those from eki.ee. Tried to make
3026 sensible choices, including chars that occured in both
3027 and leaving some optional chars out that occured only
3030 Mon Aug 26 16:33:04 PDT 2002 keithp
3031 + Owen discovered that FcLangSetHasLang wasn't actually
3032 checking the language set.
3034 Mon Aug 26 13:37:23 PDT 2002 keithp
3035 + Append a version number to cache filenames
3037 Thu Aug 22 11:36:18 PDT 2002 keithp
3039 + Add "contains" and "not_contains" operators and elements to
3042 + Changed semantics of eq operator for LangSets to check for
3043 FcLangEqual so that any match will do
3045 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
3046 of FcValueEqual to check for identical values when inserting into
3047 the results. This broke when the above semantic change was made,
3048 now it uses FcValueEqual which is "more correct" in any case.
3050 Thu Aug 22 00:32:29 PDT 2002 keithp
3052 + Reimplement FC_LANG as new datatype. Lists of strings
3053 was consuming over a megabyte of memory for 401 fonts.
3055 + Freeze patterns loaded from cache files. This shares
3056 common value lists and common patterns which saves
3057 considerable memory.
3059 + Change the denotation of 'constant' charsets to use special
3060 ref value instead of separate boolean.
3062 + Clean up leak tracing stuff, found several unannoted alloc/free
3065 Tue Aug 20 16:17:37 PDT 2002 keithp
3067 + Fix memory leak when parsing matrices from XML
3069 Mon Aug 19 11:57:27 PDT 2002 keithp
3071 + Fix autoconf files to pass FONTCONFIG_PATH on
3072 compile line so that ${prefix} gets substituted
3075 + Use getc_unlocked/putc_unlocked on systems that
3076 provide them to avoid damage done to stdio by posix
3078 + Eliminate FC_PATTERN and FcTypePattern in favor of
3079 an extended api for FcConfigSubstitute which takes
3080 both the font and the pattern.
3082 + Add 'sans serif' alias for 'sans-serif' as some apps
3083 can't handle hyphens in family names
3085 + Eliminate pretense of support for libxml2
3087 + Comment origins of Han orthographies
3089 Tue Jul 30 18:37:09 PDT 2002 keithp
3091 + Add binding property to edit element so that strong
3092 binding values may be inserted by the config file.
3093 The default remains weak.
3095 Sun 28 Jul 04:16:55 PDT 2002 keithp
3097 + Tagged release candidate 1 in the CVS tree and
3098 placed fcpackage.rc1.tar.gz for distribution
3100 Thu Aug 1 08:55:08 PDT 2002 keithp
3102 + Fixed autoconf builds to always specify install
3103 target files (for BSD). Also fixed to
3104 define FONTCONFIG_PATH in config.h so that
3105 nonstandard installs will actually work.