1 2006-02-24 Mike Fabian <mfabian@suse.de>
2 Takashi Iwai <tiwai@suse.de>
5 * src/fcfreetype.c (GetScriptTags):
7 Fix double-free on error case.
9 2006-02-21 Patrick Lam <plam@mit.edu>
10 * fc-lang/fc-lang.c (scan):
12 Strip \r and whitespace from input; fixes bug 3454.
14 2006-02-21 Patrick Lam <plam@mit.edu>
15 * fc-lang/fc-lang.c (main):
17 Allocate large arrays statically in fc-lang to fix crashes under
20 2006-02-21 Diego Petten <flameeyes@gentoo.org>
21 * src/fcfreetype.c (FcFreeTypeCharIndex):
23 Pass the buck; make fontconfig not crash on pango badness.
25 2006-02-21 Patrick Lam <plam@mit.edu>
26 * conf.d/10-fonts-persian.conf:
28 Use embeddedbitmap rather than rh_prefer_bitmap.
30 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
33 * src/fccache.c (FcDirCacheWrite):
34 * src/fcdir.c (FcFileScanConfig):
35 * src/fcfreetype.c (FcStringInPatternElement):
36 * src/fcxml.c (FcParseFamilies):
37 * src/ftglue.c (ftglue_face_goto_table):
39 Eliminate redundancies.
41 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
44 * fc-list/fc-list.c (main):
45 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
46 * src/fcstr.c (FcStrStr):
47 * src/fcxml.c (FcConfigSaveAttr):
49 Eliminate unused vars reported by Intel's compiler.
51 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
56 Remove one more archaic character.
58 2006-02-21 Ross Burton <ross@burtonini.com>
59 reviewed by: plam, keithp
61 * src/fcxml.c (FcParsePatelt):
63 Freeze patterns created by configuration file for tiny
64 memory savings (every little bit helps).
66 2006-02-21 Mike Fabian <mfabian@suse.de>
69 * fc-cat/fc-cat.c (main):
71 Initialize fontconfig library in fc-cat to avoid segfault.
73 2006-02-18 Patrick Lam <plam@mit.edu>
74 * fc-cache/fc-cache.c (scanDirs):
75 * src/fccache.c (FcCacheReadDirs):
76 * src/fcdir.c (FcDirScanConfig):
78 Fix the underlying cause of the below segfault (must usually
79 call FcDirCacheHasCurrentArch after FcDirCacheValid).
81 2006-02-18 Patrick Lam <plam@mit.edu>
82 * src/fccache.c (FcDirCacheHasCurrentArch):
84 Fix triggering of segfault caused by misreading cache files
85 (reported by fcrozat).
87 2006-02-17 Patrick Lam <plam@mit.edu>
88 * src/fcint.h (FC_CACHE_MAGIC):
90 Bump up magic version; we changed the binary format.
92 2006-02-17 Patrick Lam <plam@mit.edu>
93 * fc-cat/fc-cat.c (main):
95 Enable fc-cat to print out old-style cache info when given a
98 2006-02-16 Patrick Lam <plam@mit.edu>
99 * src/fccache.c (FcDirCacheHasCurrentArch):
101 Deal correctly with changing FC_CACHE_MAGIC.
103 2006-02-16 Patrick Lam <plam@mit.edu>
104 * fc-cache/fc-cache.c (usage, scanDirs, main):
106 Add -r --really-force option which blows away cache files and then
109 2006-02-16 Patrick Lam <plam@mit.edu>
110 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
112 Don't bail if fontconfig can't remove a dir cache file.
113 Skip the ID of a cache file when copying.
114 Eliminate 'source file too small' bug in FcDirCacheWrite.
116 2006-02-13 Patrick Lam <plam@mit.edu>
117 * src/fcfreetype.c (FcFreeTypeQuery):
119 Fix memory leak in error condition code.
121 2006-02-13 Mike Fabian <mfabian@suse.de>
123 * src/fcfreetype.c (FcFreeTypeQuery):
125 Skip bitmap fonts which can't even get it together enough to
126 declare a family name; this appears to reproduce previous
127 fontconfig behaviour.
129 2006-02-10 Takashi Iwai <tiwai@suse.de>
131 * src/fccache.c (FcDirCacheOpen):
133 Try to open /var/cache/fontconfig/[hashed name] before
134 fonts.cache-2 in a directory, because /var/cache/fontconfig
135 failures ought to be fixable, unlike fonts.cache-2 failures,
136 which may leave you screwed.
138 2006-02-10 Takashi Iwai <tiwai@suse.de>
140 * src/fcmatch.c (FcFontSetMatch):
142 Use a tri-state to mark the fonts which didn't get blocked but
143 were just missing an element, to distinguish them from the
144 fonts that do match the element.
146 2006-02-10 Takashi Iwai <tiwai@suse.de>
148 * src/fcmatch.c (FcFontSetMatch):
150 Don't kill fonts because they don't declare an element that's
153 2006-02-09 Patrick Lam <plam@mit.edu>
154 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
155 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
157 Define and pass O_BINARY to open if appropriate, for those
158 platforms that need it. Reported by Doodle.
160 2006-02-09 Patrick Lam <plam@mit.edu>
161 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
164 Fix problem with missing 'en' due to euro.patch: change
165 cache file format slightly to coincide with that generated
168 2006-02-07 Patrick Lam <plam@mit.edu>
169 * src/fccache.c (FcCacheReadDirs):
173 2006-02-07 Patrick Lam <plam@mit.edu>
174 * src/fcdir.c (FcDirScanConfig):
176 Don't reject dirs that can't be normalized (fixes lilypond, and
177 is correct in the context of application font directories.)
179 2006-02-07 Takashi Iwai <tiwai@suse.de>
182 * src/fccache.c (FcCacheReadDirs):
184 Use normalized directory name exclusively in FcCacheReadDirs.
186 2006-02-07 Dirk Mueller <dmueller@suse.com>
189 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
191 Perf optimizations. Inline FcValueCanonicalize,
192 reduce FcValueListPtrU usage, remove redundant cast.
194 2006-02-07 Takashi Iwai <tiwai@suse.de>
197 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
200 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
201 Declare extern for static arrays as arrays, not pointers.
202 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
204 2006-02-07 Dirk Mueller <dmueller@suse.com>
217 Add Euro sign to list of symbols required by European languages.
219 2006-02-07 Patrick Lam <plam@mit.edu>
220 * src/fccache.c (FcCacheReadString):
222 Fix hidden variable warning.
224 2006-02-07 Dirk Mueller <dmueller@suse.com>
227 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
229 Remove de-escaping logic because FcCacheWriteString
230 doesn't escape anyway. Do blockwise reading instead
231 of byte-wise for performance.
233 2006-02-06 Patrick Lam <plam@mit.edu>
234 Takashi Iwai <tiwai@suse.de>
236 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
238 Don't loop infinitely on recursive symlinks (client-side).
240 2006-02-06 Takashi Iwai <tiwai@suse.de>
242 * fc-cache/fc-cache.c (scanDirs, main):
244 Don't loop infinitely on recursive symlinks.
246 2006-02-06 Takashi Iwai <tiwai@suse.de>
248 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
249 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
250 FcGlobalCacheSave, FcCacheReadDirs):
253 Skip subdirs when skipping over stale bits of global cache.
254 Introduce state machine into FcGlobalCacheDir to avoid
255 doing inappropriate operations on global dir entries, e.g.
256 writing out an out-of-date cache entry.
258 2006-02-06 Takashi Iwai <tiwai@suse.de>
260 * src/fcdir.c (FcFileScanConfig):
262 Hoist FcFileIsDir check out of FcFileScanConfig loop.
264 2006-02-06 Takashi Iwai <tiwai@suse.de>
267 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
268 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
270 Don't rescan when trying to normalize a non-declared font dir.
271 Don't add font dirs multiple times (even if they're aliased).
273 2006-02-06 Dirk Mueller <dmueller@suse.de>
276 * src/fcfs.c (FcFontSetUnserialize):
278 Explain apples/oranges comparison and fix compilation error.
280 2006-02-06 Dirk Mueller <dmueller@suse.de>
283 * src/fcfs.c (FcFontSetUnserialize):
285 Insert check for integer overflow in # of fonts.
287 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
291 * fc-cache/Makefile.am:
292 * fc-cat/Makefile.am:
293 * fc-list/Makefile.am:
295 Make 'make distcheck' work with automake 1.6.3.
297 2006-02-03 Takashi IWAI <tiwai@suse.de>
300 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
303 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
304 FcDirCacheConsume, FcDirCacheWrite)
305 * src/fcxml.c (FcConfigMessage):
307 Check I/O call return values and eliminate unused variable
310 2006-02-03 Takashi Iwai <tiwai@suse.de>
313 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
317 2006-02-03 Dirk Mueller <dmueller@suse.de>
320 * src/fcfs.c (FcFontSetUnserialize):
322 Gracefully handle the case where a cache asserts that it
323 has a negative number of fonts, causing overflow.
325 2006-02-03 Patrick Lam <plam@mit.edu>
326 * src/fccache.c (FcDirCacheUnlink):
328 Fix double free in error case.
330 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
331 Stephan Kulow <coolo@suse.de>
334 * fc-cache/Makefile.am:
336 Replace 'stamp' target with mkinstalldirs.
338 2006-01-31 Mike Fabian <mfabian@suse.de>
341 * src/fccache.c (FcGlobalCacheLoad):
343 Toast broken global cache files.
345 2006-01-30 Patrick Lam <plam@mit.edu>
346 * src/fccache.c (FcGlobalCacheReadDir):
348 Actually use the directories that I added to the global cache.
351 2006-01-30 Mike Fabian <mfabian@suse.de>
354 * fc-cache/fc-cache.c (scanDirs):
356 Don't stop scanning if a directory in fonts.conf doesn't
357 exist, because subsequent directories might exist.
359 2006-01-30 Patrick Lam <plam@mit.edu>
360 * src/fccache.c (FcGlobalCacheLoad):
362 Make global cache work again after putting dir names into global
363 cache (I misplaced the recording of a file offset).
365 2006-01-30 Patrick Lam <plam@mit.edu>
366 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
368 Update fc-cat to handle subdir lists in global cache file.
370 * src/fccache.c (FcGlobalCacheLoad):
372 Another FcCacheReadString return value check.
374 2006-01-30 Mike Fabian <mfabian@suse.de>
377 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
378 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
380 Make fccache more resilient to broken cache files by checking
381 return value of FcCacheReadString all the time.
383 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
386 * fc-match/fc-match.1:
387 * fc-lang/fc-lang.man:
389 Remove references to dead fontconfig(3) manpages in
390 other fontconfig manpages.
392 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
395 * doc/fcpattern.fncs:
397 Fix world's tiniest typo in code example.
399 2006-01-29 Mike Fabian <mfabian@suse.de>
402 * src/fccache.c (FcGlobalCacheReadDir):
404 Fix global cache reads of subdirectories.
406 2006-01-29 Patrick Lam <plam@mit.edu>
408 Add documentation for FcConfigNormalizeFontDir.
410 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
411 FcGlobalCacheUpdate, FcGlobalCacheSave):
412 * src/fcdir.c (FcDirScanConfig):
415 Write directory information to global caches to fix make check
416 (reported by Ronny V. Vindenes). This changes the global cache
419 2006-01-27 Patrick Lam <plam@mit.edu>
420 * fc-cache/fc-cache.c (scanDirs):
421 * fontconfig/fontconfig.h:
423 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
425 Move FcConfigNormalizeFontDir call so that it doesn't result in
426 infinite recursion (reported by Ronny V. Vindenes).
428 2006-01-26 Patrick Lam <plam@mit.edu>
429 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
430 * src/fccfg.c (FcConfigNormalizeFontDir):
432 Add a couple of missing normalizations to make fc-cache work
433 right; only scan subdirectories once.
435 2006-01-26 Mike Fabian <mfabian@suse.de>
438 * src/fcacache.c (FcGlobalCacheReadDir):
440 Don't crash on non-existant directories in global cache.
442 2006-01-26 Patrick Lam <plam@mit.edu>
443 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
444 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
445 * src/fcdir.c (FcDirScanConfig):
446 * src/fcxml.c (FcEndElement):
448 Stop trampling the directory name when writing out caches.
449 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
450 subdirs when necessary. Don't scan directories that can't be
453 2006-01-25 Patrick Lam <plam@mit.edu>
454 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
455 * src/fccfg.c (FcConfigEvaluate):
456 * src/fcfreetype.c (FcPatternAddWithBinding):
458 Fix additional memory leaks reported by Ronny V. Vindenes: don't
459 invoke FcValueSave on hashed static strings in
460 FcPatternAddWithBinding.
462 Add another st_dev check in FcDirCacheOpen.
464 2006-01-24 James Su <james.su@gmail.com>
467 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
468 * fc-lang/zh_hk.orth:
470 Treat zh-hk fonts differently from zh-tw fonts. This patch may
471 cause fontconfig to treat A-X fonts differently from A-Y fonts;
472 please mail the fontconfig list if this causes any problems.
474 2006-01-24 Patrick Lam <plam@mit.edu>
475 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
476 * src/fcfreetype.c (FcFreeTypeQuery):
478 Fix memory leaks reported by Ronny V. Vindenes.
480 2006-01-19 Andreas Schwab <schwab@suse.de>
483 * src/fcpat.c (FcStrNeededBytes):
485 Fix for unaligned memory accesses.
487 2006-01-18 Mike Fabian <mfabian@suse.de>
490 * src/fcdir.c (FcDirScanConfig):
492 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
493 calls to avoid crashes.
495 2006-01-14 Patrick Lam <plam@mit.edu>
496 * src/fccache.c (FcDirCacheConsume):
498 Fix segfault when consuming zero-length caches in fc-cat
499 (which has no config, so FcConfigAddFontDir shouldn't be called.)
501 2006-01-14 Patrick Lam <plam@mit.edu>
502 * fc-cache/fc-cache.c (scanDirs):
503 * fontconfig/fontconfig.h:
504 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
505 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
506 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
507 * src/fcdir.c (FcDirScanConfig):
510 Compare device numbers as well as inodes.
511 Always normalize directory names before comparing them.
513 2006-01-11 Mike Fabian <mfabian@suse.de>
516 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
518 Allocate extra space for appended '/' in directory name.
520 2006-01-10 Patrick Lam <plam@mit.edu>
521 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
522 FcDirCacheValid, FcDirCacheHasCurrentArch,
523 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
524 * fc-cache/fc-cache.c (main):
526 Explicitly add font dirs to config.fontDirs even if they're empty.
527 Set current config in fc-cache.c.
528 Fix treatment of cache directory as read from cache file; don't
529 use string equality to determine if we have the right file,
532 2006-01-09 Patrick Lam <plam@mit.edu>
533 * fc-cache/fc-cache.c (scanDirs):
534 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
535 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
536 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
537 * src/fccfg.c (FcConfigNormalizeFontDir):
538 * src/fcdir.c (FcDirScanConfig):
541 Normalize font dirs by using the form, as given in fonts.conf, and
542 recorded in FcConfig's fontDirs string set, as canonical.
544 Actually update config.fontDirs as font directories are scanned.
546 2006-01-08 James Su <james.su@gmail.com>
547 * src/fcmatch.c (FcFontSetMatch):
549 Fix matching bug when multiple elements match; don't use
550 the sum of all scores, but the best score.
552 Also more perf opts, e.g. evaluate best over all font sets
553 rather than on a per-set basis (and other changes).
555 2006-01-08 Patrick Lam <plam@mit.edu>
556 * src/fccache.c (FcDirCacheConsume):
558 Properly skip past dir caches that contain zero fonts (as occurs
559 in global caches.) Reported by Mike Fabian.
561 2006-01-06 Patrick Lam <plam@mit.edu>
562 * src/fcdbg.c (FcPatternPrint):
564 Print out full pathname in fc-match -v as well. Reported by
567 2006-01-06 Mike Fabian <mfabian@suse.de>
570 * src/fcname.c (FcNameParse):
572 Fix bug where fc-match crashes when given __DUMMY__ property to
575 (I added the __DUMMY__ string to enable callers of
576 FcObjectToPtrLookup to distinguish an error return from a
577 successful return. -PL)
579 2006-01-05 Patrick Lam <plam@mit.edu>
582 Add self to AUTHORS list.
584 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
585 FcCacheFileRead, FcCachePrintSet, main):
586 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
587 FcGlobalCacheSave, FcCacheNextOffset,
588 FcDirCacheHasCurrentArch, FcDirCacheRead,
589 FcDirCacheConsume, FcDirCacheWrite):
591 * src/fcpat.c (comment):
593 Minor change to global cache file format to fix fc-cat bug
594 reported by Frederic Crozat, and buglet with not globally caching
595 directories with zero fonts cached.
597 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
600 * src/fccfg.c (FcConfigEvaluate):
602 Fix double-free which occurs because FcValueCanonicalize doesn't
603 create an extra copy of the returned value, it only canonicalizes
606 2006-01-02 Patrick Lam <plam@mit.edu>
607 * doc/fontconfig-user.sgml:
609 Fix version of .cache file (currently 1 -> currently 2). Reported
612 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
615 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
617 Shut up GCC warnings on amd.
619 2005-12-20 Patrick Lam <plam@mit.edu>
623 * fontconfig/fontconfig.h:
625 Bump version to 2.3.93.
627 2005-12-20 Patrick Lam <plam@mit.edu>
628 * src/fccharset.c (FcLangCharSetPopulate):
629 * src/fcint.h (FcCacheBankToIndex):
631 Avoid check on _fcBankId nullness and fix case where it used to
634 2005-12-20 Patrick Lam <plam@mit.edu>
635 * src/fcxml.c (FcConfigParseAndLoad):
637 Use open instead of fopen (requested by Phil Race for Sun).
639 2005-12-20 Patrick Lam <plam@mit.edu>
640 * src/fccache.c (FcDirCacheWrite);
641 * fc-cache/Makefile.am:
643 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
646 2005-12-20 Patrick Lam <plam@mit.edu>
647 * src/fcfreetype.c (FcFreeTypeQuery):
649 Restore code to skip over PCF fonts that have no encoded
651 (We guess that a font is PCF by presence of the PIXEL_SIZE
654 2005-12-12 Patrick Lam <plam@mit.edu>
655 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
657 Read and write the original location as a fallback for the
658 hashed cache file locations. This is mostly for users to be
659 able to have per-directory cache files.
661 2005-12-12 Patrick Lam <plam@mit.edu>
662 * fc-cache/fc-cache.c (scanDirs):
663 * fc-cache/Makefile.am:
664 * src/fccache.c (FcDirCacheHashName):
666 Improve error message when fc-cache can't write the cache. Add
667 missing slash. Reported by Behdad. Incorporate Behdad's patch to
668 create /var/cache/fontconfig when appropriate.
670 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
673 * src/fcxml.c (FcConfigGetAttribute):
675 Fix crash reported by Frederic Crozat when using libxml2.
677 2005-12-09 Patrick Lam <plam@mit.edu>
680 * fc-cache/Makefile.am:
681 * fc-cat/Makefile.am:
683 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
684 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
685 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
686 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
687 FcDirCacheHasCurrentArch, FcDirCacheHashName,
688 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
690 Migrate cache files from fonts directories to
691 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
692 but requires that all caches get rebuilt.
694 Also, autogen.sh now needs the additional parameter
695 --localstatedir=/var.
697 2005-12-07 Patrick Lam <plam@mit.edu>
698 * src/fcpat.c (FcPatternAddString):
700 Because we've changed FcPatternAddString to use FcStrStaticName
701 and not FcValueSave, explicitly handle the case of a null string.
703 2005-12-06 Patrick Lam <plam@mit.edu>
704 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
708 2005-12-05 Patrick Lam <plam@mit.edu>
709 * src/fcname.c (FcNameGetObjectType):
711 Don't assign types to user object names.
713 2005-12-05 Patrick Lam <plam@mit.edu>
714 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
716 Don't free strings that have been returned from FcStrStaticName.
718 2005-12-01 Patrick Lam <plam@mit.edu>
719 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
721 Add codepath for reading global cache files as well.
723 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
726 * conf.d/10-fonts.persian.conf:
727 * conf.d/Makefile.am:
729 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
731 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
734 * src/fcxml.c (FcConfigParseAndLoad):
736 Only add a config file to the set of config files once.
738 2005-11-29 Patrick Lam <plam@mit.edu>
739 * src/fcint.h (FcCacheBankToIndex);
741 Fix segfault by guarding array dereference.
743 2005-11-29 Dirk Mueller <dmueller@suse.de>
747 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
748 FcCacheBankToIndex, FcCacheBankToIndexMTF,
752 Refactor FcCacheBankToIndex into an inlineable part
753 (in fcint.h) which checks the front of the list and a
754 non-inlineable part which finds and moves the appropriate element
755 to the front of the list.
757 2005-11-29 Patrick Lam <plam@mit.edu>
758 * src/fccfg.c (FcConfigBuildFonts):
759 * src/fccache.c (FcCacheReadDirs):
761 Make the perf guys hate me a bit less: hoist the directory-name
762 FcConfigAcceptFont check for cached fonts up to directory cache
763 read time, rather than running it for each font.
765 2005-11-29 Patrick Lam <plam@mit.edu>
766 * src/fccfg.c (FcConfigBuildFonts):
768 * src/fcpat.c (FcPatternFindFullFname):
770 Don't make FcPatternFindFullFname available to fccfg, it's not
771 really safe. Instead go through FcPatternGetString (sorry,
772 perf guys.) Also, use globs for dirs as well.
774 2005-11-28 Patrick Lam <plam@mit.edu>
775 * src/fccfg.c (FcConfigBuildFonts):
779 2005-11-28 Patrick Lam <plam@mit.edu>
781 * src/fcpat.c (FcPatternFindFullFname):
782 * src/fccfg.c (FcConfigBuildFonts):
784 Fix problem dating back at least to 2.3.2 where globs weren't
785 being applied to patterns loaded from a cache.
787 2005-11-28 Patrick Lam <plam@mit.edu>
788 * doc/fontconfig-user.sgml:
790 Fix some obvious spelling mistakes.
792 2005-11-28 Dirk Mueller <dmueller@suse.com>
793 Stephan Kulow <coolo@suse.de>
796 * src/fcmatch.c (FcFontSetMatch):
798 Don't kill all fonts during match (oops!)
801 2005-11-25 Dirk Mueller <dmueller@suse.com>
802 Stephan Kulow <coolo@suse.de>
803 Michael Matz <matz@suse.de>
806 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
809 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
810 inline FcCompare into FcFontSetMatch and reorder the
811 loops, adding a boolean array which blocks patterns from future
812 consideration if they're known to not be best on some past
815 2005-11-26 Dirk Mueller <dmueller@suse.com>
818 * src/fcmatch.c (FcCompareValueList):
822 2005-11-25 Patrick Lam <plam@mit.edu>
823 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
825 Don't do random matching when bad objects are passed into
828 2005-11-25 Patrick Lam <plam@mit.edu>
830 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
831 FcPatternSerialize, FcPatternUnserialize,
832 FcValueListEnsureBank, FcValueListDistributeBytes,
833 FcValueListUnserialize):
835 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
836 _fcPatternElts, _fcValueLists for consistency.
838 2005-11-25 Dirk Mueller <dmueller@suse.com>
843 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
845 2005-11-25 Patrick Lam <plam@mit.edu>
847 * src/fccache.c (FcDirCacheConsume):
848 * src/fccharset.c (FcCharSetUnserialize):
849 * src/fcfs.c (FcFontSetUnserialize):
850 * src/fclang.c (FcLangSetUnserialize):
851 * src/fcname.c (FcObjectUnserialize):
852 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
853 FcPatternUnserialize):
855 Pass around FcCache *s to the Unserialize functions for extra
856 consistency (and less overhead, for what that's worth).
858 2005-11-24 Dirk Mueller <dmueller@suse.com>
862 * src/fcmatch.c (FcCompare*, FcFontSetSort):
863 * src/fcname.c (FcNameUnparseValue):
865 Inline the *PtrU functions to gain perf.
866 Remove unneeded params for the FcCompare* functions.
868 2005-11-24 Dirk Mueller <dmueller@suse.com>
871 * src/fcint.h, fontconfig/fontconfig.h:
873 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
875 * src/fcpat.c, src/fcint.h, src/fcname.c:
877 Check for type validity during FcPatternAddWithBinding, don't
878 verify type in FcFontMatch, don't call FcCanonicalize here
879 (which always does a deep copy).
881 2005-11-24 Dirk Mueller <dmueller@suse.com>
884 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
885 * src/fcpat.c (FcPatternAddWithBinding):
887 Make FcCompareString and FcCompareFamily less expensive.
888 Only add a value for FC_FAMILY if the proposed value is a string.
890 2005-11-24 Dirk Mueller <dmueller@suse.com>
893 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
894 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
895 * src/fcint.h (FcDebug):
897 Inline FcDebug invocations and only initialize once, in FcInit*.
898 Improve debug msg in FcPatternPrint.
900 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
903 * fontconfig/fontconfig.h:
906 Minor code warning cleanups.
908 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
911 * fc-match/fc-match.c (main):
913 Make getopt_long accept -s parameter to fc-match as well.
915 2005-11-21 Dirk Mueller <dmueller@suse.com>
918 * src/fcmatch.c (FcCompareValueList):
920 Manually perform inlining & partial redundancy elimination to
921 reduce calls to FcValueListPtrU.
923 2005-11-21 Dirk Mueller <dmueller@suse.com>
926 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
927 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
929 Only invoke strlen() when really necessary.
931 2005-11-19 Matthias Clasen <mclasen@redhat.com>
935 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
940 Get rid of the use of freetype internal headers in fcfreetype.c,
941 since those headers will go away with freetype 2.2. Replace with
942 public domain ftglue code from pango. Note that the patch removes
943 some extra error checking in FT_Get_BDF_Property() and comments
944 out the skipping of empty pcf fonts.
946 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
949 * fc-lang/fc-lang.c (main):
951 Further fix of patch from 2005-11-04: miscounted numbers count
952 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
953 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
955 Removed leafidx_count and numbers_count since they are the same
956 and replaced them with offset_count.
958 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
961 * fc-cat/fc-cat.c (main):
963 Don't crash when fc-cat invoked with no arguments.
965 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
968 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
970 Fix invalid read access caused by premature free and
971 GCC4 warnings in libxml2 codepath.
973 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
976 * src/fccfg.c (FcConfigValues):
978 List iteration not needed in FcConfigValues, since it's building
979 up the list itself; we can just strip FcVoid elements during
982 2005-11-17 Patrick Lam <plam@mit.edu>
983 * src/fccfg.c (FcConfigValues):
985 Fix crash on invalid constants in config files (forgot to update
986 a pointer upon list iteration.)
988 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
991 * src/fcxml.c (FcTypecheckExpr):
993 Complain about invalid constants in config files.
995 2005-11-17 Andreas Schwab <schwab@suse.de>
998 * src/fccache.c (FcGlobalCacheSave):
1000 Don't add current_arch_start more than once.
1002 2005-11-16 Patrick Lam <plam@mit.edu>
1003 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1004 * src/fcfs.c (FcFontSetUnserialize):
1005 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1006 * src/fcpat.c (FcStrUnserialize):
1008 Fix ordering of ALIGN with respect to saving block_ptr; add
1009 another ALIGN to fcfs.c.
1011 2005-11-16 Patrick Lam <plam@mit.edu>
1012 * src/fccache.c (FcDirCacheProduce)
1014 Fix case where alignment bytes bumped up metadata->count
1015 causing unwarranted failures to write cache files.
1016 (Reported by Stephan Kulow).
1018 2005-11-16 Patrick Lam <plam@mit.edu>
1019 * src/fccache.c (FcDirCacheProduce):
1020 * src/fccharset.c (FcCharSetDistributeBytes):
1021 * src/fcfs.c (FcFontSetDistributeBytes):
1023 * src/fclang.c (FcLangSetDistributeBytes):
1024 * src/fcname.c (FcObjectDistributeBytes):
1025 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1028 Add *NeededBytesAlign(), which overestimates the padding which is
1029 later added by the new ALIGN macro. Fix alignment problems on
1030 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1031 version by Andreas Schwab).
1033 2005-11-16 Stephan Kulow <coolo@kde.org>
1038 Use sysconf to determine proper PAGESIZE value; this
1039 appears to be POSIX-compliant. (reported by Andreas Schwab)
1041 2005-11-04 Patrick Lam <plam@mit.edu>
1042 * fc-lang/fc-lang.c:
1047 Fix bug 2878 (excessive relocations at startup for charsets,
1048 reported by Ross Burton): fc-lang/fc-lang now creates the
1049 static form of the langset, not the dynamic form, so that
1050 the charsets should now be in .rodata.
1052 2005-11-04 Patrick Lam <plam@mit.edu>
1053 * src/fcdir.c (FcDirScanConfig):
1055 Add test for validity of directory caches that
1056 somehow got lost (reported by make distcheck).
1058 2005-11-04 Patrick Lam <plam@mit.edu>
1062 * fontconfig/fontconfig.h:
1064 Bump version to 2.3.92.
1066 2005-11-02 Patrick Lam <plam@mit.edu>
1067 * src/fcpat.c (FcPatternDuplicate):
1069 Fix argument ordering problem in call to FcPatternTransferFullFname.
1071 2005-11-02 Patrick Lam <plam@mit.edu>
1072 * src/fcfreetype.c (FcFreetypeQuery):
1073 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1074 FcPatternTransferFullFname):
1076 Fix warnings and embarrassing double-free error.
1078 2005-11-02 Zhe Su <zsu@novell.com>
1083 Change the rule for artificial emboldening in fonts.conf.in. This
1084 enables the support for artificial emboldening included in cairo.
1086 2005-11-02 Patrick Lam <plam@mit.edu>
1087 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1089 Don't zero out full names for FC_REF_CONSTANT fonts;
1090 also, duplicate full names when transferring, and free
1091 full names when freeing the associated font.
1092 Reported by Jinghua Luo.
1094 2005-11-02 Patrick Lam <plam@mit.edu>
1095 * fc-cache/fc-cache.c (scanDirs):
1096 * src/fcpat.c (FcValueListSerialize):
1098 Revert the previous patch and commit the correct patch:
1099 I forgot a canonicalization in FcValueListSerialize, so
1100 that it would choke on already-serialized input files. Duh!
1102 2005-11-02 Patrick Lam <plam@mit.edu>
1103 * fc-cache/fc-cache.c (scanDirs):
1105 Forcibly rescan a directory before writing a fresh local
1106 cache file for that directory, fixing the losing-fonts
1107 problem reported by Mike Fabian and also apparently the
1108 font cache file corruption.
1110 2005-11-02 Patrick Lam <plam@mit.edu>
1111 * src/fccache.c (FcGlobalCacheLoad):
1113 Fix thinko: actually, the whole global cache is stale
1114 if the global cache is older than the (newest) config file.
1116 2005-11-02 Patrick Lam <plam@mit.edu>
1117 * src/fccache.c (FcGlobalCacheLoad):
1118 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1121 Declare the global cache of a directory's contents to be stale if
1122 the directory is newer than the (newest) configuration file.
1124 2005-10-31 Patrick Lam <plam@mit.edu>
1126 * src/fclist.c (FcListAppend):
1127 * src/fcmatch.c (FcFontRenderPrepare):
1128 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1129 FcPatternFreeze, FcPatternBaseFreeze):
1131 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1132 applications continue breaking.
1134 2005-10-31 Patrick Lam <plam@mit.edu>
1135 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1136 * src/fcfreetype.c (FcFreeTypeQuery):
1138 Fix small memory error (tried to free argv); use basename and
1139 dirname correctly (they can modify their arguments).
1141 2005-10-31 Patrick Lam <plam@mit.edu>
1149 Reinstate basename patch, but keep a hash table linking FcPatterns
1150 to their fully-qualified font names for clients' benefit. Clients
1151 only pay for the font names once they request the FC_FILE property
1152 from an FcPattern, but the font name is malloc'd at that point (i.e.
1153 not mmapped: that's impossible, since it may vary between machines.)
1154 Clients do have to pay for a copy of the path name per cache file.
1156 Note that FcPatternGetString now does some rewriting if you ask
1157 for an FC_FILE, appending the pathname as appropriate.
1159 2005-10-31 Patrick Lam <plam@mit.edu>
1160 * src/fcfreetype.c (FcFreeTypeQuery):
1162 Revert basename patch, which breaks fontconfig clients on my system.
1164 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1167 * fontconfig/fonts.conf.in:
1168 * fontconfig/fontconfig.h:
1172 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1173 to load embedded bitmaps or not.
1175 2005-10-25 Patrick Lam <plam@mit.edu>
1176 * src/fcfreetype.c (FcFreeTypeQuery):
1178 Only add basename to patterns' FC_FILE element, not any part of
1181 2005-10-22 Patrick Lam <plam@mit.edu>
1184 Add some more consts, fixing more GCC4 warnings.
1186 2005-10-22 Zhe Su <zsu@novell.com>
1189 Support localized font family and style names.
1190 This has been reported to break old apps like xfd, but modern
1191 (gtk+/qt/mozilla) apps work fine.
1193 2005-10-21 Patrick Lam <plam@mit.edu>
1194 * src/fccache.c (FcGlobalCacheLoad):
1196 Destroy the global cache file if it's terminally broken. (reported by
1199 2005-10-21 Patrick Lam <plam@mit.edu>
1200 * fc-list/fc-list.c (main):
1201 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1202 * fontconfig/fontconfig.h:
1204 Prevent fc-list from escaping strings when printing them (reported by
1207 2005-10-20 Marcus Meissner <meissner@suse.de>
1210 * fontconfig/fontconfig.h:
1212 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1214 2005-10-14 Ross Burton <ross@burtonini.com>
1217 * fc-glyphname/fc-glyphname.c:
1220 Add consts to variables so as to move arrays into .rodata.
1222 2005-10-14 Mike Fabian <mfabian@suse.de>
1225 * src/fccache.c (FcDirCacheUnlink):
1227 Check existence of directory cache file before attempting to unlink.
1229 2005-10-13 Patrick Lam <plam@mit.edu>
1230 * src/fccache.c (FcDirCacheUnlink):
1232 Fix flipped return value on unlink. (Reported by Mike Fabian)
1234 2005-10-12 Patrick Lam <plam@mit.edu>
1237 * src/fcdir.c (FcDirScanConfig):
1240 When fc-cache is run without --force, use directory cache files
1241 to speed up fc-cache run time. (Reported by Mike Fabian)
1243 2005-10-06 Patrick Lam <plam@mit.edu>
1245 * src/fcname.c (FcObjectToPtr):
1246 * src/fcpat.c (FcStrStaticName):
1248 Add padding to make valgrind and glibc not hate each other
1249 when calling strlen().
1251 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1252 reviewed by: plam & keithp
1256 Modify config file to use Greek fonts before Asian fonts with
1259 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1260 reviewed by: plam & keithp
1264 Use libtool -no-undefined flag on all platforms.
1266 2005-10-05 Patrick Lam <plam@mit.edu>
1267 * src/fccache.c (FcCacheHaveBank):
1269 Implement move-to-front array for banks (perf regression
1270 reported by Ronny V. Vindenes).
1272 2005-10-04 Patrick Lam <plam@mit.edu>
1273 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1274 FcDirCacheHasCurrentArch):
1275 * fc-cache/fc-cache.c (scanDirs):
1276 * fontconfig/fontconfig.h:
1278 Add new API which unlinks directory caches and checks dir caches
1279 for existence of appropriate sections. Fix fc-cache to unlink
1280 stale cache files and save directory caches that lack relevant
1283 2005-10-03 Patrick Lam <plam@mit.edu>
1284 * src/fccache.c (FcDirCacheValid):
1286 Ensure that a directory cache has the appropriate section
1287 before reporting that it is valid (reported by Matthias Clasen).
1289 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1297 Use libxml2 if requested (with --enable-libxml2) or if
1298 expat is not available.
1300 2005-09-29 Patrick Lam <plam@mit.edu>
1301 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1303 Fix multi-arch cache files: compute the position for the
1304 block to be added using info from OrigFile, not NewFile.
1306 2005-09-28 Patrick Lam <plam@mit.edu>
1307 * src/fccache.c (FcCacheMachineSignature):
1309 Cast results of sizeof() to unsigned int to get rid of
1310 warnings on x86_64 (thanks Matthias Clasen).
1312 2005-09-27 Patrick Lam <plam@mit.edu>
1313 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1316 Use FcAtomic to rewrite cache files.
1318 2005-09-27 Patrick Lam <plam@mit.edu>
1320 * src/fccache.c (FcDirCacheWrite):
1322 Don't unlink the fonts.cache-2 file even if there's no data
1323 to write; just write an empty cache file. (thanks Lubos Lunak)
1325 2005-09-27 Patrick Lam <plam@mit.edu>
1327 * src/fccache.c (FcDirCacheWrite):
1329 Allocate room for the subdirectory names in each
1330 directory cache. Thanks to James Cloos for finding
1331 and diagnosing this bug!
1333 2005-09-22 Patrick Lam <plam@mit.edu>
1335 * fc-cache/fc-cache.sgml:
1336 * src/fccache.c (FcDirCacheWrite):
1337 * src/fccache.h (struct FcCache):
1339 Update documentation -- fc-cache's man page now says that you
1340 need to run fc-cache once per cached architecture; add some
1341 documentation to the FcCache structure.
1343 Make fc-cache write out fonts.cache-2 files for directories with
1344 no fonts (i.e. only subdirectories).
1346 2005-09-22 Patrick Lam <plam@mit.edu>
1348 * fc-cache/fc-cache.sgml:
1349 * fc-case/fc-case.c:
1350 * fc-glyphname/fc-glyphname.c:
1356 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1360 * fc-lang/fc-lang.c:
1361 * fontconfig/fcprivate.h:
1362 * fontconfig/fontconfig.h:
1376 Implement new mmaped cache for font information.
1377 Bump so revision to 2.3.90.
1379 2005-07-25 Keith Packard <keithp@keithp.com>
1381 * doc/fontconfig-user.sgml:
1382 * fc-glyphname/fc-glyphname.c: (scan), (main):
1383 * fc-lang/fc-lang.c: (FcConfigHome):
1384 * fc-match/fc-match.c: (main):
1385 * src/fccfg.c: (FcConfigHome):
1386 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1387 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1388 (addtag), (FcFontCapabilities):
1389 * src/fcpat.c: (FcValueListEntCreate):
1390 * src/fcstr.c: (FcStrCaseWalkerInit):
1391 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1393 Various GCC 4 cleanups for signed vs unsigned char
1395 Match only [0-9]*.conf files in <include>{directory}</include>
1396 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1398 2005-07-15 Carl Worth <cworth@cworth.org>
1401 * src/fcinit.c: (FcFini):
1402 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1405 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1406 Pull the FcObjectStateName hash table out to file scope, and add
1407 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1410 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1413 2005-06-16 Patrick Lam <plam@MIT.EDU>
1417 * src/fccfg.c: (FcConfigCompareValue):
1418 Make FcOpNotContains use FcStrStr for strings so that
1419 it matches semantics for !FcOpContains.
1421 2005-05-20 Keith Packard <keithp@keithp.com>
1425 Move fontconfig source package to libs as per override
1427 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1429 reviewed by: Mike Fabian
1432 The ka.orth file requires several characters which are not
1433 used anymore in modern Georgian and which are missing in the free
1434 Georgian TrueType fonts downloadable at:
1436 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1438 2005-04-27 Keith Packard <keithp@keithp.com>
1442 Update date to real 2.3.2 release date.
1443 Fix change attributions
1445 2005-04-27 Keith Packard <keithp@keithp.com>
1448 Bump so revision for 2.3.2
1449 * fc-cache/fc-cache.c: (scanDirs):
1450 Fix a few minor leaks in error cases.
1452 2005-04-23 Keith Packard <keithp@keithp.com>
1457 * fontconfig/fontconfig.h:
1458 Update for version 2.3.2
1460 2005-04-21 Keith Packard <keithp@keithp.com>
1462 * debian/fontconfig.postinst:
1463 Don't force bitmap font enable in default
1464 configuration; allows users to override this in
1474 * debian/po/pt_BR.po:
1475 * debian/po/templates.pot:
1477 * debian/po/zh_CN.po:
1478 Updated translations
1480 * fc-cache/fc-cache.c: (main):
1481 Destroy font configuration on exit to help valgrind
1484 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1485 (FcFreeTypeCheckGlyph):
1486 Use own transcoding routines in preference to iconv
1487 which appears to have leaks in some translators.
1488 Call iconv_close after using iconv (oops).
1490 Prefer unicode encoding of Euro char as some
1491 fonts mis-encode Euro in other ones.
1493 Must fetch bitmap glyphs to get width values
1494 to check for monospace/dual-width fonts.
1496 2005-04-13 Ross Burton <ross@burtonini.com>
1499 Check that a pattern isn't already frozen in FcPatternFreeze.
1501 2005-03-31 Ross Burton <ross@burtonini.com>
1506 Run all FcPattern objects through FcObjectStaticName, so that
1507 compares can be done on pointers instead of strings (#2659)
1509 2005-03-17 Tor Lillqvist <tml@novell.com>
1511 * src/fontconfig.def.in: Add the .dll to the dll name.
1513 2005-03-10 Keith Packard <keithp@keithp.com>
1515 * debian/README.Debian:
1516 Update to reflect configuration changes
1518 * debian/fontconfig.postinst:
1519 Fix Autohint vs Autohinter mistake
1520 * debian/fontconfig.templates:
1521 Adopt changes from Josselin Mouette for configuration descriptions
1522 Update debian to version 2.3.1-2
1524 2005-03-08 Keith Packard <keithp@keithp.com>
1528 Update debian for 2.3.1
1530 2005-03-09 Tor Lillqvist <tml@novell.com>
1532 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1535 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1538 2005-03-08 Keith Packard <keithp@keithp.com>
1542 * fontconfig/fontconfig.h:
1545 2005-03-05 Keith Packard <keithp@keithp.com>
1547 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1548 Include space and remove numbers from valid script tags.
1549 This ensures that tags like 'lao ' work while rejecting
1550 those which have any digits.
1551 Eliminate a spurious debugging variable (len)
1553 2005-03-05 Keith Packard <keithp@keithp.com>
1555 * src/fcfreetype.c: (addtag), (GetScriptTags),
1556 (FcFontCapabilities):
1557 Rework GSUB/GPOS script parsing to survive broken fonts.
1558 Thanks for the broken font go to Manish Singh
1560 2005-03-05 Keith Packard <keithp@keithp.com>
1565 * debian/fontconfig.config:
1566 * debian/fontconfig.templates:
1568 Include 2.3 release information in changelog
1569 Add Josselin Mouette as an Uploader
1570 Set hinting_type to low priority configuration option
1573 * debian/fontconfig.postinst:
1574 yes_bitmaps.conf -> yes-bitmaps.conf
1580 2005-03-02 Keith Packard <keithp@keithp.com>
1583 * conf.d/Makefile.am:
1584 * conf.d/autohint.conf:
1585 * conf.d/no-sub-pixel.conf:
1586 * conf.d/sub-pixel.conf:
1587 * conf.d/unhinted.conf:
1588 * debian/autohint.conf:
1589 * debian/fontconfig.install:
1590 * debian/fontconfig.postinst:
1591 * debian/fontconfig.templates:
1592 * debian/no-sub-pixel.conf:
1593 * debian/unhinted.conf:
1594 Move debian-specific conf file examples upstream.
1596 Sub-pixel configuration examples must smash subpixel value
1597 as Xft always sets it from X.
1599 Change sub-pixel rendering debconf descriptions from
1600 Enable/Disable to Always/Never.
1602 2005-03-02 Keith Packard <keithp@keithp.com>
1605 * conf.d/.cvsignore:
1607 Ignore more build detritus
1610 Add debian package construction stuff.
1612 * config/config.guess:
1613 * config/config.sub:
1614 Update to newer versions of these tools
1617 Get library manuals to build again (we love automake).
1619 * debian/README.Debian:
1620 * debian/autohint.conf:
1625 * debian/fontconfig-udeb.install:
1626 * debian/fontconfig.config:
1627 * debian/fontconfig.defoma:
1628 * debian/fontconfig.dirs:
1629 * debian/fontconfig.install:
1630 * debian/fontconfig.postinst:
1631 * debian/fontconfig.postrm:
1632 * debian/fontconfig.templates:
1633 * debian/libfontconfig1-dev.install:
1634 * debian/libfontconfig1.install:
1635 * debian/local.conf.md5sum:
1636 * debian/no-sub-pixel.conf:
1637 * debian/po/POTFILES.in:
1646 * debian/po/pt_BR.po:
1647 * debian/po/templates.pot:
1649 * debian/po/zh_CN.po:
1651 * debian/unhinted.conf:
1652 Update debian build system to switch maintainers and
1653 deal with 2.3 functionality
1655 2005-03-01 Keith Packard <keithp@keithp.com>
1659 * fontconfig/fontconfig.h:
1662 2005-03-01 Keith Packard <keithp@keithp.com>
1665 Generate and install PDF versions of the manuals
1667 * doc/fcpattern.fncs:
1670 * doc/fcstring.fncs:
1671 Add missing exported functions, fix data types
1673 * doc/fontconfig-devel.sgml:
1674 Add missing pattern elements.
1676 * doc/fontconfig-user.sgml:
1677 Add missing pattern elements. Document conf.d usage,
1678 clarify available orthography list. Fix some config file
1679 attributes. Complete list of constants.
1681 * fontconfig/fontconfig.h:
1682 Mark FC_SOURCE deprecated.
1684 * src/fcfreetype.c: (FcFreeTypeQuery):
1685 Don't set FC_SOURCE any longer.
1687 2005-02-28 Keith Packard <keithp@keithp.com>
1690 * conf.d/Makefile.am:
1692 * conf.d/no-bitmaps.conf:
1693 * conf.d/sub-pixel.conf:
1694 * conf.d/yes-bitmaps.conf:
1696 Create prototype /etc/fonts/conf.d directory with a few
1697 sample configuration files.
1698 Deprecate use of local.conf for local customizations in favor of
1699 this directory based scheme which is more easily integrated into
1700 installation systems.
1703 Tag FC_EMBOLDEN as a boolean variable
1705 2005-02-10 Keith Packard <keithp@keithp.com>
1707 reviewed by: pborelli@katamail.com
1709 * src/fcdir.c: (FcFileScanConfig):
1710 Free patterns from fonts which are rejected by configuration
1713 2005-01-28 Keith Packard <keithp@keithp.com>
1717 * fontconfig/fontconfig.h:
1718 Update for version 2.2.99
1720 2005-01-28 Keith Packard <keithp@keithp.com>
1723 Add a few pointers (#2284, #2285)
1725 2005-01-28 Keith Packard <keithp@keithp.com>
1728 * src/fcname.c: (FcNameBool):
1729 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1730 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1731 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1732 Polite typechecking for test and edit expressions. Helps
1733 catch errors in the font configuration. (bug 229)
1735 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1737 reviewed by: Keith Packard <keithp@keithp.com>
1740 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1742 2005-01-13 Keith Packard <keithp@keithp.com>
1744 * doc/fontconfig-user.sgml:
1745 Add SEE ALSO section (bug 2085)
1747 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1749 reviewed by: Keith Packard <keithp@keithp.com>
1754 * fc-case/Makefile.am:
1755 * fc-glyphname/Makefile.am:
1756 * fc-lang/Makefile.am:
1757 * src/fontconfig.def.in:
1758 Cross compiling fixes (bug 280)
1760 2005-01-13 Keith Packard <keithp@keithp.com>
1763 Update blanks list (Closes bug 86)
1765 2005-01-04 Keith Packard <keithp@keithp.com>
1767 * src/fccache.c: (FcCacheFontSetAdd):
1768 Verify that every font pattern loaded from cache has
1769 both FC_FILE and FC_FAMILY entries.
1770 Attempt to fix bug #2219.
1772 2004-12-29 Keith Packard <keithp@keithp.com>
1776 * fontconfig/fontconfig.h:
1777 Update for version 2.2.98
1779 2004-12-29 Keith Packard <keithp@keithp.com>
1781 * fontconfig/fontconfig.h:
1782 Document ASCII limitations of Fc character conversion macros
1783 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1784 Fix off-by-one error in utf-8 case walking code.
1785 Add FcStrDowncase (useful for testing case conversion functions)
1787 2004-12-29 Keith Packard <keithp@keithp.com>
1790 * fc-case/.cvsignore:
1791 clean up CVS ignore lists
1792 * fc-lang/iso-3166.txt:
1793 Add territory database
1795 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1797 Reviewed by: Keith Packard
1800 Remove Han characters from Korean orthography
1802 2004-12-29 Keith Packard <keithp@keithp.com>
1805 Reorder utility programs to make sure fc-case is run before fc-lang
1806 as fc-lang uses fcstr.c which uses fccase.h
1810 2004-12-29 Keith Packard <keithp@keithp.com>
1813 Adopt some RedHat suggestions for standard font configuration.
1817 * fc-case/CaseFolding.txt:
1818 * fc-case/Makefile.am:
1819 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1820 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1821 (dump), (parseRaw), (caseFoldReadRaw), (main):
1822 * fc-case/fccase.tmpl.h:
1823 Add new helper program 'fc-case' to construct case folding
1824 tables from standard Unicode CaseFolding.txt file
1827 * src/fclist.c: (FcListValueHash):
1828 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1829 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1830 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1831 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1832 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1833 Re-implement case insensitive functions with Unicode
1834 aware versions (including full case folding mappings)
1836 2004-12-13 Keith Packard <keithp@keithp.com>
1838 reviewed by: Owen Taylor <otaylor@redhat.com>
1840 * src/fcmatch.c: (FcFontSetSort):
1841 I changed FcFontSetSort to respect the generic aliases better
1842 in the face of language matching.
1844 What I did was to ammend the strict sort order used by FcFontSort so
1845 that it 'satisfies' the language specified in the pattern by locating
1846 the best matching font supporting each pattern language and then
1847 ignores language in the remaining fonts for purposes of matching.
1849 So, when asking for 'sans:lang=en', you'll get an English font first,
1850 and then the remaining fonts sorted with respect to the 'sans' alias
1851 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1853 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1855 reviewed by: Keith Packard <keithp@keithp.com>
1857 * fontconfig/fontconfig.h:
1860 Configuration changes to request synthetic emboldening of
1861 fonts. The actual emboldening code will live in Xft.
1863 2004-12-09 John Thacker <thacker@math.cornell.edu>
1865 reviewed by: Keith Packard <keithp@keithp.com>
1869 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1870 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1871 и), and don't even appear in KOI8-R. (The hypothesis that they
1872 don't appear in KOI8-R due to their similarity with Latin I and i is
1873 eliminated by their presence in KOI8-U.) I have a couple of fonts
1874 with Russian support that don't have the letter.
1876 Therefore, 0406 and 0456 should be removed from or commented out of
1879 2004-12-06 michael meeks <mmeeks@novell.com>
1881 Reviewed by: Keith Packard <keithp@keithp.com>
1883 * src/fcinit.c: (FcMemReport):
1885 * src/fclist.c: (FcObjectSetAdd):
1886 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1887 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1888 * src/fcxml.c: (FcParsePatelt):
1889 memoize strings and share a single copy for all uses. Note that
1890 this could be improved further by using statically allocated blocks
1891 and gluing multiple strings together, but I'm basically lazy.
1892 In my environment with 800 font files, I get a savings of about 90KB.
1894 2004-12-06 Keith Packard <keithp@keithp.com>
1898 * config/Makedefs.in:
1901 * doc/fcatomic.fncs:
1902 * doc/fcblanks.fncs:
1903 * doc/fccharset.fncs:
1904 * doc/fcconfig.fncs:
1905 * doc/fcconstant.fncs:
1907 * doc/fcfontset.fncs:
1908 * doc/fcfreetype.fncs:
1910 * doc/fcmatrix.fncs:
1911 * doc/fcobjectset.fncs:
1912 * doc/fcobjecttype.fncs:
1913 * doc/fcpattern.fncs:
1914 * doc/fcstring.fncs:
1915 * doc/fcstrset.fncs:
1917 * doc/fontconfig-devel.sgml:
1918 * doc/fontconfig-user.sgml:
1920 * doc/version.sgml.in:
1921 * fc-cache/Makefile.am:
1922 * fc-cache/fc-cache.c:
1923 * fc-glyphname/Makefile.am:
1924 * fc-glyphname/fc-glyphname.c:
1925 * fc-glyphname/fcglyphname.tmpl.h:
1926 * fc-lang/Makefile.am:
1936 * fc-lang/az_ir.orth:
1970 * fc-lang/fc-lang.c:
1971 * fc-lang/fc-lang.man:
1972 * fc-lang/fclang.tmpl.h:
2017 * fc-lang/ku_ir.orth:
2050 * fc-lang/ps_af.orth:
2051 * fc-lang/ps_pk.orth:
2080 * fc-lang/ti_er.orth:
2081 * fc-lang/ti_et.orth:
2107 * fc-lang/zh_cn.orth:
2108 * fc-lang/zh_hk.orth:
2109 * fc-lang/zh_mo.orth:
2110 * fc-lang/zh_sg.orth:
2111 * fc-lang/zh_tw.orth:
2113 * fc-list/Makefile.am:
2114 * fc-list/fc-list.c:
2115 * fc-match/Makefile.am:
2116 * fc-match/fc-match.1:
2117 * fc-match/fc-match.c:
2118 * fontconfig/fcfreetype.h:
2119 * fontconfig/fcprivate.h:
2120 * fontconfig/fontconfig.h:
2141 Change files from ISO-Latin-1 to UTF-8
2143 2004-12-04 Keith Packard <keithp@keithp.com>
2146 Update links to new freedesktop.org locations
2148 Add uninstall-local to get rid of fonts.conf and local.conf if they
2149 match the distributed versions. Fixes 'make distcheck'
2151 2004-12-04 Keith Packard <keithp@keithp.com>
2155 * fontconfig/fontconfig.h:
2156 Updates for version 2.2.97
2158 2004-12-04 Owen Taylor <otaylor@redhat.com>
2160 reviewed by: Keith Packard <keithp@keithp.com>
2162 * fc-cache/fc-cache.c: (main):
2163 Sleep for two seconds before exiting to make sure timestamps
2164 for future changes have distinct mod times in the file system.
2167 Add Punjabi orthography. Bug #1671.
2169 2004-12-04 Keith Packard <keithp@keithp.com>
2172 Just remove the FC_FONTDATE -- it has locale issues and
2173 annoys redhat multi-arch installs. Now that all X fonts are
2174 included without prejudice, the chances of the date being at
2175 all interesting are rather limited. Bug #505.
2177 Add copyright and license
2179 2004-12-04 Keith Packard <keithp@keithp.com>
2182 Change default set of fonts to include all of
2183 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2184 * doc/fontconfig-user.sgml:
2185 Document new <include>directory-name</include> semantics
2187 add <include ignore_missing="yes">conf.d</include>
2189 Add selectfont to ignore bitmap fonts, add comment for
2190 selectfont which accepts bitmap fonts.
2193 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2194 Allow <include> configuration elements to reference directories.
2195 Parse and load all files of the form [0-9]* in sorted order.
2197 2004-12-04 Keith Packard <keithp@keithp.com>
2200 Report command line for $srcdir/configure accurately.
2203 2004-12-04 Keith Packard <keithp@keithp.com>
2205 * src/fcfreetype.c: (FcFreeTypeQuery):
2206 Check for non-empty face->family_name and face->style_name
2207 before using those for the font. Empty names match everything.
2210 2004-12-04 Keith Packard <keithp@keithp.com>
2213 * fontconfig/fontconfig.h:
2214 * src/fcfreetype.c: (FcFreeTypeQuery):
2216 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2217 available. This provides font file format information (BDF, Type 1,
2218 PCF, TrueType) for each font. Closes #109.
2220 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2222 reviewed by: Keith Packard <keithp@keithp.com>
2224 * doc/fontconfig-user.sgml:
2227 * fontconfig/fontconfig.h:
2228 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2229 (GetScriptTags), (FcFontCapabilities):
2231 Add detection for font capabilities (bug #105)
2233 2004-12-04 Keith Packard <keithp@keithp.com>
2236 Move existing fonts.conf to fonts.conf.bak
2239 Add detection of iconv
2241 * doc/fcpattern.fncs:
2242 * doc/fontconfig-devel.sgml:
2243 * doc/fontconfig-user.sgml:
2245 Document new selectfont elements
2248 Switch to UTF-8 in comment
2250 * fontconfig/fontconfig.h:
2252 Add fullname, and family/style/fullname language entries
2254 * src/fccache.c: (FcCacheFontSetAdd):
2255 * src/fcdir.c: (FcFileScanConfig):
2256 Respect selectfont/*/glob
2259 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2260 (FcConfigCompareValue), (FcConfigPatternsAdd),
2261 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2262 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2263 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2264 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2265 Add support for selectfont
2267 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2268 (FcStringInPatternElement), (FcFreeTypeQuery):
2269 Add multi-lingual family/style/fullname support
2271 * src/fclist.c: (FcListPatternMatchAny):
2272 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2274 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2275 (FcObjectStaticName):
2276 Add new FcPatternRemove/FcPatternAppend.
2277 FcObjectStaticName stores computed pattern element names which
2278 are required to be static.
2280 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2285 Remove spurious / after $(DESTDIR)
2287 2004-06-30 Keith Packard <keithp@keithp.com>
2291 * fontconfig/fontconfig.h:
2294 2004-06-30 Keith Packard <keithp@keithp.com>
2296 Provided by: Lubos Lunak <l.lunak@suse.cz>
2298 * src/fccfg.c: (FcConfigUptoDate):
2299 However FcConfigUptoDate() doesn't seem to work. See the attached
2300 patch. First there's an obvious misplaced parenthesis making it
2301 return always false, and second, even this call fails to detect font
2302 changes (e.g. adding a new font to
2303 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2304 well. The problem seems to be triggered by my fonts.conf specifying
2305 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2306 doesn't include subdirs, unlike config->fontDirs.
2308 2004-06-03 Keith Packard <keithp@keithp.com>
2310 * fontconfig/fontconfig.h:
2311 Remove comma at end of FcResult enum definition.
2313 2004-05-29 Keith Packard <keithp@keithp.com>
2316 Add steps to md5sum release
2318 2004-05-29 Keith Packard <keithp@keithp.com>
2322 * fontconfig/fontconfig.h:
2325 2004-05-29 Keith Packard <keithp@keithp.com>
2327 * fontconfig/fontconfig.h:
2328 * src/fcmatch.c: (FcFontSetMatch):
2329 Add FcResultOutOfMemory to provide an accurate error when
2330 FcFontSetMatch fails in this way
2333 Make #warning about lacking various FreeType features indicate
2334 which version those features appeared so users know how to
2335 fix the problem (Thanks to Anton Tropashko)
2337 2004-05-05 Keith Packard <keithp@keithp.com>
2339 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2340 Replace MIN/MAX/ABS macros which happen to have come
2341 from FreeType with fontconfig-specific ones (FC_*)
2343 2004-04-23 Keith Packard <keithp@keithp.com>
2346 Extend release preparation instructions to include
2347 notification and distribution steps
2349 2004-04-23 Keith Packard <keithp@keithp.com>
2353 * fontconfig/fontconfig.h:
2354 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2356 2004-04-23 Keith Packard <keithp@keithp.com>
2359 Ignore a few more autotool files
2361 2004-04-14 Keith Packard <keithp@keithp.com>
2364 Add instructions for doing a release
2366 * fontconfig.spec.in:
2367 clean up .spec file; perhaps this will be useful to somebody...
2371 * fontconfig/fontconfig.h:
2374 * fc-lang/fc-lang.c:
2375 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2377 * fc-glyphname/Makefile.am:
2378 * fc-lang/Makefile.am:
2379 * fc-list/Makefile.am:
2380 * fc-match/Makefile.am:
2382 Add WARN_CFLAGS to pass -W flags for GCC systems
2384 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2385 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2386 Change various char types around to match across
2388 Fixed bug in using available_sizes[i].height which
2389 is in pixels, not 64ths of a pixel.
2391 2004-03-06 Keith Packard <keithp@keithp.com>
2393 * src/fcfreetype.c: (FcFreeTypeQuery):
2394 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2395 matches looking for explicit values prefer exact matches
2397 2004-03-02 Keith Packard <keithp@keithp.com>
2399 Supplied by: mfabian@suse.de (Mike FABIAN)
2401 * src/fcfreetype.c: (FcFreeTypeQuery):
2402 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2403 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2405 2004-02-21 Manish Singh <yosh@gimp.org>
2407 * fc-glyphname/fc-glyphname.c: (main):
2408 Cast strlen to int for printf, so we're 64-bit clean.
2410 2004-02-11 Keith Packard <keithp@keithp.com>
2413 * src/fcfreetype.c: (FcGetPixelSize):
2414 Ok, so I messed up the test for y_ppem. Let's see if I
2415 got it right this time.
2417 2004-02-10 Keith Packard <keithp@keithp.com>
2420 * src/fcfreetype.c: (FcGetPixelSize):
2421 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2422 FT_Bitmap_Size record. Add a configure.in test for this
2423 and change the code accordingly (using height instead).
2425 2004-02-06 Keith Packard <keithp@keithp.com>
2428 Add Low Saxon orthography
2429 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2431 * src/fccfg.c: (FcConfigNewestFile):
2432 Oops. Left 'newest.set' unset, which would miscompute
2435 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2436 (FcFreeTypeCheckGlyph):
2437 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2438 font properties (which report the wrong value in current FreeType)
2440 Don't attempt to check for empty glyphs in non-scalable fonts; they
2443 2004-02-01 Tor Lillqvist <tml@iki.fi>
2445 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2446 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2447 cache if config->cache is NULL, which happens if FcConfigHome() is
2448 NULL. Guard against that by using the temp folder in that case.
2450 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2452 * fc-lang/az_ir.orth:
2453 * fc-lang/ku_ir.orth:
2454 * fc-lang/ps_af.orth:
2455 * fc-lang/ps_pk.orth:
2456 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2457 (Afghan and Pakistani).
2459 Updated Urdu orthography with real data.
2461 2003-12-11 Carl Worth <cworth@east.isi.edu>
2463 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2466 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2468 (all-local): Remove excessive whitespace.
2470 * autogen.sh: Add 'set -e' to abort when any program fails,
2471 (avoids printing of 'now type make' after configure aborts).
2473 2003-11-17 Eric Christopherson <rakko@charter.net>
2475 reviewed by: Keith Packard <keithp@keithp.com>
2478 * fontconfig/fcfreetype.h:
2480 Switch to FreeType 2.1.7 style includes. Bug #150.
2482 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2484 * fc-list/fc-list.sgml: Add some example usages.
2486 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2489 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2492 2003-10-27 Keith Packard <keith@keithp.com>
2495 * fontconfig/fontconfig.h:
2496 Update to version 2.2.92
2498 2003-10-27 Keith Packard <keithp@keithp.com>
2503 * fc-cache/Makefile.am:
2504 * fc-glyphname/Makefile.am:
2505 * fc-lang/Makefile.am:
2506 * fc-list/Makefile.am:
2507 * fc-match/Makefile.am:
2510 Yet more cleanups to finish getting 'make distcheck' working
2511 This has been tested to ensure that it even works from a _build
2514 2003-10-26 Keith Packard <keithp@keithp.com>
2518 * fc-cache/Makefile.am:
2519 * fc-glyphname/Makefile.am:
2520 * fc-lang/Makefile.am:
2521 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2522 * fc-list/Makefile.am:
2523 * fc-match/Makefile.am:
2524 Attempts to fix 'make distcheck' work. Things are
2525 progressing pretty well, but there are still failures
2526 long into the process dealing with docs (as always).
2528 The big changes here are mostly to make $(srcdir) != "."
2529 work correctly, fixing the docbook related sections and
2530 fc-lang were particularily tricky. Docbook refuses to load
2531 system entities from anywhere other than where the original .sgml
2532 file was located, so no luck looking in "." for the
2533 configure-generated version.sgml and confdir.sgml files.
2535 fc-lang needed help finding .orth files; added a -d option
2536 to set the directory as the least evil of many options.
2538 Now to go use a faster machine and try and wring out the last
2541 2003-10-26 Keith Packard <keithp@keithp.com>
2545 2003-10-26 Keith Packard <keithp@keithp.com>
2548 Include confdir.sgml.in in EXTRA_DIST
2550 2003-10-09 Josselin Mouette <joss@debian.org>
2552 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2553 * fc-list/fc-list.sgml fc-list/Makefile.am:
2554 Replace fc-cache and fc-list manpages with more detailed, SGML
2557 2003-09-23 Owen Taylor <otaylor@redhat.com>
2559 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2560 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2561 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2564 2003-09-23 Owen Taylor <otaylor@redhat.com>
2566 * fc-lang/ka.orth: Remove Georgian capitals, they
2567 aren't used for normal writing. (Bug #116)
2569 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2571 * doc/fontconfig-devel.sgml:
2572 * doc/fontconfig-user.sgml:
2573 * fontconfig/fontconfig.h:
2575 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2576 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2578 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2579 monospace and dual-width fonts, allow roughly a 3% variance in the
2582 2003-08-31 Manish Singh <yosh@gimp.org>
2584 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2587 2003-08-15 Carl Worth <cworth@isi.edu>
2589 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2590 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2592 * src/fcpat.c (FcValueListEntDestroy): New function to support
2593 FcFini memory cleanup. Some statistics are not kept in
2595 (FcValueListFreeze): Move hashTable outside this function so it
2596 can be accessed by FcValueListThawAll.
2597 (FcValueListThawAll): New function complements FcValueListFreeze.
2598 (FcPatternBaseFreeze): Move hashTable outside this function so it
2599 can be accessed by FcPatternBaseThawAll.
2600 (FcPatternBaseThawAll): New function complements
2601 FcPatternBaseFreeze.
2602 (FcPatternThawAll): New function complements FcPatternFreeze.
2604 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2606 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2607 allocated FcCharLeafEnt "blocks" so they can be freed later.
2608 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2609 can be accessed by FcCharSetThawAllLeaf.
2610 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2611 (FcCharSetFreezeBase): Move hashTable outside this function so it
2612 can be accessed by FcCharSetThawAll.
2613 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2615 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2616 (FcConfigDestroy): Fic leak of FcBlanks.
2618 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2619 (main): Add call to FcFini when finished.
2621 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2622 static. Add prototypes.
2624 * doc/fcinit.fncs: Add documentation for FcFini function.
2626 * doc/edit-sgml.c: Mark several local functions as static. Add
2629 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2631 2003-06-15 Tor Lillqvist <tml@iki.fi>
2633 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2634 before comparing (needed on Windows).
2636 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2638 2003-06-13 Tor Lillqvist <tml@iki.fi>
2640 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2643 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2644 WINDOWSFONTDIR token.
2646 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2647 end, not to confuse libtool, which expects the EXPORTS line to be
2648 the first. Add FcConfigEnableHome.
2650 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2651 built as a DLL on Win32.
2653 2003-06-09 Keith Packard <keithp@keithp.com>
2655 * Tag version 2.2.90
2657 2003-06-09 Keith Packard <keithp@keithp.com>
2659 * Optimization in FcLangSetIndex was broken, occasionally
2660 returning a pointer to the wrong location on miss
2662 * Add fc-match to test font matching from the command line.
2664 2003-05-31 Keith Packard <keithp@keithp.com>
2666 * (Bug 85) add support for culmus fonts
2667 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2668 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2670 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2672 * Fix "contains" op for strings and langsets.
2674 2003-05-17 Keith Packard <keithp@keithp.com>
2676 * Fix build error with BDF prop local. Free langset after query
2678 2003-05-14 Keith Packard <keithp@keithp.com>
2680 * Extract spacing from XLFD atom
2682 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2684 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2685 disappeared in 1.30.
2687 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2689 2003-05-12 Keith Packard <keithp@keithp.com>
2691 * Use FcIsWidth to share code
2693 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2694 misclassifying some Han fonts as monospaced.
2696 2003-05-07 Keith Packard <keithp@keithp.com>
2698 * Add filename-based accept/reject to ammend available fonts.
2700 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2701 older FreeType releases.
2703 2003-05-06 Keith Packard <keithp@keithp.com>
2705 * Remove 0b82 and Tamil numbers from tamil
2706 orthography (Jungshik Shin <jshin@mailaps.org>)
2708 2003-05-04 Keith Packard <keithp@keithp.com>
2710 + Map glyph names in fonts with adobe custom encoding to unicode
2712 2003-05-02 Keith Packard <keithp@keithp.com>
2714 * Add FC_WEIGHT_BOOK as weight 75
2716 2003-04-30 Keith Packard <keithp@keithp.com>
2718 * Typo in bitstream foundry name
2720 2003-04-24 Keith Packard <keithp@keithp.com>
2722 * Eliminate italic_angle check for PS fonts
2724 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2726 * Getting closer to fixing /etc/fonts hard-coding.
2728 2003-04-22 Keith Packard <keithp@keithp.com>
2730 * Update autogen.sh to work with newer automake versions
2731 * Handle pattern elements moving during multiple edits
2733 2003-04-23 James Henstridge <james@daa.com.au>
2735 * doc/fontconfig-devel.sgml: close the <para> element.
2737 * doc/fcpattern.fncs: close the <para> element.
2739 * doc/func.sgml: close the <refsynopsisdiv> element.
2741 2003-04-22 Keith Packard <keithp@keithp.com
2743 * Update autogen.sh to work with newer automake versions
2744 * Handle pattern elements moving during multiple edits
2746 2003-04-17 Colin Walters <walters@debian.org>
2748 + Remove some unused variables, and initialize some other ones so
2749 gcc doesn't warn us.
2751 2003-04-16 Keith Packard <keithp@keithp.com>
2753 + tag version 2.1.94
2755 2003-04-16 Keith Packard <keithp@keithp.com>
2757 + add BDF property fetching support for foundry
2758 (from Juliusz Chroboczek)
2759 + add BDF property fetching support for width
2761 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2763 + Implemented foundry generation for Type 1 and TrueType
2765 2003-04-11 Gerard Escalante <g2@magestudios.net>
2767 + Retrieve information from Type1 FontInfo dictionaries
2769 2003-04-07 Colin Walters <walters@verbum.org>
2771 + src/Makefile.am: Fix dummy makefile target names when
2772 MS_LIB_AVAILABLE isn't set.
2774 2003-03-22 Tor Lillqvist <tml@iki.fi>
2776 Changes for Windows:
2778 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2780 + We don't want to hardcode the fonts.conf file location in the
2781 DLL, so we look up the DLL location at run-time in a DllMain()
2782 function. The fonts.conf location is deduced from that.
2784 + The colon can't be used as path separator on Windows,
2785 semicolon is used instead. File path components can be separated
2786 with either slash or backslash. Absolute paths can also begin
2787 with a drive letter.
2789 + Add internal function FcStrLastSlash that strrchr's the last
2790 slash, or backslash on Windows.
2792 + There is no link() on Windows. For atomicity checks, mkdir a
2793 lock directory instead.
2795 + In addition to HOME, also look for USERPROFILE.
2797 + Recognize the special font directory token WINDOWSFONTDIR, to
2798 use the system's font directory.
2800 + Remove the fontconfig-def.cpp that was obsolete. Add
2801 fontconfig.def(.in), without internal functions.
2803 + Add a fontconfig-zip(.in) script, used to build a binary
2806 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2807 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2808 to main package and man3/* to devel package
2810 + Added missing defattr(-, root, root) to main RPM package
2812 + Added HTML and text development documentation to -devel subpackage
2814 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2815 + Added back the configure macro options --disable-docs, otherwise
2816 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2817 version number) unconditionally, causing RPM to fail the build due
2818 to _unpackaged_files_terminate_build. We pick up the pregenerated
2819 docs with %doc already.
2821 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2822 + Removed commented out rpm macro define at top of spec file,
2823 replacing it with a simple explanation, since rpm macros are
2824 expanded by rpm even in comments.
2826 + Changed /usr/bin to _bindir in BuildRequires lines
2828 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2830 + Reorganized file manifest lists
2832 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2834 + fontconfig.spec.in: Improvements from Red Hat spec file.
2836 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2838 + docs/*.sgml: SGML fixes.
2840 Sat Mar 1 17:28:53 PST 2003 keithp
2841 + Ok, so the ChangeLog is a bit out of date
2843 + Lots of bugs fixed; most are in bugzilla, the
2844 biggest problems were in cache management where
2845 Owen discovered the library would lose badly when
2846 combining fonts-cache and ~/.fonts-cache data
2848 + Converted from autoconf to automake. This after
2849 getting patches accepted into libtool to allow
2850 the '-version-number' argument which lets
2851 packages set version numbers explicitly rather
2852 than the roundabout libtool way
2854 + Converted documentation to SGML using the docbook
2855 DTD. Now .txt and .html documents are installed
2856 in /usr/share/doc/fontconfig and there's no
2857 man page. Perhaps a man version can be written
2860 Sat Aug 31 15:21:22 PDT 2002 keithp
2861 + Xrender and Xft had several bugs related to
2862 rendering manually placed or poly-face text
2864 + Added more complete memory tracing in fontconfig
2865 Checked with (patched) mozilla and found no leaks
2867 + Updated Latin orthographies by comparing those from
2868 evertype.com with those from eki.ee. Tried to make
2869 sensible choices, including chars that occured in both
2870 and leaving some optional chars out that occured only
2873 Mon Aug 26 16:33:04 PDT 2002 keithp
2874 + Owen discovered that FcLangSetHasLang wasn't actually
2875 checking the language set.
2877 Mon Aug 26 13:37:23 PDT 2002 keithp
2878 + Append a version number to cache filenames
2880 Thu Aug 22 11:36:18 PDT 2002 keithp
2882 + Add "contains" and "not_contains" operators and elements to
2885 + Changed semantics of eq operator for LangSets to check for
2886 FcLangEqual so that any match will do
2888 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2889 of FcValueEqual to check for identical values when inserting into
2890 the results. This broke when the above semantic change was made,
2891 now it uses FcValueEqual which is "more correct" in any case.
2893 Thu Aug 22 00:32:29 PDT 2002 keithp
2895 + Reimplement FC_LANG as new datatype. Lists of strings
2896 was consuming over a megabyte of memory for 401 fonts.
2898 + Freeze patterns loaded from cache files. This shares
2899 common value lists and common patterns which saves
2900 considerable memory.
2902 + Change the denotation of 'constant' charsets to use special
2903 ref value instead of separate boolean.
2905 + Clean up leak tracing stuff, found several unannoted alloc/free
2908 Tue Aug 20 16:17:37 PDT 2002 keithp
2910 + Fix memory leak when parsing matrices from XML
2912 Mon Aug 19 11:57:27 PDT 2002 keithp
2914 + Fix autoconf files to pass FONTCONFIG_PATH on
2915 compile line so that ${prefix} gets substituted
2918 + Use getc_unlocked/putc_unlocked on systems that
2919 provide them to avoid damage done to stdio by posix
2921 + Eliminate FC_PATTERN and FcTypePattern in favor of
2922 an extended api for FcConfigSubstitute which takes
2923 both the font and the pattern.
2925 + Add 'sans serif' alias for 'sans-serif' as some apps
2926 can't handle hyphens in family names
2928 + Eliminate pretense of support for libxml2
2930 + Comment origins of Han orthographies
2932 Tue Jul 30 18:37:09 PDT 2002 keithp
2934 + Add binding property to edit element so that strong
2935 binding values may be inserted by the config file.
2936 The default remains weak.
2938 Sun 28 Jul 04:16:55 PDT 2002 keithp
2940 + Tagged release candidate 1 in the CVS tree and
2941 placed fcpackage.rc1.tar.gz for distribution
2943 Thu Aug 1 08:55:08 PDT 2002 keithp
2945 + Fixed autoconf builds to always specify install
2946 target files (for BSD). Also fixed to
2947 define FONTCONFIG_PATH in config.h so that
2948 nonstandard installs will actually work.