1 2006-02-21 Patrick Lam <plam@mit.edu>
2 * conf.d/10-fonts-persian.conf:
4 Use embeddedbitmap rather than rh_prefer_bitmap.
6 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
9 * src/fccache.c (FcDirCacheWrite):
10 * src/fcdir.c (FcFileScanConfig):
11 * src/fcfreetype.c (FcStringInPatternElement):
12 * src/fcxml.c (FcParseFamilies):
13 * src/ftglue.c (ftglue_face_goto_table):
15 Eliminate redundancies.
17 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
20 * fc-list/fc-list.c (main):
21 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
22 * src/fcstr.c (FcStrStr):
23 * src/fcxml.c (FcConfigSaveAttr):
25 Eliminate unused vars reported by Intel's compiler.
27 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
32 Remove one more archaic character.
34 2006-02-21 Ross Burton <ross@burtonini.com>
35 reviewed by: plam, keithp
37 * src/fcxml.c (FcParsePatelt):
39 Freeze patterns created by configuration file for tiny
40 memory savings (every little bit helps).
42 2006-02-21 Mike Fabian <mfabian@suse.de>
45 * fc-cat/fc-cat.c (main):
47 Initialize fontconfig library in fc-cat to avoid segfault.
49 2006-02-18 Patrick Lam <plam@mit.edu>
50 * fc-cache/fc-cache.c (scanDirs):
51 * src/fccache.c (FcCacheReadDirs):
52 * src/fcdir.c (FcDirScanConfig):
54 Fix the underlying cause of the below segfault (must usually
55 call FcDirCacheHasCurrentArch after FcDirCacheValid).
57 2006-02-18 Patrick Lam <plam@mit.edu>
58 * src/fccache.c (FcDirCacheHasCurrentArch):
60 Fix triggering of segfault caused by misreading cache files
61 (reported by fcrozat).
63 2006-02-17 Patrick Lam <plam@mit.edu>
64 * src/fcint.h (FC_CACHE_MAGIC):
66 Bump up magic version; we changed the binary format.
68 2006-02-17 Patrick Lam <plam@mit.edu>
69 * fc-cat/fc-cat.c (main):
71 Enable fc-cat to print out old-style cache info when given a
74 2006-02-16 Patrick Lam <plam@mit.edu>
75 * src/fccache.c (FcDirCacheHasCurrentArch):
77 Deal correctly with changing FC_CACHE_MAGIC.
79 2006-02-16 Patrick Lam <plam@mit.edu>
80 * fc-cache/fc-cache.c (usage, scanDirs, main):
82 Add -r --really-force option which blows away cache files and then
85 2006-02-16 Patrick Lam <plam@mit.edu>
86 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
88 Don't bail if fontconfig can't remove a dir cache file.
89 Skip the ID of a cache file when copying.
90 Eliminate 'source file too small' bug in FcDirCacheWrite.
92 2006-02-13 Patrick Lam <plam@mit.edu>
93 * src/fcfreetype.c (FcFreeTypeQuery):
95 Fix memory leak in error condition code.
97 2006-02-13 Mike Fabian <mfabian@suse.de>
99 * src/fcfreetype.c (FcFreeTypeQuery):
101 Skip bitmap fonts which can't even get it together enough to
102 declare a family name; this appears to reproduce previous
103 fontconfig behaviour.
105 2006-02-10 Takashi Iwai <tiwai@suse.de>
107 * src/fccache.c (FcDirCacheOpen):
109 Try to open /var/cache/fontconfig/[hashed name] before
110 fonts.cache-2 in a directory, because /var/cache/fontconfig
111 failures ought to be fixable, unlike fonts.cache-2 failures,
112 which may leave you screwed.
114 2006-02-10 Takashi Iwai <tiwai@suse.de>
116 * src/fcmatch.c (FcFontSetMatch):
118 Use a tri-state to mark the fonts which didn't get blocked but
119 were just missing an element, to distinguish them from the
120 fonts that do match the element.
122 2006-02-10 Takashi Iwai <tiwai@suse.de>
124 * src/fcmatch.c (FcFontSetMatch):
126 Don't kill fonts because they don't declare an element that's
129 2006-02-09 Patrick Lam <plam@mit.edu>
130 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
131 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
133 Define and pass O_BINARY to open if appropriate, for those
134 platforms that need it. Reported by Doodle.
136 2006-02-09 Patrick Lam <plam@mit.edu>
137 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
140 Fix problem with missing 'en' due to euro.patch: change
141 cache file format slightly to coincide with that generated
144 2006-02-07 Patrick Lam <plam@mit.edu>
145 * src/fccache.c (FcCacheReadDirs):
149 2006-02-07 Patrick Lam <plam@mit.edu>
150 * src/fcdir.c (FcDirScanConfig):
152 Don't reject dirs that can't be normalized (fixes lilypond, and
153 is correct in the context of application font directories.)
155 2006-02-07 Takashi Iwai <tiwai@suse.de>
158 * src/fccache.c (FcCacheReadDirs):
160 Use normalized directory name exclusively in FcCacheReadDirs.
162 2006-02-07 Dirk Mueller <dmueller@suse.com>
165 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
167 Perf optimizations. Inline FcValueCanonicalize,
168 reduce FcValueListPtrU usage, remove redundant cast.
170 2006-02-07 Takashi Iwai <tiwai@suse.de>
173 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
176 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
177 Declare extern for static arrays as arrays, not pointers.
178 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
180 2006-02-07 Dirk Mueller <dmueller@suse.com>
193 Add Euro sign to list of symbols required by European languages.
195 2006-02-07 Patrick Lam <plam@mit.edu>
196 * src/fccache.c (FcCacheReadString):
198 Fix hidden variable warning.
200 2006-02-07 Dirk Mueller <dmueller@suse.com>
203 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
205 Remove de-escaping logic because FcCacheWriteString
206 doesn't escape anyway. Do blockwise reading instead
207 of byte-wise for performance.
209 2006-02-06 Patrick Lam <plam@mit.edu>
210 Takashi Iwai <tiwai@suse.de>
212 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
214 Don't loop infinitely on recursive symlinks (client-side).
216 2006-02-06 Takashi Iwai <tiwai@suse.de>
218 * fc-cache/fc-cache.c (scanDirs, main):
220 Don't loop infinitely on recursive symlinks.
222 2006-02-06 Takashi Iwai <tiwai@suse.de>
224 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
225 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
226 FcGlobalCacheSave, FcCacheReadDirs):
229 Skip subdirs when skipping over stale bits of global cache.
230 Introduce state machine into FcGlobalCacheDir to avoid
231 doing inappropriate operations on global dir entries, e.g.
232 writing out an out-of-date cache entry.
234 2006-02-06 Takashi Iwai <tiwai@suse.de>
236 * src/fcdir.c (FcFileScanConfig):
238 Hoist FcFileIsDir check out of FcFileScanConfig loop.
240 2006-02-06 Takashi Iwai <tiwai@suse.de>
243 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
244 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
246 Don't rescan when trying to normalize a non-declared font dir.
247 Don't add font dirs multiple times (even if they're aliased).
249 2006-02-06 Dirk Mueller <dmueller@suse.de>
252 * src/fcfs.c (FcFontSetUnserialize):
254 Explain apples/oranges comparison and fix compilation error.
256 2006-02-06 Dirk Mueller <dmueller@suse.de>
259 * src/fcfs.c (FcFontSetUnserialize):
261 Insert check for integer overflow in # of fonts.
263 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
267 * fc-cache/Makefile.am:
268 * fc-cat/Makefile.am:
269 * fc-list/Makefile.am:
271 Make 'make distcheck' work with automake 1.6.3.
273 2006-02-03 Takashi IWAI <tiwai@suse.de>
276 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
279 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
280 FcDirCacheConsume, FcDirCacheWrite)
281 * src/fcxml.c (FcConfigMessage):
283 Check I/O call return values and eliminate unused variable
286 2006-02-03 Takashi Iwai <tiwai@suse.de>
289 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
293 2006-02-03 Dirk Mueller <dmueller@suse.de>
296 * src/fcfs.c (FcFontSetUnserialize):
298 Gracefully handle the case where a cache asserts that it
299 has a negative number of fonts, causing overflow.
301 2006-02-03 Patrick Lam <plam@mit.edu>
302 * src/fccache.c (FcDirCacheUnlink):
304 Fix double free in error case.
306 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
307 Stephan Kulow <coolo@suse.de>
310 * fc-cache/Makefile.am:
312 Replace 'stamp' target with mkinstalldirs.
314 2006-01-31 Mike Fabian <mfabian@suse.de>
317 * src/fccache.c (FcGlobalCacheLoad):
319 Toast broken global cache files.
321 2006-01-30 Patrick Lam <plam@mit.edu>
322 * src/fccache.c (FcGlobalCacheReadDir):
324 Actually use the directories that I added to the global cache.
327 2006-01-30 Mike Fabian <mfabian@suse.de>
330 * fc-cache/fc-cache.c (scanDirs):
332 Don't stop scanning if a directory in fonts.conf doesn't
333 exist, because subsequent directories might exist.
335 2006-01-30 Patrick Lam <plam@mit.edu>
336 * src/fccache.c (FcGlobalCacheLoad):
338 Make global cache work again after putting dir names into global
339 cache (I misplaced the recording of a file offset).
341 2006-01-30 Patrick Lam <plam@mit.edu>
342 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
344 Update fc-cat to handle subdir lists in global cache file.
346 * src/fccache.c (FcGlobalCacheLoad):
348 Another FcCacheReadString return value check.
350 2006-01-30 Mike Fabian <mfabian@suse.de>
353 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
354 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
356 Make fccache more resilient to broken cache files by checking
357 return value of FcCacheReadString all the time.
359 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
362 * fc-match/fc-match.1:
363 * fc-lang/fc-lang.man:
365 Remove references to dead fontconfig(3) manpages in
366 other fontconfig manpages.
368 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
371 * doc/fcpattern.fncs:
373 Fix world's tiniest typo in code example.
375 2006-01-29 Mike Fabian <mfabian@suse.de>
378 * src/fccache.c (FcGlobalCacheReadDir):
380 Fix global cache reads of subdirectories.
382 2006-01-29 Patrick Lam <plam@mit.edu>
384 Add documentation for FcConfigNormalizeFontDir.
386 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
387 FcGlobalCacheUpdate, FcGlobalCacheSave):
388 * src/fcdir.c (FcDirScanConfig):
391 Write directory information to global caches to fix make check
392 (reported by Ronny V. Vindenes). This changes the global cache
395 2006-01-27 Patrick Lam <plam@mit.edu>
396 * fc-cache/fc-cache.c (scanDirs):
397 * fontconfig/fontconfig.h:
399 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
401 Move FcConfigNormalizeFontDir call so that it doesn't result in
402 infinite recursion (reported by Ronny V. Vindenes).
404 2006-01-26 Patrick Lam <plam@mit.edu>
405 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
406 * src/fccfg.c (FcConfigNormalizeFontDir):
408 Add a couple of missing normalizations to make fc-cache work
409 right; only scan subdirectories once.
411 2006-01-26 Mike Fabian <mfabian@suse.de>
414 * src/fcacache.c (FcGlobalCacheReadDir):
416 Don't crash on non-existant directories in global cache.
418 2006-01-26 Patrick Lam <plam@mit.edu>
419 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
420 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
421 * src/fcdir.c (FcDirScanConfig):
422 * src/fcxml.c (FcEndElement):
424 Stop trampling the directory name when writing out caches.
425 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
426 subdirs when necessary. Don't scan directories that can't be
429 2006-01-25 Patrick Lam <plam@mit.edu>
430 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
431 * src/fccfg.c (FcConfigEvaluate):
432 * src/fcfreetype.c (FcPatternAddWithBinding):
434 Fix additional memory leaks reported by Ronny V. Vindenes: don't
435 invoke FcValueSave on hashed static strings in
436 FcPatternAddWithBinding.
438 Add another st_dev check in FcDirCacheOpen.
440 2006-01-24 James Su <james.su@gmail.com>
443 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
444 * fc-lang/zh_hk.orth:
446 Treat zh-hk fonts differently from zh-tw fonts. This patch may
447 cause fontconfig to treat A-X fonts differently from A-Y fonts;
448 please mail the fontconfig list if this causes any problems.
450 2006-01-24 Patrick Lam <plam@mit.edu>
451 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
452 * src/fcfreetype.c (FcFreeTypeQuery):
454 Fix memory leaks reported by Ronny V. Vindenes.
456 2006-01-19 Andreas Schwab <schwab@suse.de>
459 * src/fcpat.c (FcStrNeededBytes):
461 Fix for unaligned memory accesses.
463 2006-01-18 Mike Fabian <mfabian@suse.de>
466 * src/fcdir.c (FcDirScanConfig):
468 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
469 calls to avoid crashes.
471 2006-01-14 Patrick Lam <plam@mit.edu>
472 * src/fccache.c (FcDirCacheConsume):
474 Fix segfault when consuming zero-length caches in fc-cat
475 (which has no config, so FcConfigAddFontDir shouldn't be called.)
477 2006-01-14 Patrick Lam <plam@mit.edu>
478 * fc-cache/fc-cache.c (scanDirs):
479 * fontconfig/fontconfig.h:
480 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
481 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
482 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
483 * src/fcdir.c (FcDirScanConfig):
486 Compare device numbers as well as inodes.
487 Always normalize directory names before comparing them.
489 2006-01-11 Mike Fabian <mfabian@suse.de>
492 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
494 Allocate extra space for appended '/' in directory name.
496 2006-01-10 Patrick Lam <plam@mit.edu>
497 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
498 FcDirCacheValid, FcDirCacheHasCurrentArch,
499 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
500 * fc-cache/fc-cache.c (main):
502 Explicitly add font dirs to config.fontDirs even if they're empty.
503 Set current config in fc-cache.c.
504 Fix treatment of cache directory as read from cache file; don't
505 use string equality to determine if we have the right file,
508 2006-01-09 Patrick Lam <plam@mit.edu>
509 * fc-cache/fc-cache.c (scanDirs):
510 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
511 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
512 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
513 * src/fccfg.c (FcConfigNormalizeFontDir):
514 * src/fcdir.c (FcDirScanConfig):
517 Normalize font dirs by using the form, as given in fonts.conf, and
518 recorded in FcConfig's fontDirs string set, as canonical.
520 Actually update config.fontDirs as font directories are scanned.
522 2006-01-08 James Su <james.su@gmail.com>
523 * src/fcmatch.c (FcFontSetMatch):
525 Fix matching bug when multiple elements match; don't use
526 the sum of all scores, but the best score.
528 Also more perf opts, e.g. evaluate best over all font sets
529 rather than on a per-set basis (and other changes).
531 2006-01-08 Patrick Lam <plam@mit.edu>
532 * src/fccache.c (FcDirCacheConsume):
534 Properly skip past dir caches that contain zero fonts (as occurs
535 in global caches.) Reported by Mike Fabian.
537 2006-01-06 Patrick Lam <plam@mit.edu>
538 * src/fcdbg.c (FcPatternPrint):
540 Print out full pathname in fc-match -v as well. Reported by
543 2006-01-06 Mike Fabian <mfabian@suse.de>
546 * src/fcname.c (FcNameParse):
548 Fix bug where fc-match crashes when given __DUMMY__ property to
551 (I added the __DUMMY__ string to enable callers of
552 FcObjectToPtrLookup to distinguish an error return from a
553 successful return. -PL)
555 2006-01-05 Patrick Lam <plam@mit.edu>
558 Add self to AUTHORS list.
560 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
561 FcCacheFileRead, FcCachePrintSet, main):
562 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
563 FcGlobalCacheSave, FcCacheNextOffset,
564 FcDirCacheHasCurrentArch, FcDirCacheRead,
565 FcDirCacheConsume, FcDirCacheWrite):
567 * src/fcpat.c (comment):
569 Minor change to global cache file format to fix fc-cat bug
570 reported by Frederic Crozat, and buglet with not globally caching
571 directories with zero fonts cached.
573 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
576 * src/fccfg.c (FcConfigEvaluate):
578 Fix double-free which occurs because FcValueCanonicalize doesn't
579 create an extra copy of the returned value, it only canonicalizes
582 2006-01-02 Patrick Lam <plam@mit.edu>
583 * doc/fontconfig-user.sgml:
585 Fix version of .cache file (currently 1 -> currently 2). Reported
588 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
591 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
593 Shut up GCC warnings on amd.
595 2005-12-20 Patrick Lam <plam@mit.edu>
599 * fontconfig/fontconfig.h:
601 Bump version to 2.3.93.
603 2005-12-20 Patrick Lam <plam@mit.edu>
604 * src/fccharset.c (FcLangCharSetPopulate):
605 * src/fcint.h (FcCacheBankToIndex):
607 Avoid check on _fcBankId nullness and fix case where it used to
610 2005-12-20 Patrick Lam <plam@mit.edu>
611 * src/fcxml.c (FcConfigParseAndLoad):
613 Use open instead of fopen (requested by Phil Race for Sun).
615 2005-12-20 Patrick Lam <plam@mit.edu>
616 * src/fccache.c (FcDirCacheWrite);
617 * fc-cache/Makefile.am:
619 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
622 2005-12-20 Patrick Lam <plam@mit.edu>
623 * src/fcfreetype.c (FcFreeTypeQuery):
625 Restore code to skip over PCF fonts that have no encoded
627 (We guess that a font is PCF by presence of the PIXEL_SIZE
630 2005-12-12 Patrick Lam <plam@mit.edu>
631 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
633 Read and write the original location as a fallback for the
634 hashed cache file locations. This is mostly for users to be
635 able to have per-directory cache files.
637 2005-12-12 Patrick Lam <plam@mit.edu>
638 * fc-cache/fc-cache.c (scanDirs):
639 * fc-cache/Makefile.am:
640 * src/fccache.c (FcDirCacheHashName):
642 Improve error message when fc-cache can't write the cache. Add
643 missing slash. Reported by Behdad. Incorporate Behdad's patch to
644 create /var/cache/fontconfig when appropriate.
646 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
649 * src/fcxml.c (FcConfigGetAttribute):
651 Fix crash reported by Frederic Crozat when using libxml2.
653 2005-12-09 Patrick Lam <plam@mit.edu>
656 * fc-cache/Makefile.am:
657 * fc-cat/Makefile.am:
659 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
660 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
661 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
662 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
663 FcDirCacheHasCurrentArch, FcDirCacheHashName,
664 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
666 Migrate cache files from fonts directories to
667 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
668 but requires that all caches get rebuilt.
670 Also, autogen.sh now needs the additional parameter
671 --localstatedir=/var.
673 2005-12-07 Patrick Lam <plam@mit.edu>
674 * src/fcpat.c (FcPatternAddString):
676 Because we've changed FcPatternAddString to use FcStrStaticName
677 and not FcValueSave, explicitly handle the case of a null string.
679 2005-12-06 Patrick Lam <plam@mit.edu>
680 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
684 2005-12-05 Patrick Lam <plam@mit.edu>
685 * src/fcname.c (FcNameGetObjectType):
687 Don't assign types to user object names.
689 2005-12-05 Patrick Lam <plam@mit.edu>
690 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
692 Don't free strings that have been returned from FcStrStaticName.
694 2005-12-01 Patrick Lam <plam@mit.edu>
695 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
697 Add codepath for reading global cache files as well.
699 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
702 * conf.d/10-fonts.persian.conf:
703 * conf.d/Makefile.am:
705 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
707 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
710 * src/fcxml.c (FcConfigParseAndLoad):
712 Only add a config file to the set of config files once.
714 2005-11-29 Patrick Lam <plam@mit.edu>
715 * src/fcint.h (FcCacheBankToIndex);
717 Fix segfault by guarding array dereference.
719 2005-11-29 Dirk Mueller <dmueller@suse.de>
723 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
724 FcCacheBankToIndex, FcCacheBankToIndexMTF,
728 Refactor FcCacheBankToIndex into an inlineable part
729 (in fcint.h) which checks the front of the list and a
730 non-inlineable part which finds and moves the appropriate element
731 to the front of the list.
733 2005-11-29 Patrick Lam <plam@mit.edu>
734 * src/fccfg.c (FcConfigBuildFonts):
735 * src/fccache.c (FcCacheReadDirs):
737 Make the perf guys hate me a bit less: hoist the directory-name
738 FcConfigAcceptFont check for cached fonts up to directory cache
739 read time, rather than running it for each font.
741 2005-11-29 Patrick Lam <plam@mit.edu>
742 * src/fccfg.c (FcConfigBuildFonts):
744 * src/fcpat.c (FcPatternFindFullFname):
746 Don't make FcPatternFindFullFname available to fccfg, it's not
747 really safe. Instead go through FcPatternGetString (sorry,
748 perf guys.) Also, use globs for dirs as well.
750 2005-11-28 Patrick Lam <plam@mit.edu>
751 * src/fccfg.c (FcConfigBuildFonts):
755 2005-11-28 Patrick Lam <plam@mit.edu>
757 * src/fcpat.c (FcPatternFindFullFname):
758 * src/fccfg.c (FcConfigBuildFonts):
760 Fix problem dating back at least to 2.3.2 where globs weren't
761 being applied to patterns loaded from a cache.
763 2005-11-28 Patrick Lam <plam@mit.edu>
764 * doc/fontconfig-user.sgml:
766 Fix some obvious spelling mistakes.
768 2005-11-28 Dirk Mueller <dmueller@suse.com>
769 Stephan Kulow <coolo@suse.de>
772 * src/fcmatch.c (FcFontSetMatch):
774 Don't kill all fonts during match (oops!)
777 2005-11-25 Dirk Mueller <dmueller@suse.com>
778 Stephan Kulow <coolo@suse.de>
779 Michael Matz <matz@suse.de>
782 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
785 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
786 inline FcCompare into FcFontSetMatch and reorder the
787 loops, adding a boolean array which blocks patterns from future
788 consideration if they're known to not be best on some past
791 2005-11-26 Dirk Mueller <dmueller@suse.com>
794 * src/fcmatch.c (FcCompareValueList):
798 2005-11-25 Patrick Lam <plam@mit.edu>
799 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
801 Don't do random matching when bad objects are passed into
804 2005-11-25 Patrick Lam <plam@mit.edu>
806 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
807 FcPatternSerialize, FcPatternUnserialize,
808 FcValueListEnsureBank, FcValueListDistributeBytes,
809 FcValueListUnserialize):
811 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
812 _fcPatternElts, _fcValueLists for consistency.
814 2005-11-25 Dirk Mueller <dmueller@suse.com>
819 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
821 2005-11-25 Patrick Lam <plam@mit.edu>
823 * src/fccache.c (FcDirCacheConsume):
824 * src/fccharset.c (FcCharSetUnserialize):
825 * src/fcfs.c (FcFontSetUnserialize):
826 * src/fclang.c (FcLangSetUnserialize):
827 * src/fcname.c (FcObjectUnserialize):
828 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
829 FcPatternUnserialize):
831 Pass around FcCache *s to the Unserialize functions for extra
832 consistency (and less overhead, for what that's worth).
834 2005-11-24 Dirk Mueller <dmueller@suse.com>
838 * src/fcmatch.c (FcCompare*, FcFontSetSort):
839 * src/fcname.c (FcNameUnparseValue):
841 Inline the *PtrU functions to gain perf.
842 Remove unneeded params for the FcCompare* functions.
844 2005-11-24 Dirk Mueller <dmueller@suse.com>
847 * src/fcint.h, fontconfig/fontconfig.h:
849 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
851 * src/fcpat.c, src/fcint.h, src/fcname.c:
853 Check for type validity during FcPatternAddWithBinding, don't
854 verify type in FcFontMatch, don't call FcCanonicalize here
855 (which always does a deep copy).
857 2005-11-24 Dirk Mueller <dmueller@suse.com>
860 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
861 * src/fcpat.c (FcPatternAddWithBinding):
863 Make FcCompareString and FcCompareFamily less expensive.
864 Only add a value for FC_FAMILY if the proposed value is a string.
866 2005-11-24 Dirk Mueller <dmueller@suse.com>
869 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
870 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
871 * src/fcint.h (FcDebug):
873 Inline FcDebug invocations and only initialize once, in FcInit*.
874 Improve debug msg in FcPatternPrint.
876 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
879 * fontconfig/fontconfig.h:
882 Minor code warning cleanups.
884 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
887 * fc-match/fc-match.c (main):
889 Make getopt_long accept -s parameter to fc-match as well.
891 2005-11-21 Dirk Mueller <dmueller@suse.com>
894 * src/fcmatch.c (FcCompareValueList):
896 Manually perform inlining & partial redundancy elimination to
897 reduce calls to FcValueListPtrU.
899 2005-11-21 Dirk Mueller <dmueller@suse.com>
902 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
903 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
905 Only invoke strlen() when really necessary.
907 2005-11-19 Matthias Clasen <mclasen@redhat.com>
911 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
916 Get rid of the use of freetype internal headers in fcfreetype.c,
917 since those headers will go away with freetype 2.2. Replace with
918 public domain ftglue code from pango. Note that the patch removes
919 some extra error checking in FT_Get_BDF_Property() and comments
920 out the skipping of empty pcf fonts.
922 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
925 * fc-lang/fc-lang.c (main):
927 Further fix of patch from 2005-11-04: miscounted numbers count
928 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
929 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
931 Removed leafidx_count and numbers_count since they are the same
932 and replaced them with offset_count.
934 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
937 * fc-cat/fc-cat.c (main):
939 Don't crash when fc-cat invoked with no arguments.
941 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
944 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
946 Fix invalid read access caused by premature free and
947 GCC4 warnings in libxml2 codepath.
949 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
952 * src/fccfg.c (FcConfigValues):
954 List iteration not needed in FcConfigValues, since it's building
955 up the list itself; we can just strip FcVoid elements during
958 2005-11-17 Patrick Lam <plam@mit.edu>
959 * src/fccfg.c (FcConfigValues):
961 Fix crash on invalid constants in config files (forgot to update
962 a pointer upon list iteration.)
964 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
967 * src/fcxml.c (FcTypecheckExpr):
969 Complain about invalid constants in config files.
971 2005-11-17 Andreas Schwab <schwab@suse.de>
974 * src/fccache.c (FcGlobalCacheSave):
976 Don't add current_arch_start more than once.
978 2005-11-16 Patrick Lam <plam@mit.edu>
979 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
980 * src/fcfs.c (FcFontSetUnserialize):
981 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
982 * src/fcpat.c (FcStrUnserialize):
984 Fix ordering of ALIGN with respect to saving block_ptr; add
985 another ALIGN to fcfs.c.
987 2005-11-16 Patrick Lam <plam@mit.edu>
988 * src/fccache.c (FcDirCacheProduce)
990 Fix case where alignment bytes bumped up metadata->count
991 causing unwarranted failures to write cache files.
992 (Reported by Stephan Kulow).
994 2005-11-16 Patrick Lam <plam@mit.edu>
995 * src/fccache.c (FcDirCacheProduce):
996 * src/fccharset.c (FcCharSetDistributeBytes):
997 * src/fcfs.c (FcFontSetDistributeBytes):
999 * src/fclang.c (FcLangSetDistributeBytes):
1000 * src/fcname.c (FcObjectDistributeBytes):
1001 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1004 Add *NeededBytesAlign(), which overestimates the padding which is
1005 later added by the new ALIGN macro. Fix alignment problems on
1006 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1007 version by Andreas Schwab).
1009 2005-11-16 Stephan Kulow <coolo@kde.org>
1014 Use sysconf to determine proper PAGESIZE value; this
1015 appears to be POSIX-compliant. (reported by Andreas Schwab)
1017 2005-11-04 Patrick Lam <plam@mit.edu>
1018 * fc-lang/fc-lang.c:
1023 Fix bug 2878 (excessive relocations at startup for charsets,
1024 reported by Ross Burton): fc-lang/fc-lang now creates the
1025 static form of the langset, not the dynamic form, so that
1026 the charsets should now be in .rodata.
1028 2005-11-04 Patrick Lam <plam@mit.edu>
1029 * src/fcdir.c (FcDirScanConfig):
1031 Add test for validity of directory caches that
1032 somehow got lost (reported by make distcheck).
1034 2005-11-04 Patrick Lam <plam@mit.edu>
1038 * fontconfig/fontconfig.h:
1040 Bump version to 2.3.92.
1042 2005-11-02 Patrick Lam <plam@mit.edu>
1043 * src/fcpat.c (FcPatternDuplicate):
1045 Fix argument ordering problem in call to FcPatternTransferFullFname.
1047 2005-11-02 Patrick Lam <plam@mit.edu>
1048 * src/fcfreetype.c (FcFreetypeQuery):
1049 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1050 FcPatternTransferFullFname):
1052 Fix warnings and embarrassing double-free error.
1054 2005-11-02 Zhe Su <zsu@novell.com>
1059 Change the rule for artificial emboldening in fonts.conf.in. This
1060 enables the support for artificial emboldening included in cairo.
1062 2005-11-02 Patrick Lam <plam@mit.edu>
1063 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1065 Don't zero out full names for FC_REF_CONSTANT fonts;
1066 also, duplicate full names when transferring, and free
1067 full names when freeing the associated font.
1068 Reported by Jinghua Luo.
1070 2005-11-02 Patrick Lam <plam@mit.edu>
1071 * fc-cache/fc-cache.c (scanDirs):
1072 * src/fcpat.c (FcValueListSerialize):
1074 Revert the previous patch and commit the correct patch:
1075 I forgot a canonicalization in FcValueListSerialize, so
1076 that it would choke on already-serialized input files. Duh!
1078 2005-11-02 Patrick Lam <plam@mit.edu>
1079 * fc-cache/fc-cache.c (scanDirs):
1081 Forcibly rescan a directory before writing a fresh local
1082 cache file for that directory, fixing the losing-fonts
1083 problem reported by Mike Fabian and also apparently the
1084 font cache file corruption.
1086 2005-11-02 Patrick Lam <plam@mit.edu>
1087 * src/fccache.c (FcGlobalCacheLoad):
1089 Fix thinko: actually, the whole global cache is stale
1090 if the global cache is older than the (newest) config file.
1092 2005-11-02 Patrick Lam <plam@mit.edu>
1093 * src/fccache.c (FcGlobalCacheLoad):
1094 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1097 Declare the global cache of a directory's contents to be stale if
1098 the directory is newer than the (newest) configuration file.
1100 2005-10-31 Patrick Lam <plam@mit.edu>
1102 * src/fclist.c (FcListAppend):
1103 * src/fcmatch.c (FcFontRenderPrepare):
1104 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1105 FcPatternFreeze, FcPatternBaseFreeze):
1107 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1108 applications continue breaking.
1110 2005-10-31 Patrick Lam <plam@mit.edu>
1111 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1112 * src/fcfreetype.c (FcFreeTypeQuery):
1114 Fix small memory error (tried to free argv); use basename and
1115 dirname correctly (they can modify their arguments).
1117 2005-10-31 Patrick Lam <plam@mit.edu>
1125 Reinstate basename patch, but keep a hash table linking FcPatterns
1126 to their fully-qualified font names for clients' benefit. Clients
1127 only pay for the font names once they request the FC_FILE property
1128 from an FcPattern, but the font name is malloc'd at that point (i.e.
1129 not mmapped: that's impossible, since it may vary between machines.)
1130 Clients do have to pay for a copy of the path name per cache file.
1132 Note that FcPatternGetString now does some rewriting if you ask
1133 for an FC_FILE, appending the pathname as appropriate.
1135 2005-10-31 Patrick Lam <plam@mit.edu>
1136 * src/fcfreetype.c (FcFreeTypeQuery):
1138 Revert basename patch, which breaks fontconfig clients on my system.
1140 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1143 * fontconfig/fonts.conf.in:
1144 * fontconfig/fontconfig.h:
1148 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1149 to load embedded bitmaps or not.
1151 2005-10-25 Patrick Lam <plam@mit.edu>
1152 * src/fcfreetype.c (FcFreeTypeQuery):
1154 Only add basename to patterns' FC_FILE element, not any part of
1157 2005-10-22 Patrick Lam <plam@mit.edu>
1160 Add some more consts, fixing more GCC4 warnings.
1162 2005-10-22 Zhe Su <zsu@novell.com>
1165 Support localized font family and style names.
1166 This has been reported to break old apps like xfd, but modern
1167 (gtk+/qt/mozilla) apps work fine.
1169 2005-10-21 Patrick Lam <plam@mit.edu>
1170 * src/fccache.c (FcGlobalCacheLoad):
1172 Destroy the global cache file if it's terminally broken. (reported by
1175 2005-10-21 Patrick Lam <plam@mit.edu>
1176 * fc-list/fc-list.c (main):
1177 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1178 * fontconfig/fontconfig.h:
1180 Prevent fc-list from escaping strings when printing them (reported by
1183 2005-10-20 Marcus Meissner <meissner@suse.de>
1186 * fontconfig/fontconfig.h:
1188 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1190 2005-10-14 Ross Burton <ross@burtonini.com>
1193 * fc-glyphname/fc-glyphname.c:
1196 Add consts to variables so as to move arrays into .rodata.
1198 2005-10-14 Mike Fabian <mfabian@suse.de>
1201 * src/fccache.c (FcDirCacheUnlink):
1203 Check existence of directory cache file before attempting to unlink.
1205 2005-10-13 Patrick Lam <plam@mit.edu>
1206 * src/fccache.c (FcDirCacheUnlink):
1208 Fix flipped return value on unlink. (Reported by Mike Fabian)
1210 2005-10-12 Patrick Lam <plam@mit.edu>
1213 * src/fcdir.c (FcDirScanConfig):
1216 When fc-cache is run without --force, use directory cache files
1217 to speed up fc-cache run time. (Reported by Mike Fabian)
1219 2005-10-06 Patrick Lam <plam@mit.edu>
1221 * src/fcname.c (FcObjectToPtr):
1222 * src/fcpat.c (FcStrStaticName):
1224 Add padding to make valgrind and glibc not hate each other
1225 when calling strlen().
1227 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1228 reviewed by: plam & keithp
1232 Modify config file to use Greek fonts before Asian fonts with
1235 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1236 reviewed by: plam & keithp
1240 Use libtool -no-undefined flag on all platforms.
1242 2005-10-05 Patrick Lam <plam@mit.edu>
1243 * src/fccache.c (FcCacheHaveBank):
1245 Implement move-to-front array for banks (perf regression
1246 reported by Ronny V. Vindenes).
1248 2005-10-04 Patrick Lam <plam@mit.edu>
1249 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1250 FcDirCacheHasCurrentArch):
1251 * fc-cache/fc-cache.c (scanDirs):
1252 * fontconfig/fontconfig.h:
1254 Add new API which unlinks directory caches and checks dir caches
1255 for existence of appropriate sections. Fix fc-cache to unlink
1256 stale cache files and save directory caches that lack relevant
1259 2005-10-03 Patrick Lam <plam@mit.edu>
1260 * src/fccache.c (FcDirCacheValid):
1262 Ensure that a directory cache has the appropriate section
1263 before reporting that it is valid (reported by Matthias Clasen).
1265 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1273 Use libxml2 if requested (with --enable-libxml2) or if
1274 expat is not available.
1276 2005-09-29 Patrick Lam <plam@mit.edu>
1277 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1279 Fix multi-arch cache files: compute the position for the
1280 block to be added using info from OrigFile, not NewFile.
1282 2005-09-28 Patrick Lam <plam@mit.edu>
1283 * src/fccache.c (FcCacheMachineSignature):
1285 Cast results of sizeof() to unsigned int to get rid of
1286 warnings on x86_64 (thanks Matthias Clasen).
1288 2005-09-27 Patrick Lam <plam@mit.edu>
1289 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1292 Use FcAtomic to rewrite cache files.
1294 2005-09-27 Patrick Lam <plam@mit.edu>
1296 * src/fccache.c (FcDirCacheWrite):
1298 Don't unlink the fonts.cache-2 file even if there's no data
1299 to write; just write an empty cache file. (thanks Lubos Lunak)
1301 2005-09-27 Patrick Lam <plam@mit.edu>
1303 * src/fccache.c (FcDirCacheWrite):
1305 Allocate room for the subdirectory names in each
1306 directory cache. Thanks to James Cloos for finding
1307 and diagnosing this bug!
1309 2005-09-22 Patrick Lam <plam@mit.edu>
1311 * fc-cache/fc-cache.sgml:
1312 * src/fccache.c (FcDirCacheWrite):
1313 * src/fccache.h (struct FcCache):
1315 Update documentation -- fc-cache's man page now says that you
1316 need to run fc-cache once per cached architecture; add some
1317 documentation to the FcCache structure.
1319 Make fc-cache write out fonts.cache-2 files for directories with
1320 no fonts (i.e. only subdirectories).
1322 2005-09-22 Patrick Lam <plam@mit.edu>
1324 * fc-cache/fc-cache.sgml:
1325 * fc-case/fc-case.c:
1326 * fc-glyphname/fc-glyphname.c:
1332 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1336 * fc-lang/fc-lang.c:
1337 * fontconfig/fcprivate.h:
1338 * fontconfig/fontconfig.h:
1352 Implement new mmaped cache for font information.
1353 Bump so revision to 2.3.90.
1355 2005-07-25 Keith Packard <keithp@keithp.com>
1357 * doc/fontconfig-user.sgml:
1358 * fc-glyphname/fc-glyphname.c: (scan), (main):
1359 * fc-lang/fc-lang.c: (FcConfigHome):
1360 * fc-match/fc-match.c: (main):
1361 * src/fccfg.c: (FcConfigHome):
1362 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1363 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1364 (addtag), (FcFontCapabilities):
1365 * src/fcpat.c: (FcValueListEntCreate):
1366 * src/fcstr.c: (FcStrCaseWalkerInit):
1367 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1369 Various GCC 4 cleanups for signed vs unsigned char
1371 Match only [0-9]*.conf files in <include>{directory}</include>
1372 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1374 2005-07-15 Carl Worth <cworth@cworth.org>
1377 * src/fcinit.c: (FcFini):
1378 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1381 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1382 Pull the FcObjectStateName hash table out to file scope, and add
1383 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1386 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1389 2005-06-16 Patrick Lam <plam@MIT.EDU>
1393 * src/fccfg.c: (FcConfigCompareValue):
1394 Make FcOpNotContains use FcStrStr for strings so that
1395 it matches semantics for !FcOpContains.
1397 2005-05-20 Keith Packard <keithp@keithp.com>
1401 Move fontconfig source package to libs as per override
1403 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1405 reviewed by: Mike Fabian
1408 The ka.orth file requires several characters which are not
1409 used anymore in modern Georgian and which are missing in the free
1410 Georgian TrueType fonts downloadable at:
1412 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1414 2005-04-27 Keith Packard <keithp@keithp.com>
1418 Update date to real 2.3.2 release date.
1419 Fix change attributions
1421 2005-04-27 Keith Packard <keithp@keithp.com>
1424 Bump so revision for 2.3.2
1425 * fc-cache/fc-cache.c: (scanDirs):
1426 Fix a few minor leaks in error cases.
1428 2005-04-23 Keith Packard <keithp@keithp.com>
1433 * fontconfig/fontconfig.h:
1434 Update for version 2.3.2
1436 2005-04-21 Keith Packard <keithp@keithp.com>
1438 * debian/fontconfig.postinst:
1439 Don't force bitmap font enable in default
1440 configuration; allows users to override this in
1450 * debian/po/pt_BR.po:
1451 * debian/po/templates.pot:
1453 * debian/po/zh_CN.po:
1454 Updated translations
1456 * fc-cache/fc-cache.c: (main):
1457 Destroy font configuration on exit to help valgrind
1460 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1461 (FcFreeTypeCheckGlyph):
1462 Use own transcoding routines in preference to iconv
1463 which appears to have leaks in some translators.
1464 Call iconv_close after using iconv (oops).
1466 Prefer unicode encoding of Euro char as some
1467 fonts mis-encode Euro in other ones.
1469 Must fetch bitmap glyphs to get width values
1470 to check for monospace/dual-width fonts.
1472 2005-04-13 Ross Burton <ross@burtonini.com>
1475 Check that a pattern isn't already frozen in FcPatternFreeze.
1477 2005-03-31 Ross Burton <ross@burtonini.com>
1482 Run all FcPattern objects through FcObjectStaticName, so that
1483 compares can be done on pointers instead of strings (#2659)
1485 2005-03-17 Tor Lillqvist <tml@novell.com>
1487 * src/fontconfig.def.in: Add the .dll to the dll name.
1489 2005-03-10 Keith Packard <keithp@keithp.com>
1491 * debian/README.Debian:
1492 Update to reflect configuration changes
1494 * debian/fontconfig.postinst:
1495 Fix Autohint vs Autohinter mistake
1496 * debian/fontconfig.templates:
1497 Adopt changes from Josselin Mouette for configuration descriptions
1498 Update debian to version 2.3.1-2
1500 2005-03-08 Keith Packard <keithp@keithp.com>
1504 Update debian for 2.3.1
1506 2005-03-09 Tor Lillqvist <tml@novell.com>
1508 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1511 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1514 2005-03-08 Keith Packard <keithp@keithp.com>
1518 * fontconfig/fontconfig.h:
1521 2005-03-05 Keith Packard <keithp@keithp.com>
1523 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1524 Include space and remove numbers from valid script tags.
1525 This ensures that tags like 'lao ' work while rejecting
1526 those which have any digits.
1527 Eliminate a spurious debugging variable (len)
1529 2005-03-05 Keith Packard <keithp@keithp.com>
1531 * src/fcfreetype.c: (addtag), (GetScriptTags),
1532 (FcFontCapabilities):
1533 Rework GSUB/GPOS script parsing to survive broken fonts.
1534 Thanks for the broken font go to Manish Singh
1536 2005-03-05 Keith Packard <keithp@keithp.com>
1541 * debian/fontconfig.config:
1542 * debian/fontconfig.templates:
1544 Include 2.3 release information in changelog
1545 Add Josselin Mouette as an Uploader
1546 Set hinting_type to low priority configuration option
1549 * debian/fontconfig.postinst:
1550 yes_bitmaps.conf -> yes-bitmaps.conf
1556 2005-03-02 Keith Packard <keithp@keithp.com>
1559 * conf.d/Makefile.am:
1560 * conf.d/autohint.conf:
1561 * conf.d/no-sub-pixel.conf:
1562 * conf.d/sub-pixel.conf:
1563 * conf.d/unhinted.conf:
1564 * debian/autohint.conf:
1565 * debian/fontconfig.install:
1566 * debian/fontconfig.postinst:
1567 * debian/fontconfig.templates:
1568 * debian/no-sub-pixel.conf:
1569 * debian/unhinted.conf:
1570 Move debian-specific conf file examples upstream.
1572 Sub-pixel configuration examples must smash subpixel value
1573 as Xft always sets it from X.
1575 Change sub-pixel rendering debconf descriptions from
1576 Enable/Disable to Always/Never.
1578 2005-03-02 Keith Packard <keithp@keithp.com>
1581 * conf.d/.cvsignore:
1583 Ignore more build detritus
1586 Add debian package construction stuff.
1588 * config/config.guess:
1589 * config/config.sub:
1590 Update to newer versions of these tools
1593 Get library manuals to build again (we love automake).
1595 * debian/README.Debian:
1596 * debian/autohint.conf:
1601 * debian/fontconfig-udeb.install:
1602 * debian/fontconfig.config:
1603 * debian/fontconfig.defoma:
1604 * debian/fontconfig.dirs:
1605 * debian/fontconfig.install:
1606 * debian/fontconfig.postinst:
1607 * debian/fontconfig.postrm:
1608 * debian/fontconfig.templates:
1609 * debian/libfontconfig1-dev.install:
1610 * debian/libfontconfig1.install:
1611 * debian/local.conf.md5sum:
1612 * debian/no-sub-pixel.conf:
1613 * debian/po/POTFILES.in:
1622 * debian/po/pt_BR.po:
1623 * debian/po/templates.pot:
1625 * debian/po/zh_CN.po:
1627 * debian/unhinted.conf:
1628 Update debian build system to switch maintainers and
1629 deal with 2.3 functionality
1631 2005-03-01 Keith Packard <keithp@keithp.com>
1635 * fontconfig/fontconfig.h:
1638 2005-03-01 Keith Packard <keithp@keithp.com>
1641 Generate and install PDF versions of the manuals
1643 * doc/fcpattern.fncs:
1646 * doc/fcstring.fncs:
1647 Add missing exported functions, fix data types
1649 * doc/fontconfig-devel.sgml:
1650 Add missing pattern elements.
1652 * doc/fontconfig-user.sgml:
1653 Add missing pattern elements. Document conf.d usage,
1654 clarify available orthography list. Fix some config file
1655 attributes. Complete list of constants.
1657 * fontconfig/fontconfig.h:
1658 Mark FC_SOURCE deprecated.
1660 * src/fcfreetype.c: (FcFreeTypeQuery):
1661 Don't set FC_SOURCE any longer.
1663 2005-02-28 Keith Packard <keithp@keithp.com>
1666 * conf.d/Makefile.am:
1668 * conf.d/no-bitmaps.conf:
1669 * conf.d/sub-pixel.conf:
1670 * conf.d/yes-bitmaps.conf:
1672 Create prototype /etc/fonts/conf.d directory with a few
1673 sample configuration files.
1674 Deprecate use of local.conf for local customizations in favor of
1675 this directory based scheme which is more easily integrated into
1676 installation systems.
1679 Tag FC_EMBOLDEN as a boolean variable
1681 2005-02-10 Keith Packard <keithp@keithp.com>
1683 reviewed by: pborelli@katamail.com
1685 * src/fcdir.c: (FcFileScanConfig):
1686 Free patterns from fonts which are rejected by configuration
1689 2005-01-28 Keith Packard <keithp@keithp.com>
1693 * fontconfig/fontconfig.h:
1694 Update for version 2.2.99
1696 2005-01-28 Keith Packard <keithp@keithp.com>
1699 Add a few pointers (#2284, #2285)
1701 2005-01-28 Keith Packard <keithp@keithp.com>
1704 * src/fcname.c: (FcNameBool):
1705 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1706 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1707 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1708 Polite typechecking for test and edit expressions. Helps
1709 catch errors in the font configuration. (bug 229)
1711 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1713 reviewed by: Keith Packard <keithp@keithp.com>
1716 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1718 2005-01-13 Keith Packard <keithp@keithp.com>
1720 * doc/fontconfig-user.sgml:
1721 Add SEE ALSO section (bug 2085)
1723 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1725 reviewed by: Keith Packard <keithp@keithp.com>
1730 * fc-case/Makefile.am:
1731 * fc-glyphname/Makefile.am:
1732 * fc-lang/Makefile.am:
1733 * src/fontconfig.def.in:
1734 Cross compiling fixes (bug 280)
1736 2005-01-13 Keith Packard <keithp@keithp.com>
1739 Update blanks list (Closes bug 86)
1741 2005-01-04 Keith Packard <keithp@keithp.com>
1743 * src/fccache.c: (FcCacheFontSetAdd):
1744 Verify that every font pattern loaded from cache has
1745 both FC_FILE and FC_FAMILY entries.
1746 Attempt to fix bug #2219.
1748 2004-12-29 Keith Packard <keithp@keithp.com>
1752 * fontconfig/fontconfig.h:
1753 Update for version 2.2.98
1755 2004-12-29 Keith Packard <keithp@keithp.com>
1757 * fontconfig/fontconfig.h:
1758 Document ASCII limitations of Fc character conversion macros
1759 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1760 Fix off-by-one error in utf-8 case walking code.
1761 Add FcStrDowncase (useful for testing case conversion functions)
1763 2004-12-29 Keith Packard <keithp@keithp.com>
1766 * fc-case/.cvsignore:
1767 clean up CVS ignore lists
1768 * fc-lang/iso-3166.txt:
1769 Add territory database
1771 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1773 Reviewed by: Keith Packard
1776 Remove Han characters from Korean orthography
1778 2004-12-29 Keith Packard <keithp@keithp.com>
1781 Reorder utility programs to make sure fc-case is run before fc-lang
1782 as fc-lang uses fcstr.c which uses fccase.h
1786 2004-12-29 Keith Packard <keithp@keithp.com>
1789 Adopt some RedHat suggestions for standard font configuration.
1793 * fc-case/CaseFolding.txt:
1794 * fc-case/Makefile.am:
1795 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1796 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1797 (dump), (parseRaw), (caseFoldReadRaw), (main):
1798 * fc-case/fccase.tmpl.h:
1799 Add new helper program 'fc-case' to construct case folding
1800 tables from standard Unicode CaseFolding.txt file
1803 * src/fclist.c: (FcListValueHash):
1804 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1805 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1806 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1807 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1808 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1809 Re-implement case insensitive functions with Unicode
1810 aware versions (including full case folding mappings)
1812 2004-12-13 Keith Packard <keithp@keithp.com>
1814 reviewed by: Owen Taylor <otaylor@redhat.com>
1816 * src/fcmatch.c: (FcFontSetSort):
1817 I changed FcFontSetSort to respect the generic aliases better
1818 in the face of language matching.
1820 What I did was to ammend the strict sort order used by FcFontSort so
1821 that it 'satisfies' the language specified in the pattern by locating
1822 the best matching font supporting each pattern language and then
1823 ignores language in the remaining fonts for purposes of matching.
1825 So, when asking for 'sans:lang=en', you'll get an English font first,
1826 and then the remaining fonts sorted with respect to the 'sans' alias
1827 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1829 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1831 reviewed by: Keith Packard <keithp@keithp.com>
1833 * fontconfig/fontconfig.h:
1836 Configuration changes to request synthetic emboldening of
1837 fonts. The actual emboldening code will live in Xft.
1839 2004-12-09 John Thacker <thacker@math.cornell.edu>
1841 reviewed by: Keith Packard <keithp@keithp.com>
1845 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1846 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1847 и), and don't even appear in KOI8-R. (The hypothesis that they
1848 don't appear in KOI8-R due to their similarity with Latin I and i is
1849 eliminated by their presence in KOI8-U.) I have a couple of fonts
1850 with Russian support that don't have the letter.
1852 Therefore, 0406 and 0456 should be removed from or commented out of
1855 2004-12-06 michael meeks <mmeeks@novell.com>
1857 Reviewed by: Keith Packard <keithp@keithp.com>
1859 * src/fcinit.c: (FcMemReport):
1861 * src/fclist.c: (FcObjectSetAdd):
1862 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1863 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1864 * src/fcxml.c: (FcParsePatelt):
1865 memoize strings and share a single copy for all uses. Note that
1866 this could be improved further by using statically allocated blocks
1867 and gluing multiple strings together, but I'm basically lazy.
1868 In my environment with 800 font files, I get a savings of about 90KB.
1870 2004-12-06 Keith Packard <keithp@keithp.com>
1874 * config/Makedefs.in:
1877 * doc/fcatomic.fncs:
1878 * doc/fcblanks.fncs:
1879 * doc/fccharset.fncs:
1880 * doc/fcconfig.fncs:
1881 * doc/fcconstant.fncs:
1883 * doc/fcfontset.fncs:
1884 * doc/fcfreetype.fncs:
1886 * doc/fcmatrix.fncs:
1887 * doc/fcobjectset.fncs:
1888 * doc/fcobjecttype.fncs:
1889 * doc/fcpattern.fncs:
1890 * doc/fcstring.fncs:
1891 * doc/fcstrset.fncs:
1893 * doc/fontconfig-devel.sgml:
1894 * doc/fontconfig-user.sgml:
1896 * doc/version.sgml.in:
1897 * fc-cache/Makefile.am:
1898 * fc-cache/fc-cache.c:
1899 * fc-glyphname/Makefile.am:
1900 * fc-glyphname/fc-glyphname.c:
1901 * fc-glyphname/fcglyphname.tmpl.h:
1902 * fc-lang/Makefile.am:
1912 * fc-lang/az_ir.orth:
1946 * fc-lang/fc-lang.c:
1947 * fc-lang/fc-lang.man:
1948 * fc-lang/fclang.tmpl.h:
1993 * fc-lang/ku_ir.orth:
2026 * fc-lang/ps_af.orth:
2027 * fc-lang/ps_pk.orth:
2056 * fc-lang/ti_er.orth:
2057 * fc-lang/ti_et.orth:
2083 * fc-lang/zh_cn.orth:
2084 * fc-lang/zh_hk.orth:
2085 * fc-lang/zh_mo.orth:
2086 * fc-lang/zh_sg.orth:
2087 * fc-lang/zh_tw.orth:
2089 * fc-list/Makefile.am:
2090 * fc-list/fc-list.c:
2091 * fc-match/Makefile.am:
2092 * fc-match/fc-match.1:
2093 * fc-match/fc-match.c:
2094 * fontconfig/fcfreetype.h:
2095 * fontconfig/fcprivate.h:
2096 * fontconfig/fontconfig.h:
2117 Change files from ISO-Latin-1 to UTF-8
2119 2004-12-04 Keith Packard <keithp@keithp.com>
2122 Update links to new freedesktop.org locations
2124 Add uninstall-local to get rid of fonts.conf and local.conf if they
2125 match the distributed versions. Fixes 'make distcheck'
2127 2004-12-04 Keith Packard <keithp@keithp.com>
2131 * fontconfig/fontconfig.h:
2132 Updates for version 2.2.97
2134 2004-12-04 Owen Taylor <otaylor@redhat.com>
2136 reviewed by: Keith Packard <keithp@keithp.com>
2138 * fc-cache/fc-cache.c: (main):
2139 Sleep for two seconds before exiting to make sure timestamps
2140 for future changes have distinct mod times in the file system.
2143 Add Punjabi orthography. Bug #1671.
2145 2004-12-04 Keith Packard <keithp@keithp.com>
2148 Just remove the FC_FONTDATE -- it has locale issues and
2149 annoys redhat multi-arch installs. Now that all X fonts are
2150 included without prejudice, the chances of the date being at
2151 all interesting are rather limited. Bug #505.
2153 Add copyright and license
2155 2004-12-04 Keith Packard <keithp@keithp.com>
2158 Change default set of fonts to include all of
2159 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2160 * doc/fontconfig-user.sgml:
2161 Document new <include>directory-name</include> semantics
2163 add <include ignore_missing="yes">conf.d</include>
2165 Add selectfont to ignore bitmap fonts, add comment for
2166 selectfont which accepts bitmap fonts.
2169 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2170 Allow <include> configuration elements to reference directories.
2171 Parse and load all files of the form [0-9]* in sorted order.
2173 2004-12-04 Keith Packard <keithp@keithp.com>
2176 Report command line for $srcdir/configure accurately.
2179 2004-12-04 Keith Packard <keithp@keithp.com>
2181 * src/fcfreetype.c: (FcFreeTypeQuery):
2182 Check for non-empty face->family_name and face->style_name
2183 before using those for the font. Empty names match everything.
2186 2004-12-04 Keith Packard <keithp@keithp.com>
2189 * fontconfig/fontconfig.h:
2190 * src/fcfreetype.c: (FcFreeTypeQuery):
2192 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2193 available. This provides font file format information (BDF, Type 1,
2194 PCF, TrueType) for each font. Closes #109.
2196 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2198 reviewed by: Keith Packard <keithp@keithp.com>
2200 * doc/fontconfig-user.sgml:
2203 * fontconfig/fontconfig.h:
2204 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2205 (GetScriptTags), (FcFontCapabilities):
2207 Add detection for font capabilities (bug #105)
2209 2004-12-04 Keith Packard <keithp@keithp.com>
2212 Move existing fonts.conf to fonts.conf.bak
2215 Add detection of iconv
2217 * doc/fcpattern.fncs:
2218 * doc/fontconfig-devel.sgml:
2219 * doc/fontconfig-user.sgml:
2221 Document new selectfont elements
2224 Switch to UTF-8 in comment
2226 * fontconfig/fontconfig.h:
2228 Add fullname, and family/style/fullname language entries
2230 * src/fccache.c: (FcCacheFontSetAdd):
2231 * src/fcdir.c: (FcFileScanConfig):
2232 Respect selectfont/*/glob
2235 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2236 (FcConfigCompareValue), (FcConfigPatternsAdd),
2237 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2238 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2239 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2240 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2241 Add support for selectfont
2243 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2244 (FcStringInPatternElement), (FcFreeTypeQuery):
2245 Add multi-lingual family/style/fullname support
2247 * src/fclist.c: (FcListPatternMatchAny):
2248 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2250 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2251 (FcObjectStaticName):
2252 Add new FcPatternRemove/FcPatternAppend.
2253 FcObjectStaticName stores computed pattern element names which
2254 are required to be static.
2256 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2261 Remove spurious / after $(DESTDIR)
2263 2004-06-30 Keith Packard <keithp@keithp.com>
2267 * fontconfig/fontconfig.h:
2270 2004-06-30 Keith Packard <keithp@keithp.com>
2272 Provided by: Lubos Lunak <l.lunak@suse.cz>
2274 * src/fccfg.c: (FcConfigUptoDate):
2275 However FcConfigUptoDate() doesn't seem to work. See the attached
2276 patch. First there's an obvious misplaced parenthesis making it
2277 return always false, and second, even this call fails to detect font
2278 changes (e.g. adding a new font to
2279 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2280 well. The problem seems to be triggered by my fonts.conf specifying
2281 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2282 doesn't include subdirs, unlike config->fontDirs.
2284 2004-06-03 Keith Packard <keithp@keithp.com>
2286 * fontconfig/fontconfig.h:
2287 Remove comma at end of FcResult enum definition.
2289 2004-05-29 Keith Packard <keithp@keithp.com>
2292 Add steps to md5sum release
2294 2004-05-29 Keith Packard <keithp@keithp.com>
2298 * fontconfig/fontconfig.h:
2301 2004-05-29 Keith Packard <keithp@keithp.com>
2303 * fontconfig/fontconfig.h:
2304 * src/fcmatch.c: (FcFontSetMatch):
2305 Add FcResultOutOfMemory to provide an accurate error when
2306 FcFontSetMatch fails in this way
2309 Make #warning about lacking various FreeType features indicate
2310 which version those features appeared so users know how to
2311 fix the problem (Thanks to Anton Tropashko)
2313 2004-05-05 Keith Packard <keithp@keithp.com>
2315 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2316 Replace MIN/MAX/ABS macros which happen to have come
2317 from FreeType with fontconfig-specific ones (FC_*)
2319 2004-04-23 Keith Packard <keithp@keithp.com>
2322 Extend release preparation instructions to include
2323 notification and distribution steps
2325 2004-04-23 Keith Packard <keithp@keithp.com>
2329 * fontconfig/fontconfig.h:
2330 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2332 2004-04-23 Keith Packard <keithp@keithp.com>
2335 Ignore a few more autotool files
2337 2004-04-14 Keith Packard <keithp@keithp.com>
2340 Add instructions for doing a release
2342 * fontconfig.spec.in:
2343 clean up .spec file; perhaps this will be useful to somebody...
2347 * fontconfig/fontconfig.h:
2350 * fc-lang/fc-lang.c:
2351 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2353 * fc-glyphname/Makefile.am:
2354 * fc-lang/Makefile.am:
2355 * fc-list/Makefile.am:
2356 * fc-match/Makefile.am:
2358 Add WARN_CFLAGS to pass -W flags for GCC systems
2360 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2361 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2362 Change various char types around to match across
2364 Fixed bug in using available_sizes[i].height which
2365 is in pixels, not 64ths of a pixel.
2367 2004-03-06 Keith Packard <keithp@keithp.com>
2369 * src/fcfreetype.c: (FcFreeTypeQuery):
2370 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2371 matches looking for explicit values prefer exact matches
2373 2004-03-02 Keith Packard <keithp@keithp.com>
2375 Supplied by: mfabian@suse.de (Mike FABIAN)
2377 * src/fcfreetype.c: (FcFreeTypeQuery):
2378 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2379 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2381 2004-02-21 Manish Singh <yosh@gimp.org>
2383 * fc-glyphname/fc-glyphname.c: (main):
2384 Cast strlen to int for printf, so we're 64-bit clean.
2386 2004-02-11 Keith Packard <keithp@keithp.com>
2389 * src/fcfreetype.c: (FcGetPixelSize):
2390 Ok, so I messed up the test for y_ppem. Let's see if I
2391 got it right this time.
2393 2004-02-10 Keith Packard <keithp@keithp.com>
2396 * src/fcfreetype.c: (FcGetPixelSize):
2397 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2398 FT_Bitmap_Size record. Add a configure.in test for this
2399 and change the code accordingly (using height instead).
2401 2004-02-06 Keith Packard <keithp@keithp.com>
2404 Add Low Saxon orthography
2405 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2407 * src/fccfg.c: (FcConfigNewestFile):
2408 Oops. Left 'newest.set' unset, which would miscompute
2411 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2412 (FcFreeTypeCheckGlyph):
2413 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2414 font properties (which report the wrong value in current FreeType)
2416 Don't attempt to check for empty glyphs in non-scalable fonts; they
2419 2004-02-01 Tor Lillqvist <tml@iki.fi>
2421 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2422 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2423 cache if config->cache is NULL, which happens if FcConfigHome() is
2424 NULL. Guard against that by using the temp folder in that case.
2426 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2428 * fc-lang/az_ir.orth:
2429 * fc-lang/ku_ir.orth:
2430 * fc-lang/ps_af.orth:
2431 * fc-lang/ps_pk.orth:
2432 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2433 (Afghan and Pakistani).
2435 Updated Urdu orthography with real data.
2437 2003-12-11 Carl Worth <cworth@east.isi.edu>
2439 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2442 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2444 (all-local): Remove excessive whitespace.
2446 * autogen.sh: Add 'set -e' to abort when any program fails,
2447 (avoids printing of 'now type make' after configure aborts).
2449 2003-11-17 Eric Christopherson <rakko@charter.net>
2451 reviewed by: Keith Packard <keithp@keithp.com>
2454 * fontconfig/fcfreetype.h:
2456 Switch to FreeType 2.1.7 style includes. Bug #150.
2458 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2460 * fc-list/fc-list.sgml: Add some example usages.
2462 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2465 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2468 2003-10-27 Keith Packard <keith@keithp.com>
2471 * fontconfig/fontconfig.h:
2472 Update to version 2.2.92
2474 2003-10-27 Keith Packard <keithp@keithp.com>
2479 * fc-cache/Makefile.am:
2480 * fc-glyphname/Makefile.am:
2481 * fc-lang/Makefile.am:
2482 * fc-list/Makefile.am:
2483 * fc-match/Makefile.am:
2486 Yet more cleanups to finish getting 'make distcheck' working
2487 This has been tested to ensure that it even works from a _build
2490 2003-10-26 Keith Packard <keithp@keithp.com>
2494 * fc-cache/Makefile.am:
2495 * fc-glyphname/Makefile.am:
2496 * fc-lang/Makefile.am:
2497 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2498 * fc-list/Makefile.am:
2499 * fc-match/Makefile.am:
2500 Attempts to fix 'make distcheck' work. Things are
2501 progressing pretty well, but there are still failures
2502 long into the process dealing with docs (as always).
2504 The big changes here are mostly to make $(srcdir) != "."
2505 work correctly, fixing the docbook related sections and
2506 fc-lang were particularily tricky. Docbook refuses to load
2507 system entities from anywhere other than where the original .sgml
2508 file was located, so no luck looking in "." for the
2509 configure-generated version.sgml and confdir.sgml files.
2511 fc-lang needed help finding .orth files; added a -d option
2512 to set the directory as the least evil of many options.
2514 Now to go use a faster machine and try and wring out the last
2517 2003-10-26 Keith Packard <keithp@keithp.com>
2521 2003-10-26 Keith Packard <keithp@keithp.com>
2524 Include confdir.sgml.in in EXTRA_DIST
2526 2003-10-09 Josselin Mouette <joss@debian.org>
2528 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2529 * fc-list/fc-list.sgml fc-list/Makefile.am:
2530 Replace fc-cache and fc-list manpages with more detailed, SGML
2533 2003-09-23 Owen Taylor <otaylor@redhat.com>
2535 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2536 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2537 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2540 2003-09-23 Owen Taylor <otaylor@redhat.com>
2542 * fc-lang/ka.orth: Remove Georgian capitals, they
2543 aren't used for normal writing. (Bug #116)
2545 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2547 * doc/fontconfig-devel.sgml:
2548 * doc/fontconfig-user.sgml:
2549 * fontconfig/fontconfig.h:
2551 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2552 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2554 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2555 monospace and dual-width fonts, allow roughly a 3% variance in the
2558 2003-08-31 Manish Singh <yosh@gimp.org>
2560 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2563 2003-08-15 Carl Worth <cworth@isi.edu>
2565 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2566 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2568 * src/fcpat.c (FcValueListEntDestroy): New function to support
2569 FcFini memory cleanup. Some statistics are not kept in
2571 (FcValueListFreeze): Move hashTable outside this function so it
2572 can be accessed by FcValueListThawAll.
2573 (FcValueListThawAll): New function complements FcValueListFreeze.
2574 (FcPatternBaseFreeze): Move hashTable outside this function so it
2575 can be accessed by FcPatternBaseThawAll.
2576 (FcPatternBaseThawAll): New function complements
2577 FcPatternBaseFreeze.
2578 (FcPatternThawAll): New function complements FcPatternFreeze.
2580 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2582 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2583 allocated FcCharLeafEnt "blocks" so they can be freed later.
2584 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2585 can be accessed by FcCharSetThawAllLeaf.
2586 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2587 (FcCharSetFreezeBase): Move hashTable outside this function so it
2588 can be accessed by FcCharSetThawAll.
2589 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2591 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2592 (FcConfigDestroy): Fic leak of FcBlanks.
2594 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2595 (main): Add call to FcFini when finished.
2597 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2598 static. Add prototypes.
2600 * doc/fcinit.fncs: Add documentation for FcFini function.
2602 * doc/edit-sgml.c: Mark several local functions as static. Add
2605 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2607 2003-06-15 Tor Lillqvist <tml@iki.fi>
2609 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2610 before comparing (needed on Windows).
2612 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2614 2003-06-13 Tor Lillqvist <tml@iki.fi>
2616 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2619 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2620 WINDOWSFONTDIR token.
2622 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2623 end, not to confuse libtool, which expects the EXPORTS line to be
2624 the first. Add FcConfigEnableHome.
2626 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2627 built as a DLL on Win32.
2629 2003-06-09 Keith Packard <keithp@keithp.com>
2631 * Tag version 2.2.90
2633 2003-06-09 Keith Packard <keithp@keithp.com>
2635 * Optimization in FcLangSetIndex was broken, occasionally
2636 returning a pointer to the wrong location on miss
2638 * Add fc-match to test font matching from the command line.
2640 2003-05-31 Keith Packard <keithp@keithp.com>
2642 * (Bug 85) add support for culmus fonts
2643 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2644 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2646 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2648 * Fix "contains" op for strings and langsets.
2650 2003-05-17 Keith Packard <keithp@keithp.com>
2652 * Fix build error with BDF prop local. Free langset after query
2654 2003-05-14 Keith Packard <keithp@keithp.com>
2656 * Extract spacing from XLFD atom
2658 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2660 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2661 disappeared in 1.30.
2663 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2665 2003-05-12 Keith Packard <keithp@keithp.com>
2667 * Use FcIsWidth to share code
2669 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2670 misclassifying some Han fonts as monospaced.
2672 2003-05-07 Keith Packard <keithp@keithp.com>
2674 * Add filename-based accept/reject to ammend available fonts.
2676 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2677 older FreeType releases.
2679 2003-05-06 Keith Packard <keithp@keithp.com>
2681 * Remove 0b82 and Tamil numbers from tamil
2682 orthography (Jungshik Shin <jshin@mailaps.org>)
2684 2003-05-04 Keith Packard <keithp@keithp.com>
2686 + Map glyph names in fonts with adobe custom encoding to unicode
2688 2003-05-02 Keith Packard <keithp@keithp.com>
2690 * Add FC_WEIGHT_BOOK as weight 75
2692 2003-04-30 Keith Packard <keithp@keithp.com>
2694 * Typo in bitstream foundry name
2696 2003-04-24 Keith Packard <keithp@keithp.com>
2698 * Eliminate italic_angle check for PS fonts
2700 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2702 * Getting closer to fixing /etc/fonts hard-coding.
2704 2003-04-22 Keith Packard <keithp@keithp.com>
2706 * Update autogen.sh to work with newer automake versions
2707 * Handle pattern elements moving during multiple edits
2709 2003-04-23 James Henstridge <james@daa.com.au>
2711 * doc/fontconfig-devel.sgml: close the <para> element.
2713 * doc/fcpattern.fncs: close the <para> element.
2715 * doc/func.sgml: close the <refsynopsisdiv> element.
2717 2003-04-22 Keith Packard <keithp@keithp.com
2719 * Update autogen.sh to work with newer automake versions
2720 * Handle pattern elements moving during multiple edits
2722 2003-04-17 Colin Walters <walters@debian.org>
2724 + Remove some unused variables, and initialize some other ones so
2725 gcc doesn't warn us.
2727 2003-04-16 Keith Packard <keithp@keithp.com>
2729 + tag version 2.1.94
2731 2003-04-16 Keith Packard <keithp@keithp.com>
2733 + add BDF property fetching support for foundry
2734 (from Juliusz Chroboczek)
2735 + add BDF property fetching support for width
2737 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2739 + Implemented foundry generation for Type 1 and TrueType
2741 2003-04-11 Gerard Escalante <g2@magestudios.net>
2743 + Retrieve information from Type1 FontInfo dictionaries
2745 2003-04-07 Colin Walters <walters@verbum.org>
2747 + src/Makefile.am: Fix dummy makefile target names when
2748 MS_LIB_AVAILABLE isn't set.
2750 2003-03-22 Tor Lillqvist <tml@iki.fi>
2752 Changes for Windows:
2754 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2756 + We don't want to hardcode the fonts.conf file location in the
2757 DLL, so we look up the DLL location at run-time in a DllMain()
2758 function. The fonts.conf location is deduced from that.
2760 + The colon can't be used as path separator on Windows,
2761 semicolon is used instead. File path components can be separated
2762 with either slash or backslash. Absolute paths can also begin
2763 with a drive letter.
2765 + Add internal function FcStrLastSlash that strrchr's the last
2766 slash, or backslash on Windows.
2768 + There is no link() on Windows. For atomicity checks, mkdir a
2769 lock directory instead.
2771 + In addition to HOME, also look for USERPROFILE.
2773 + Recognize the special font directory token WINDOWSFONTDIR, to
2774 use the system's font directory.
2776 + Remove the fontconfig-def.cpp that was obsolete. Add
2777 fontconfig.def(.in), without internal functions.
2779 + Add a fontconfig-zip(.in) script, used to build a binary
2782 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2783 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2784 to main package and man3/* to devel package
2786 + Added missing defattr(-, root, root) to main RPM package
2788 + Added HTML and text development documentation to -devel subpackage
2790 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2791 + Added back the configure macro options --disable-docs, otherwise
2792 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2793 version number) unconditionally, causing RPM to fail the build due
2794 to _unpackaged_files_terminate_build. We pick up the pregenerated
2795 docs with %doc already.
2797 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2798 + Removed commented out rpm macro define at top of spec file,
2799 replacing it with a simple explanation, since rpm macros are
2800 expanded by rpm even in comments.
2802 + Changed /usr/bin to _bindir in BuildRequires lines
2804 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2806 + Reorganized file manifest lists
2808 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2810 + fontconfig.spec.in: Improvements from Red Hat spec file.
2812 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2814 + docs/*.sgml: SGML fixes.
2816 Sat Mar 1 17:28:53 PST 2003 keithp
2817 + Ok, so the ChangeLog is a bit out of date
2819 + Lots of bugs fixed; most are in bugzilla, the
2820 biggest problems were in cache management where
2821 Owen discovered the library would lose badly when
2822 combining fonts-cache and ~/.fonts-cache data
2824 + Converted from autoconf to automake. This after
2825 getting patches accepted into libtool to allow
2826 the '-version-number' argument which lets
2827 packages set version numbers explicitly rather
2828 than the roundabout libtool way
2830 + Converted documentation to SGML using the docbook
2831 DTD. Now .txt and .html documents are installed
2832 in /usr/share/doc/fontconfig and there's no
2833 man page. Perhaps a man version can be written
2836 Sat Aug 31 15:21:22 PDT 2002 keithp
2837 + Xrender and Xft had several bugs related to
2838 rendering manually placed or poly-face text
2840 + Added more complete memory tracing in fontconfig
2841 Checked with (patched) mozilla and found no leaks
2843 + Updated Latin orthographies by comparing those from
2844 evertype.com with those from eki.ee. Tried to make
2845 sensible choices, including chars that occured in both
2846 and leaving some optional chars out that occured only
2849 Mon Aug 26 16:33:04 PDT 2002 keithp
2850 + Owen discovered that FcLangSetHasLang wasn't actually
2851 checking the language set.
2853 Mon Aug 26 13:37:23 PDT 2002 keithp
2854 + Append a version number to cache filenames
2856 Thu Aug 22 11:36:18 PDT 2002 keithp
2858 + Add "contains" and "not_contains" operators and elements to
2861 + Changed semantics of eq operator for LangSets to check for
2862 FcLangEqual so that any match will do
2864 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2865 of FcValueEqual to check for identical values when inserting into
2866 the results. This broke when the above semantic change was made,
2867 now it uses FcValueEqual which is "more correct" in any case.
2869 Thu Aug 22 00:32:29 PDT 2002 keithp
2871 + Reimplement FC_LANG as new datatype. Lists of strings
2872 was consuming over a megabyte of memory for 401 fonts.
2874 + Freeze patterns loaded from cache files. This shares
2875 common value lists and common patterns which saves
2876 considerable memory.
2878 + Change the denotation of 'constant' charsets to use special
2879 ref value instead of separate boolean.
2881 + Clean up leak tracing stuff, found several unannoted alloc/free
2884 Tue Aug 20 16:17:37 PDT 2002 keithp
2886 + Fix memory leak when parsing matrices from XML
2888 Mon Aug 19 11:57:27 PDT 2002 keithp
2890 + Fix autoconf files to pass FONTCONFIG_PATH on
2891 compile line so that ${prefix} gets substituted
2894 + Use getc_unlocked/putc_unlocked on systems that
2895 provide them to avoid damage done to stdio by posix
2897 + Eliminate FC_PATTERN and FcTypePattern in favor of
2898 an extended api for FcConfigSubstitute which takes
2899 both the font and the pattern.
2901 + Add 'sans serif' alias for 'sans-serif' as some apps
2902 can't handle hyphens in family names
2904 + Eliminate pretense of support for libxml2
2906 + Comment origins of Han orthographies
2908 Tue Jul 30 18:37:09 PDT 2002 keithp
2910 + Add binding property to edit element so that strong
2911 binding values may be inserted by the config file.
2912 The default remains weak.
2914 Sun 28 Jul 04:16:55 PDT 2002 keithp
2916 + Tagged release candidate 1 in the CVS tree and
2917 placed fcpackage.rc1.tar.gz for distribution
2919 Thu Aug 1 08:55:08 PDT 2002 keithp
2921 + Fixed autoconf builds to always specify install
2922 target files (for BSD). Also fixed to
2923 define FONTCONFIG_PATH in config.h so that
2924 nonstandard installs will actually work.