1 2006-02-24 Patrick Lam <plam@mit.edu>
5 * fontconfig/fontconfig.h:
7 Bump version to 2.3.94.
9 2006-02-24 Patrick Lam <plam@mit.edu>
14 2006-02-24 Patrick Lam <plam@mit.edu>
15 * conf.d/10-fonts-persian.conf:
17 Remove unconditional emboldening (per Behdad's instructions).
21 Add @s to hide some echos.
23 2006-02-24 Mike Fabian <mfabian@suse.de>
24 Takashi Iwai <tiwai@suse.de>
27 * src/fcfreetype.c (GetScriptTags):
29 Fix double-free on error case.
31 2006-02-21 Patrick Lam <plam@mit.edu>
32 * fc-lang/fc-lang.c (scan):
34 Strip \r and whitespace from input; fixes bug 3454.
36 2006-02-21 Patrick Lam <plam@mit.edu>
37 * fc-lang/fc-lang.c (main):
39 Allocate large arrays statically in fc-lang to fix crashes under
42 2006-02-21 Diego Petten <flameeyes@gentoo.org>
43 * src/fcfreetype.c (FcFreeTypeCharIndex):
45 Pass the buck; make fontconfig not crash on pango badness.
47 2006-02-21 Patrick Lam <plam@mit.edu>
48 * conf.d/10-fonts-persian.conf:
50 Use embeddedbitmap rather than rh_prefer_bitmap.
52 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
55 * src/fccache.c (FcDirCacheWrite):
56 * src/fcdir.c (FcFileScanConfig):
57 * src/fcfreetype.c (FcStringInPatternElement):
58 * src/fcxml.c (FcParseFamilies):
59 * src/ftglue.c (ftglue_face_goto_table):
61 Eliminate redundancies.
63 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
66 * fc-list/fc-list.c (main):
67 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
68 * src/fcstr.c (FcStrStr):
69 * src/fcxml.c (FcConfigSaveAttr):
71 Eliminate unused vars reported by Intel's compiler.
73 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
78 Remove one more archaic character.
80 2006-02-21 Ross Burton <ross@burtonini.com>
81 reviewed by: plam, keithp
83 * src/fcxml.c (FcParsePatelt):
85 Freeze patterns created by configuration file for tiny
86 memory savings (every little bit helps).
88 2006-02-21 Mike Fabian <mfabian@suse.de>
91 * fc-cat/fc-cat.c (main):
93 Initialize fontconfig library in fc-cat to avoid segfault.
95 2006-02-18 Patrick Lam <plam@mit.edu>
96 * fc-cache/fc-cache.c (scanDirs):
97 * src/fccache.c (FcCacheReadDirs):
98 * src/fcdir.c (FcDirScanConfig):
100 Fix the underlying cause of the below segfault (must usually
101 call FcDirCacheHasCurrentArch after FcDirCacheValid).
103 2006-02-18 Patrick Lam <plam@mit.edu>
104 * src/fccache.c (FcDirCacheHasCurrentArch):
106 Fix triggering of segfault caused by misreading cache files
107 (reported by fcrozat).
109 2006-02-17 Patrick Lam <plam@mit.edu>
110 * src/fcint.h (FC_CACHE_MAGIC):
112 Bump up magic version; we changed the binary format.
114 2006-02-17 Patrick Lam <plam@mit.edu>
115 * fc-cat/fc-cat.c (main):
117 Enable fc-cat to print out old-style cache info when given a
120 2006-02-16 Patrick Lam <plam@mit.edu>
121 * src/fccache.c (FcDirCacheHasCurrentArch):
123 Deal correctly with changing FC_CACHE_MAGIC.
125 2006-02-16 Patrick Lam <plam@mit.edu>
126 * fc-cache/fc-cache.c (usage, scanDirs, main):
128 Add -r --really-force option which blows away cache files and then
131 2006-02-16 Patrick Lam <plam@mit.edu>
132 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
134 Don't bail if fontconfig can't remove a dir cache file.
135 Skip the ID of a cache file when copying.
136 Eliminate 'source file too small' bug in FcDirCacheWrite.
138 2006-02-13 Patrick Lam <plam@mit.edu>
139 * src/fcfreetype.c (FcFreeTypeQuery):
141 Fix memory leak in error condition code.
143 2006-02-13 Mike Fabian <mfabian@suse.de>
145 * src/fcfreetype.c (FcFreeTypeQuery):
147 Skip bitmap fonts which can't even get it together enough to
148 declare a family name; this appears to reproduce previous
149 fontconfig behaviour.
151 2006-02-10 Takashi Iwai <tiwai@suse.de>
153 * src/fccache.c (FcDirCacheOpen):
155 Try to open /var/cache/fontconfig/[hashed name] before
156 fonts.cache-2 in a directory, because /var/cache/fontconfig
157 failures ought to be fixable, unlike fonts.cache-2 failures,
158 which may leave you screwed.
160 2006-02-10 Takashi Iwai <tiwai@suse.de>
162 * src/fcmatch.c (FcFontSetMatch):
164 Use a tri-state to mark the fonts which didn't get blocked but
165 were just missing an element, to distinguish them from the
166 fonts that do match the element.
168 2006-02-10 Takashi Iwai <tiwai@suse.de>
170 * src/fcmatch.c (FcFontSetMatch):
172 Don't kill fonts because they don't declare an element that's
175 2006-02-09 Patrick Lam <plam@mit.edu>
176 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
177 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
179 Define and pass O_BINARY to open if appropriate, for those
180 platforms that need it. Reported by Doodle.
182 2006-02-09 Patrick Lam <plam@mit.edu>
183 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
186 Fix problem with missing 'en' due to euro.patch: change
187 cache file format slightly to coincide with that generated
190 2006-02-07 Patrick Lam <plam@mit.edu>
191 * src/fccache.c (FcCacheReadDirs):
195 2006-02-07 Patrick Lam <plam@mit.edu>
196 * src/fcdir.c (FcDirScanConfig):
198 Don't reject dirs that can't be normalized (fixes lilypond, and
199 is correct in the context of application font directories.)
201 2006-02-07 Takashi Iwai <tiwai@suse.de>
204 * src/fccache.c (FcCacheReadDirs):
206 Use normalized directory name exclusively in FcCacheReadDirs.
208 2006-02-07 Dirk Mueller <dmueller@suse.com>
211 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
213 Perf optimizations. Inline FcValueCanonicalize,
214 reduce FcValueListPtrU usage, remove redundant cast.
216 2006-02-07 Takashi Iwai <tiwai@suse.de>
219 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
222 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
223 Declare extern for static arrays as arrays, not pointers.
224 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
226 2006-02-07 Dirk Mueller <dmueller@suse.com>
239 Add Euro sign to list of symbols required by European languages.
241 2006-02-07 Patrick Lam <plam@mit.edu>
242 * src/fccache.c (FcCacheReadString):
244 Fix hidden variable warning.
246 2006-02-07 Dirk Mueller <dmueller@suse.com>
249 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
251 Remove de-escaping logic because FcCacheWriteString
252 doesn't escape anyway. Do blockwise reading instead
253 of byte-wise for performance.
255 2006-02-06 Patrick Lam <plam@mit.edu>
256 Takashi Iwai <tiwai@suse.de>
258 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
260 Don't loop infinitely on recursive symlinks (client-side).
262 2006-02-06 Takashi Iwai <tiwai@suse.de>
264 * fc-cache/fc-cache.c (scanDirs, main):
266 Don't loop infinitely on recursive symlinks.
268 2006-02-06 Takashi Iwai <tiwai@suse.de>
270 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
271 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
272 FcGlobalCacheSave, FcCacheReadDirs):
275 Skip subdirs when skipping over stale bits of global cache.
276 Introduce state machine into FcGlobalCacheDir to avoid
277 doing inappropriate operations on global dir entries, e.g.
278 writing out an out-of-date cache entry.
280 2006-02-06 Takashi Iwai <tiwai@suse.de>
282 * src/fcdir.c (FcFileScanConfig):
284 Hoist FcFileIsDir check out of FcFileScanConfig loop.
286 2006-02-06 Takashi Iwai <tiwai@suse.de>
289 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
290 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
292 Don't rescan when trying to normalize a non-declared font dir.
293 Don't add font dirs multiple times (even if they're aliased).
295 2006-02-06 Dirk Mueller <dmueller@suse.de>
298 * src/fcfs.c (FcFontSetUnserialize):
300 Explain apples/oranges comparison and fix compilation error.
302 2006-02-06 Dirk Mueller <dmueller@suse.de>
305 * src/fcfs.c (FcFontSetUnserialize):
307 Insert check for integer overflow in # of fonts.
309 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
313 * fc-cache/Makefile.am:
314 * fc-cat/Makefile.am:
315 * fc-list/Makefile.am:
317 Make 'make distcheck' work with automake 1.6.3.
319 2006-02-03 Takashi IWAI <tiwai@suse.de>
322 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
325 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
326 FcDirCacheConsume, FcDirCacheWrite)
327 * src/fcxml.c (FcConfigMessage):
329 Check I/O call return values and eliminate unused variable
332 2006-02-03 Takashi Iwai <tiwai@suse.de>
335 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
339 2006-02-03 Dirk Mueller <dmueller@suse.de>
342 * src/fcfs.c (FcFontSetUnserialize):
344 Gracefully handle the case where a cache asserts that it
345 has a negative number of fonts, causing overflow.
347 2006-02-03 Patrick Lam <plam@mit.edu>
348 * src/fccache.c (FcDirCacheUnlink):
350 Fix double free in error case.
352 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
353 Stephan Kulow <coolo@suse.de>
356 * fc-cache/Makefile.am:
358 Replace 'stamp' target with mkinstalldirs.
360 2006-01-31 Mike Fabian <mfabian@suse.de>
363 * src/fccache.c (FcGlobalCacheLoad):
365 Toast broken global cache files.
367 2006-01-30 Patrick Lam <plam@mit.edu>
368 * src/fccache.c (FcGlobalCacheReadDir):
370 Actually use the directories that I added to the global cache.
373 2006-01-30 Mike Fabian <mfabian@suse.de>
376 * fc-cache/fc-cache.c (scanDirs):
378 Don't stop scanning if a directory in fonts.conf doesn't
379 exist, because subsequent directories might exist.
381 2006-01-30 Patrick Lam <plam@mit.edu>
382 * src/fccache.c (FcGlobalCacheLoad):
384 Make global cache work again after putting dir names into global
385 cache (I misplaced the recording of a file offset).
387 2006-01-30 Patrick Lam <plam@mit.edu>
388 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
390 Update fc-cat to handle subdir lists in global cache file.
392 * src/fccache.c (FcGlobalCacheLoad):
394 Another FcCacheReadString return value check.
396 2006-01-30 Mike Fabian <mfabian@suse.de>
399 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
400 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
402 Make fccache more resilient to broken cache files by checking
403 return value of FcCacheReadString all the time.
405 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
408 * fc-match/fc-match.1:
409 * fc-lang/fc-lang.man:
411 Remove references to dead fontconfig(3) manpages in
412 other fontconfig manpages.
414 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
417 * doc/fcpattern.fncs:
419 Fix world's tiniest typo in code example.
421 2006-01-29 Mike Fabian <mfabian@suse.de>
424 * src/fccache.c (FcGlobalCacheReadDir):
426 Fix global cache reads of subdirectories.
428 2006-01-29 Patrick Lam <plam@mit.edu>
430 Add documentation for FcConfigNormalizeFontDir.
432 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
433 FcGlobalCacheUpdate, FcGlobalCacheSave):
434 * src/fcdir.c (FcDirScanConfig):
437 Write directory information to global caches to fix make check
438 (reported by Ronny V. Vindenes). This changes the global cache
441 2006-01-27 Patrick Lam <plam@mit.edu>
442 * fc-cache/fc-cache.c (scanDirs):
443 * fontconfig/fontconfig.h:
445 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
447 Move FcConfigNormalizeFontDir call so that it doesn't result in
448 infinite recursion (reported by Ronny V. Vindenes).
450 2006-01-26 Patrick Lam <plam@mit.edu>
451 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
452 * src/fccfg.c (FcConfigNormalizeFontDir):
454 Add a couple of missing normalizations to make fc-cache work
455 right; only scan subdirectories once.
457 2006-01-26 Mike Fabian <mfabian@suse.de>
460 * src/fcacache.c (FcGlobalCacheReadDir):
462 Don't crash on non-existant directories in global cache.
464 2006-01-26 Patrick Lam <plam@mit.edu>
465 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
466 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
467 * src/fcdir.c (FcDirScanConfig):
468 * src/fcxml.c (FcEndElement):
470 Stop trampling the directory name when writing out caches.
471 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
472 subdirs when necessary. Don't scan directories that can't be
475 2006-01-25 Patrick Lam <plam@mit.edu>
476 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
477 * src/fccfg.c (FcConfigEvaluate):
478 * src/fcfreetype.c (FcPatternAddWithBinding):
480 Fix additional memory leaks reported by Ronny V. Vindenes: don't
481 invoke FcValueSave on hashed static strings in
482 FcPatternAddWithBinding.
484 Add another st_dev check in FcDirCacheOpen.
486 2006-01-24 James Su <james.su@gmail.com>
489 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
490 * fc-lang/zh_hk.orth:
492 Treat zh-hk fonts differently from zh-tw fonts. This patch may
493 cause fontconfig to treat A-X fonts differently from A-Y fonts;
494 please mail the fontconfig list if this causes any problems.
496 2006-01-24 Patrick Lam <plam@mit.edu>
497 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
498 * src/fcfreetype.c (FcFreeTypeQuery):
500 Fix memory leaks reported by Ronny V. Vindenes.
502 2006-01-19 Andreas Schwab <schwab@suse.de>
505 * src/fcpat.c (FcStrNeededBytes):
507 Fix for unaligned memory accesses.
509 2006-01-18 Mike Fabian <mfabian@suse.de>
512 * src/fcdir.c (FcDirScanConfig):
514 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
515 calls to avoid crashes.
517 2006-01-14 Patrick Lam <plam@mit.edu>
518 * src/fccache.c (FcDirCacheConsume):
520 Fix segfault when consuming zero-length caches in fc-cat
521 (which has no config, so FcConfigAddFontDir shouldn't be called.)
523 2006-01-14 Patrick Lam <plam@mit.edu>
524 * fc-cache/fc-cache.c (scanDirs):
525 * fontconfig/fontconfig.h:
526 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
527 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
528 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
529 * src/fcdir.c (FcDirScanConfig):
532 Compare device numbers as well as inodes.
533 Always normalize directory names before comparing them.
535 2006-01-11 Mike Fabian <mfabian@suse.de>
538 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
540 Allocate extra space for appended '/' in directory name.
542 2006-01-10 Patrick Lam <plam@mit.edu>
543 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
544 FcDirCacheValid, FcDirCacheHasCurrentArch,
545 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
546 * fc-cache/fc-cache.c (main):
548 Explicitly add font dirs to config.fontDirs even if they're empty.
549 Set current config in fc-cache.c.
550 Fix treatment of cache directory as read from cache file; don't
551 use string equality to determine if we have the right file,
554 2006-01-09 Patrick Lam <plam@mit.edu>
555 * fc-cache/fc-cache.c (scanDirs):
556 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
557 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
558 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
559 * src/fccfg.c (FcConfigNormalizeFontDir):
560 * src/fcdir.c (FcDirScanConfig):
563 Normalize font dirs by using the form, as given in fonts.conf, and
564 recorded in FcConfig's fontDirs string set, as canonical.
566 Actually update config.fontDirs as font directories are scanned.
568 2006-01-08 James Su <james.su@gmail.com>
569 * src/fcmatch.c (FcFontSetMatch):
571 Fix matching bug when multiple elements match; don't use
572 the sum of all scores, but the best score.
574 Also more perf opts, e.g. evaluate best over all font sets
575 rather than on a per-set basis (and other changes).
577 2006-01-08 Patrick Lam <plam@mit.edu>
578 * src/fccache.c (FcDirCacheConsume):
580 Properly skip past dir caches that contain zero fonts (as occurs
581 in global caches.) Reported by Mike Fabian.
583 2006-01-06 Patrick Lam <plam@mit.edu>
584 * src/fcdbg.c (FcPatternPrint):
586 Print out full pathname in fc-match -v as well. Reported by
589 2006-01-06 Mike Fabian <mfabian@suse.de>
592 * src/fcname.c (FcNameParse):
594 Fix bug where fc-match crashes when given __DUMMY__ property to
597 (I added the __DUMMY__ string to enable callers of
598 FcObjectToPtrLookup to distinguish an error return from a
599 successful return. -PL)
601 2006-01-05 Patrick Lam <plam@mit.edu>
604 Add self to AUTHORS list.
606 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
607 FcCacheFileRead, FcCachePrintSet, main):
608 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
609 FcGlobalCacheSave, FcCacheNextOffset,
610 FcDirCacheHasCurrentArch, FcDirCacheRead,
611 FcDirCacheConsume, FcDirCacheWrite):
613 * src/fcpat.c (comment):
615 Minor change to global cache file format to fix fc-cat bug
616 reported by Frederic Crozat, and buglet with not globally caching
617 directories with zero fonts cached.
619 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
622 * src/fccfg.c (FcConfigEvaluate):
624 Fix double-free which occurs because FcValueCanonicalize doesn't
625 create an extra copy of the returned value, it only canonicalizes
628 2006-01-02 Patrick Lam <plam@mit.edu>
629 * doc/fontconfig-user.sgml:
631 Fix version of .cache file (currently 1 -> currently 2). Reported
634 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
637 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
639 Shut up GCC warnings on amd.
641 2005-12-20 Patrick Lam <plam@mit.edu>
645 * fontconfig/fontconfig.h:
647 Bump version to 2.3.93.
649 2005-12-20 Patrick Lam <plam@mit.edu>
650 * src/fccharset.c (FcLangCharSetPopulate):
651 * src/fcint.h (FcCacheBankToIndex):
653 Avoid check on _fcBankId nullness and fix case where it used to
656 2005-12-20 Patrick Lam <plam@mit.edu>
657 * src/fcxml.c (FcConfigParseAndLoad):
659 Use open instead of fopen (requested by Phil Race for Sun).
661 2005-12-20 Patrick Lam <plam@mit.edu>
662 * src/fccache.c (FcDirCacheWrite);
663 * fc-cache/Makefile.am:
665 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
668 2005-12-20 Patrick Lam <plam@mit.edu>
669 * src/fcfreetype.c (FcFreeTypeQuery):
671 Restore code to skip over PCF fonts that have no encoded
673 (We guess that a font is PCF by presence of the PIXEL_SIZE
676 2005-12-12 Patrick Lam <plam@mit.edu>
677 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
679 Read and write the original location as a fallback for the
680 hashed cache file locations. This is mostly for users to be
681 able to have per-directory cache files.
683 2005-12-12 Patrick Lam <plam@mit.edu>
684 * fc-cache/fc-cache.c (scanDirs):
685 * fc-cache/Makefile.am:
686 * src/fccache.c (FcDirCacheHashName):
688 Improve error message when fc-cache can't write the cache. Add
689 missing slash. Reported by Behdad. Incorporate Behdad's patch to
690 create /var/cache/fontconfig when appropriate.
692 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
695 * src/fcxml.c (FcConfigGetAttribute):
697 Fix crash reported by Frederic Crozat when using libxml2.
699 2005-12-09 Patrick Lam <plam@mit.edu>
702 * fc-cache/Makefile.am:
703 * fc-cat/Makefile.am:
705 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
706 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
707 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
708 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
709 FcDirCacheHasCurrentArch, FcDirCacheHashName,
710 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
712 Migrate cache files from fonts directories to
713 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
714 but requires that all caches get rebuilt.
716 Also, autogen.sh now needs the additional parameter
717 --localstatedir=/var.
719 2005-12-07 Patrick Lam <plam@mit.edu>
720 * src/fcpat.c (FcPatternAddString):
722 Because we've changed FcPatternAddString to use FcStrStaticName
723 and not FcValueSave, explicitly handle the case of a null string.
725 2005-12-06 Patrick Lam <plam@mit.edu>
726 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
730 2005-12-05 Patrick Lam <plam@mit.edu>
731 * src/fcname.c (FcNameGetObjectType):
733 Don't assign types to user object names.
735 2005-12-05 Patrick Lam <plam@mit.edu>
736 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
738 Don't free strings that have been returned from FcStrStaticName.
740 2005-12-01 Patrick Lam <plam@mit.edu>
741 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
743 Add codepath for reading global cache files as well.
745 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
748 * conf.d/10-fonts.persian.conf:
749 * conf.d/Makefile.am:
751 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
753 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
756 * src/fcxml.c (FcConfigParseAndLoad):
758 Only add a config file to the set of config files once.
760 2005-11-29 Patrick Lam <plam@mit.edu>
761 * src/fcint.h (FcCacheBankToIndex);
763 Fix segfault by guarding array dereference.
765 2005-11-29 Dirk Mueller <dmueller@suse.de>
769 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
770 FcCacheBankToIndex, FcCacheBankToIndexMTF,
774 Refactor FcCacheBankToIndex into an inlineable part
775 (in fcint.h) which checks the front of the list and a
776 non-inlineable part which finds and moves the appropriate element
777 to the front of the list.
779 2005-11-29 Patrick Lam <plam@mit.edu>
780 * src/fccfg.c (FcConfigBuildFonts):
781 * src/fccache.c (FcCacheReadDirs):
783 Make the perf guys hate me a bit less: hoist the directory-name
784 FcConfigAcceptFont check for cached fonts up to directory cache
785 read time, rather than running it for each font.
787 2005-11-29 Patrick Lam <plam@mit.edu>
788 * src/fccfg.c (FcConfigBuildFonts):
790 * src/fcpat.c (FcPatternFindFullFname):
792 Don't make FcPatternFindFullFname available to fccfg, it's not
793 really safe. Instead go through FcPatternGetString (sorry,
794 perf guys.) Also, use globs for dirs as well.
796 2005-11-28 Patrick Lam <plam@mit.edu>
797 * src/fccfg.c (FcConfigBuildFonts):
801 2005-11-28 Patrick Lam <plam@mit.edu>
803 * src/fcpat.c (FcPatternFindFullFname):
804 * src/fccfg.c (FcConfigBuildFonts):
806 Fix problem dating back at least to 2.3.2 where globs weren't
807 being applied to patterns loaded from a cache.
809 2005-11-28 Patrick Lam <plam@mit.edu>
810 * doc/fontconfig-user.sgml:
812 Fix some obvious spelling mistakes.
814 2005-11-28 Dirk Mueller <dmueller@suse.com>
815 Stephan Kulow <coolo@suse.de>
818 * src/fcmatch.c (FcFontSetMatch):
820 Don't kill all fonts during match (oops!)
823 2005-11-25 Dirk Mueller <dmueller@suse.com>
824 Stephan Kulow <coolo@suse.de>
825 Michael Matz <matz@suse.de>
828 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
831 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
832 inline FcCompare into FcFontSetMatch and reorder the
833 loops, adding a boolean array which blocks patterns from future
834 consideration if they're known to not be best on some past
837 2005-11-26 Dirk Mueller <dmueller@suse.com>
840 * src/fcmatch.c (FcCompareValueList):
844 2005-11-25 Patrick Lam <plam@mit.edu>
845 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
847 Don't do random matching when bad objects are passed into
850 2005-11-25 Patrick Lam <plam@mit.edu>
852 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
853 FcPatternSerialize, FcPatternUnserialize,
854 FcValueListEnsureBank, FcValueListDistributeBytes,
855 FcValueListUnserialize):
857 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
858 _fcPatternElts, _fcValueLists for consistency.
860 2005-11-25 Dirk Mueller <dmueller@suse.com>
865 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
867 2005-11-25 Patrick Lam <plam@mit.edu>
869 * src/fccache.c (FcDirCacheConsume):
870 * src/fccharset.c (FcCharSetUnserialize):
871 * src/fcfs.c (FcFontSetUnserialize):
872 * src/fclang.c (FcLangSetUnserialize):
873 * src/fcname.c (FcObjectUnserialize):
874 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
875 FcPatternUnserialize):
877 Pass around FcCache *s to the Unserialize functions for extra
878 consistency (and less overhead, for what that's worth).
880 2005-11-24 Dirk Mueller <dmueller@suse.com>
884 * src/fcmatch.c (FcCompare*, FcFontSetSort):
885 * src/fcname.c (FcNameUnparseValue):
887 Inline the *PtrU functions to gain perf.
888 Remove unneeded params for the FcCompare* functions.
890 2005-11-24 Dirk Mueller <dmueller@suse.com>
893 * src/fcint.h, fontconfig/fontconfig.h:
895 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
897 * src/fcpat.c, src/fcint.h, src/fcname.c:
899 Check for type validity during FcPatternAddWithBinding, don't
900 verify type in FcFontMatch, don't call FcCanonicalize here
901 (which always does a deep copy).
903 2005-11-24 Dirk Mueller <dmueller@suse.com>
906 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
907 * src/fcpat.c (FcPatternAddWithBinding):
909 Make FcCompareString and FcCompareFamily less expensive.
910 Only add a value for FC_FAMILY if the proposed value is a string.
912 2005-11-24 Dirk Mueller <dmueller@suse.com>
915 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
916 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
917 * src/fcint.h (FcDebug):
919 Inline FcDebug invocations and only initialize once, in FcInit*.
920 Improve debug msg in FcPatternPrint.
922 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
925 * fontconfig/fontconfig.h:
928 Minor code warning cleanups.
930 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
933 * fc-match/fc-match.c (main):
935 Make getopt_long accept -s parameter to fc-match as well.
937 2005-11-21 Dirk Mueller <dmueller@suse.com>
940 * src/fcmatch.c (FcCompareValueList):
942 Manually perform inlining & partial redundancy elimination to
943 reduce calls to FcValueListPtrU.
945 2005-11-21 Dirk Mueller <dmueller@suse.com>
948 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
949 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
951 Only invoke strlen() when really necessary.
953 2005-11-19 Matthias Clasen <mclasen@redhat.com>
957 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
962 Get rid of the use of freetype internal headers in fcfreetype.c,
963 since those headers will go away with freetype 2.2. Replace with
964 public domain ftglue code from pango. Note that the patch removes
965 some extra error checking in FT_Get_BDF_Property() and comments
966 out the skipping of empty pcf fonts.
968 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
971 * fc-lang/fc-lang.c (main):
973 Further fix of patch from 2005-11-04: miscounted numbers count
974 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
975 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
977 Removed leafidx_count and numbers_count since they are the same
978 and replaced them with offset_count.
980 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
983 * fc-cat/fc-cat.c (main):
985 Don't crash when fc-cat invoked with no arguments.
987 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
990 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
992 Fix invalid read access caused by premature free and
993 GCC4 warnings in libxml2 codepath.
995 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
998 * src/fccfg.c (FcConfigValues):
1000 List iteration not needed in FcConfigValues, since it's building
1001 up the list itself; we can just strip FcVoid elements during
1004 2005-11-17 Patrick Lam <plam@mit.edu>
1005 * src/fccfg.c (FcConfigValues):
1007 Fix crash on invalid constants in config files (forgot to update
1008 a pointer upon list iteration.)
1010 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
1013 * src/fcxml.c (FcTypecheckExpr):
1015 Complain about invalid constants in config files.
1017 2005-11-17 Andreas Schwab <schwab@suse.de>
1020 * src/fccache.c (FcGlobalCacheSave):
1022 Don't add current_arch_start more than once.
1024 2005-11-16 Patrick Lam <plam@mit.edu>
1025 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1026 * src/fcfs.c (FcFontSetUnserialize):
1027 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1028 * src/fcpat.c (FcStrUnserialize):
1030 Fix ordering of ALIGN with respect to saving block_ptr; add
1031 another ALIGN to fcfs.c.
1033 2005-11-16 Patrick Lam <plam@mit.edu>
1034 * src/fccache.c (FcDirCacheProduce)
1036 Fix case where alignment bytes bumped up metadata->count
1037 causing unwarranted failures to write cache files.
1038 (Reported by Stephan Kulow).
1040 2005-11-16 Patrick Lam <plam@mit.edu>
1041 * src/fccache.c (FcDirCacheProduce):
1042 * src/fccharset.c (FcCharSetDistributeBytes):
1043 * src/fcfs.c (FcFontSetDistributeBytes):
1045 * src/fclang.c (FcLangSetDistributeBytes):
1046 * src/fcname.c (FcObjectDistributeBytes):
1047 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1050 Add *NeededBytesAlign(), which overestimates the padding which is
1051 later added by the new ALIGN macro. Fix alignment problems on
1052 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1053 version by Andreas Schwab).
1055 2005-11-16 Stephan Kulow <coolo@kde.org>
1060 Use sysconf to determine proper PAGESIZE value; this
1061 appears to be POSIX-compliant. (reported by Andreas Schwab)
1063 2005-11-04 Patrick Lam <plam@mit.edu>
1064 * fc-lang/fc-lang.c:
1069 Fix bug 2878 (excessive relocations at startup for charsets,
1070 reported by Ross Burton): fc-lang/fc-lang now creates the
1071 static form of the langset, not the dynamic form, so that
1072 the charsets should now be in .rodata.
1074 2005-11-04 Patrick Lam <plam@mit.edu>
1075 * src/fcdir.c (FcDirScanConfig):
1077 Add test for validity of directory caches that
1078 somehow got lost (reported by make distcheck).
1080 2005-11-04 Patrick Lam <plam@mit.edu>
1084 * fontconfig/fontconfig.h:
1086 Bump version to 2.3.92.
1088 2005-11-02 Patrick Lam <plam@mit.edu>
1089 * src/fcpat.c (FcPatternDuplicate):
1091 Fix argument ordering problem in call to FcPatternTransferFullFname.
1093 2005-11-02 Patrick Lam <plam@mit.edu>
1094 * src/fcfreetype.c (FcFreetypeQuery):
1095 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1096 FcPatternTransferFullFname):
1098 Fix warnings and embarrassing double-free error.
1100 2005-11-02 Zhe Su <zsu@novell.com>
1105 Change the rule for artificial emboldening in fonts.conf.in. This
1106 enables the support for artificial emboldening included in cairo.
1108 2005-11-02 Patrick Lam <plam@mit.edu>
1109 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1111 Don't zero out full names for FC_REF_CONSTANT fonts;
1112 also, duplicate full names when transferring, and free
1113 full names when freeing the associated font.
1114 Reported by Jinghua Luo.
1116 2005-11-02 Patrick Lam <plam@mit.edu>
1117 * fc-cache/fc-cache.c (scanDirs):
1118 * src/fcpat.c (FcValueListSerialize):
1120 Revert the previous patch and commit the correct patch:
1121 I forgot a canonicalization in FcValueListSerialize, so
1122 that it would choke on already-serialized input files. Duh!
1124 2005-11-02 Patrick Lam <plam@mit.edu>
1125 * fc-cache/fc-cache.c (scanDirs):
1127 Forcibly rescan a directory before writing a fresh local
1128 cache file for that directory, fixing the losing-fonts
1129 problem reported by Mike Fabian and also apparently the
1130 font cache file corruption.
1132 2005-11-02 Patrick Lam <plam@mit.edu>
1133 * src/fccache.c (FcGlobalCacheLoad):
1135 Fix thinko: actually, the whole global cache is stale
1136 if the global cache is older than the (newest) config file.
1138 2005-11-02 Patrick Lam <plam@mit.edu>
1139 * src/fccache.c (FcGlobalCacheLoad):
1140 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1143 Declare the global cache of a directory's contents to be stale if
1144 the directory is newer than the (newest) configuration file.
1146 2005-10-31 Patrick Lam <plam@mit.edu>
1148 * src/fclist.c (FcListAppend):
1149 * src/fcmatch.c (FcFontRenderPrepare):
1150 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1151 FcPatternFreeze, FcPatternBaseFreeze):
1153 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1154 applications continue breaking.
1156 2005-10-31 Patrick Lam <plam@mit.edu>
1157 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1158 * src/fcfreetype.c (FcFreeTypeQuery):
1160 Fix small memory error (tried to free argv); use basename and
1161 dirname correctly (they can modify their arguments).
1163 2005-10-31 Patrick Lam <plam@mit.edu>
1171 Reinstate basename patch, but keep a hash table linking FcPatterns
1172 to their fully-qualified font names for clients' benefit. Clients
1173 only pay for the font names once they request the FC_FILE property
1174 from an FcPattern, but the font name is malloc'd at that point (i.e.
1175 not mmapped: that's impossible, since it may vary between machines.)
1176 Clients do have to pay for a copy of the path name per cache file.
1178 Note that FcPatternGetString now does some rewriting if you ask
1179 for an FC_FILE, appending the pathname as appropriate.
1181 2005-10-31 Patrick Lam <plam@mit.edu>
1182 * src/fcfreetype.c (FcFreeTypeQuery):
1184 Revert basename patch, which breaks fontconfig clients on my system.
1186 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1189 * fontconfig/fonts.conf.in:
1190 * fontconfig/fontconfig.h:
1194 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1195 to load embedded bitmaps or not.
1197 2005-10-25 Patrick Lam <plam@mit.edu>
1198 * src/fcfreetype.c (FcFreeTypeQuery):
1200 Only add basename to patterns' FC_FILE element, not any part of
1203 2005-10-22 Patrick Lam <plam@mit.edu>
1206 Add some more consts, fixing more GCC4 warnings.
1208 2005-10-22 Zhe Su <zsu@novell.com>
1211 Support localized font family and style names.
1212 This has been reported to break old apps like xfd, but modern
1213 (gtk+/qt/mozilla) apps work fine.
1215 2005-10-21 Patrick Lam <plam@mit.edu>
1216 * src/fccache.c (FcGlobalCacheLoad):
1218 Destroy the global cache file if it's terminally broken. (reported by
1221 2005-10-21 Patrick Lam <plam@mit.edu>
1222 * fc-list/fc-list.c (main):
1223 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1224 * fontconfig/fontconfig.h:
1226 Prevent fc-list from escaping strings when printing them (reported by
1229 2005-10-20 Marcus Meissner <meissner@suse.de>
1232 * fontconfig/fontconfig.h:
1234 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1236 2005-10-14 Ross Burton <ross@burtonini.com>
1239 * fc-glyphname/fc-glyphname.c:
1242 Add consts to variables so as to move arrays into .rodata.
1244 2005-10-14 Mike Fabian <mfabian@suse.de>
1247 * src/fccache.c (FcDirCacheUnlink):
1249 Check existence of directory cache file before attempting to unlink.
1251 2005-10-13 Patrick Lam <plam@mit.edu>
1252 * src/fccache.c (FcDirCacheUnlink):
1254 Fix flipped return value on unlink. (Reported by Mike Fabian)
1256 2005-10-12 Patrick Lam <plam@mit.edu>
1259 * src/fcdir.c (FcDirScanConfig):
1262 When fc-cache is run without --force, use directory cache files
1263 to speed up fc-cache run time. (Reported by Mike Fabian)
1265 2005-10-06 Patrick Lam <plam@mit.edu>
1267 * src/fcname.c (FcObjectToPtr):
1268 * src/fcpat.c (FcStrStaticName):
1270 Add padding to make valgrind and glibc not hate each other
1271 when calling strlen().
1273 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1274 reviewed by: plam & keithp
1278 Modify config file to use Greek fonts before Asian fonts with
1281 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1282 reviewed by: plam & keithp
1286 Use libtool -no-undefined flag on all platforms.
1288 2005-10-05 Patrick Lam <plam@mit.edu>
1289 * src/fccache.c (FcCacheHaveBank):
1291 Implement move-to-front array for banks (perf regression
1292 reported by Ronny V. Vindenes).
1294 2005-10-04 Patrick Lam <plam@mit.edu>
1295 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1296 FcDirCacheHasCurrentArch):
1297 * fc-cache/fc-cache.c (scanDirs):
1298 * fontconfig/fontconfig.h:
1300 Add new API which unlinks directory caches and checks dir caches
1301 for existence of appropriate sections. Fix fc-cache to unlink
1302 stale cache files and save directory caches that lack relevant
1305 2005-10-03 Patrick Lam <plam@mit.edu>
1306 * src/fccache.c (FcDirCacheValid):
1308 Ensure that a directory cache has the appropriate section
1309 before reporting that it is valid (reported by Matthias Clasen).
1311 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1319 Use libxml2 if requested (with --enable-libxml2) or if
1320 expat is not available.
1322 2005-09-29 Patrick Lam <plam@mit.edu>
1323 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1325 Fix multi-arch cache files: compute the position for the
1326 block to be added using info from OrigFile, not NewFile.
1328 2005-09-28 Patrick Lam <plam@mit.edu>
1329 * src/fccache.c (FcCacheMachineSignature):
1331 Cast results of sizeof() to unsigned int to get rid of
1332 warnings on x86_64 (thanks Matthias Clasen).
1334 2005-09-27 Patrick Lam <plam@mit.edu>
1335 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1338 Use FcAtomic to rewrite cache files.
1340 2005-09-27 Patrick Lam <plam@mit.edu>
1342 * src/fccache.c (FcDirCacheWrite):
1344 Don't unlink the fonts.cache-2 file even if there's no data
1345 to write; just write an empty cache file. (thanks Lubos Lunak)
1347 2005-09-27 Patrick Lam <plam@mit.edu>
1349 * src/fccache.c (FcDirCacheWrite):
1351 Allocate room for the subdirectory names in each
1352 directory cache. Thanks to James Cloos for finding
1353 and diagnosing this bug!
1355 2005-09-22 Patrick Lam <plam@mit.edu>
1357 * fc-cache/fc-cache.sgml:
1358 * src/fccache.c (FcDirCacheWrite):
1359 * src/fccache.h (struct FcCache):
1361 Update documentation -- fc-cache's man page now says that you
1362 need to run fc-cache once per cached architecture; add some
1363 documentation to the FcCache structure.
1365 Make fc-cache write out fonts.cache-2 files for directories with
1366 no fonts (i.e. only subdirectories).
1368 2005-09-22 Patrick Lam <plam@mit.edu>
1370 * fc-cache/fc-cache.sgml:
1371 * fc-case/fc-case.c:
1372 * fc-glyphname/fc-glyphname.c:
1378 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1382 * fc-lang/fc-lang.c:
1383 * fontconfig/fcprivate.h:
1384 * fontconfig/fontconfig.h:
1398 Implement new mmaped cache for font information.
1399 Bump so revision to 2.3.90.
1401 2005-07-25 Keith Packard <keithp@keithp.com>
1403 * doc/fontconfig-user.sgml:
1404 * fc-glyphname/fc-glyphname.c: (scan), (main):
1405 * fc-lang/fc-lang.c: (FcConfigHome):
1406 * fc-match/fc-match.c: (main):
1407 * src/fccfg.c: (FcConfigHome):
1408 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1409 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1410 (addtag), (FcFontCapabilities):
1411 * src/fcpat.c: (FcValueListEntCreate):
1412 * src/fcstr.c: (FcStrCaseWalkerInit):
1413 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1415 Various GCC 4 cleanups for signed vs unsigned char
1417 Match only [0-9]*.conf files in <include>{directory}</include>
1418 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1420 2005-07-15 Carl Worth <cworth@cworth.org>
1423 * src/fcinit.c: (FcFini):
1424 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1427 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1428 Pull the FcObjectStateName hash table out to file scope, and add
1429 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1432 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1435 2005-06-16 Patrick Lam <plam@MIT.EDU>
1439 * src/fccfg.c: (FcConfigCompareValue):
1440 Make FcOpNotContains use FcStrStr for strings so that
1441 it matches semantics for !FcOpContains.
1443 2005-05-20 Keith Packard <keithp@keithp.com>
1447 Move fontconfig source package to libs as per override
1449 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1451 reviewed by: Mike Fabian
1454 The ka.orth file requires several characters which are not
1455 used anymore in modern Georgian and which are missing in the free
1456 Georgian TrueType fonts downloadable at:
1458 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1460 2005-04-27 Keith Packard <keithp@keithp.com>
1464 Update date to real 2.3.2 release date.
1465 Fix change attributions
1467 2005-04-27 Keith Packard <keithp@keithp.com>
1470 Bump so revision for 2.3.2
1471 * fc-cache/fc-cache.c: (scanDirs):
1472 Fix a few minor leaks in error cases.
1474 2005-04-23 Keith Packard <keithp@keithp.com>
1479 * fontconfig/fontconfig.h:
1480 Update for version 2.3.2
1482 2005-04-21 Keith Packard <keithp@keithp.com>
1484 * debian/fontconfig.postinst:
1485 Don't force bitmap font enable in default
1486 configuration; allows users to override this in
1496 * debian/po/pt_BR.po:
1497 * debian/po/templates.pot:
1499 * debian/po/zh_CN.po:
1500 Updated translations
1502 * fc-cache/fc-cache.c: (main):
1503 Destroy font configuration on exit to help valgrind
1506 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1507 (FcFreeTypeCheckGlyph):
1508 Use own transcoding routines in preference to iconv
1509 which appears to have leaks in some translators.
1510 Call iconv_close after using iconv (oops).
1512 Prefer unicode encoding of Euro char as some
1513 fonts mis-encode Euro in other ones.
1515 Must fetch bitmap glyphs to get width values
1516 to check for monospace/dual-width fonts.
1518 2005-04-13 Ross Burton <ross@burtonini.com>
1521 Check that a pattern isn't already frozen in FcPatternFreeze.
1523 2005-03-31 Ross Burton <ross@burtonini.com>
1528 Run all FcPattern objects through FcObjectStaticName, so that
1529 compares can be done on pointers instead of strings (#2659)
1531 2005-03-17 Tor Lillqvist <tml@novell.com>
1533 * src/fontconfig.def.in: Add the .dll to the dll name.
1535 2005-03-10 Keith Packard <keithp@keithp.com>
1537 * debian/README.Debian:
1538 Update to reflect configuration changes
1540 * debian/fontconfig.postinst:
1541 Fix Autohint vs Autohinter mistake
1542 * debian/fontconfig.templates:
1543 Adopt changes from Josselin Mouette for configuration descriptions
1544 Update debian to version 2.3.1-2
1546 2005-03-08 Keith Packard <keithp@keithp.com>
1550 Update debian for 2.3.1
1552 2005-03-09 Tor Lillqvist <tml@novell.com>
1554 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1557 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1560 2005-03-08 Keith Packard <keithp@keithp.com>
1564 * fontconfig/fontconfig.h:
1567 2005-03-05 Keith Packard <keithp@keithp.com>
1569 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1570 Include space and remove numbers from valid script tags.
1571 This ensures that tags like 'lao ' work while rejecting
1572 those which have any digits.
1573 Eliminate a spurious debugging variable (len)
1575 2005-03-05 Keith Packard <keithp@keithp.com>
1577 * src/fcfreetype.c: (addtag), (GetScriptTags),
1578 (FcFontCapabilities):
1579 Rework GSUB/GPOS script parsing to survive broken fonts.
1580 Thanks for the broken font go to Manish Singh
1582 2005-03-05 Keith Packard <keithp@keithp.com>
1587 * debian/fontconfig.config:
1588 * debian/fontconfig.templates:
1590 Include 2.3 release information in changelog
1591 Add Josselin Mouette as an Uploader
1592 Set hinting_type to low priority configuration option
1595 * debian/fontconfig.postinst:
1596 yes_bitmaps.conf -> yes-bitmaps.conf
1602 2005-03-02 Keith Packard <keithp@keithp.com>
1605 * conf.d/Makefile.am:
1606 * conf.d/autohint.conf:
1607 * conf.d/no-sub-pixel.conf:
1608 * conf.d/sub-pixel.conf:
1609 * conf.d/unhinted.conf:
1610 * debian/autohint.conf:
1611 * debian/fontconfig.install:
1612 * debian/fontconfig.postinst:
1613 * debian/fontconfig.templates:
1614 * debian/no-sub-pixel.conf:
1615 * debian/unhinted.conf:
1616 Move debian-specific conf file examples upstream.
1618 Sub-pixel configuration examples must smash subpixel value
1619 as Xft always sets it from X.
1621 Change sub-pixel rendering debconf descriptions from
1622 Enable/Disable to Always/Never.
1624 2005-03-02 Keith Packard <keithp@keithp.com>
1627 * conf.d/.cvsignore:
1629 Ignore more build detritus
1632 Add debian package construction stuff.
1634 * config/config.guess:
1635 * config/config.sub:
1636 Update to newer versions of these tools
1639 Get library manuals to build again (we love automake).
1641 * debian/README.Debian:
1642 * debian/autohint.conf:
1647 * debian/fontconfig-udeb.install:
1648 * debian/fontconfig.config:
1649 * debian/fontconfig.defoma:
1650 * debian/fontconfig.dirs:
1651 * debian/fontconfig.install:
1652 * debian/fontconfig.postinst:
1653 * debian/fontconfig.postrm:
1654 * debian/fontconfig.templates:
1655 * debian/libfontconfig1-dev.install:
1656 * debian/libfontconfig1.install:
1657 * debian/local.conf.md5sum:
1658 * debian/no-sub-pixel.conf:
1659 * debian/po/POTFILES.in:
1668 * debian/po/pt_BR.po:
1669 * debian/po/templates.pot:
1671 * debian/po/zh_CN.po:
1673 * debian/unhinted.conf:
1674 Update debian build system to switch maintainers and
1675 deal with 2.3 functionality
1677 2005-03-01 Keith Packard <keithp@keithp.com>
1681 * fontconfig/fontconfig.h:
1684 2005-03-01 Keith Packard <keithp@keithp.com>
1687 Generate and install PDF versions of the manuals
1689 * doc/fcpattern.fncs:
1692 * doc/fcstring.fncs:
1693 Add missing exported functions, fix data types
1695 * doc/fontconfig-devel.sgml:
1696 Add missing pattern elements.
1698 * doc/fontconfig-user.sgml:
1699 Add missing pattern elements. Document conf.d usage,
1700 clarify available orthography list. Fix some config file
1701 attributes. Complete list of constants.
1703 * fontconfig/fontconfig.h:
1704 Mark FC_SOURCE deprecated.
1706 * src/fcfreetype.c: (FcFreeTypeQuery):
1707 Don't set FC_SOURCE any longer.
1709 2005-02-28 Keith Packard <keithp@keithp.com>
1712 * conf.d/Makefile.am:
1714 * conf.d/no-bitmaps.conf:
1715 * conf.d/sub-pixel.conf:
1716 * conf.d/yes-bitmaps.conf:
1718 Create prototype /etc/fonts/conf.d directory with a few
1719 sample configuration files.
1720 Deprecate use of local.conf for local customizations in favor of
1721 this directory based scheme which is more easily integrated into
1722 installation systems.
1725 Tag FC_EMBOLDEN as a boolean variable
1727 2005-02-10 Keith Packard <keithp@keithp.com>
1729 reviewed by: pborelli@katamail.com
1731 * src/fcdir.c: (FcFileScanConfig):
1732 Free patterns from fonts which are rejected by configuration
1735 2005-01-28 Keith Packard <keithp@keithp.com>
1739 * fontconfig/fontconfig.h:
1740 Update for version 2.2.99
1742 2005-01-28 Keith Packard <keithp@keithp.com>
1745 Add a few pointers (#2284, #2285)
1747 2005-01-28 Keith Packard <keithp@keithp.com>
1750 * src/fcname.c: (FcNameBool):
1751 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1752 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1753 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1754 Polite typechecking for test and edit expressions. Helps
1755 catch errors in the font configuration. (bug 229)
1757 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1759 reviewed by: Keith Packard <keithp@keithp.com>
1762 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1764 2005-01-13 Keith Packard <keithp@keithp.com>
1766 * doc/fontconfig-user.sgml:
1767 Add SEE ALSO section (bug 2085)
1769 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1771 reviewed by: Keith Packard <keithp@keithp.com>
1776 * fc-case/Makefile.am:
1777 * fc-glyphname/Makefile.am:
1778 * fc-lang/Makefile.am:
1779 * src/fontconfig.def.in:
1780 Cross compiling fixes (bug 280)
1782 2005-01-13 Keith Packard <keithp@keithp.com>
1785 Update blanks list (Closes bug 86)
1787 2005-01-04 Keith Packard <keithp@keithp.com>
1789 * src/fccache.c: (FcCacheFontSetAdd):
1790 Verify that every font pattern loaded from cache has
1791 both FC_FILE and FC_FAMILY entries.
1792 Attempt to fix bug #2219.
1794 2004-12-29 Keith Packard <keithp@keithp.com>
1798 * fontconfig/fontconfig.h:
1799 Update for version 2.2.98
1801 2004-12-29 Keith Packard <keithp@keithp.com>
1803 * fontconfig/fontconfig.h:
1804 Document ASCII limitations of Fc character conversion macros
1805 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1806 Fix off-by-one error in utf-8 case walking code.
1807 Add FcStrDowncase (useful for testing case conversion functions)
1809 2004-12-29 Keith Packard <keithp@keithp.com>
1812 * fc-case/.cvsignore:
1813 clean up CVS ignore lists
1814 * fc-lang/iso-3166.txt:
1815 Add territory database
1817 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1819 Reviewed by: Keith Packard
1822 Remove Han characters from Korean orthography
1824 2004-12-29 Keith Packard <keithp@keithp.com>
1827 Reorder utility programs to make sure fc-case is run before fc-lang
1828 as fc-lang uses fcstr.c which uses fccase.h
1832 2004-12-29 Keith Packard <keithp@keithp.com>
1835 Adopt some RedHat suggestions for standard font configuration.
1839 * fc-case/CaseFolding.txt:
1840 * fc-case/Makefile.am:
1841 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1842 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1843 (dump), (parseRaw), (caseFoldReadRaw), (main):
1844 * fc-case/fccase.tmpl.h:
1845 Add new helper program 'fc-case' to construct case folding
1846 tables from standard Unicode CaseFolding.txt file
1849 * src/fclist.c: (FcListValueHash):
1850 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1851 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1852 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1853 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1854 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1855 Re-implement case insensitive functions with Unicode
1856 aware versions (including full case folding mappings)
1858 2004-12-13 Keith Packard <keithp@keithp.com>
1860 reviewed by: Owen Taylor <otaylor@redhat.com>
1862 * src/fcmatch.c: (FcFontSetSort):
1863 I changed FcFontSetSort to respect the generic aliases better
1864 in the face of language matching.
1866 What I did was to ammend the strict sort order used by FcFontSort so
1867 that it 'satisfies' the language specified in the pattern by locating
1868 the best matching font supporting each pattern language and then
1869 ignores language in the remaining fonts for purposes of matching.
1871 So, when asking for 'sans:lang=en', you'll get an English font first,
1872 and then the remaining fonts sorted with respect to the 'sans' alias
1873 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1875 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1877 reviewed by: Keith Packard <keithp@keithp.com>
1879 * fontconfig/fontconfig.h:
1882 Configuration changes to request synthetic emboldening of
1883 fonts. The actual emboldening code will live in Xft.
1885 2004-12-09 John Thacker <thacker@math.cornell.edu>
1887 reviewed by: Keith Packard <keithp@keithp.com>
1891 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1892 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1893 и), and don't even appear in KOI8-R. (The hypothesis that they
1894 don't appear in KOI8-R due to their similarity with Latin I and i is
1895 eliminated by their presence in KOI8-U.) I have a couple of fonts
1896 with Russian support that don't have the letter.
1898 Therefore, 0406 and 0456 should be removed from or commented out of
1901 2004-12-06 michael meeks <mmeeks@novell.com>
1903 Reviewed by: Keith Packard <keithp@keithp.com>
1905 * src/fcinit.c: (FcMemReport):
1907 * src/fclist.c: (FcObjectSetAdd):
1908 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1909 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1910 * src/fcxml.c: (FcParsePatelt):
1911 memoize strings and share a single copy for all uses. Note that
1912 this could be improved further by using statically allocated blocks
1913 and gluing multiple strings together, but I'm basically lazy.
1914 In my environment with 800 font files, I get a savings of about 90KB.
1916 2004-12-06 Keith Packard <keithp@keithp.com>
1920 * config/Makedefs.in:
1923 * doc/fcatomic.fncs:
1924 * doc/fcblanks.fncs:
1925 * doc/fccharset.fncs:
1926 * doc/fcconfig.fncs:
1927 * doc/fcconstant.fncs:
1929 * doc/fcfontset.fncs:
1930 * doc/fcfreetype.fncs:
1932 * doc/fcmatrix.fncs:
1933 * doc/fcobjectset.fncs:
1934 * doc/fcobjecttype.fncs:
1935 * doc/fcpattern.fncs:
1936 * doc/fcstring.fncs:
1937 * doc/fcstrset.fncs:
1939 * doc/fontconfig-devel.sgml:
1940 * doc/fontconfig-user.sgml:
1942 * doc/version.sgml.in:
1943 * fc-cache/Makefile.am:
1944 * fc-cache/fc-cache.c:
1945 * fc-glyphname/Makefile.am:
1946 * fc-glyphname/fc-glyphname.c:
1947 * fc-glyphname/fcglyphname.tmpl.h:
1948 * fc-lang/Makefile.am:
1958 * fc-lang/az_ir.orth:
1992 * fc-lang/fc-lang.c:
1993 * fc-lang/fc-lang.man:
1994 * fc-lang/fclang.tmpl.h:
2039 * fc-lang/ku_ir.orth:
2072 * fc-lang/ps_af.orth:
2073 * fc-lang/ps_pk.orth:
2102 * fc-lang/ti_er.orth:
2103 * fc-lang/ti_et.orth:
2129 * fc-lang/zh_cn.orth:
2130 * fc-lang/zh_hk.orth:
2131 * fc-lang/zh_mo.orth:
2132 * fc-lang/zh_sg.orth:
2133 * fc-lang/zh_tw.orth:
2135 * fc-list/Makefile.am:
2136 * fc-list/fc-list.c:
2137 * fc-match/Makefile.am:
2138 * fc-match/fc-match.1:
2139 * fc-match/fc-match.c:
2140 * fontconfig/fcfreetype.h:
2141 * fontconfig/fcprivate.h:
2142 * fontconfig/fontconfig.h:
2163 Change files from ISO-Latin-1 to UTF-8
2165 2004-12-04 Keith Packard <keithp@keithp.com>
2168 Update links to new freedesktop.org locations
2170 Add uninstall-local to get rid of fonts.conf and local.conf if they
2171 match the distributed versions. Fixes 'make distcheck'
2173 2004-12-04 Keith Packard <keithp@keithp.com>
2177 * fontconfig/fontconfig.h:
2178 Updates for version 2.2.97
2180 2004-12-04 Owen Taylor <otaylor@redhat.com>
2182 reviewed by: Keith Packard <keithp@keithp.com>
2184 * fc-cache/fc-cache.c: (main):
2185 Sleep for two seconds before exiting to make sure timestamps
2186 for future changes have distinct mod times in the file system.
2189 Add Punjabi orthography. Bug #1671.
2191 2004-12-04 Keith Packard <keithp@keithp.com>
2194 Just remove the FC_FONTDATE -- it has locale issues and
2195 annoys redhat multi-arch installs. Now that all X fonts are
2196 included without prejudice, the chances of the date being at
2197 all interesting are rather limited. Bug #505.
2199 Add copyright and license
2201 2004-12-04 Keith Packard <keithp@keithp.com>
2204 Change default set of fonts to include all of
2205 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2206 * doc/fontconfig-user.sgml:
2207 Document new <include>directory-name</include> semantics
2209 add <include ignore_missing="yes">conf.d</include>
2211 Add selectfont to ignore bitmap fonts, add comment for
2212 selectfont which accepts bitmap fonts.
2215 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2216 Allow <include> configuration elements to reference directories.
2217 Parse and load all files of the form [0-9]* in sorted order.
2219 2004-12-04 Keith Packard <keithp@keithp.com>
2222 Report command line for $srcdir/configure accurately.
2225 2004-12-04 Keith Packard <keithp@keithp.com>
2227 * src/fcfreetype.c: (FcFreeTypeQuery):
2228 Check for non-empty face->family_name and face->style_name
2229 before using those for the font. Empty names match everything.
2232 2004-12-04 Keith Packard <keithp@keithp.com>
2235 * fontconfig/fontconfig.h:
2236 * src/fcfreetype.c: (FcFreeTypeQuery):
2238 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2239 available. This provides font file format information (BDF, Type 1,
2240 PCF, TrueType) for each font. Closes #109.
2242 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2244 reviewed by: Keith Packard <keithp@keithp.com>
2246 * doc/fontconfig-user.sgml:
2249 * fontconfig/fontconfig.h:
2250 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2251 (GetScriptTags), (FcFontCapabilities):
2253 Add detection for font capabilities (bug #105)
2255 2004-12-04 Keith Packard <keithp@keithp.com>
2258 Move existing fonts.conf to fonts.conf.bak
2261 Add detection of iconv
2263 * doc/fcpattern.fncs:
2264 * doc/fontconfig-devel.sgml:
2265 * doc/fontconfig-user.sgml:
2267 Document new selectfont elements
2270 Switch to UTF-8 in comment
2272 * fontconfig/fontconfig.h:
2274 Add fullname, and family/style/fullname language entries
2276 * src/fccache.c: (FcCacheFontSetAdd):
2277 * src/fcdir.c: (FcFileScanConfig):
2278 Respect selectfont/*/glob
2281 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2282 (FcConfigCompareValue), (FcConfigPatternsAdd),
2283 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2284 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2285 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2286 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2287 Add support for selectfont
2289 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2290 (FcStringInPatternElement), (FcFreeTypeQuery):
2291 Add multi-lingual family/style/fullname support
2293 * src/fclist.c: (FcListPatternMatchAny):
2294 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2296 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2297 (FcObjectStaticName):
2298 Add new FcPatternRemove/FcPatternAppend.
2299 FcObjectStaticName stores computed pattern element names which
2300 are required to be static.
2302 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2307 Remove spurious / after $(DESTDIR)
2309 2004-06-30 Keith Packard <keithp@keithp.com>
2313 * fontconfig/fontconfig.h:
2316 2004-06-30 Keith Packard <keithp@keithp.com>
2318 Provided by: Lubos Lunak <l.lunak@suse.cz>
2320 * src/fccfg.c: (FcConfigUptoDate):
2321 However FcConfigUptoDate() doesn't seem to work. See the attached
2322 patch. First there's an obvious misplaced parenthesis making it
2323 return always false, and second, even this call fails to detect font
2324 changes (e.g. adding a new font to
2325 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2326 well. The problem seems to be triggered by my fonts.conf specifying
2327 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2328 doesn't include subdirs, unlike config->fontDirs.
2330 2004-06-03 Keith Packard <keithp@keithp.com>
2332 * fontconfig/fontconfig.h:
2333 Remove comma at end of FcResult enum definition.
2335 2004-05-29 Keith Packard <keithp@keithp.com>
2338 Add steps to md5sum release
2340 2004-05-29 Keith Packard <keithp@keithp.com>
2344 * fontconfig/fontconfig.h:
2347 2004-05-29 Keith Packard <keithp@keithp.com>
2349 * fontconfig/fontconfig.h:
2350 * src/fcmatch.c: (FcFontSetMatch):
2351 Add FcResultOutOfMemory to provide an accurate error when
2352 FcFontSetMatch fails in this way
2355 Make #warning about lacking various FreeType features indicate
2356 which version those features appeared so users know how to
2357 fix the problem (Thanks to Anton Tropashko)
2359 2004-05-05 Keith Packard <keithp@keithp.com>
2361 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2362 Replace MIN/MAX/ABS macros which happen to have come
2363 from FreeType with fontconfig-specific ones (FC_*)
2365 2004-04-23 Keith Packard <keithp@keithp.com>
2368 Extend release preparation instructions to include
2369 notification and distribution steps
2371 2004-04-23 Keith Packard <keithp@keithp.com>
2375 * fontconfig/fontconfig.h:
2376 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2378 2004-04-23 Keith Packard <keithp@keithp.com>
2381 Ignore a few more autotool files
2383 2004-04-14 Keith Packard <keithp@keithp.com>
2386 Add instructions for doing a release
2388 * fontconfig.spec.in:
2389 clean up .spec file; perhaps this will be useful to somebody...
2393 * fontconfig/fontconfig.h:
2396 * fc-lang/fc-lang.c:
2397 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2399 * fc-glyphname/Makefile.am:
2400 * fc-lang/Makefile.am:
2401 * fc-list/Makefile.am:
2402 * fc-match/Makefile.am:
2404 Add WARN_CFLAGS to pass -W flags for GCC systems
2406 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2407 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2408 Change various char types around to match across
2410 Fixed bug in using available_sizes[i].height which
2411 is in pixels, not 64ths of a pixel.
2413 2004-03-06 Keith Packard <keithp@keithp.com>
2415 * src/fcfreetype.c: (FcFreeTypeQuery):
2416 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2417 matches looking for explicit values prefer exact matches
2419 2004-03-02 Keith Packard <keithp@keithp.com>
2421 Supplied by: mfabian@suse.de (Mike FABIAN)
2423 * src/fcfreetype.c: (FcFreeTypeQuery):
2424 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2425 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2427 2004-02-21 Manish Singh <yosh@gimp.org>
2429 * fc-glyphname/fc-glyphname.c: (main):
2430 Cast strlen to int for printf, so we're 64-bit clean.
2432 2004-02-11 Keith Packard <keithp@keithp.com>
2435 * src/fcfreetype.c: (FcGetPixelSize):
2436 Ok, so I messed up the test for y_ppem. Let's see if I
2437 got it right this time.
2439 2004-02-10 Keith Packard <keithp@keithp.com>
2442 * src/fcfreetype.c: (FcGetPixelSize):
2443 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2444 FT_Bitmap_Size record. Add a configure.in test for this
2445 and change the code accordingly (using height instead).
2447 2004-02-06 Keith Packard <keithp@keithp.com>
2450 Add Low Saxon orthography
2451 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2453 * src/fccfg.c: (FcConfigNewestFile):
2454 Oops. Left 'newest.set' unset, which would miscompute
2457 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2458 (FcFreeTypeCheckGlyph):
2459 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2460 font properties (which report the wrong value in current FreeType)
2462 Don't attempt to check for empty glyphs in non-scalable fonts; they
2465 2004-02-01 Tor Lillqvist <tml@iki.fi>
2467 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2468 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2469 cache if config->cache is NULL, which happens if FcConfigHome() is
2470 NULL. Guard against that by using the temp folder in that case.
2472 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2474 * fc-lang/az_ir.orth:
2475 * fc-lang/ku_ir.orth:
2476 * fc-lang/ps_af.orth:
2477 * fc-lang/ps_pk.orth:
2478 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2479 (Afghan and Pakistani).
2481 Updated Urdu orthography with real data.
2483 2003-12-11 Carl Worth <cworth@east.isi.edu>
2485 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2488 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2490 (all-local): Remove excessive whitespace.
2492 * autogen.sh: Add 'set -e' to abort when any program fails,
2493 (avoids printing of 'now type make' after configure aborts).
2495 2003-11-17 Eric Christopherson <rakko@charter.net>
2497 reviewed by: Keith Packard <keithp@keithp.com>
2500 * fontconfig/fcfreetype.h:
2502 Switch to FreeType 2.1.7 style includes. Bug #150.
2504 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2506 * fc-list/fc-list.sgml: Add some example usages.
2508 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2511 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2514 2003-10-27 Keith Packard <keith@keithp.com>
2517 * fontconfig/fontconfig.h:
2518 Update to version 2.2.92
2520 2003-10-27 Keith Packard <keithp@keithp.com>
2525 * fc-cache/Makefile.am:
2526 * fc-glyphname/Makefile.am:
2527 * fc-lang/Makefile.am:
2528 * fc-list/Makefile.am:
2529 * fc-match/Makefile.am:
2532 Yet more cleanups to finish getting 'make distcheck' working
2533 This has been tested to ensure that it even works from a _build
2536 2003-10-26 Keith Packard <keithp@keithp.com>
2540 * fc-cache/Makefile.am:
2541 * fc-glyphname/Makefile.am:
2542 * fc-lang/Makefile.am:
2543 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2544 * fc-list/Makefile.am:
2545 * fc-match/Makefile.am:
2546 Attempts to fix 'make distcheck' work. Things are
2547 progressing pretty well, but there are still failures
2548 long into the process dealing with docs (as always).
2550 The big changes here are mostly to make $(srcdir) != "."
2551 work correctly, fixing the docbook related sections and
2552 fc-lang were particularily tricky. Docbook refuses to load
2553 system entities from anywhere other than where the original .sgml
2554 file was located, so no luck looking in "." for the
2555 configure-generated version.sgml and confdir.sgml files.
2557 fc-lang needed help finding .orth files; added a -d option
2558 to set the directory as the least evil of many options.
2560 Now to go use a faster machine and try and wring out the last
2563 2003-10-26 Keith Packard <keithp@keithp.com>
2567 2003-10-26 Keith Packard <keithp@keithp.com>
2570 Include confdir.sgml.in in EXTRA_DIST
2572 2003-10-09 Josselin Mouette <joss@debian.org>
2574 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2575 * fc-list/fc-list.sgml fc-list/Makefile.am:
2576 Replace fc-cache and fc-list manpages with more detailed, SGML
2579 2003-09-23 Owen Taylor <otaylor@redhat.com>
2581 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2582 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2583 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2586 2003-09-23 Owen Taylor <otaylor@redhat.com>
2588 * fc-lang/ka.orth: Remove Georgian capitals, they
2589 aren't used for normal writing. (Bug #116)
2591 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2593 * doc/fontconfig-devel.sgml:
2594 * doc/fontconfig-user.sgml:
2595 * fontconfig/fontconfig.h:
2597 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2598 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2600 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2601 monospace and dual-width fonts, allow roughly a 3% variance in the
2604 2003-08-31 Manish Singh <yosh@gimp.org>
2606 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2609 2003-08-15 Carl Worth <cworth@isi.edu>
2611 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2612 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2614 * src/fcpat.c (FcValueListEntDestroy): New function to support
2615 FcFini memory cleanup. Some statistics are not kept in
2617 (FcValueListFreeze): Move hashTable outside this function so it
2618 can be accessed by FcValueListThawAll.
2619 (FcValueListThawAll): New function complements FcValueListFreeze.
2620 (FcPatternBaseFreeze): Move hashTable outside this function so it
2621 can be accessed by FcPatternBaseThawAll.
2622 (FcPatternBaseThawAll): New function complements
2623 FcPatternBaseFreeze.
2624 (FcPatternThawAll): New function complements FcPatternFreeze.
2626 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2628 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2629 allocated FcCharLeafEnt "blocks" so they can be freed later.
2630 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2631 can be accessed by FcCharSetThawAllLeaf.
2632 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2633 (FcCharSetFreezeBase): Move hashTable outside this function so it
2634 can be accessed by FcCharSetThawAll.
2635 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2637 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2638 (FcConfigDestroy): Fic leak of FcBlanks.
2640 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2641 (main): Add call to FcFini when finished.
2643 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2644 static. Add prototypes.
2646 * doc/fcinit.fncs: Add documentation for FcFini function.
2648 * doc/edit-sgml.c: Mark several local functions as static. Add
2651 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2653 2003-06-15 Tor Lillqvist <tml@iki.fi>
2655 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2656 before comparing (needed on Windows).
2658 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2660 2003-06-13 Tor Lillqvist <tml@iki.fi>
2662 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2665 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2666 WINDOWSFONTDIR token.
2668 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2669 end, not to confuse libtool, which expects the EXPORTS line to be
2670 the first. Add FcConfigEnableHome.
2672 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2673 built as a DLL on Win32.
2675 2003-06-09 Keith Packard <keithp@keithp.com>
2677 * Tag version 2.2.90
2679 2003-06-09 Keith Packard <keithp@keithp.com>
2681 * Optimization in FcLangSetIndex was broken, occasionally
2682 returning a pointer to the wrong location on miss
2684 * Add fc-match to test font matching from the command line.
2686 2003-05-31 Keith Packard <keithp@keithp.com>
2688 * (Bug 85) add support for culmus fonts
2689 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2690 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2692 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2694 * Fix "contains" op for strings and langsets.
2696 2003-05-17 Keith Packard <keithp@keithp.com>
2698 * Fix build error with BDF prop local. Free langset after query
2700 2003-05-14 Keith Packard <keithp@keithp.com>
2702 * Extract spacing from XLFD atom
2704 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2706 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2707 disappeared in 1.30.
2709 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2711 2003-05-12 Keith Packard <keithp@keithp.com>
2713 * Use FcIsWidth to share code
2715 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2716 misclassifying some Han fonts as monospaced.
2718 2003-05-07 Keith Packard <keithp@keithp.com>
2720 * Add filename-based accept/reject to ammend available fonts.
2722 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2723 older FreeType releases.
2725 2003-05-06 Keith Packard <keithp@keithp.com>
2727 * Remove 0b82 and Tamil numbers from tamil
2728 orthography (Jungshik Shin <jshin@mailaps.org>)
2730 2003-05-04 Keith Packard <keithp@keithp.com>
2732 + Map glyph names in fonts with adobe custom encoding to unicode
2734 2003-05-02 Keith Packard <keithp@keithp.com>
2736 * Add FC_WEIGHT_BOOK as weight 75
2738 2003-04-30 Keith Packard <keithp@keithp.com>
2740 * Typo in bitstream foundry name
2742 2003-04-24 Keith Packard <keithp@keithp.com>
2744 * Eliminate italic_angle check for PS fonts
2746 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2748 * Getting closer to fixing /etc/fonts hard-coding.
2750 2003-04-22 Keith Packard <keithp@keithp.com>
2752 * Update autogen.sh to work with newer automake versions
2753 * Handle pattern elements moving during multiple edits
2755 2003-04-23 James Henstridge <james@daa.com.au>
2757 * doc/fontconfig-devel.sgml: close the <para> element.
2759 * doc/fcpattern.fncs: close the <para> element.
2761 * doc/func.sgml: close the <refsynopsisdiv> element.
2763 2003-04-22 Keith Packard <keithp@keithp.com
2765 * Update autogen.sh to work with newer automake versions
2766 * Handle pattern elements moving during multiple edits
2768 2003-04-17 Colin Walters <walters@debian.org>
2770 + Remove some unused variables, and initialize some other ones so
2771 gcc doesn't warn us.
2773 2003-04-16 Keith Packard <keithp@keithp.com>
2775 + tag version 2.1.94
2777 2003-04-16 Keith Packard <keithp@keithp.com>
2779 + add BDF property fetching support for foundry
2780 (from Juliusz Chroboczek)
2781 + add BDF property fetching support for width
2783 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2785 + Implemented foundry generation for Type 1 and TrueType
2787 2003-04-11 Gerard Escalante <g2@magestudios.net>
2789 + Retrieve information from Type1 FontInfo dictionaries
2791 2003-04-07 Colin Walters <walters@verbum.org>
2793 + src/Makefile.am: Fix dummy makefile target names when
2794 MS_LIB_AVAILABLE isn't set.
2796 2003-03-22 Tor Lillqvist <tml@iki.fi>
2798 Changes for Windows:
2800 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2802 + We don't want to hardcode the fonts.conf file location in the
2803 DLL, so we look up the DLL location at run-time in a DllMain()
2804 function. The fonts.conf location is deduced from that.
2806 + The colon can't be used as path separator on Windows,
2807 semicolon is used instead. File path components can be separated
2808 with either slash or backslash. Absolute paths can also begin
2809 with a drive letter.
2811 + Add internal function FcStrLastSlash that strrchr's the last
2812 slash, or backslash on Windows.
2814 + There is no link() on Windows. For atomicity checks, mkdir a
2815 lock directory instead.
2817 + In addition to HOME, also look for USERPROFILE.
2819 + Recognize the special font directory token WINDOWSFONTDIR, to
2820 use the system's font directory.
2822 + Remove the fontconfig-def.cpp that was obsolete. Add
2823 fontconfig.def(.in), without internal functions.
2825 + Add a fontconfig-zip(.in) script, used to build a binary
2828 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2829 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2830 to main package and man3/* to devel package
2832 + Added missing defattr(-, root, root) to main RPM package
2834 + Added HTML and text development documentation to -devel subpackage
2836 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2837 + Added back the configure macro options --disable-docs, otherwise
2838 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2839 version number) unconditionally, causing RPM to fail the build due
2840 to _unpackaged_files_terminate_build. We pick up the pregenerated
2841 docs with %doc already.
2843 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2844 + Removed commented out rpm macro define at top of spec file,
2845 replacing it with a simple explanation, since rpm macros are
2846 expanded by rpm even in comments.
2848 + Changed /usr/bin to _bindir in BuildRequires lines
2850 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2852 + Reorganized file manifest lists
2854 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2856 + fontconfig.spec.in: Improvements from Red Hat spec file.
2858 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2860 + docs/*.sgml: SGML fixes.
2862 Sat Mar 1 17:28:53 PST 2003 keithp
2863 + Ok, so the ChangeLog is a bit out of date
2865 + Lots of bugs fixed; most are in bugzilla, the
2866 biggest problems were in cache management where
2867 Owen discovered the library would lose badly when
2868 combining fonts-cache and ~/.fonts-cache data
2870 + Converted from autoconf to automake. This after
2871 getting patches accepted into libtool to allow
2872 the '-version-number' argument which lets
2873 packages set version numbers explicitly rather
2874 than the roundabout libtool way
2876 + Converted documentation to SGML using the docbook
2877 DTD. Now .txt and .html documents are installed
2878 in /usr/share/doc/fontconfig and there's no
2879 man page. Perhaps a man version can be written
2882 Sat Aug 31 15:21:22 PDT 2002 keithp
2883 + Xrender and Xft had several bugs related to
2884 rendering manually placed or poly-face text
2886 + Added more complete memory tracing in fontconfig
2887 Checked with (patched) mozilla and found no leaks
2889 + Updated Latin orthographies by comparing those from
2890 evertype.com with those from eki.ee. Tried to make
2891 sensible choices, including chars that occured in both
2892 and leaving some optional chars out that occured only
2895 Mon Aug 26 16:33:04 PDT 2002 keithp
2896 + Owen discovered that FcLangSetHasLang wasn't actually
2897 checking the language set.
2899 Mon Aug 26 13:37:23 PDT 2002 keithp
2900 + Append a version number to cache filenames
2902 Thu Aug 22 11:36:18 PDT 2002 keithp
2904 + Add "contains" and "not_contains" operators and elements to
2907 + Changed semantics of eq operator for LangSets to check for
2908 FcLangEqual so that any match will do
2910 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2911 of FcValueEqual to check for identical values when inserting into
2912 the results. This broke when the above semantic change was made,
2913 now it uses FcValueEqual which is "more correct" in any case.
2915 Thu Aug 22 00:32:29 PDT 2002 keithp
2917 + Reimplement FC_LANG as new datatype. Lists of strings
2918 was consuming over a megabyte of memory for 401 fonts.
2920 + Freeze patterns loaded from cache files. This shares
2921 common value lists and common patterns which saves
2922 considerable memory.
2924 + Change the denotation of 'constant' charsets to use special
2925 ref value instead of separate boolean.
2927 + Clean up leak tracing stuff, found several unannoted alloc/free
2930 Tue Aug 20 16:17:37 PDT 2002 keithp
2932 + Fix memory leak when parsing matrices from XML
2934 Mon Aug 19 11:57:27 PDT 2002 keithp
2936 + Fix autoconf files to pass FONTCONFIG_PATH on
2937 compile line so that ${prefix} gets substituted
2940 + Use getc_unlocked/putc_unlocked on systems that
2941 provide them to avoid damage done to stdio by posix
2943 + Eliminate FC_PATTERN and FcTypePattern in favor of
2944 an extended api for FcConfigSubstitute which takes
2945 both the font and the pattern.
2947 + Add 'sans serif' alias for 'sans-serif' as some apps
2948 can't handle hyphens in family names
2950 + Eliminate pretense of support for libxml2
2952 + Comment origins of Han orthographies
2954 Tue Jul 30 18:37:09 PDT 2002 keithp
2956 + Add binding property to edit element so that strong
2957 binding values may be inserted by the config file.
2958 The default remains weak.
2960 Sun 28 Jul 04:16:55 PDT 2002 keithp
2962 + Tagged release candidate 1 in the CVS tree and
2963 placed fcpackage.rc1.tar.gz for distribution
2965 Thu Aug 1 08:55:08 PDT 2002 keithp
2967 + Fixed autoconf builds to always specify install
2968 target files (for BSD). Also fixed to
2969 define FONTCONFIG_PATH in config.h so that
2970 nonstandard installs will actually work.