1 2006-03-03 Patrick Lam <plam@mit.edu>
2 * src/fccache.c (FcCacheSkipToArch, FcDirCacheProduce):
3 * src/fcfreetype.c (GetScriptTags):
4 * src/fcfs.c (FcFontSetDistributeBytes):
5 * src/fcpat.c (FcValueListEntCreate, FcValueListNeededBytes):
7 Get rid of C++-style comments.
9 2006-03-03 Patrick Lam <plam@mit.edu>
12 Enable creation of 2.3.94 Debian packages.
14 2006-03-02 Egmont Koblinger <egmont@uhulinux.hu>
17 * src/fclang.c (FcCharSetForLang):
19 Fix suspicious return expression which causes junk
22 2006-02-24 Patrick Lam <plam@mit.edu>
26 * fontconfig/fontconfig.h:
28 Bump version to 2.3.94.
30 2006-02-24 Patrick Lam <plam@mit.edu>
35 2006-02-24 Patrick Lam <plam@mit.edu>
36 * conf.d/10-fonts-persian.conf:
38 Remove unconditional emboldening (per Behdad's instructions).
42 Add @s to hide some echos.
44 2006-02-24 Mike Fabian <mfabian@suse.de>
45 Takashi Iwai <tiwai@suse.de>
48 * src/fcfreetype.c (GetScriptTags):
50 Fix double-free on error case.
52 2006-02-21 Patrick Lam <plam@mit.edu>
53 * fc-lang/fc-lang.c (scan):
55 Strip \r and whitespace from input; fixes bug 3454.
57 2006-02-21 Patrick Lam <plam@mit.edu>
58 * fc-lang/fc-lang.c (main):
60 Allocate large arrays statically in fc-lang to fix crashes under
63 2006-02-21 Diego Petten <flameeyes@gentoo.org>
64 * src/fcfreetype.c (FcFreeTypeCharIndex):
66 Pass the buck; make fontconfig not crash on pango badness.
68 2006-02-21 Patrick Lam <plam@mit.edu>
69 * conf.d/10-fonts-persian.conf:
71 Use embeddedbitmap rather than rh_prefer_bitmap.
73 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
76 * src/fccache.c (FcDirCacheWrite):
77 * src/fcdir.c (FcFileScanConfig):
78 * src/fcfreetype.c (FcStringInPatternElement):
79 * src/fcxml.c (FcParseFamilies):
80 * src/ftglue.c (ftglue_face_goto_table):
82 Eliminate redundancies.
84 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
87 * fc-list/fc-list.c (main):
88 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
89 * src/fcstr.c (FcStrStr):
90 * src/fcxml.c (FcConfigSaveAttr):
92 Eliminate unused vars reported by Intel's compiler.
94 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
99 Remove one more archaic character.
101 2006-02-21 Ross Burton <ross@burtonini.com>
102 reviewed by: plam, keithp
104 * src/fcxml.c (FcParsePatelt):
106 Freeze patterns created by configuration file for tiny
107 memory savings (every little bit helps).
109 2006-02-21 Mike Fabian <mfabian@suse.de>
112 * fc-cat/fc-cat.c (main):
114 Initialize fontconfig library in fc-cat to avoid segfault.
116 2006-02-18 Patrick Lam <plam@mit.edu>
117 * fc-cache/fc-cache.c (scanDirs):
118 * src/fccache.c (FcCacheReadDirs):
119 * src/fcdir.c (FcDirScanConfig):
121 Fix the underlying cause of the below segfault (must usually
122 call FcDirCacheHasCurrentArch after FcDirCacheValid).
124 2006-02-18 Patrick Lam <plam@mit.edu>
125 * src/fccache.c (FcDirCacheHasCurrentArch):
127 Fix triggering of segfault caused by misreading cache files
128 (reported by fcrozat).
130 2006-02-17 Patrick Lam <plam@mit.edu>
131 * src/fcint.h (FC_CACHE_MAGIC):
133 Bump up magic version; we changed the binary format.
135 2006-02-17 Patrick Lam <plam@mit.edu>
136 * fc-cat/fc-cat.c (main):
138 Enable fc-cat to print out old-style cache info when given a
141 2006-02-16 Patrick Lam <plam@mit.edu>
142 * src/fccache.c (FcDirCacheHasCurrentArch):
144 Deal correctly with changing FC_CACHE_MAGIC.
146 2006-02-16 Patrick Lam <plam@mit.edu>
147 * fc-cache/fc-cache.c (usage, scanDirs, main):
149 Add -r --really-force option which blows away cache files and then
152 2006-02-16 Patrick Lam <plam@mit.edu>
153 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
155 Don't bail if fontconfig can't remove a dir cache file.
156 Skip the ID of a cache file when copying.
157 Eliminate 'source file too small' bug in FcDirCacheWrite.
159 2006-02-13 Patrick Lam <plam@mit.edu>
160 * src/fcfreetype.c (FcFreeTypeQuery):
162 Fix memory leak in error condition code.
164 2006-02-13 Mike Fabian <mfabian@suse.de>
166 * src/fcfreetype.c (FcFreeTypeQuery):
168 Skip bitmap fonts which can't even get it together enough to
169 declare a family name; this appears to reproduce previous
170 fontconfig behaviour.
172 2006-02-10 Takashi Iwai <tiwai@suse.de>
174 * src/fccache.c (FcDirCacheOpen):
176 Try to open /var/cache/fontconfig/[hashed name] before
177 fonts.cache-2 in a directory, because /var/cache/fontconfig
178 failures ought to be fixable, unlike fonts.cache-2 failures,
179 which may leave you screwed.
181 2006-02-10 Takashi Iwai <tiwai@suse.de>
183 * src/fcmatch.c (FcFontSetMatch):
185 Use a tri-state to mark the fonts which didn't get blocked but
186 were just missing an element, to distinguish them from the
187 fonts that do match the element.
189 2006-02-10 Takashi Iwai <tiwai@suse.de>
191 * src/fcmatch.c (FcFontSetMatch):
193 Don't kill fonts because they don't declare an element that's
196 2006-02-09 Patrick Lam <plam@mit.edu>
197 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
198 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
200 Define and pass O_BINARY to open if appropriate, for those
201 platforms that need it. Reported by Doodle.
203 2006-02-09 Patrick Lam <plam@mit.edu>
204 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
207 Fix problem with missing 'en' due to euro.patch: change
208 cache file format slightly to coincide with that generated
211 2006-02-07 Patrick Lam <plam@mit.edu>
212 * src/fccache.c (FcCacheReadDirs):
216 2006-02-07 Patrick Lam <plam@mit.edu>
217 * src/fcdir.c (FcDirScanConfig):
219 Don't reject dirs that can't be normalized (fixes lilypond, and
220 is correct in the context of application font directories.)
222 2006-02-07 Takashi Iwai <tiwai@suse.de>
225 * src/fccache.c (FcCacheReadDirs):
227 Use normalized directory name exclusively in FcCacheReadDirs.
229 2006-02-07 Dirk Mueller <dmueller@suse.com>
232 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
234 Perf optimizations. Inline FcValueCanonicalize,
235 reduce FcValueListPtrU usage, remove redundant cast.
237 2006-02-07 Takashi Iwai <tiwai@suse.de>
240 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
243 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
244 Declare extern for static arrays as arrays, not pointers.
245 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
247 2006-02-07 Dirk Mueller <dmueller@suse.com>
260 Add Euro sign to list of symbols required by European languages.
262 2006-02-07 Patrick Lam <plam@mit.edu>
263 * src/fccache.c (FcCacheReadString):
265 Fix hidden variable warning.
267 2006-02-07 Dirk Mueller <dmueller@suse.com>
270 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
272 Remove de-escaping logic because FcCacheWriteString
273 doesn't escape anyway. Do blockwise reading instead
274 of byte-wise for performance.
276 2006-02-06 Patrick Lam <plam@mit.edu>
277 Takashi Iwai <tiwai@suse.de>
279 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
281 Don't loop infinitely on recursive symlinks (client-side).
283 2006-02-06 Takashi Iwai <tiwai@suse.de>
285 * fc-cache/fc-cache.c (scanDirs, main):
287 Don't loop infinitely on recursive symlinks.
289 2006-02-06 Takashi Iwai <tiwai@suse.de>
291 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
292 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
293 FcGlobalCacheSave, FcCacheReadDirs):
296 Skip subdirs when skipping over stale bits of global cache.
297 Introduce state machine into FcGlobalCacheDir to avoid
298 doing inappropriate operations on global dir entries, e.g.
299 writing out an out-of-date cache entry.
301 2006-02-06 Takashi Iwai <tiwai@suse.de>
303 * src/fcdir.c (FcFileScanConfig):
305 Hoist FcFileIsDir check out of FcFileScanConfig loop.
307 2006-02-06 Takashi Iwai <tiwai@suse.de>
310 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
311 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
313 Don't rescan when trying to normalize a non-declared font dir.
314 Don't add font dirs multiple times (even if they're aliased).
316 2006-02-06 Dirk Mueller <dmueller@suse.de>
319 * src/fcfs.c (FcFontSetUnserialize):
321 Explain apples/oranges comparison and fix compilation error.
323 2006-02-06 Dirk Mueller <dmueller@suse.de>
326 * src/fcfs.c (FcFontSetUnserialize):
328 Insert check for integer overflow in # of fonts.
330 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
334 * fc-cache/Makefile.am:
335 * fc-cat/Makefile.am:
336 * fc-list/Makefile.am:
338 Make 'make distcheck' work with automake 1.6.3.
340 2006-02-03 Takashi IWAI <tiwai@suse.de>
343 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
346 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
347 FcDirCacheConsume, FcDirCacheWrite)
348 * src/fcxml.c (FcConfigMessage):
350 Check I/O call return values and eliminate unused variable
353 2006-02-03 Takashi Iwai <tiwai@suse.de>
356 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
360 2006-02-03 Dirk Mueller <dmueller@suse.de>
363 * src/fcfs.c (FcFontSetUnserialize):
365 Gracefully handle the case where a cache asserts that it
366 has a negative number of fonts, causing overflow.
368 2006-02-03 Patrick Lam <plam@mit.edu>
369 * src/fccache.c (FcDirCacheUnlink):
371 Fix double free in error case.
373 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
374 Stephan Kulow <coolo@suse.de>
377 * fc-cache/Makefile.am:
379 Replace 'stamp' target with mkinstalldirs.
381 2006-01-31 Mike Fabian <mfabian@suse.de>
384 * src/fccache.c (FcGlobalCacheLoad):
386 Toast broken global cache files.
388 2006-01-30 Patrick Lam <plam@mit.edu>
389 * src/fccache.c (FcGlobalCacheReadDir):
391 Actually use the directories that I added to the global cache.
394 2006-01-30 Mike Fabian <mfabian@suse.de>
397 * fc-cache/fc-cache.c (scanDirs):
399 Don't stop scanning if a directory in fonts.conf doesn't
400 exist, because subsequent directories might exist.
402 2006-01-30 Patrick Lam <plam@mit.edu>
403 * src/fccache.c (FcGlobalCacheLoad):
405 Make global cache work again after putting dir names into global
406 cache (I misplaced the recording of a file offset).
408 2006-01-30 Patrick Lam <plam@mit.edu>
409 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
411 Update fc-cat to handle subdir lists in global cache file.
413 * src/fccache.c (FcGlobalCacheLoad):
415 Another FcCacheReadString return value check.
417 2006-01-30 Mike Fabian <mfabian@suse.de>
420 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
421 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
423 Make fccache more resilient to broken cache files by checking
424 return value of FcCacheReadString all the time.
426 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
429 * fc-match/fc-match.1:
430 * fc-lang/fc-lang.man:
432 Remove references to dead fontconfig(3) manpages in
433 other fontconfig manpages.
435 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
438 * doc/fcpattern.fncs:
440 Fix world's tiniest typo in code example.
442 2006-01-29 Mike Fabian <mfabian@suse.de>
445 * src/fccache.c (FcGlobalCacheReadDir):
447 Fix global cache reads of subdirectories.
449 2006-01-29 Patrick Lam <plam@mit.edu>
451 Add documentation for FcConfigNormalizeFontDir.
453 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
454 FcGlobalCacheUpdate, FcGlobalCacheSave):
455 * src/fcdir.c (FcDirScanConfig):
458 Write directory information to global caches to fix make check
459 (reported by Ronny V. Vindenes). This changes the global cache
462 2006-01-27 Patrick Lam <plam@mit.edu>
463 * fc-cache/fc-cache.c (scanDirs):
464 * fontconfig/fontconfig.h:
466 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
468 Move FcConfigNormalizeFontDir call so that it doesn't result in
469 infinite recursion (reported by Ronny V. Vindenes).
471 2006-01-26 Patrick Lam <plam@mit.edu>
472 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
473 * src/fccfg.c (FcConfigNormalizeFontDir):
475 Add a couple of missing normalizations to make fc-cache work
476 right; only scan subdirectories once.
478 2006-01-26 Mike Fabian <mfabian@suse.de>
481 * src/fcacache.c (FcGlobalCacheReadDir):
483 Don't crash on non-existant directories in global cache.
485 2006-01-26 Patrick Lam <plam@mit.edu>
486 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
487 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
488 * src/fcdir.c (FcDirScanConfig):
489 * src/fcxml.c (FcEndElement):
491 Stop trampling the directory name when writing out caches.
492 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
493 subdirs when necessary. Don't scan directories that can't be
496 2006-01-25 Patrick Lam <plam@mit.edu>
497 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
498 * src/fccfg.c (FcConfigEvaluate):
499 * src/fcfreetype.c (FcPatternAddWithBinding):
501 Fix additional memory leaks reported by Ronny V. Vindenes: don't
502 invoke FcValueSave on hashed static strings in
503 FcPatternAddWithBinding.
505 Add another st_dev check in FcDirCacheOpen.
507 2006-01-24 James Su <james.su@gmail.com>
510 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
511 * fc-lang/zh_hk.orth:
513 Treat zh-hk fonts differently from zh-tw fonts. This patch may
514 cause fontconfig to treat A-X fonts differently from A-Y fonts;
515 please mail the fontconfig list if this causes any problems.
517 2006-01-24 Patrick Lam <plam@mit.edu>
518 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
519 * src/fcfreetype.c (FcFreeTypeQuery):
521 Fix memory leaks reported by Ronny V. Vindenes.
523 2006-01-19 Andreas Schwab <schwab@suse.de>
526 * src/fcpat.c (FcStrNeededBytes):
528 Fix for unaligned memory accesses.
530 2006-01-18 Mike Fabian <mfabian@suse.de>
533 * src/fcdir.c (FcDirScanConfig):
535 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
536 calls to avoid crashes.
538 2006-01-14 Patrick Lam <plam@mit.edu>
539 * src/fccache.c (FcDirCacheConsume):
541 Fix segfault when consuming zero-length caches in fc-cat
542 (which has no config, so FcConfigAddFontDir shouldn't be called.)
544 2006-01-14 Patrick Lam <plam@mit.edu>
545 * fc-cache/fc-cache.c (scanDirs):
546 * fontconfig/fontconfig.h:
547 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
548 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
549 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
550 * src/fcdir.c (FcDirScanConfig):
553 Compare device numbers as well as inodes.
554 Always normalize directory names before comparing them.
556 2006-01-11 Mike Fabian <mfabian@suse.de>
559 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
561 Allocate extra space for appended '/' in directory name.
563 2006-01-10 Patrick Lam <plam@mit.edu>
564 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
565 FcDirCacheValid, FcDirCacheHasCurrentArch,
566 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
567 * fc-cache/fc-cache.c (main):
569 Explicitly add font dirs to config.fontDirs even if they're empty.
570 Set current config in fc-cache.c.
571 Fix treatment of cache directory as read from cache file; don't
572 use string equality to determine if we have the right file,
575 2006-01-09 Patrick Lam <plam@mit.edu>
576 * fc-cache/fc-cache.c (scanDirs):
577 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
578 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
579 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
580 * src/fccfg.c (FcConfigNormalizeFontDir):
581 * src/fcdir.c (FcDirScanConfig):
584 Normalize font dirs by using the form, as given in fonts.conf, and
585 recorded in FcConfig's fontDirs string set, as canonical.
587 Actually update config.fontDirs as font directories are scanned.
589 2006-01-08 James Su <james.su@gmail.com>
590 * src/fcmatch.c (FcFontSetMatch):
592 Fix matching bug when multiple elements match; don't use
593 the sum of all scores, but the best score.
595 Also more perf opts, e.g. evaluate best over all font sets
596 rather than on a per-set basis (and other changes).
598 2006-01-08 Patrick Lam <plam@mit.edu>
599 * src/fccache.c (FcDirCacheConsume):
601 Properly skip past dir caches that contain zero fonts (as occurs
602 in global caches.) Reported by Mike Fabian.
604 2006-01-06 Patrick Lam <plam@mit.edu>
605 * src/fcdbg.c (FcPatternPrint):
607 Print out full pathname in fc-match -v as well. Reported by
610 2006-01-06 Mike Fabian <mfabian@suse.de>
613 * src/fcname.c (FcNameParse):
615 Fix bug where fc-match crashes when given __DUMMY__ property to
618 (I added the __DUMMY__ string to enable callers of
619 FcObjectToPtrLookup to distinguish an error return from a
620 successful return. -PL)
622 2006-01-05 Patrick Lam <plam@mit.edu>
625 Add self to AUTHORS list.
627 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
628 FcCacheFileRead, FcCachePrintSet, main):
629 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
630 FcGlobalCacheSave, FcCacheNextOffset,
631 FcDirCacheHasCurrentArch, FcDirCacheRead,
632 FcDirCacheConsume, FcDirCacheWrite):
634 * src/fcpat.c (comment):
636 Minor change to global cache file format to fix fc-cat bug
637 reported by Frederic Crozat, and buglet with not globally caching
638 directories with zero fonts cached.
640 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
643 * src/fccfg.c (FcConfigEvaluate):
645 Fix double-free which occurs because FcValueCanonicalize doesn't
646 create an extra copy of the returned value, it only canonicalizes
649 2006-01-02 Patrick Lam <plam@mit.edu>
650 * doc/fontconfig-user.sgml:
652 Fix version of .cache file (currently 1 -> currently 2). Reported
655 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
658 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
660 Shut up GCC warnings on amd.
662 2005-12-20 Patrick Lam <plam@mit.edu>
666 * fontconfig/fontconfig.h:
668 Bump version to 2.3.93.
670 2005-12-20 Patrick Lam <plam@mit.edu>
671 * src/fccharset.c (FcLangCharSetPopulate):
672 * src/fcint.h (FcCacheBankToIndex):
674 Avoid check on _fcBankId nullness and fix case where it used to
677 2005-12-20 Patrick Lam <plam@mit.edu>
678 * src/fcxml.c (FcConfigParseAndLoad):
680 Use open instead of fopen (requested by Phil Race for Sun).
682 2005-12-20 Patrick Lam <plam@mit.edu>
683 * src/fccache.c (FcDirCacheWrite);
684 * fc-cache/Makefile.am:
686 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
689 2005-12-20 Patrick Lam <plam@mit.edu>
690 * src/fcfreetype.c (FcFreeTypeQuery):
692 Restore code to skip over PCF fonts that have no encoded
694 (We guess that a font is PCF by presence of the PIXEL_SIZE
697 2005-12-12 Patrick Lam <plam@mit.edu>
698 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
700 Read and write the original location as a fallback for the
701 hashed cache file locations. This is mostly for users to be
702 able to have per-directory cache files.
704 2005-12-12 Patrick Lam <plam@mit.edu>
705 * fc-cache/fc-cache.c (scanDirs):
706 * fc-cache/Makefile.am:
707 * src/fccache.c (FcDirCacheHashName):
709 Improve error message when fc-cache can't write the cache. Add
710 missing slash. Reported by Behdad. Incorporate Behdad's patch to
711 create /var/cache/fontconfig when appropriate.
713 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
716 * src/fcxml.c (FcConfigGetAttribute):
718 Fix crash reported by Frederic Crozat when using libxml2.
720 2005-12-09 Patrick Lam <plam@mit.edu>
723 * fc-cache/Makefile.am:
724 * fc-cat/Makefile.am:
726 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
727 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
728 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
729 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
730 FcDirCacheHasCurrentArch, FcDirCacheHashName,
731 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
733 Migrate cache files from fonts directories to
734 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
735 but requires that all caches get rebuilt.
737 Also, autogen.sh now needs the additional parameter
738 --localstatedir=/var.
740 2005-12-07 Patrick Lam <plam@mit.edu>
741 * src/fcpat.c (FcPatternAddString):
743 Because we've changed FcPatternAddString to use FcStrStaticName
744 and not FcValueSave, explicitly handle the case of a null string.
746 2005-12-06 Patrick Lam <plam@mit.edu>
747 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
751 2005-12-05 Patrick Lam <plam@mit.edu>
752 * src/fcname.c (FcNameGetObjectType):
754 Don't assign types to user object names.
756 2005-12-05 Patrick Lam <plam@mit.edu>
757 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
759 Don't free strings that have been returned from FcStrStaticName.
761 2005-12-01 Patrick Lam <plam@mit.edu>
762 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
764 Add codepath for reading global cache files as well.
766 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
769 * conf.d/10-fonts.persian.conf:
770 * conf.d/Makefile.am:
772 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
774 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
777 * src/fcxml.c (FcConfigParseAndLoad):
779 Only add a config file to the set of config files once.
781 2005-11-29 Patrick Lam <plam@mit.edu>
782 * src/fcint.h (FcCacheBankToIndex);
784 Fix segfault by guarding array dereference.
786 2005-11-29 Dirk Mueller <dmueller@suse.de>
790 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
791 FcCacheBankToIndex, FcCacheBankToIndexMTF,
795 Refactor FcCacheBankToIndex into an inlineable part
796 (in fcint.h) which checks the front of the list and a
797 non-inlineable part which finds and moves the appropriate element
798 to the front of the list.
800 2005-11-29 Patrick Lam <plam@mit.edu>
801 * src/fccfg.c (FcConfigBuildFonts):
802 * src/fccache.c (FcCacheReadDirs):
804 Make the perf guys hate me a bit less: hoist the directory-name
805 FcConfigAcceptFont check for cached fonts up to directory cache
806 read time, rather than running it for each font.
808 2005-11-29 Patrick Lam <plam@mit.edu>
809 * src/fccfg.c (FcConfigBuildFonts):
811 * src/fcpat.c (FcPatternFindFullFname):
813 Don't make FcPatternFindFullFname available to fccfg, it's not
814 really safe. Instead go through FcPatternGetString (sorry,
815 perf guys.) Also, use globs for dirs as well.
817 2005-11-28 Patrick Lam <plam@mit.edu>
818 * src/fccfg.c (FcConfigBuildFonts):
822 2005-11-28 Patrick Lam <plam@mit.edu>
824 * src/fcpat.c (FcPatternFindFullFname):
825 * src/fccfg.c (FcConfigBuildFonts):
827 Fix problem dating back at least to 2.3.2 where globs weren't
828 being applied to patterns loaded from a cache.
830 2005-11-28 Patrick Lam <plam@mit.edu>
831 * doc/fontconfig-user.sgml:
833 Fix some obvious spelling mistakes.
835 2005-11-28 Dirk Mueller <dmueller@suse.com>
836 Stephan Kulow <coolo@suse.de>
839 * src/fcmatch.c (FcFontSetMatch):
841 Don't kill all fonts during match (oops!)
844 2005-11-25 Dirk Mueller <dmueller@suse.com>
845 Stephan Kulow <coolo@suse.de>
846 Michael Matz <matz@suse.de>
849 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
852 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
853 inline FcCompare into FcFontSetMatch and reorder the
854 loops, adding a boolean array which blocks patterns from future
855 consideration if they're known to not be best on some past
858 2005-11-26 Dirk Mueller <dmueller@suse.com>
861 * src/fcmatch.c (FcCompareValueList):
865 2005-11-25 Patrick Lam <plam@mit.edu>
866 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
868 Don't do random matching when bad objects are passed into
871 2005-11-25 Patrick Lam <plam@mit.edu>
873 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
874 FcPatternSerialize, FcPatternUnserialize,
875 FcValueListEnsureBank, FcValueListDistributeBytes,
876 FcValueListUnserialize):
878 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
879 _fcPatternElts, _fcValueLists for consistency.
881 2005-11-25 Dirk Mueller <dmueller@suse.com>
886 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
888 2005-11-25 Patrick Lam <plam@mit.edu>
890 * src/fccache.c (FcDirCacheConsume):
891 * src/fccharset.c (FcCharSetUnserialize):
892 * src/fcfs.c (FcFontSetUnserialize):
893 * src/fclang.c (FcLangSetUnserialize):
894 * src/fcname.c (FcObjectUnserialize):
895 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
896 FcPatternUnserialize):
898 Pass around FcCache *s to the Unserialize functions for extra
899 consistency (and less overhead, for what that's worth).
901 2005-11-24 Dirk Mueller <dmueller@suse.com>
905 * src/fcmatch.c (FcCompare*, FcFontSetSort):
906 * src/fcname.c (FcNameUnparseValue):
908 Inline the *PtrU functions to gain perf.
909 Remove unneeded params for the FcCompare* functions.
911 2005-11-24 Dirk Mueller <dmueller@suse.com>
914 * src/fcint.h, fontconfig/fontconfig.h:
916 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
918 * src/fcpat.c, src/fcint.h, src/fcname.c:
920 Check for type validity during FcPatternAddWithBinding, don't
921 verify type in FcFontMatch, don't call FcCanonicalize here
922 (which always does a deep copy).
924 2005-11-24 Dirk Mueller <dmueller@suse.com>
927 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
928 * src/fcpat.c (FcPatternAddWithBinding):
930 Make FcCompareString and FcCompareFamily less expensive.
931 Only add a value for FC_FAMILY if the proposed value is a string.
933 2005-11-24 Dirk Mueller <dmueller@suse.com>
936 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
937 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
938 * src/fcint.h (FcDebug):
940 Inline FcDebug invocations and only initialize once, in FcInit*.
941 Improve debug msg in FcPatternPrint.
943 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
946 * fontconfig/fontconfig.h:
949 Minor code warning cleanups.
951 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
954 * fc-match/fc-match.c (main):
956 Make getopt_long accept -s parameter to fc-match as well.
958 2005-11-21 Dirk Mueller <dmueller@suse.com>
961 * src/fcmatch.c (FcCompareValueList):
963 Manually perform inlining & partial redundancy elimination to
964 reduce calls to FcValueListPtrU.
966 2005-11-21 Dirk Mueller <dmueller@suse.com>
969 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
970 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
972 Only invoke strlen() when really necessary.
974 2005-11-19 Matthias Clasen <mclasen@redhat.com>
978 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
983 Get rid of the use of freetype internal headers in fcfreetype.c,
984 since those headers will go away with freetype 2.2. Replace with
985 public domain ftglue code from pango. Note that the patch removes
986 some extra error checking in FT_Get_BDF_Property() and comments
987 out the skipping of empty pcf fonts.
989 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
992 * fc-lang/fc-lang.c (main):
994 Further fix of patch from 2005-11-04: miscounted numbers count
995 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
996 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
998 Removed leafidx_count and numbers_count since they are the same
999 and replaced them with offset_count.
1001 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1004 * fc-cat/fc-cat.c (main):
1006 Don't crash when fc-cat invoked with no arguments.
1008 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1011 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
1013 Fix invalid read access caused by premature free and
1014 GCC4 warnings in libxml2 codepath.
1016 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
1019 * src/fccfg.c (FcConfigValues):
1021 List iteration not needed in FcConfigValues, since it's building
1022 up the list itself; we can just strip FcVoid elements during
1025 2005-11-17 Patrick Lam <plam@mit.edu>
1026 * src/fccfg.c (FcConfigValues):
1028 Fix crash on invalid constants in config files (forgot to update
1029 a pointer upon list iteration.)
1031 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
1034 * src/fcxml.c (FcTypecheckExpr):
1036 Complain about invalid constants in config files.
1038 2005-11-17 Andreas Schwab <schwab@suse.de>
1041 * src/fccache.c (FcGlobalCacheSave):
1043 Don't add current_arch_start more than once.
1045 2005-11-16 Patrick Lam <plam@mit.edu>
1046 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1047 * src/fcfs.c (FcFontSetUnserialize):
1048 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1049 * src/fcpat.c (FcStrUnserialize):
1051 Fix ordering of ALIGN with respect to saving block_ptr; add
1052 another ALIGN to fcfs.c.
1054 2005-11-16 Patrick Lam <plam@mit.edu>
1055 * src/fccache.c (FcDirCacheProduce)
1057 Fix case where alignment bytes bumped up metadata->count
1058 causing unwarranted failures to write cache files.
1059 (Reported by Stephan Kulow).
1061 2005-11-16 Patrick Lam <plam@mit.edu>
1062 * src/fccache.c (FcDirCacheProduce):
1063 * src/fccharset.c (FcCharSetDistributeBytes):
1064 * src/fcfs.c (FcFontSetDistributeBytes):
1066 * src/fclang.c (FcLangSetDistributeBytes):
1067 * src/fcname.c (FcObjectDistributeBytes):
1068 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1071 Add *NeededBytesAlign(), which overestimates the padding which is
1072 later added by the new ALIGN macro. Fix alignment problems on
1073 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1074 version by Andreas Schwab).
1076 2005-11-16 Stephan Kulow <coolo@kde.org>
1081 Use sysconf to determine proper PAGESIZE value; this
1082 appears to be POSIX-compliant. (reported by Andreas Schwab)
1084 2005-11-04 Patrick Lam <plam@mit.edu>
1085 * fc-lang/fc-lang.c:
1090 Fix bug 2878 (excessive relocations at startup for charsets,
1091 reported by Ross Burton): fc-lang/fc-lang now creates the
1092 static form of the langset, not the dynamic form, so that
1093 the charsets should now be in .rodata.
1095 2005-11-04 Patrick Lam <plam@mit.edu>
1096 * src/fcdir.c (FcDirScanConfig):
1098 Add test for validity of directory caches that
1099 somehow got lost (reported by make distcheck).
1101 2005-11-04 Patrick Lam <plam@mit.edu>
1105 * fontconfig/fontconfig.h:
1107 Bump version to 2.3.92.
1109 2005-11-02 Patrick Lam <plam@mit.edu>
1110 * src/fcpat.c (FcPatternDuplicate):
1112 Fix argument ordering problem in call to FcPatternTransferFullFname.
1114 2005-11-02 Patrick Lam <plam@mit.edu>
1115 * src/fcfreetype.c (FcFreetypeQuery):
1116 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1117 FcPatternTransferFullFname):
1119 Fix warnings and embarrassing double-free error.
1121 2005-11-02 Zhe Su <zsu@novell.com>
1126 Change the rule for artificial emboldening in fonts.conf.in. This
1127 enables the support for artificial emboldening included in cairo.
1129 2005-11-02 Patrick Lam <plam@mit.edu>
1130 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1132 Don't zero out full names for FC_REF_CONSTANT fonts;
1133 also, duplicate full names when transferring, and free
1134 full names when freeing the associated font.
1135 Reported by Jinghua Luo.
1137 2005-11-02 Patrick Lam <plam@mit.edu>
1138 * fc-cache/fc-cache.c (scanDirs):
1139 * src/fcpat.c (FcValueListSerialize):
1141 Revert the previous patch and commit the correct patch:
1142 I forgot a canonicalization in FcValueListSerialize, so
1143 that it would choke on already-serialized input files. Duh!
1145 2005-11-02 Patrick Lam <plam@mit.edu>
1146 * fc-cache/fc-cache.c (scanDirs):
1148 Forcibly rescan a directory before writing a fresh local
1149 cache file for that directory, fixing the losing-fonts
1150 problem reported by Mike Fabian and also apparently the
1151 font cache file corruption.
1153 2005-11-02 Patrick Lam <plam@mit.edu>
1154 * src/fccache.c (FcGlobalCacheLoad):
1156 Fix thinko: actually, the whole global cache is stale
1157 if the global cache is older than the (newest) config file.
1159 2005-11-02 Patrick Lam <plam@mit.edu>
1160 * src/fccache.c (FcGlobalCacheLoad):
1161 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1164 Declare the global cache of a directory's contents to be stale if
1165 the directory is newer than the (newest) configuration file.
1167 2005-10-31 Patrick Lam <plam@mit.edu>
1169 * src/fclist.c (FcListAppend):
1170 * src/fcmatch.c (FcFontRenderPrepare):
1171 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1172 FcPatternFreeze, FcPatternBaseFreeze):
1174 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1175 applications continue breaking.
1177 2005-10-31 Patrick Lam <plam@mit.edu>
1178 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1179 * src/fcfreetype.c (FcFreeTypeQuery):
1181 Fix small memory error (tried to free argv); use basename and
1182 dirname correctly (they can modify their arguments).
1184 2005-10-31 Patrick Lam <plam@mit.edu>
1192 Reinstate basename patch, but keep a hash table linking FcPatterns
1193 to their fully-qualified font names for clients' benefit. Clients
1194 only pay for the font names once they request the FC_FILE property
1195 from an FcPattern, but the font name is malloc'd at that point (i.e.
1196 not mmapped: that's impossible, since it may vary between machines.)
1197 Clients do have to pay for a copy of the path name per cache file.
1199 Note that FcPatternGetString now does some rewriting if you ask
1200 for an FC_FILE, appending the pathname as appropriate.
1202 2005-10-31 Patrick Lam <plam@mit.edu>
1203 * src/fcfreetype.c (FcFreeTypeQuery):
1205 Revert basename patch, which breaks fontconfig clients on my system.
1207 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1210 * fontconfig/fonts.conf.in:
1211 * fontconfig/fontconfig.h:
1215 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1216 to load embedded bitmaps or not.
1218 2005-10-25 Patrick Lam <plam@mit.edu>
1219 * src/fcfreetype.c (FcFreeTypeQuery):
1221 Only add basename to patterns' FC_FILE element, not any part of
1224 2005-10-22 Patrick Lam <plam@mit.edu>
1227 Add some more consts, fixing more GCC4 warnings.
1229 2005-10-22 Zhe Su <zsu@novell.com>
1232 Support localized font family and style names.
1233 This has been reported to break old apps like xfd, but modern
1234 (gtk+/qt/mozilla) apps work fine.
1236 2005-10-21 Patrick Lam <plam@mit.edu>
1237 * src/fccache.c (FcGlobalCacheLoad):
1239 Destroy the global cache file if it's terminally broken. (reported by
1242 2005-10-21 Patrick Lam <plam@mit.edu>
1243 * fc-list/fc-list.c (main):
1244 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1245 * fontconfig/fontconfig.h:
1247 Prevent fc-list from escaping strings when printing them (reported by
1250 2005-10-20 Marcus Meissner <meissner@suse.de>
1253 * fontconfig/fontconfig.h:
1255 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1257 2005-10-14 Ross Burton <ross@burtonini.com>
1260 * fc-glyphname/fc-glyphname.c:
1263 Add consts to variables so as to move arrays into .rodata.
1265 2005-10-14 Mike Fabian <mfabian@suse.de>
1268 * src/fccache.c (FcDirCacheUnlink):
1270 Check existence of directory cache file before attempting to unlink.
1272 2005-10-13 Patrick Lam <plam@mit.edu>
1273 * src/fccache.c (FcDirCacheUnlink):
1275 Fix flipped return value on unlink. (Reported by Mike Fabian)
1277 2005-10-12 Patrick Lam <plam@mit.edu>
1280 * src/fcdir.c (FcDirScanConfig):
1283 When fc-cache is run without --force, use directory cache files
1284 to speed up fc-cache run time. (Reported by Mike Fabian)
1286 2005-10-06 Patrick Lam <plam@mit.edu>
1288 * src/fcname.c (FcObjectToPtr):
1289 * src/fcpat.c (FcStrStaticName):
1291 Add padding to make valgrind and glibc not hate each other
1292 when calling strlen().
1294 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1295 reviewed by: plam & keithp
1299 Modify config file to use Greek fonts before Asian fonts with
1302 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1303 reviewed by: plam & keithp
1307 Use libtool -no-undefined flag on all platforms.
1309 2005-10-05 Patrick Lam <plam@mit.edu>
1310 * src/fccache.c (FcCacheHaveBank):
1312 Implement move-to-front array for banks (perf regression
1313 reported by Ronny V. Vindenes).
1315 2005-10-04 Patrick Lam <plam@mit.edu>
1316 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1317 FcDirCacheHasCurrentArch):
1318 * fc-cache/fc-cache.c (scanDirs):
1319 * fontconfig/fontconfig.h:
1321 Add new API which unlinks directory caches and checks dir caches
1322 for existence of appropriate sections. Fix fc-cache to unlink
1323 stale cache files and save directory caches that lack relevant
1326 2005-10-03 Patrick Lam <plam@mit.edu>
1327 * src/fccache.c (FcDirCacheValid):
1329 Ensure that a directory cache has the appropriate section
1330 before reporting that it is valid (reported by Matthias Clasen).
1332 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1340 Use libxml2 if requested (with --enable-libxml2) or if
1341 expat is not available.
1343 2005-09-29 Patrick Lam <plam@mit.edu>
1344 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1346 Fix multi-arch cache files: compute the position for the
1347 block to be added using info from OrigFile, not NewFile.
1349 2005-09-28 Patrick Lam <plam@mit.edu>
1350 * src/fccache.c (FcCacheMachineSignature):
1352 Cast results of sizeof() to unsigned int to get rid of
1353 warnings on x86_64 (thanks Matthias Clasen).
1355 2005-09-27 Patrick Lam <plam@mit.edu>
1356 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1359 Use FcAtomic to rewrite cache files.
1361 2005-09-27 Patrick Lam <plam@mit.edu>
1363 * src/fccache.c (FcDirCacheWrite):
1365 Don't unlink the fonts.cache-2 file even if there's no data
1366 to write; just write an empty cache file. (thanks Lubos Lunak)
1368 2005-09-27 Patrick Lam <plam@mit.edu>
1370 * src/fccache.c (FcDirCacheWrite):
1372 Allocate room for the subdirectory names in each
1373 directory cache. Thanks to James Cloos for finding
1374 and diagnosing this bug!
1376 2005-09-22 Patrick Lam <plam@mit.edu>
1378 * fc-cache/fc-cache.sgml:
1379 * src/fccache.c (FcDirCacheWrite):
1380 * src/fccache.h (struct FcCache):
1382 Update documentation -- fc-cache's man page now says that you
1383 need to run fc-cache once per cached architecture; add some
1384 documentation to the FcCache structure.
1386 Make fc-cache write out fonts.cache-2 files for directories with
1387 no fonts (i.e. only subdirectories).
1389 2005-09-22 Patrick Lam <plam@mit.edu>
1391 * fc-cache/fc-cache.sgml:
1392 * fc-case/fc-case.c:
1393 * fc-glyphname/fc-glyphname.c:
1399 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1403 * fc-lang/fc-lang.c:
1404 * fontconfig/fcprivate.h:
1405 * fontconfig/fontconfig.h:
1419 Implement new mmaped cache for font information.
1420 Bump so revision to 2.3.90.
1422 2005-07-25 Keith Packard <keithp@keithp.com>
1424 * doc/fontconfig-user.sgml:
1425 * fc-glyphname/fc-glyphname.c: (scan), (main):
1426 * fc-lang/fc-lang.c: (FcConfigHome):
1427 * fc-match/fc-match.c: (main):
1428 * src/fccfg.c: (FcConfigHome):
1429 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1430 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1431 (addtag), (FcFontCapabilities):
1432 * src/fcpat.c: (FcValueListEntCreate):
1433 * src/fcstr.c: (FcStrCaseWalkerInit):
1434 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1436 Various GCC 4 cleanups for signed vs unsigned char
1438 Match only [0-9]*.conf files in <include>{directory}</include>
1439 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1441 2005-07-15 Carl Worth <cworth@cworth.org>
1444 * src/fcinit.c: (FcFini):
1445 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1448 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1449 Pull the FcObjectStateName hash table out to file scope, and add
1450 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1453 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1456 2005-06-16 Patrick Lam <plam@MIT.EDU>
1460 * src/fccfg.c: (FcConfigCompareValue):
1461 Make FcOpNotContains use FcStrStr for strings so that
1462 it matches semantics for !FcOpContains.
1464 2005-05-20 Keith Packard <keithp@keithp.com>
1468 Move fontconfig source package to libs as per override
1470 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1472 reviewed by: Mike Fabian
1475 The ka.orth file requires several characters which are not
1476 used anymore in modern Georgian and which are missing in the free
1477 Georgian TrueType fonts downloadable at:
1479 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1481 2005-04-27 Keith Packard <keithp@keithp.com>
1485 Update date to real 2.3.2 release date.
1486 Fix change attributions
1488 2005-04-27 Keith Packard <keithp@keithp.com>
1491 Bump so revision for 2.3.2
1492 * fc-cache/fc-cache.c: (scanDirs):
1493 Fix a few minor leaks in error cases.
1495 2005-04-23 Keith Packard <keithp@keithp.com>
1500 * fontconfig/fontconfig.h:
1501 Update for version 2.3.2
1503 2005-04-21 Keith Packard <keithp@keithp.com>
1505 * debian/fontconfig.postinst:
1506 Don't force bitmap font enable in default
1507 configuration; allows users to override this in
1517 * debian/po/pt_BR.po:
1518 * debian/po/templates.pot:
1520 * debian/po/zh_CN.po:
1521 Updated translations
1523 * fc-cache/fc-cache.c: (main):
1524 Destroy font configuration on exit to help valgrind
1527 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1528 (FcFreeTypeCheckGlyph):
1529 Use own transcoding routines in preference to iconv
1530 which appears to have leaks in some translators.
1531 Call iconv_close after using iconv (oops).
1533 Prefer unicode encoding of Euro char as some
1534 fonts mis-encode Euro in other ones.
1536 Must fetch bitmap glyphs to get width values
1537 to check for monospace/dual-width fonts.
1539 2005-04-13 Ross Burton <ross@burtonini.com>
1542 Check that a pattern isn't already frozen in FcPatternFreeze.
1544 2005-03-31 Ross Burton <ross@burtonini.com>
1549 Run all FcPattern objects through FcObjectStaticName, so that
1550 compares can be done on pointers instead of strings (#2659)
1552 2005-03-17 Tor Lillqvist <tml@novell.com>
1554 * src/fontconfig.def.in: Add the .dll to the dll name.
1556 2005-03-10 Keith Packard <keithp@keithp.com>
1558 * debian/README.Debian:
1559 Update to reflect configuration changes
1561 * debian/fontconfig.postinst:
1562 Fix Autohint vs Autohinter mistake
1563 * debian/fontconfig.templates:
1564 Adopt changes from Josselin Mouette for configuration descriptions
1565 Update debian to version 2.3.1-2
1567 2005-03-08 Keith Packard <keithp@keithp.com>
1571 Update debian for 2.3.1
1573 2005-03-09 Tor Lillqvist <tml@novell.com>
1575 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1578 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1581 2005-03-08 Keith Packard <keithp@keithp.com>
1585 * fontconfig/fontconfig.h:
1588 2005-03-05 Keith Packard <keithp@keithp.com>
1590 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1591 Include space and remove numbers from valid script tags.
1592 This ensures that tags like 'lao ' work while rejecting
1593 those which have any digits.
1594 Eliminate a spurious debugging variable (len)
1596 2005-03-05 Keith Packard <keithp@keithp.com>
1598 * src/fcfreetype.c: (addtag), (GetScriptTags),
1599 (FcFontCapabilities):
1600 Rework GSUB/GPOS script parsing to survive broken fonts.
1601 Thanks for the broken font go to Manish Singh
1603 2005-03-05 Keith Packard <keithp@keithp.com>
1608 * debian/fontconfig.config:
1609 * debian/fontconfig.templates:
1611 Include 2.3 release information in changelog
1612 Add Josselin Mouette as an Uploader
1613 Set hinting_type to low priority configuration option
1616 * debian/fontconfig.postinst:
1617 yes_bitmaps.conf -> yes-bitmaps.conf
1623 2005-03-02 Keith Packard <keithp@keithp.com>
1626 * conf.d/Makefile.am:
1627 * conf.d/autohint.conf:
1628 * conf.d/no-sub-pixel.conf:
1629 * conf.d/sub-pixel.conf:
1630 * conf.d/unhinted.conf:
1631 * debian/autohint.conf:
1632 * debian/fontconfig.install:
1633 * debian/fontconfig.postinst:
1634 * debian/fontconfig.templates:
1635 * debian/no-sub-pixel.conf:
1636 * debian/unhinted.conf:
1637 Move debian-specific conf file examples upstream.
1639 Sub-pixel configuration examples must smash subpixel value
1640 as Xft always sets it from X.
1642 Change sub-pixel rendering debconf descriptions from
1643 Enable/Disable to Always/Never.
1645 2005-03-02 Keith Packard <keithp@keithp.com>
1648 * conf.d/.cvsignore:
1650 Ignore more build detritus
1653 Add debian package construction stuff.
1655 * config/config.guess:
1656 * config/config.sub:
1657 Update to newer versions of these tools
1660 Get library manuals to build again (we love automake).
1662 * debian/README.Debian:
1663 * debian/autohint.conf:
1668 * debian/fontconfig-udeb.install:
1669 * debian/fontconfig.config:
1670 * debian/fontconfig.defoma:
1671 * debian/fontconfig.dirs:
1672 * debian/fontconfig.install:
1673 * debian/fontconfig.postinst:
1674 * debian/fontconfig.postrm:
1675 * debian/fontconfig.templates:
1676 * debian/libfontconfig1-dev.install:
1677 * debian/libfontconfig1.install:
1678 * debian/local.conf.md5sum:
1679 * debian/no-sub-pixel.conf:
1680 * debian/po/POTFILES.in:
1689 * debian/po/pt_BR.po:
1690 * debian/po/templates.pot:
1692 * debian/po/zh_CN.po:
1694 * debian/unhinted.conf:
1695 Update debian build system to switch maintainers and
1696 deal with 2.3 functionality
1698 2005-03-01 Keith Packard <keithp@keithp.com>
1702 * fontconfig/fontconfig.h:
1705 2005-03-01 Keith Packard <keithp@keithp.com>
1708 Generate and install PDF versions of the manuals
1710 * doc/fcpattern.fncs:
1713 * doc/fcstring.fncs:
1714 Add missing exported functions, fix data types
1716 * doc/fontconfig-devel.sgml:
1717 Add missing pattern elements.
1719 * doc/fontconfig-user.sgml:
1720 Add missing pattern elements. Document conf.d usage,
1721 clarify available orthography list. Fix some config file
1722 attributes. Complete list of constants.
1724 * fontconfig/fontconfig.h:
1725 Mark FC_SOURCE deprecated.
1727 * src/fcfreetype.c: (FcFreeTypeQuery):
1728 Don't set FC_SOURCE any longer.
1730 2005-02-28 Keith Packard <keithp@keithp.com>
1733 * conf.d/Makefile.am:
1735 * conf.d/no-bitmaps.conf:
1736 * conf.d/sub-pixel.conf:
1737 * conf.d/yes-bitmaps.conf:
1739 Create prototype /etc/fonts/conf.d directory with a few
1740 sample configuration files.
1741 Deprecate use of local.conf for local customizations in favor of
1742 this directory based scheme which is more easily integrated into
1743 installation systems.
1746 Tag FC_EMBOLDEN as a boolean variable
1748 2005-02-10 Keith Packard <keithp@keithp.com>
1750 reviewed by: pborelli@katamail.com
1752 * src/fcdir.c: (FcFileScanConfig):
1753 Free patterns from fonts which are rejected by configuration
1756 2005-01-28 Keith Packard <keithp@keithp.com>
1760 * fontconfig/fontconfig.h:
1761 Update for version 2.2.99
1763 2005-01-28 Keith Packard <keithp@keithp.com>
1766 Add a few pointers (#2284, #2285)
1768 2005-01-28 Keith Packard <keithp@keithp.com>
1771 * src/fcname.c: (FcNameBool):
1772 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1773 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1774 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1775 Polite typechecking for test and edit expressions. Helps
1776 catch errors in the font configuration. (bug 229)
1778 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1780 reviewed by: Keith Packard <keithp@keithp.com>
1783 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1785 2005-01-13 Keith Packard <keithp@keithp.com>
1787 * doc/fontconfig-user.sgml:
1788 Add SEE ALSO section (bug 2085)
1790 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1792 reviewed by: Keith Packard <keithp@keithp.com>
1797 * fc-case/Makefile.am:
1798 * fc-glyphname/Makefile.am:
1799 * fc-lang/Makefile.am:
1800 * src/fontconfig.def.in:
1801 Cross compiling fixes (bug 280)
1803 2005-01-13 Keith Packard <keithp@keithp.com>
1806 Update blanks list (Closes bug 86)
1808 2005-01-04 Keith Packard <keithp@keithp.com>
1810 * src/fccache.c: (FcCacheFontSetAdd):
1811 Verify that every font pattern loaded from cache has
1812 both FC_FILE and FC_FAMILY entries.
1813 Attempt to fix bug #2219.
1815 2004-12-29 Keith Packard <keithp@keithp.com>
1819 * fontconfig/fontconfig.h:
1820 Update for version 2.2.98
1822 2004-12-29 Keith Packard <keithp@keithp.com>
1824 * fontconfig/fontconfig.h:
1825 Document ASCII limitations of Fc character conversion macros
1826 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1827 Fix off-by-one error in utf-8 case walking code.
1828 Add FcStrDowncase (useful for testing case conversion functions)
1830 2004-12-29 Keith Packard <keithp@keithp.com>
1833 * fc-case/.cvsignore:
1834 clean up CVS ignore lists
1835 * fc-lang/iso-3166.txt:
1836 Add territory database
1838 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1840 Reviewed by: Keith Packard
1843 Remove Han characters from Korean orthography
1845 2004-12-29 Keith Packard <keithp@keithp.com>
1848 Reorder utility programs to make sure fc-case is run before fc-lang
1849 as fc-lang uses fcstr.c which uses fccase.h
1853 2004-12-29 Keith Packard <keithp@keithp.com>
1856 Adopt some RedHat suggestions for standard font configuration.
1860 * fc-case/CaseFolding.txt:
1861 * fc-case/Makefile.am:
1862 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1863 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1864 (dump), (parseRaw), (caseFoldReadRaw), (main):
1865 * fc-case/fccase.tmpl.h:
1866 Add new helper program 'fc-case' to construct case folding
1867 tables from standard Unicode CaseFolding.txt file
1870 * src/fclist.c: (FcListValueHash):
1871 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1872 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1873 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1874 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1875 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1876 Re-implement case insensitive functions with Unicode
1877 aware versions (including full case folding mappings)
1879 2004-12-13 Keith Packard <keithp@keithp.com>
1881 reviewed by: Owen Taylor <otaylor@redhat.com>
1883 * src/fcmatch.c: (FcFontSetSort):
1884 I changed FcFontSetSort to respect the generic aliases better
1885 in the face of language matching.
1887 What I did was to ammend the strict sort order used by FcFontSort so
1888 that it 'satisfies' the language specified in the pattern by locating
1889 the best matching font supporting each pattern language and then
1890 ignores language in the remaining fonts for purposes of matching.
1892 So, when asking for 'sans:lang=en', you'll get an English font first,
1893 and then the remaining fonts sorted with respect to the 'sans' alias
1894 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1896 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1898 reviewed by: Keith Packard <keithp@keithp.com>
1900 * fontconfig/fontconfig.h:
1903 Configuration changes to request synthetic emboldening of
1904 fonts. The actual emboldening code will live in Xft.
1906 2004-12-09 John Thacker <thacker@math.cornell.edu>
1908 reviewed by: Keith Packard <keithp@keithp.com>
1912 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1913 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1914 и), and don't even appear in KOI8-R. (The hypothesis that they
1915 don't appear in KOI8-R due to their similarity with Latin I and i is
1916 eliminated by their presence in KOI8-U.) I have a couple of fonts
1917 with Russian support that don't have the letter.
1919 Therefore, 0406 and 0456 should be removed from or commented out of
1922 2004-12-06 michael meeks <mmeeks@novell.com>
1924 Reviewed by: Keith Packard <keithp@keithp.com>
1926 * src/fcinit.c: (FcMemReport):
1928 * src/fclist.c: (FcObjectSetAdd):
1929 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1930 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1931 * src/fcxml.c: (FcParsePatelt):
1932 memoize strings and share a single copy for all uses. Note that
1933 this could be improved further by using statically allocated blocks
1934 and gluing multiple strings together, but I'm basically lazy.
1935 In my environment with 800 font files, I get a savings of about 90KB.
1937 2004-12-06 Keith Packard <keithp@keithp.com>
1941 * config/Makedefs.in:
1944 * doc/fcatomic.fncs:
1945 * doc/fcblanks.fncs:
1946 * doc/fccharset.fncs:
1947 * doc/fcconfig.fncs:
1948 * doc/fcconstant.fncs:
1950 * doc/fcfontset.fncs:
1951 * doc/fcfreetype.fncs:
1953 * doc/fcmatrix.fncs:
1954 * doc/fcobjectset.fncs:
1955 * doc/fcobjecttype.fncs:
1956 * doc/fcpattern.fncs:
1957 * doc/fcstring.fncs:
1958 * doc/fcstrset.fncs:
1960 * doc/fontconfig-devel.sgml:
1961 * doc/fontconfig-user.sgml:
1963 * doc/version.sgml.in:
1964 * fc-cache/Makefile.am:
1965 * fc-cache/fc-cache.c:
1966 * fc-glyphname/Makefile.am:
1967 * fc-glyphname/fc-glyphname.c:
1968 * fc-glyphname/fcglyphname.tmpl.h:
1969 * fc-lang/Makefile.am:
1979 * fc-lang/az_ir.orth:
2013 * fc-lang/fc-lang.c:
2014 * fc-lang/fc-lang.man:
2015 * fc-lang/fclang.tmpl.h:
2060 * fc-lang/ku_ir.orth:
2093 * fc-lang/ps_af.orth:
2094 * fc-lang/ps_pk.orth:
2123 * fc-lang/ti_er.orth:
2124 * fc-lang/ti_et.orth:
2150 * fc-lang/zh_cn.orth:
2151 * fc-lang/zh_hk.orth:
2152 * fc-lang/zh_mo.orth:
2153 * fc-lang/zh_sg.orth:
2154 * fc-lang/zh_tw.orth:
2156 * fc-list/Makefile.am:
2157 * fc-list/fc-list.c:
2158 * fc-match/Makefile.am:
2159 * fc-match/fc-match.1:
2160 * fc-match/fc-match.c:
2161 * fontconfig/fcfreetype.h:
2162 * fontconfig/fcprivate.h:
2163 * fontconfig/fontconfig.h:
2184 Change files from ISO-Latin-1 to UTF-8
2186 2004-12-04 Keith Packard <keithp@keithp.com>
2189 Update links to new freedesktop.org locations
2191 Add uninstall-local to get rid of fonts.conf and local.conf if they
2192 match the distributed versions. Fixes 'make distcheck'
2194 2004-12-04 Keith Packard <keithp@keithp.com>
2198 * fontconfig/fontconfig.h:
2199 Updates for version 2.2.97
2201 2004-12-04 Owen Taylor <otaylor@redhat.com>
2203 reviewed by: Keith Packard <keithp@keithp.com>
2205 * fc-cache/fc-cache.c: (main):
2206 Sleep for two seconds before exiting to make sure timestamps
2207 for future changes have distinct mod times in the file system.
2210 Add Punjabi orthography. Bug #1671.
2212 2004-12-04 Keith Packard <keithp@keithp.com>
2215 Just remove the FC_FONTDATE -- it has locale issues and
2216 annoys redhat multi-arch installs. Now that all X fonts are
2217 included without prejudice, the chances of the date being at
2218 all interesting are rather limited. Bug #505.
2220 Add copyright and license
2222 2004-12-04 Keith Packard <keithp@keithp.com>
2225 Change default set of fonts to include all of
2226 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2227 * doc/fontconfig-user.sgml:
2228 Document new <include>directory-name</include> semantics
2230 add <include ignore_missing="yes">conf.d</include>
2232 Add selectfont to ignore bitmap fonts, add comment for
2233 selectfont which accepts bitmap fonts.
2236 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2237 Allow <include> configuration elements to reference directories.
2238 Parse and load all files of the form [0-9]* in sorted order.
2240 2004-12-04 Keith Packard <keithp@keithp.com>
2243 Report command line for $srcdir/configure accurately.
2246 2004-12-04 Keith Packard <keithp@keithp.com>
2248 * src/fcfreetype.c: (FcFreeTypeQuery):
2249 Check for non-empty face->family_name and face->style_name
2250 before using those for the font. Empty names match everything.
2253 2004-12-04 Keith Packard <keithp@keithp.com>
2256 * fontconfig/fontconfig.h:
2257 * src/fcfreetype.c: (FcFreeTypeQuery):
2259 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2260 available. This provides font file format information (BDF, Type 1,
2261 PCF, TrueType) for each font. Closes #109.
2263 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2265 reviewed by: Keith Packard <keithp@keithp.com>
2267 * doc/fontconfig-user.sgml:
2270 * fontconfig/fontconfig.h:
2271 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2272 (GetScriptTags), (FcFontCapabilities):
2274 Add detection for font capabilities (bug #105)
2276 2004-12-04 Keith Packard <keithp@keithp.com>
2279 Move existing fonts.conf to fonts.conf.bak
2282 Add detection of iconv
2284 * doc/fcpattern.fncs:
2285 * doc/fontconfig-devel.sgml:
2286 * doc/fontconfig-user.sgml:
2288 Document new selectfont elements
2291 Switch to UTF-8 in comment
2293 * fontconfig/fontconfig.h:
2295 Add fullname, and family/style/fullname language entries
2297 * src/fccache.c: (FcCacheFontSetAdd):
2298 * src/fcdir.c: (FcFileScanConfig):
2299 Respect selectfont/*/glob
2302 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2303 (FcConfigCompareValue), (FcConfigPatternsAdd),
2304 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2305 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2306 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2307 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2308 Add support for selectfont
2310 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2311 (FcStringInPatternElement), (FcFreeTypeQuery):
2312 Add multi-lingual family/style/fullname support
2314 * src/fclist.c: (FcListPatternMatchAny):
2315 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2317 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2318 (FcObjectStaticName):
2319 Add new FcPatternRemove/FcPatternAppend.
2320 FcObjectStaticName stores computed pattern element names which
2321 are required to be static.
2323 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2328 Remove spurious / after $(DESTDIR)
2330 2004-06-30 Keith Packard <keithp@keithp.com>
2334 * fontconfig/fontconfig.h:
2337 2004-06-30 Keith Packard <keithp@keithp.com>
2339 Provided by: Lubos Lunak <l.lunak@suse.cz>
2341 * src/fccfg.c: (FcConfigUptoDate):
2342 However FcConfigUptoDate() doesn't seem to work. See the attached
2343 patch. First there's an obvious misplaced parenthesis making it
2344 return always false, and second, even this call fails to detect font
2345 changes (e.g. adding a new font to
2346 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2347 well. The problem seems to be triggered by my fonts.conf specifying
2348 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2349 doesn't include subdirs, unlike config->fontDirs.
2351 2004-06-03 Keith Packard <keithp@keithp.com>
2353 * fontconfig/fontconfig.h:
2354 Remove comma at end of FcResult enum definition.
2356 2004-05-29 Keith Packard <keithp@keithp.com>
2359 Add steps to md5sum release
2361 2004-05-29 Keith Packard <keithp@keithp.com>
2365 * fontconfig/fontconfig.h:
2368 2004-05-29 Keith Packard <keithp@keithp.com>
2370 * fontconfig/fontconfig.h:
2371 * src/fcmatch.c: (FcFontSetMatch):
2372 Add FcResultOutOfMemory to provide an accurate error when
2373 FcFontSetMatch fails in this way
2376 Make #warning about lacking various FreeType features indicate
2377 which version those features appeared so users know how to
2378 fix the problem (Thanks to Anton Tropashko)
2380 2004-05-05 Keith Packard <keithp@keithp.com>
2382 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2383 Replace MIN/MAX/ABS macros which happen to have come
2384 from FreeType with fontconfig-specific ones (FC_*)
2386 2004-04-23 Keith Packard <keithp@keithp.com>
2389 Extend release preparation instructions to include
2390 notification and distribution steps
2392 2004-04-23 Keith Packard <keithp@keithp.com>
2396 * fontconfig/fontconfig.h:
2397 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2399 2004-04-23 Keith Packard <keithp@keithp.com>
2402 Ignore a few more autotool files
2404 2004-04-14 Keith Packard <keithp@keithp.com>
2407 Add instructions for doing a release
2409 * fontconfig.spec.in:
2410 clean up .spec file; perhaps this will be useful to somebody...
2414 * fontconfig/fontconfig.h:
2417 * fc-lang/fc-lang.c:
2418 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2420 * fc-glyphname/Makefile.am:
2421 * fc-lang/Makefile.am:
2422 * fc-list/Makefile.am:
2423 * fc-match/Makefile.am:
2425 Add WARN_CFLAGS to pass -W flags for GCC systems
2427 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2428 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2429 Change various char types around to match across
2431 Fixed bug in using available_sizes[i].height which
2432 is in pixels, not 64ths of a pixel.
2434 2004-03-06 Keith Packard <keithp@keithp.com>
2436 * src/fcfreetype.c: (FcFreeTypeQuery):
2437 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2438 matches looking for explicit values prefer exact matches
2440 2004-03-02 Keith Packard <keithp@keithp.com>
2442 Supplied by: mfabian@suse.de (Mike FABIAN)
2444 * src/fcfreetype.c: (FcFreeTypeQuery):
2445 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2446 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2448 2004-02-21 Manish Singh <yosh@gimp.org>
2450 * fc-glyphname/fc-glyphname.c: (main):
2451 Cast strlen to int for printf, so we're 64-bit clean.
2453 2004-02-11 Keith Packard <keithp@keithp.com>
2456 * src/fcfreetype.c: (FcGetPixelSize):
2457 Ok, so I messed up the test for y_ppem. Let's see if I
2458 got it right this time.
2460 2004-02-10 Keith Packard <keithp@keithp.com>
2463 * src/fcfreetype.c: (FcGetPixelSize):
2464 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2465 FT_Bitmap_Size record. Add a configure.in test for this
2466 and change the code accordingly (using height instead).
2468 2004-02-06 Keith Packard <keithp@keithp.com>
2471 Add Low Saxon orthography
2472 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2474 * src/fccfg.c: (FcConfigNewestFile):
2475 Oops. Left 'newest.set' unset, which would miscompute
2478 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2479 (FcFreeTypeCheckGlyph):
2480 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2481 font properties (which report the wrong value in current FreeType)
2483 Don't attempt to check for empty glyphs in non-scalable fonts; they
2486 2004-02-01 Tor Lillqvist <tml@iki.fi>
2488 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2489 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2490 cache if config->cache is NULL, which happens if FcConfigHome() is
2491 NULL. Guard against that by using the temp folder in that case.
2493 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2495 * fc-lang/az_ir.orth:
2496 * fc-lang/ku_ir.orth:
2497 * fc-lang/ps_af.orth:
2498 * fc-lang/ps_pk.orth:
2499 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2500 (Afghan and Pakistani).
2502 Updated Urdu orthography with real data.
2504 2003-12-11 Carl Worth <cworth@east.isi.edu>
2506 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2509 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2511 (all-local): Remove excessive whitespace.
2513 * autogen.sh: Add 'set -e' to abort when any program fails,
2514 (avoids printing of 'now type make' after configure aborts).
2516 2003-11-17 Eric Christopherson <rakko@charter.net>
2518 reviewed by: Keith Packard <keithp@keithp.com>
2521 * fontconfig/fcfreetype.h:
2523 Switch to FreeType 2.1.7 style includes. Bug #150.
2525 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2527 * fc-list/fc-list.sgml: Add some example usages.
2529 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2532 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2535 2003-10-27 Keith Packard <keith@keithp.com>
2538 * fontconfig/fontconfig.h:
2539 Update to version 2.2.92
2541 2003-10-27 Keith Packard <keithp@keithp.com>
2546 * fc-cache/Makefile.am:
2547 * fc-glyphname/Makefile.am:
2548 * fc-lang/Makefile.am:
2549 * fc-list/Makefile.am:
2550 * fc-match/Makefile.am:
2553 Yet more cleanups to finish getting 'make distcheck' working
2554 This has been tested to ensure that it even works from a _build
2557 2003-10-26 Keith Packard <keithp@keithp.com>
2561 * fc-cache/Makefile.am:
2562 * fc-glyphname/Makefile.am:
2563 * fc-lang/Makefile.am:
2564 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2565 * fc-list/Makefile.am:
2566 * fc-match/Makefile.am:
2567 Attempts to fix 'make distcheck' work. Things are
2568 progressing pretty well, but there are still failures
2569 long into the process dealing with docs (as always).
2571 The big changes here are mostly to make $(srcdir) != "."
2572 work correctly, fixing the docbook related sections and
2573 fc-lang were particularily tricky. Docbook refuses to load
2574 system entities from anywhere other than where the original .sgml
2575 file was located, so no luck looking in "." for the
2576 configure-generated version.sgml and confdir.sgml files.
2578 fc-lang needed help finding .orth files; added a -d option
2579 to set the directory as the least evil of many options.
2581 Now to go use a faster machine and try and wring out the last
2584 2003-10-26 Keith Packard <keithp@keithp.com>
2588 2003-10-26 Keith Packard <keithp@keithp.com>
2591 Include confdir.sgml.in in EXTRA_DIST
2593 2003-10-09 Josselin Mouette <joss@debian.org>
2595 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2596 * fc-list/fc-list.sgml fc-list/Makefile.am:
2597 Replace fc-cache and fc-list manpages with more detailed, SGML
2600 2003-09-23 Owen Taylor <otaylor@redhat.com>
2602 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2603 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2604 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2607 2003-09-23 Owen Taylor <otaylor@redhat.com>
2609 * fc-lang/ka.orth: Remove Georgian capitals, they
2610 aren't used for normal writing. (Bug #116)
2612 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2614 * doc/fontconfig-devel.sgml:
2615 * doc/fontconfig-user.sgml:
2616 * fontconfig/fontconfig.h:
2618 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2619 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2621 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2622 monospace and dual-width fonts, allow roughly a 3% variance in the
2625 2003-08-31 Manish Singh <yosh@gimp.org>
2627 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2630 2003-08-15 Carl Worth <cworth@isi.edu>
2632 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2633 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2635 * src/fcpat.c (FcValueListEntDestroy): New function to support
2636 FcFini memory cleanup. Some statistics are not kept in
2638 (FcValueListFreeze): Move hashTable outside this function so it
2639 can be accessed by FcValueListThawAll.
2640 (FcValueListThawAll): New function complements FcValueListFreeze.
2641 (FcPatternBaseFreeze): Move hashTable outside this function so it
2642 can be accessed by FcPatternBaseThawAll.
2643 (FcPatternBaseThawAll): New function complements
2644 FcPatternBaseFreeze.
2645 (FcPatternThawAll): New function complements FcPatternFreeze.
2647 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2649 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2650 allocated FcCharLeafEnt "blocks" so they can be freed later.
2651 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2652 can be accessed by FcCharSetThawAllLeaf.
2653 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2654 (FcCharSetFreezeBase): Move hashTable outside this function so it
2655 can be accessed by FcCharSetThawAll.
2656 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2658 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2659 (FcConfigDestroy): Fic leak of FcBlanks.
2661 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2662 (main): Add call to FcFini when finished.
2664 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2665 static. Add prototypes.
2667 * doc/fcinit.fncs: Add documentation for FcFini function.
2669 * doc/edit-sgml.c: Mark several local functions as static. Add
2672 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2674 2003-06-15 Tor Lillqvist <tml@iki.fi>
2676 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2677 before comparing (needed on Windows).
2679 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2681 2003-06-13 Tor Lillqvist <tml@iki.fi>
2683 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2686 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2687 WINDOWSFONTDIR token.
2689 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2690 end, not to confuse libtool, which expects the EXPORTS line to be
2691 the first. Add FcConfigEnableHome.
2693 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2694 built as a DLL on Win32.
2696 2003-06-09 Keith Packard <keithp@keithp.com>
2698 * Tag version 2.2.90
2700 2003-06-09 Keith Packard <keithp@keithp.com>
2702 * Optimization in FcLangSetIndex was broken, occasionally
2703 returning a pointer to the wrong location on miss
2705 * Add fc-match to test font matching from the command line.
2707 2003-05-31 Keith Packard <keithp@keithp.com>
2709 * (Bug 85) add support for culmus fonts
2710 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2711 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2713 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2715 * Fix "contains" op for strings and langsets.
2717 2003-05-17 Keith Packard <keithp@keithp.com>
2719 * Fix build error with BDF prop local. Free langset after query
2721 2003-05-14 Keith Packard <keithp@keithp.com>
2723 * Extract spacing from XLFD atom
2725 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2727 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2728 disappeared in 1.30.
2730 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2732 2003-05-12 Keith Packard <keithp@keithp.com>
2734 * Use FcIsWidth to share code
2736 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2737 misclassifying some Han fonts as monospaced.
2739 2003-05-07 Keith Packard <keithp@keithp.com>
2741 * Add filename-based accept/reject to ammend available fonts.
2743 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2744 older FreeType releases.
2746 2003-05-06 Keith Packard <keithp@keithp.com>
2748 * Remove 0b82 and Tamil numbers from tamil
2749 orthography (Jungshik Shin <jshin@mailaps.org>)
2751 2003-05-04 Keith Packard <keithp@keithp.com>
2753 + Map glyph names in fonts with adobe custom encoding to unicode
2755 2003-05-02 Keith Packard <keithp@keithp.com>
2757 * Add FC_WEIGHT_BOOK as weight 75
2759 2003-04-30 Keith Packard <keithp@keithp.com>
2761 * Typo in bitstream foundry name
2763 2003-04-24 Keith Packard <keithp@keithp.com>
2765 * Eliminate italic_angle check for PS fonts
2767 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2769 * Getting closer to fixing /etc/fonts hard-coding.
2771 2003-04-22 Keith Packard <keithp@keithp.com>
2773 * Update autogen.sh to work with newer automake versions
2774 * Handle pattern elements moving during multiple edits
2776 2003-04-23 James Henstridge <james@daa.com.au>
2778 * doc/fontconfig-devel.sgml: close the <para> element.
2780 * doc/fcpattern.fncs: close the <para> element.
2782 * doc/func.sgml: close the <refsynopsisdiv> element.
2784 2003-04-22 Keith Packard <keithp@keithp.com
2786 * Update autogen.sh to work with newer automake versions
2787 * Handle pattern elements moving during multiple edits
2789 2003-04-17 Colin Walters <walters@debian.org>
2791 + Remove some unused variables, and initialize some other ones so
2792 gcc doesn't warn us.
2794 2003-04-16 Keith Packard <keithp@keithp.com>
2796 + tag version 2.1.94
2798 2003-04-16 Keith Packard <keithp@keithp.com>
2800 + add BDF property fetching support for foundry
2801 (from Juliusz Chroboczek)
2802 + add BDF property fetching support for width
2804 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2806 + Implemented foundry generation for Type 1 and TrueType
2808 2003-04-11 Gerard Escalante <g2@magestudios.net>
2810 + Retrieve information from Type1 FontInfo dictionaries
2812 2003-04-07 Colin Walters <walters@verbum.org>
2814 + src/Makefile.am: Fix dummy makefile target names when
2815 MS_LIB_AVAILABLE isn't set.
2817 2003-03-22 Tor Lillqvist <tml@iki.fi>
2819 Changes for Windows:
2821 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2823 + We don't want to hardcode the fonts.conf file location in the
2824 DLL, so we look up the DLL location at run-time in a DllMain()
2825 function. The fonts.conf location is deduced from that.
2827 + The colon can't be used as path separator on Windows,
2828 semicolon is used instead. File path components can be separated
2829 with either slash or backslash. Absolute paths can also begin
2830 with a drive letter.
2832 + Add internal function FcStrLastSlash that strrchr's the last
2833 slash, or backslash on Windows.
2835 + There is no link() on Windows. For atomicity checks, mkdir a
2836 lock directory instead.
2838 + In addition to HOME, also look for USERPROFILE.
2840 + Recognize the special font directory token WINDOWSFONTDIR, to
2841 use the system's font directory.
2843 + Remove the fontconfig-def.cpp that was obsolete. Add
2844 fontconfig.def(.in), without internal functions.
2846 + Add a fontconfig-zip(.in) script, used to build a binary
2849 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2850 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2851 to main package and man3/* to devel package
2853 + Added missing defattr(-, root, root) to main RPM package
2855 + Added HTML and text development documentation to -devel subpackage
2857 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2858 + Added back the configure macro options --disable-docs, otherwise
2859 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2860 version number) unconditionally, causing RPM to fail the build due
2861 to _unpackaged_files_terminate_build. We pick up the pregenerated
2862 docs with %doc already.
2864 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2865 + Removed commented out rpm macro define at top of spec file,
2866 replacing it with a simple explanation, since rpm macros are
2867 expanded by rpm even in comments.
2869 + Changed /usr/bin to _bindir in BuildRequires lines
2871 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2873 + Reorganized file manifest lists
2875 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2877 + fontconfig.spec.in: Improvements from Red Hat spec file.
2879 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2881 + docs/*.sgml: SGML fixes.
2883 Sat Mar 1 17:28:53 PST 2003 keithp
2884 + Ok, so the ChangeLog is a bit out of date
2886 + Lots of bugs fixed; most are in bugzilla, the
2887 biggest problems were in cache management where
2888 Owen discovered the library would lose badly when
2889 combining fonts-cache and ~/.fonts-cache data
2891 + Converted from autoconf to automake. This after
2892 getting patches accepted into libtool to allow
2893 the '-version-number' argument which lets
2894 packages set version numbers explicitly rather
2895 than the roundabout libtool way
2897 + Converted documentation to SGML using the docbook
2898 DTD. Now .txt and .html documents are installed
2899 in /usr/share/doc/fontconfig and there's no
2900 man page. Perhaps a man version can be written
2903 Sat Aug 31 15:21:22 PDT 2002 keithp
2904 + Xrender and Xft had several bugs related to
2905 rendering manually placed or poly-face text
2907 + Added more complete memory tracing in fontconfig
2908 Checked with (patched) mozilla and found no leaks
2910 + Updated Latin orthographies by comparing those from
2911 evertype.com with those from eki.ee. Tried to make
2912 sensible choices, including chars that occured in both
2913 and leaving some optional chars out that occured only
2916 Mon Aug 26 16:33:04 PDT 2002 keithp
2917 + Owen discovered that FcLangSetHasLang wasn't actually
2918 checking the language set.
2920 Mon Aug 26 13:37:23 PDT 2002 keithp
2921 + Append a version number to cache filenames
2923 Thu Aug 22 11:36:18 PDT 2002 keithp
2925 + Add "contains" and "not_contains" operators and elements to
2928 + Changed semantics of eq operator for LangSets to check for
2929 FcLangEqual so that any match will do
2931 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2932 of FcValueEqual to check for identical values when inserting into
2933 the results. This broke when the above semantic change was made,
2934 now it uses FcValueEqual which is "more correct" in any case.
2936 Thu Aug 22 00:32:29 PDT 2002 keithp
2938 + Reimplement FC_LANG as new datatype. Lists of strings
2939 was consuming over a megabyte of memory for 401 fonts.
2941 + Freeze patterns loaded from cache files. This shares
2942 common value lists and common patterns which saves
2943 considerable memory.
2945 + Change the denotation of 'constant' charsets to use special
2946 ref value instead of separate boolean.
2948 + Clean up leak tracing stuff, found several unannoted alloc/free
2951 Tue Aug 20 16:17:37 PDT 2002 keithp
2953 + Fix memory leak when parsing matrices from XML
2955 Mon Aug 19 11:57:27 PDT 2002 keithp
2957 + Fix autoconf files to pass FONTCONFIG_PATH on
2958 compile line so that ${prefix} gets substituted
2961 + Use getc_unlocked/putc_unlocked on systems that
2962 provide them to avoid damage done to stdio by posix
2964 + Eliminate FC_PATTERN and FcTypePattern in favor of
2965 an extended api for FcConfigSubstitute which takes
2966 both the font and the pattern.
2968 + Add 'sans serif' alias for 'sans-serif' as some apps
2969 can't handle hyphens in family names
2971 + Eliminate pretense of support for libxml2
2973 + Comment origins of Han orthographies
2975 Tue Jul 30 18:37:09 PDT 2002 keithp
2977 + Add binding property to edit element so that strong
2978 binding values may be inserted by the config file.
2979 The default remains weak.
2981 Sun 28 Jul 04:16:55 PDT 2002 keithp
2983 + Tagged release candidate 1 in the CVS tree and
2984 placed fcpackage.rc1.tar.gz for distribution
2986 Thu Aug 1 08:55:08 PDT 2002 keithp
2988 + Fixed autoconf builds to always specify install
2989 target files (for BSD). Also fixed to
2990 define FONTCONFIG_PATH in config.h so that
2991 nonstandard installs will actually work.