1 2006-07-19 Jon Burgess (jburgess@uklinux.net)
4 * src/fccache.c (FcGlobalCacheDestroy):
6 Fix file-descriptor leak in FcGlobalCacheDestroy.
8 2006-05-31 Yong Li (rigel863@gmail.com)
9 reviewed by: plam, Bedhad Esfahbod
11 * src/ftglue.c (_hb_ftglue_face_goto_table):
13 TrueType Collection table offsets are absolute, not relative.
15 2006-04-27 Paolo Borelli (pborelli@katamail.com)
18 * src/fcstr.c (FcStrCopy):
20 Make FcStrCopy slightly more efficient.
22 2006-04-27 Patrick Lam <plam@mit.edu>
23 Keith Packard <keithp@keithp.com>
24 * src/fcstr.c (FcStrBufChar):
26 Reduce transient memory usage during config file parsing
27 by allocating smaller buffers (64 seems to be a magic number).
29 2006-04-27 Keith Packard <keithp@keithp.com>
31 * src/fcinit.c: (FcMemReport):
33 * src/fcpat.c: (FcPatternFini):
34 * src/fcxml.c: (FcParsePatelt):
35 Eliminate pattern freezing
37 2006-04-27 Keith Packard <keithp@keithp.com>
38 reviewed by: Patrick Lam <plam@mit.edu>
40 * src/fccache.c: (FcDirCacheUnlink), (FcDirCacheHashName),
41 (FcDirCacheOpen), (FcDirCacheWrite):
42 * src/fcfreetype.c: (FcFreeTypeQuery):
44 * src/fclist.c: (FcListAppend):
45 * src/fcmatch.c: (FcFontRenderPrepare):
46 * src/fcpat.c: (FcPatternDestroy), (FcPatternBaseFreeze),
47 (FcPatternFreeze), (FcPatternGet), (FcPatternDuplicate),
49 Make path names in cache files absolute (NB, cache format change)
50 Stop permitting cache files to be stored in font dirs.
52 Don't include /fonts.cache-2 in cache hash construction.
54 2006-04-25 Patrick Lam <plam@mit.edu>
58 * fontconfig/fontconfig.h:
60 Bump version to 2.3.95.
62 2006-04-25 Behdad Esfahbod <behdad@cs.toronto.edu>
69 Fix the issues with GNU libiconv vs. libc iconv (which especially
70 appear on Solarii). Approach suggested by Tim Mooney.
72 2006-04-24 Dominic Lachowicz <cinamod@hotmail.com>
77 Include $(top_srcdir), $(top_srcdir)/src before anything else.
79 * fc-cache/fc-cache.c, fc-cat/fc-cat.c, fc-match/fc-match.c:
80 * src/fccache.c, src/fccfg.c, src/fccharset.c, src/fcdbg.c:
81 * src/fcfreetype.c, src/fcfs.c, src/fcinit.c, src/fclist.c:
82 * src/fcmatch.c, src/fcmatrix.c, src/fcname.c, src/fcpat.c:
83 * src/fcstr.c, src/fcxml.c:
85 Shuffle order of includes for building out of srcdir on win32.
87 2006-04-20 Patrick Lam <plam@mit.edu>
88 * src/fcmatch.c (FcSortWalk):
90 Prevent terrible perf regression by getting the if-condition
91 right (reported by Wouter Bolsterlee).
93 2006-04-19 Patrick Lam <plam@mit.edu>
94 Dominic Lachowicz <cinamod@hotmail.com>
96 * src/fccache.c (FcDirCacheConsume):
98 Implement mmap-like code for Windows using MapViewOfFile.
100 2006-04-19 Patrick Lam <plam@mit.edu>
101 * src/fccache.c (FcDirCacheConsume, FcCacheNextOffset):
103 Bail gracefully if the cache file does not contain enough data.
105 2006-04-14 Patrick Lam <plam@mit.edu>
108 Give the 'Standard Symbols L' match a strong (vs. weak) binding.
110 2006-04-14 Patrick Lam <plam@mit.edu>
111 * src/fcname.c (FcObjectToPtrLookup):
113 Fix Gecko-exposed segfault from my last hack to
114 FcObjectToPtrLookup. Simplify code and get things straight.
116 2006-04-14 Patrick Lam <plam@mit.edu>
119 Actually, just add URW fonts as aliases for all of the PostScript
120 fonts. (reported by Miguel Rodriguez).
122 2006-04-13 Patrick Lam <plam@mit.edu>
125 Add an alias 'Standard Symbols L' for 'Symbol'.
127 2006-04-12 Frederic Crozat <fcrozat@mandriva.com>
130 * src/fcpat.c: (FcPatternFreeze):
131 Fix memory leak (Coverity defect #2089).
133 * src/fcfreetype.c: (GetScriptTags):
134 Ignore script if subtable is missing (Coverity defect #2088).
136 2006-04-12 Patrick Lam <plam@mit.edu>
137 * src/fccfg.c (FcConfigSubstituteWithPat):
139 Fix possible null pointer dereference (Coverity defect #784)
140 and memory leak (Coverity defects #785, #786).
142 2006-04-12 Patrick Lam <plam@mit.edu>
143 * src/fcmatch.c (FcSortWalk, FcFontSetSort):
145 Don't copy FcCharSet if we're going to throw it away anyway.
146 (Reported by Kenichi Handa).
148 2006-04-11 Ming Zhao <ming@gentoo.org>
151 * src/fcname.c (FcObjectToPtrLookup):
153 Fix bad behaviour on realloc resulting in crash.
155 2006-04-11 Patrick Lam <plam@mit.edu>
156 * src/fccache.c (FcGlobalCacheReadDir):
158 Don't crash if config is null (Coverity defect #984).
160 2006-04-11 Frederic Crozat <fcrozat@mandriva.com>
163 * src/fccharset.c (FcCharSetPutLeaf):
164 * src/fclang.c (FcNameUnparseLangSet):
166 Missing bits from previous patches.
168 * src/fccharset.c (FcCharSetSubtractCount):
169 Remove extra semi-colon.
171 * src/fccfg.c (FcConfigBuildFonts):
172 Fix memory leak in error case (Coverity defects #776, #985).
174 * src/fcxml.c (FcPopBinary, FcParsePatelt, FcParsePattern):
175 Fix memory leaks (Coverity defects #779, #781)
176 and memory use after free (Coverity defect #780).
178 2006-04-11 Patrick Lam <plam@mit.edu>
179 * src/fccharset.c (FcCharSetPutLeaf):
181 Properly convert static charsets to dynamic charsets.
183 2006-04-11 Frederic Crozat <fcrozat@mandriva.com>
186 * src/fcpat.c: (FcValueListEntCreate, FcPatternBaseFreeze,
188 Fix memory leak in error case (Coverity defects #1820, #1821, #1822).
190 * src/fclang.c: (FcNameUnparseLangSet):
191 Fix memory leak (Coverity defect #1819).
193 * fc-lang/fc-lang.c: (scan):
194 prevent crash when invalid include line is parsed (Coverity defect
197 * fc-cat/fc-cat.c: (FcCacheFileRead):
198 Fix potential null pointer access (Coverity defect #1804).
200 * src/fcname.c: (FcObjectUnserialize):
201 Remove dead code (Coverity defect #1194).
203 * src/fcfreetype.c: (GetScriptTags):
204 Prevent potential null pointer access (Coverity defect #767),
205 ensure error value is read (Coverity defect #1195).
207 2006-04-11 Behdad Esfahbod <behdad@cs.toronto.edu>
212 Survive missing docbook2pdf.
214 2006-04-10 Patrick Lam <plam@mit.edu>
216 * fc-glyphname/fc-glyphname.c:
219 Include more stub definitions to make HP-UX's C compiler happy.
221 2006-04-10 Patrick Lam <plam@mit.edu>
222 * src/fcname.c (FcObjectUnserialize):
224 Swap typo in order of ALIGN and dereferencing, fixing bug 6529.
226 2006-04-10 Frederic Crozat <fcrozat@mandriva.com>
229 * src/fccfg.c: (FcConfigEvaluate):
230 Fix string memory leak (Coverity defect #1823).
232 * src/fccache.c: (FcDirCacheUnlink):
233 Fix memory leak with hash collision (Coverity defect #1824).
235 2006-04-10 Frederic Crozat <fcrozat@mandriva.com>
238 * src/fccache.c: (FcGlobalCacheSave):
239 Don't leak header in non-error case (Coverity defect #1825).
241 2006-04-10 Frederic Crozat <fcrozat@mandriva.com>
244 * src/fcdir.c (FcDirScanConfig)
245 Don't leak in error cases (Coverity defects #777, #1826)
247 2006-04-10 Frederic Crozat <fcrozat@mandriva.com>
250 * src/fccache.c: (FcDirCacheWrite):
251 Fix double free (spotted by Coverity, CID #1965).
253 * fc-match/fc-match.c: (main):
254 Check if pattern is not null before using it (Coverity defect #1883).
256 * src/fccache.c: (FcDirCacheWrite):
257 Fix memory leak with hash collision (Coverity defect #1829).
259 * src/fccfg.c: (FcConfigBuildFonts):
260 Fix memory leak when bail cases (Coverity defect #1828).
262 * src/fccache.c: (FcGlobalCacheLoad):
263 Don't leak directory name (Coverity defect #1827).
265 2006-04-07 Dominic Lachowicz <cinamod@hotmail.com>
267 * fc-cache/Makefile.am:
268 * fc-cat/Makefile.am:
269 * fc-list/Makefile.am:
270 * fc-match/Makefile.am:
272 LD_ADD missing dependencies for binaries. Reported by
275 2006-04-07 Patrick Lam <plam@mit.edu>
277 * fc-lang/fc-lang.c (main):
279 SGI compilation fixes (reported by Christoph Bauer):
280 1) reorder union definition of _FcChar;
283 2006-04-07 Dominic Lachowicz <cinamod@hotmail.com>
286 * src/fccharset.c (FcCharSetNeededBytes):
287 * src/fcfs.c (FcFontSetNeededBytes):
289 * src/fclang.c (FcLangSetNeededBytesAlign):
290 * src/fcname.c (FcObjectNeededBytesAlign):
291 * src/fcpat.c (FcPatternNeededBytesAlign,
292 FcValueListNeededBytesAlign, FcStrNeededBytesAlign):
294 Portability fixes for HP-UX (reported by Christoph Bauer).
295 Replace '__inline__' by AC_C_INLINE and 'inline'.
296 Replace '__alignof__' by 'fc_alignof'.
298 2006-04-07 Dominic Lachowicz <cinamod@hotmail.com>
302 Move up #include of config.h.
303 Fail if neither inttypes.h nor stdint.h is available.
306 2006-04-07 Dominic Lachowicz <cinamod@hotmail.com>
307 Patrick Lam <plam@mit.edu>
309 * fc-cache/fc-cache.c:
311 * src/fccache.c (FcGlobalCacheSave, FcCacheNextOffset,
312 FcDirCacheConsume, FcDirCacheProduce,
313 FcDirCacheWrite, FcCacheMachineSignature):
314 * src/fcfreetype.c (FcFreeTypeQuery):
315 * src/fontconfig.def.in:
317 Make fontconfig compile under MinGW:
318 1) remove unneeded #includes;
319 2) make use of mmap and sysconf conditional;
320 3) replace rand_r by srand/rand if needed;
321 4) use chsize instead of ftruncate; and
322 5) update libtool exports file
324 2006-04-07 Patrick Lam <plam@mit.edu>
325 * src/fcdir.c (FcDirScanConfig):
329 2006-04-06 Patrick Lam <plam@mit.edu>
330 * fc-match/.cvsignore:
331 * fc-match/Makefile.am:
332 * fc-match/fc-match.sgml:
334 Update documentation for fc-match (SGML-ize it).
335 (reported by Ilya Konstantinov)
337 2006-04-06 Diego Pettenò <flameeyes@gentoo.org>
343 Reduce amount of dirty rss by const'ing some data structures.
345 2006-04-06 Patrick Lam <plam@mit.edu>
346 * fc-cache/Makefile.am:
348 Don't fail if we can't create or remove
349 $(pkgcachedir) i.e. /var/cache/fontconfig.
350 (reported by Quanah Gibson-Mount).
352 2006-04-06 Kjartan Maraas <kmaraas@gnome.org>
355 * fc-glyphname/fc-glyphname.c:
356 * fc-lang/fc-lang.c (main):
357 * fc-match/fc-match.c:
358 * src/fccache.c (FcGlobalCacheSave, FcCacheSkipToArch,
360 * src/fcfreetype.c (FcFreeTypeQuery):
361 * src/fclang.c (FcFreeTypeLangSet):
364 Fix intel compiler warnings: make many variables static,
365 eliminate duplicate names, reduce variable scopes, unsigned/signed
368 2006-03-24 Mike Fabian <mfabian@suse.de>
370 * src/fccache.c (FcGlobalCacheLoad, FcCacheSkipToArch):
372 Fix multiarch support (don't destroy multiarch files!)
374 2006-03-24 Patrick Lam <plam@mit.edu>
377 Require pkg-config. (Thanks Behdad;
378 better solution wanted for libxml2 detection!)
380 2006-03-22 Patrick Lam <plam@mit.edu>
383 On Windows, unlink before rename. Reported by Tim Evans.
385 2006-03-15 Patrick Lam <plam@mit.edu>
389 Fix typos in orth files. Reported by Denis Jacquerye.
391 2006-03-08 Patrick Lam <plam@mit.edu>
393 * config/config.guess:
396 Fix Makefile.am for removal of debian/ directory.
398 2006-03-08 Patrick Lam <plam@mit.edu>
401 Ignore debian/ directory for CVS.
403 2006-03-08 Patrick Lam <plam@mit.edu>
406 Now remove debian/ directory.
408 2006-03-08 Patrick Lam <plam@mit.edu>
411 Remove debian/ directory from sources. See Debian's subversion
412 server at svn://svn.debian.org/pkg-freedesktop/trunk/fontconfig
415 2006-03-08 Denis Jacquerye <moyogo@gmail.com>
419 * fc-lang/iso639-1, fc-lang/iso639-2:
421 Add orthography for Lingala.
423 2006-03-08 Carl Worth <cworth@cworth.org>
426 * conf.d/Makefile.am:
427 * conf.d/10LohitGujarati.conf:
429 Add a configuration file that disables hinting for the Lohit
430 Gujarati font (since the hinting distort some glyphs quite badly).
432 2006-03-08 Egmont Koblinger <egmont@uhulinux.hu>
435 * src/fcdir.c (FcDirScanConfig):
437 Sort directory entries while scanning them from disk;
438 prevents Heisenbugs due to file ordering in a directory.
440 2006-03-07 Behdad Esfahbod <behdad@cs.toronto.edu>
443 * src/fcfreetype.c (GetScriptTags):
444 * src/ftglue.c, src/ftglue.h:
446 Remove stuff we don't use, make get_{char,short,long} functions
447 of ftglue macros to be inlined.
450 * src/fcname.c (FcObjectSerialize):
452 Code cleanups (excess prototype, old-style function definition).
454 2006-03-05 Patrick Lam <plam@mit.edu>
455 * src/fcpat.c (FcPatternGetString):
457 Because we hacked FcPatternGet, we don't really need to expand the
458 filename again in FcPatternGetString.
460 2006-03-05 Patrick Lam <plam@mit.edu>
461 * src/fcpat.c (FcPatternGetString, FcPatternGet):
463 Ok, so some people (wine!) use FcPatternGet to fetch FC_FILE.
464 Make that work. Reported by Bernhard Rosenkraenzer.
466 2006-03-03 Patrick Lam <plam@mit.edu>
469 Include inttypes.h instead of stdint.h if appropriate.
471 2006-03-03 Patrick Lam <plam@mit.edu>
472 * fc-cat/fc-cat.c (FcFileIsDir):
473 * fc-glyphname/fc-flyphname.c:
475 More stub definitions and remove FcFileIsDir from fc-cat.
477 2006-03-03 Patrick Lam <plam@mit.edu>
480 Fix compilation on AIX with stub definitions (bug 6097).
482 2006-03-03 Patrick Lam <plam@mit.edu>
483 * src/fccache.c (FcCacheSkipToArch, FcDirCacheProduce):
484 * src/fcfreetype.c (GetScriptTags):
485 * src/fcfs.c (FcFontSetDistributeBytes):
486 * src/fcpat.c (FcValueListEntCreate, FcValueListNeededBytes):
488 Get rid of C++-style comments.
490 2006-03-03 Patrick Lam <plam@mit.edu>
493 Enable creation of 2.3.94 Debian packages.
495 2006-03-02 Egmont Koblinger <egmont@uhulinux.hu>
498 * src/fclang.c (FcCharSetForLang):
500 Fix suspicious return expression which causes junk
503 2006-02-24 Patrick Lam <plam@mit.edu>
507 * fontconfig/fontconfig.h:
509 Bump version to 2.3.94.
511 2006-02-24 Patrick Lam <plam@mit.edu>
516 2006-02-24 Patrick Lam <plam@mit.edu>
517 * conf.d/10-fonts-persian.conf:
519 Remove unconditional emboldening (per Behdad's instructions).
523 Add @s to hide some echos.
525 2006-02-24 Mike Fabian <mfabian@suse.de>
526 Takashi Iwai <tiwai@suse.de>
529 * src/fcfreetype.c (GetScriptTags):
531 Fix double-free on error case.
533 2006-02-21 Patrick Lam <plam@mit.edu>
534 * fc-lang/fc-lang.c (scan):
536 Strip \r and whitespace from input; fixes bug 3454.
538 2006-02-21 Patrick Lam <plam@mit.edu>
539 * fc-lang/fc-lang.c (main):
541 Allocate large arrays statically in fc-lang to fix crashes under
544 2006-02-21 Diego Petten <flameeyes@gentoo.org>
545 * src/fcfreetype.c (FcFreeTypeCharIndex):
547 Pass the buck; make fontconfig not crash on pango badness.
549 2006-02-21 Patrick Lam <plam@mit.edu>
550 * conf.d/10-fonts-persian.conf:
552 Use embeddedbitmap rather than rh_prefer_bitmap.
554 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
557 * src/fccache.c (FcDirCacheWrite):
558 * src/fcdir.c (FcFileScanConfig):
559 * src/fcfreetype.c (FcStringInPatternElement):
560 * src/fcxml.c (FcParseFamilies):
561 * src/ftglue.c (ftglue_face_goto_table):
563 Eliminate redundancies.
565 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
568 * fc-list/fc-list.c (main):
569 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
570 * src/fcstr.c (FcStrStr):
571 * src/fcxml.c (FcConfigSaveAttr):
573 Eliminate unused vars reported by Intel's compiler.
575 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
580 Remove one more archaic character.
582 2006-02-21 Ross Burton <ross@burtonini.com>
583 reviewed by: plam, keithp
585 * src/fcxml.c (FcParsePatelt):
587 Freeze patterns created by configuration file for tiny
588 memory savings (every little bit helps).
590 2006-02-21 Mike Fabian <mfabian@suse.de>
593 * fc-cat/fc-cat.c (main):
595 Initialize fontconfig library in fc-cat to avoid segfault.
597 2006-02-18 Patrick Lam <plam@mit.edu>
598 * fc-cache/fc-cache.c (scanDirs):
599 * src/fccache.c (FcCacheReadDirs):
600 * src/fcdir.c (FcDirScanConfig):
602 Fix the underlying cause of the below segfault (must usually
603 call FcDirCacheHasCurrentArch after FcDirCacheValid).
605 2006-02-18 Patrick Lam <plam@mit.edu>
606 * src/fccache.c (FcDirCacheHasCurrentArch):
608 Fix triggering of segfault caused by misreading cache files
609 (reported by fcrozat).
611 2006-02-17 Patrick Lam <plam@mit.edu>
612 * src/fcint.h (FC_CACHE_MAGIC):
614 Bump up magic version; we changed the binary format.
616 2006-02-17 Patrick Lam <plam@mit.edu>
617 * fc-cat/fc-cat.c (main):
619 Enable fc-cat to print out old-style cache info when given a
622 2006-02-16 Patrick Lam <plam@mit.edu>
623 * src/fccache.c (FcDirCacheHasCurrentArch):
625 Deal correctly with changing FC_CACHE_MAGIC.
627 2006-02-16 Patrick Lam <plam@mit.edu>
628 * fc-cache/fc-cache.c (usage, scanDirs, main):
630 Add -r --really-force option which blows away cache files and then
633 2006-02-16 Patrick Lam <plam@mit.edu>
634 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
636 Don't bail if fontconfig can't remove a dir cache file.
637 Skip the ID of a cache file when copying.
638 Eliminate 'source file too small' bug in FcDirCacheWrite.
640 2006-02-13 Patrick Lam <plam@mit.edu>
641 * src/fcfreetype.c (FcFreeTypeQuery):
643 Fix memory leak in error condition code.
645 2006-02-13 Mike Fabian <mfabian@suse.de>
647 * src/fcfreetype.c (FcFreeTypeQuery):
649 Skip bitmap fonts which can't even get it together enough to
650 declare a family name; this appears to reproduce previous
651 fontconfig behaviour.
653 2006-02-10 Takashi Iwai <tiwai@suse.de>
655 * src/fccache.c (FcDirCacheOpen):
657 Try to open /var/cache/fontconfig/[hashed name] before
658 fonts.cache-2 in a directory, because /var/cache/fontconfig
659 failures ought to be fixable, unlike fonts.cache-2 failures,
660 which may leave you screwed.
662 2006-02-10 Takashi Iwai <tiwai@suse.de>
664 * src/fcmatch.c (FcFontSetMatch):
666 Use a tri-state to mark the fonts which didn't get blocked but
667 were just missing an element, to distinguish them from the
668 fonts that do match the element.
670 2006-02-10 Takashi Iwai <tiwai@suse.de>
672 * src/fcmatch.c (FcFontSetMatch):
674 Don't kill fonts because they don't declare an element that's
677 2006-02-09 Patrick Lam <plam@mit.edu>
678 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
679 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
681 Define and pass O_BINARY to open if appropriate, for those
682 platforms that need it. Reported by Doodle.
684 2006-02-09 Patrick Lam <plam@mit.edu>
685 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
688 Fix problem with missing 'en' due to euro.patch: change
689 cache file format slightly to coincide with that generated
692 2006-02-07 Patrick Lam <plam@mit.edu>
693 * src/fccache.c (FcCacheReadDirs):
697 2006-02-07 Patrick Lam <plam@mit.edu>
698 * src/fcdir.c (FcDirScanConfig):
700 Don't reject dirs that can't be normalized (fixes lilypond, and
701 is correct in the context of application font directories.)
703 2006-02-07 Takashi Iwai <tiwai@suse.de>
706 * src/fccache.c (FcCacheReadDirs):
708 Use normalized directory name exclusively in FcCacheReadDirs.
710 2006-02-07 Dirk Mueller <dmueller@suse.com>
713 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
715 Perf optimizations. Inline FcValueCanonicalize,
716 reduce FcValueListPtrU usage, remove redundant cast.
718 2006-02-07 Takashi Iwai <tiwai@suse.de>
721 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
724 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
725 Declare extern for static arrays as arrays, not pointers.
726 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
728 2006-02-07 Dirk Mueller <dmueller@suse.com>
741 Add Euro sign to list of symbols required by European languages.
743 2006-02-07 Patrick Lam <plam@mit.edu>
744 * src/fccache.c (FcCacheReadString):
746 Fix hidden variable warning.
748 2006-02-07 Dirk Mueller <dmueller@suse.com>
751 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
753 Remove de-escaping logic because FcCacheWriteString
754 doesn't escape anyway. Do blockwise reading instead
755 of byte-wise for performance.
757 2006-02-06 Patrick Lam <plam@mit.edu>
758 Takashi Iwai <tiwai@suse.de>
760 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
762 Don't loop infinitely on recursive symlinks (client-side).
764 2006-02-06 Takashi Iwai <tiwai@suse.de>
766 * fc-cache/fc-cache.c (scanDirs, main):
768 Don't loop infinitely on recursive symlinks.
770 2006-02-06 Takashi Iwai <tiwai@suse.de>
772 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
773 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
774 FcGlobalCacheSave, FcCacheReadDirs):
777 Skip subdirs when skipping over stale bits of global cache.
778 Introduce state machine into FcGlobalCacheDir to avoid
779 doing inappropriate operations on global dir entries, e.g.
780 writing out an out-of-date cache entry.
782 2006-02-06 Takashi Iwai <tiwai@suse.de>
784 * src/fcdir.c (FcFileScanConfig):
786 Hoist FcFileIsDir check out of FcFileScanConfig loop.
788 2006-02-06 Takashi Iwai <tiwai@suse.de>
791 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
792 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
794 Don't rescan when trying to normalize a non-declared font dir.
795 Don't add font dirs multiple times (even if they're aliased).
797 2006-02-06 Dirk Mueller <dmueller@suse.de>
800 * src/fcfs.c (FcFontSetUnserialize):
802 Explain apples/oranges comparison and fix compilation error.
804 2006-02-06 Dirk Mueller <dmueller@suse.de>
807 * src/fcfs.c (FcFontSetUnserialize):
809 Insert check for integer overflow in # of fonts.
811 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
815 * fc-cache/Makefile.am:
816 * fc-cat/Makefile.am:
817 * fc-list/Makefile.am:
819 Make 'make distcheck' work with automake 1.6.3.
821 2006-02-03 Takashi IWAI <tiwai@suse.de>
824 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
827 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
828 FcDirCacheConsume, FcDirCacheWrite)
829 * src/fcxml.c (FcConfigMessage):
831 Check I/O call return values and eliminate unused variable
834 2006-02-03 Takashi Iwai <tiwai@suse.de>
837 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
841 2006-02-03 Dirk Mueller <dmueller@suse.de>
844 * src/fcfs.c (FcFontSetUnserialize):
846 Gracefully handle the case where a cache asserts that it
847 has a negative number of fonts, causing overflow.
849 2006-02-03 Patrick Lam <plam@mit.edu>
850 * src/fccache.c (FcDirCacheUnlink):
852 Fix double free in error case.
854 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
855 Stephan Kulow <coolo@suse.de>
858 * fc-cache/Makefile.am:
860 Replace 'stamp' target with mkinstalldirs.
862 2006-01-31 Mike Fabian <mfabian@suse.de>
865 * src/fccache.c (FcGlobalCacheLoad):
867 Toast broken global cache files.
869 2006-01-30 Patrick Lam <plam@mit.edu>
870 * src/fccache.c (FcGlobalCacheReadDir):
872 Actually use the directories that I added to the global cache.
875 2006-01-30 Mike Fabian <mfabian@suse.de>
878 * fc-cache/fc-cache.c (scanDirs):
880 Don't stop scanning if a directory in fonts.conf doesn't
881 exist, because subsequent directories might exist.
883 2006-01-30 Patrick Lam <plam@mit.edu>
884 * src/fccache.c (FcGlobalCacheLoad):
886 Make global cache work again after putting dir names into global
887 cache (I misplaced the recording of a file offset).
889 2006-01-30 Patrick Lam <plam@mit.edu>
890 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
892 Update fc-cat to handle subdir lists in global cache file.
894 * src/fccache.c (FcGlobalCacheLoad):
896 Another FcCacheReadString return value check.
898 2006-01-30 Mike Fabian <mfabian@suse.de>
901 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
902 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
904 Make fccache more resilient to broken cache files by checking
905 return value of FcCacheReadString all the time.
907 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
910 * fc-match/fc-match.1:
911 * fc-lang/fc-lang.man:
913 Remove references to dead fontconfig(3) manpages in
914 other fontconfig manpages.
916 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
919 * doc/fcpattern.fncs:
921 Fix world's tiniest typo in code example.
923 2006-01-29 Mike Fabian <mfabian@suse.de>
926 * src/fccache.c (FcGlobalCacheReadDir):
928 Fix global cache reads of subdirectories.
930 2006-01-29 Patrick Lam <plam@mit.edu>
932 Add documentation for FcConfigNormalizeFontDir.
934 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
935 FcGlobalCacheUpdate, FcGlobalCacheSave):
936 * src/fcdir.c (FcDirScanConfig):
939 Write directory information to global caches to fix make check
940 (reported by Ronny V. Vindenes). This changes the global cache
943 2006-01-27 Patrick Lam <plam@mit.edu>
944 * fc-cache/fc-cache.c (scanDirs):
945 * fontconfig/fontconfig.h:
947 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
949 Move FcConfigNormalizeFontDir call so that it doesn't result in
950 infinite recursion (reported by Ronny V. Vindenes).
952 2006-01-26 Patrick Lam <plam@mit.edu>
953 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
954 * src/fccfg.c (FcConfigNormalizeFontDir):
956 Add a couple of missing normalizations to make fc-cache work
957 right; only scan subdirectories once.
959 2006-01-26 Mike Fabian <mfabian@suse.de>
962 * src/fcacache.c (FcGlobalCacheReadDir):
964 Don't crash on non-existant directories in global cache.
966 2006-01-26 Patrick Lam <plam@mit.edu>
967 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
968 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
969 * src/fcdir.c (FcDirScanConfig):
970 * src/fcxml.c (FcEndElement):
972 Stop trampling the directory name when writing out caches.
973 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
974 subdirs when necessary. Don't scan directories that can't be
977 2006-01-25 Patrick Lam <plam@mit.edu>
978 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
979 * src/fccfg.c (FcConfigEvaluate):
980 * src/fcfreetype.c (FcPatternAddWithBinding):
982 Fix additional memory leaks reported by Ronny V. Vindenes: don't
983 invoke FcValueSave on hashed static strings in
984 FcPatternAddWithBinding.
986 Add another st_dev check in FcDirCacheOpen.
988 2006-01-24 James Su <james.su@gmail.com>
991 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
992 * fc-lang/zh_hk.orth:
994 Treat zh-hk fonts differently from zh-tw fonts. This patch may
995 cause fontconfig to treat A-X fonts differently from A-Y fonts;
996 please mail the fontconfig list if this causes any problems.
998 2006-01-24 Patrick Lam <plam@mit.edu>
999 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
1000 * src/fcfreetype.c (FcFreeTypeQuery):
1002 Fix memory leaks reported by Ronny V. Vindenes.
1004 2006-01-19 Andreas Schwab <schwab@suse.de>
1007 * src/fcpat.c (FcStrNeededBytes):
1009 Fix for unaligned memory accesses.
1011 2006-01-18 Mike Fabian <mfabian@suse.de>
1014 * src/fcdir.c (FcDirScanConfig):
1016 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
1017 calls to avoid crashes.
1019 2006-01-14 Patrick Lam <plam@mit.edu>
1020 * src/fccache.c (FcDirCacheConsume):
1022 Fix segfault when consuming zero-length caches in fc-cat
1023 (which has no config, so FcConfigAddFontDir shouldn't be called.)
1025 2006-01-14 Patrick Lam <plam@mit.edu>
1026 * fc-cache/fc-cache.c (scanDirs):
1027 * fontconfig/fontconfig.h:
1028 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
1029 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
1030 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
1031 * src/fcdir.c (FcDirScanConfig):
1034 Compare device numbers as well as inodes.
1035 Always normalize directory names before comparing them.
1037 2006-01-11 Mike Fabian <mfabian@suse.de>
1040 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
1042 Allocate extra space for appended '/' in directory name.
1044 2006-01-10 Patrick Lam <plam@mit.edu>
1045 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
1046 FcDirCacheValid, FcDirCacheHasCurrentArch,
1047 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
1048 * fc-cache/fc-cache.c (main):
1050 Explicitly add font dirs to config.fontDirs even if they're empty.
1051 Set current config in fc-cache.c.
1052 Fix treatment of cache directory as read from cache file; don't
1053 use string equality to determine if we have the right file,
1056 2006-01-09 Patrick Lam <plam@mit.edu>
1057 * fc-cache/fc-cache.c (scanDirs):
1058 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
1059 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
1060 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
1061 * src/fccfg.c (FcConfigNormalizeFontDir):
1062 * src/fcdir.c (FcDirScanConfig):
1065 Normalize font dirs by using the form, as given in fonts.conf, and
1066 recorded in FcConfig's fontDirs string set, as canonical.
1068 Actually update config.fontDirs as font directories are scanned.
1070 2006-01-08 James Su <james.su@gmail.com>
1071 * src/fcmatch.c (FcFontSetMatch):
1073 Fix matching bug when multiple elements match; don't use
1074 the sum of all scores, but the best score.
1076 Also more perf opts, e.g. evaluate best over all font sets
1077 rather than on a per-set basis (and other changes).
1079 2006-01-08 Patrick Lam <plam@mit.edu>
1080 * src/fccache.c (FcDirCacheConsume):
1082 Properly skip past dir caches that contain zero fonts (as occurs
1083 in global caches.) Reported by Mike Fabian.
1085 2006-01-06 Patrick Lam <plam@mit.edu>
1086 * src/fcdbg.c (FcPatternPrint):
1088 Print out full pathname in fc-match -v as well. Reported by
1091 2006-01-06 Mike Fabian <mfabian@suse.de>
1094 * src/fcname.c (FcNameParse):
1096 Fix bug where fc-match crashes when given __DUMMY__ property to
1099 (I added the __DUMMY__ string to enable callers of
1100 FcObjectToPtrLookup to distinguish an error return from a
1101 successful return. -PL)
1103 2006-01-05 Patrick Lam <plam@mit.edu>
1106 Add self to AUTHORS list.
1108 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
1109 FcCacheFileRead, FcCachePrintSet, main):
1110 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
1111 FcGlobalCacheSave, FcCacheNextOffset,
1112 FcDirCacheHasCurrentArch, FcDirCacheRead,
1113 FcDirCacheConsume, FcDirCacheWrite):
1115 * src/fcpat.c (comment):
1117 Minor change to global cache file format to fix fc-cat bug
1118 reported by Frederic Crozat, and buglet with not globally caching
1119 directories with zero fonts cached.
1121 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
1124 * src/fccfg.c (FcConfigEvaluate):
1126 Fix double-free which occurs because FcValueCanonicalize doesn't
1127 create an extra copy of the returned value, it only canonicalizes
1130 2006-01-02 Patrick Lam <plam@mit.edu>
1131 * doc/fontconfig-user.sgml:
1133 Fix version of .cache file (currently 1 -> currently 2). Reported
1136 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
1139 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
1141 Shut up GCC warnings on amd.
1143 2005-12-20 Patrick Lam <plam@mit.edu>
1147 * fontconfig/fontconfig.h:
1149 Bump version to 2.3.93.
1151 2005-12-20 Patrick Lam <plam@mit.edu>
1152 * src/fccharset.c (FcLangCharSetPopulate):
1153 * src/fcint.h (FcCacheBankToIndex):
1155 Avoid check on _fcBankId nullness and fix case where it used to
1158 2005-12-20 Patrick Lam <plam@mit.edu>
1159 * src/fcxml.c (FcConfigParseAndLoad):
1161 Use open instead of fopen (requested by Phil Race for Sun).
1163 2005-12-20 Patrick Lam <plam@mit.edu>
1164 * src/fccache.c (FcDirCacheWrite);
1165 * fc-cache/Makefile.am:
1167 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
1170 2005-12-20 Patrick Lam <plam@mit.edu>
1171 * src/fcfreetype.c (FcFreeTypeQuery):
1173 Restore code to skip over PCF fonts that have no encoded
1175 (We guess that a font is PCF by presence of the PIXEL_SIZE
1178 2005-12-12 Patrick Lam <plam@mit.edu>
1179 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
1181 Read and write the original location as a fallback for the
1182 hashed cache file locations. This is mostly for users to be
1183 able to have per-directory cache files.
1185 2005-12-12 Patrick Lam <plam@mit.edu>
1186 * fc-cache/fc-cache.c (scanDirs):
1187 * fc-cache/Makefile.am:
1188 * src/fccache.c (FcDirCacheHashName):
1190 Improve error message when fc-cache can't write the cache. Add
1191 missing slash. Reported by Behdad. Incorporate Behdad's patch to
1192 create /var/cache/fontconfig when appropriate.
1194 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
1197 * src/fcxml.c (FcConfigGetAttribute):
1199 Fix crash reported by Frederic Crozat when using libxml2.
1201 2005-12-09 Patrick Lam <plam@mit.edu>
1204 * fc-cache/Makefile.am:
1205 * fc-cat/Makefile.am:
1207 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
1208 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
1209 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
1210 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
1211 FcDirCacheHasCurrentArch, FcDirCacheHashName,
1212 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
1214 Migrate cache files from fonts directories to
1215 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
1216 but requires that all caches get rebuilt.
1218 Also, autogen.sh now needs the additional parameter
1219 --localstatedir=/var.
1221 2005-12-07 Patrick Lam <plam@mit.edu>
1222 * src/fcpat.c (FcPatternAddString):
1224 Because we've changed FcPatternAddString to use FcStrStaticName
1225 and not FcValueSave, explicitly handle the case of a null string.
1227 2005-12-06 Patrick Lam <plam@mit.edu>
1228 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
1232 2005-12-05 Patrick Lam <plam@mit.edu>
1233 * src/fcname.c (FcNameGetObjectType):
1235 Don't assign types to user object names.
1237 2005-12-05 Patrick Lam <plam@mit.edu>
1238 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
1240 Don't free strings that have been returned from FcStrStaticName.
1242 2005-12-01 Patrick Lam <plam@mit.edu>
1243 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
1245 Add codepath for reading global cache files as well.
1247 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
1250 * conf.d/10-fonts.persian.conf:
1251 * conf.d/Makefile.am:
1253 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
1255 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
1258 * src/fcxml.c (FcConfigParseAndLoad):
1260 Only add a config file to the set of config files once.
1262 2005-11-29 Patrick Lam <plam@mit.edu>
1263 * src/fcint.h (FcCacheBankToIndex);
1265 Fix segfault by guarding array dereference.
1267 2005-11-29 Dirk Mueller <dmueller@suse.de>
1270 * fc-lang/fc-lang.c:
1271 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
1272 FcCacheBankToIndex, FcCacheBankToIndexMTF,
1276 Refactor FcCacheBankToIndex into an inlineable part
1277 (in fcint.h) which checks the front of the list and a
1278 non-inlineable part which finds and moves the appropriate element
1279 to the front of the list.
1281 2005-11-29 Patrick Lam <plam@mit.edu>
1282 * src/fccfg.c (FcConfigBuildFonts):
1283 * src/fccache.c (FcCacheReadDirs):
1285 Make the perf guys hate me a bit less: hoist the directory-name
1286 FcConfigAcceptFont check for cached fonts up to directory cache
1287 read time, rather than running it for each font.
1289 2005-11-29 Patrick Lam <plam@mit.edu>
1290 * src/fccfg.c (FcConfigBuildFonts):
1292 * src/fcpat.c (FcPatternFindFullFname):
1294 Don't make FcPatternFindFullFname available to fccfg, it's not
1295 really safe. Instead go through FcPatternGetString (sorry,
1296 perf guys.) Also, use globs for dirs as well.
1298 2005-11-28 Patrick Lam <plam@mit.edu>
1299 * src/fccfg.c (FcConfigBuildFonts):
1303 2005-11-28 Patrick Lam <plam@mit.edu>
1305 * src/fcpat.c (FcPatternFindFullFname):
1306 * src/fccfg.c (FcConfigBuildFonts):
1308 Fix problem dating back at least to 2.3.2 where globs weren't
1309 being applied to patterns loaded from a cache.
1311 2005-11-28 Patrick Lam <plam@mit.edu>
1312 * doc/fontconfig-user.sgml:
1314 Fix some obvious spelling mistakes.
1316 2005-11-28 Dirk Mueller <dmueller@suse.com>
1317 Stephan Kulow <coolo@suse.de>
1320 * src/fcmatch.c (FcFontSetMatch):
1322 Don't kill all fonts during match (oops!)
1325 2005-11-25 Dirk Mueller <dmueller@suse.com>
1326 Stephan Kulow <coolo@suse.de>
1327 Michael Matz <matz@suse.de>
1330 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
1333 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
1334 inline FcCompare into FcFontSetMatch and reorder the
1335 loops, adding a boolean array which blocks patterns from future
1336 consideration if they're known to not be best on some past
1339 2005-11-26 Dirk Mueller <dmueller@suse.com>
1342 * src/fcmatch.c (FcCompareValueList):
1344 Fix incorrect merge.
1346 2005-11-25 Patrick Lam <plam@mit.edu>
1347 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
1349 Don't do random matching when bad objects are passed into
1352 2005-11-25 Patrick Lam <plam@mit.edu>
1354 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
1355 FcPatternSerialize, FcPatternUnserialize,
1356 FcValueListEnsureBank, FcValueListDistributeBytes,
1357 FcValueListUnserialize):
1359 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
1360 _fcPatternElts, _fcValueLists for consistency.
1362 2005-11-25 Dirk Mueller <dmueller@suse.com>
1367 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
1369 2005-11-25 Patrick Lam <plam@mit.edu>
1371 * src/fccache.c (FcDirCacheConsume):
1372 * src/fccharset.c (FcCharSetUnserialize):
1373 * src/fcfs.c (FcFontSetUnserialize):
1374 * src/fclang.c (FcLangSetUnserialize):
1375 * src/fcname.c (FcObjectUnserialize):
1376 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
1377 FcPatternUnserialize):
1379 Pass around FcCache *s to the Unserialize functions for extra
1380 consistency (and less overhead, for what that's worth).
1382 2005-11-24 Dirk Mueller <dmueller@suse.com>
1386 * src/fcmatch.c (FcCompare*, FcFontSetSort):
1387 * src/fcname.c (FcNameUnparseValue):
1389 Inline the *PtrU functions to gain perf.
1390 Remove unneeded params for the FcCompare* functions.
1392 2005-11-24 Dirk Mueller <dmueller@suse.com>
1395 * src/fcint.h, fontconfig/fontconfig.h:
1397 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
1399 * src/fcpat.c, src/fcint.h, src/fcname.c:
1401 Check for type validity during FcPatternAddWithBinding, don't
1402 verify type in FcFontMatch, don't call FcCanonicalize here
1403 (which always does a deep copy).
1405 2005-11-24 Dirk Mueller <dmueller@suse.com>
1408 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
1409 * src/fcpat.c (FcPatternAddWithBinding):
1411 Make FcCompareString and FcCompareFamily less expensive.
1412 Only add a value for FC_FAMILY if the proposed value is a string.
1414 2005-11-24 Dirk Mueller <dmueller@suse.com>
1417 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
1418 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
1419 * src/fcint.h (FcDebug):
1421 Inline FcDebug invocations and only initialize once, in FcInit*.
1422 Improve debug msg in FcPatternPrint.
1424 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1427 * fontconfig/fontconfig.h:
1430 Minor code warning cleanups.
1432 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1435 * fc-match/fc-match.c (main):
1437 Make getopt_long accept -s parameter to fc-match as well.
1439 2005-11-21 Dirk Mueller <dmueller@suse.com>
1442 * src/fcmatch.c (FcCompareValueList):
1444 Manually perform inlining & partial redundancy elimination to
1445 reduce calls to FcValueListPtrU.
1447 2005-11-21 Dirk Mueller <dmueller@suse.com>
1450 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
1451 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
1453 Only invoke strlen() when really necessary.
1455 2005-11-19 Matthias Clasen <mclasen@redhat.com>
1459 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
1460 FcFontCapabilities):
1464 Get rid of the use of freetype internal headers in fcfreetype.c,
1465 since those headers will go away with freetype 2.2. Replace with
1466 public domain ftglue code from pango. Note that the patch removes
1467 some extra error checking in FT_Get_BDF_Property() and comments
1468 out the skipping of empty pcf fonts.
1470 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
1473 * fc-lang/fc-lang.c (main):
1475 Further fix of patch from 2005-11-04: miscounted numbers count
1476 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
1477 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
1479 Removed leafidx_count and numbers_count since they are the same
1480 and replaced them with offset_count.
1482 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1485 * fc-cat/fc-cat.c (main):
1487 Don't crash when fc-cat invoked with no arguments.
1489 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1492 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
1494 Fix invalid read access caused by premature free and
1495 GCC4 warnings in libxml2 codepath.
1497 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
1500 * src/fccfg.c (FcConfigValues):
1502 List iteration not needed in FcConfigValues, since it's building
1503 up the list itself; we can just strip FcVoid elements during
1506 2005-11-17 Patrick Lam <plam@mit.edu>
1507 * src/fccfg.c (FcConfigValues):
1509 Fix crash on invalid constants in config files (forgot to update
1510 a pointer upon list iteration.)
1512 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
1515 * src/fcxml.c (FcTypecheckExpr):
1517 Complain about invalid constants in config files.
1519 2005-11-17 Andreas Schwab <schwab@suse.de>
1522 * src/fccache.c (FcGlobalCacheSave):
1524 Don't add current_arch_start more than once.
1526 2005-11-16 Patrick Lam <plam@mit.edu>
1527 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1528 * src/fcfs.c (FcFontSetUnserialize):
1529 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1530 * src/fcpat.c (FcStrUnserialize):
1532 Fix ordering of ALIGN with respect to saving block_ptr; add
1533 another ALIGN to fcfs.c.
1535 2005-11-16 Patrick Lam <plam@mit.edu>
1536 * src/fccache.c (FcDirCacheProduce)
1538 Fix case where alignment bytes bumped up metadata->count
1539 causing unwarranted failures to write cache files.
1540 (Reported by Stephan Kulow).
1542 2005-11-16 Patrick Lam <plam@mit.edu>
1543 * src/fccache.c (FcDirCacheProduce):
1544 * src/fccharset.c (FcCharSetDistributeBytes):
1545 * src/fcfs.c (FcFontSetDistributeBytes):
1547 * src/fclang.c (FcLangSetDistributeBytes):
1548 * src/fcname.c (FcObjectDistributeBytes):
1549 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1552 Add *NeededBytesAlign(), which overestimates the padding which is
1553 later added by the new ALIGN macro. Fix alignment problems on
1554 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1555 version by Andreas Schwab).
1557 2005-11-16 Stephan Kulow <coolo@kde.org>
1562 Use sysconf to determine proper PAGESIZE value; this
1563 appears to be POSIX-compliant. (reported by Andreas Schwab)
1565 2005-11-04 Patrick Lam <plam@mit.edu>
1566 * fc-lang/fc-lang.c:
1571 Fix bug 2878 (excessive relocations at startup for charsets,
1572 reported by Ross Burton): fc-lang/fc-lang now creates the
1573 static form of the langset, not the dynamic form, so that
1574 the charsets should now be in .rodata.
1576 2005-11-04 Patrick Lam <plam@mit.edu>
1577 * src/fcdir.c (FcDirScanConfig):
1579 Add test for validity of directory caches that
1580 somehow got lost (reported by make distcheck).
1582 2005-11-04 Patrick Lam <plam@mit.edu>
1586 * fontconfig/fontconfig.h:
1588 Bump version to 2.3.92.
1590 2005-11-02 Patrick Lam <plam@mit.edu>
1591 * src/fcpat.c (FcPatternDuplicate):
1593 Fix argument ordering problem in call to FcPatternTransferFullFname.
1595 2005-11-02 Patrick Lam <plam@mit.edu>
1596 * src/fcfreetype.c (FcFreetypeQuery):
1597 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1598 FcPatternTransferFullFname):
1600 Fix warnings and embarrassing double-free error.
1602 2005-11-02 Zhe Su <zsu@novell.com>
1607 Change the rule for artificial emboldening in fonts.conf.in. This
1608 enables the support for artificial emboldening included in cairo.
1610 2005-11-02 Patrick Lam <plam@mit.edu>
1611 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1613 Don't zero out full names for FC_REF_CONSTANT fonts;
1614 also, duplicate full names when transferring, and free
1615 full names when freeing the associated font.
1616 Reported by Jinghua Luo.
1618 2005-11-02 Patrick Lam <plam@mit.edu>
1619 * fc-cache/fc-cache.c (scanDirs):
1620 * src/fcpat.c (FcValueListSerialize):
1622 Revert the previous patch and commit the correct patch:
1623 I forgot a canonicalization in FcValueListSerialize, so
1624 that it would choke on already-serialized input files. Duh!
1626 2005-11-02 Patrick Lam <plam@mit.edu>
1627 * fc-cache/fc-cache.c (scanDirs):
1629 Forcibly rescan a directory before writing a fresh local
1630 cache file for that directory, fixing the losing-fonts
1631 problem reported by Mike Fabian and also apparently the
1632 font cache file corruption.
1634 2005-11-02 Patrick Lam <plam@mit.edu>
1635 * src/fccache.c (FcGlobalCacheLoad):
1637 Fix thinko: actually, the whole global cache is stale
1638 if the global cache is older than the (newest) config file.
1640 2005-11-02 Patrick Lam <plam@mit.edu>
1641 * src/fccache.c (FcGlobalCacheLoad):
1642 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1645 Declare the global cache of a directory's contents to be stale if
1646 the directory is newer than the (newest) configuration file.
1648 2005-10-31 Patrick Lam <plam@mit.edu>
1650 * src/fclist.c (FcListAppend):
1651 * src/fcmatch.c (FcFontRenderPrepare):
1652 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1653 FcPatternFreeze, FcPatternBaseFreeze):
1655 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1656 applications continue breaking.
1658 2005-10-31 Patrick Lam <plam@mit.edu>
1659 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1660 * src/fcfreetype.c (FcFreeTypeQuery):
1662 Fix small memory error (tried to free argv); use basename and
1663 dirname correctly (they can modify their arguments).
1665 2005-10-31 Patrick Lam <plam@mit.edu>
1673 Reinstate basename patch, but keep a hash table linking FcPatterns
1674 to their fully-qualified font names for clients' benefit. Clients
1675 only pay for the font names once they request the FC_FILE property
1676 from an FcPattern, but the font name is malloc'd at that point (i.e.
1677 not mmapped: that's impossible, since it may vary between machines.)
1678 Clients do have to pay for a copy of the path name per cache file.
1680 Note that FcPatternGetString now does some rewriting if you ask
1681 for an FC_FILE, appending the pathname as appropriate.
1683 2005-10-31 Patrick Lam <plam@mit.edu>
1684 * src/fcfreetype.c (FcFreeTypeQuery):
1686 Revert basename patch, which breaks fontconfig clients on my system.
1688 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1691 * fontconfig/fonts.conf.in:
1692 * fontconfig/fontconfig.h:
1696 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1697 to load embedded bitmaps or not.
1699 2005-10-25 Patrick Lam <plam@mit.edu>
1700 * src/fcfreetype.c (FcFreeTypeQuery):
1702 Only add basename to patterns' FC_FILE element, not any part of
1705 2005-10-22 Patrick Lam <plam@mit.edu>
1708 Add some more consts, fixing more GCC4 warnings.
1710 2005-10-22 Zhe Su <zsu@novell.com>
1713 Support localized font family and style names.
1714 This has been reported to break old apps like xfd, but modern
1715 (gtk+/qt/mozilla) apps work fine.
1717 2005-10-21 Patrick Lam <plam@mit.edu>
1718 * src/fccache.c (FcGlobalCacheLoad):
1720 Destroy the global cache file if it's terminally broken. (reported by
1723 2005-10-21 Patrick Lam <plam@mit.edu>
1724 * fc-list/fc-list.c (main):
1725 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1726 * fontconfig/fontconfig.h:
1728 Prevent fc-list from escaping strings when printing them (reported by
1731 2005-10-20 Marcus Meissner <meissner@suse.de>
1734 * fontconfig/fontconfig.h:
1736 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1738 2005-10-14 Ross Burton <ross@burtonini.com>
1741 * fc-glyphname/fc-glyphname.c:
1744 Add consts to variables so as to move arrays into .rodata.
1746 2005-10-14 Mike Fabian <mfabian@suse.de>
1749 * src/fccache.c (FcDirCacheUnlink):
1751 Check existence of directory cache file before attempting to unlink.
1753 2005-10-13 Patrick Lam <plam@mit.edu>
1754 * src/fccache.c (FcDirCacheUnlink):
1756 Fix flipped return value on unlink. (Reported by Mike Fabian)
1758 2005-10-12 Patrick Lam <plam@mit.edu>
1761 * src/fcdir.c (FcDirScanConfig):
1764 When fc-cache is run without --force, use directory cache files
1765 to speed up fc-cache run time. (Reported by Mike Fabian)
1767 2005-10-06 Patrick Lam <plam@mit.edu>
1769 * src/fcname.c (FcObjectToPtr):
1770 * src/fcpat.c (FcStrStaticName):
1772 Add padding to make valgrind and glibc not hate each other
1773 when calling strlen().
1775 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1776 reviewed by: plam & keithp
1780 Modify config file to use Greek fonts before Asian fonts with
1783 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1784 reviewed by: plam & keithp
1788 Use libtool -no-undefined flag on all platforms.
1790 2005-10-05 Patrick Lam <plam@mit.edu>
1791 * src/fccache.c (FcCacheHaveBank):
1793 Implement move-to-front array for banks (perf regression
1794 reported by Ronny V. Vindenes).
1796 2005-10-04 Patrick Lam <plam@mit.edu>
1797 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1798 FcDirCacheHasCurrentArch):
1799 * fc-cache/fc-cache.c (scanDirs):
1800 * fontconfig/fontconfig.h:
1802 Add new API which unlinks directory caches and checks dir caches
1803 for existence of appropriate sections. Fix fc-cache to unlink
1804 stale cache files and save directory caches that lack relevant
1807 2005-10-03 Patrick Lam <plam@mit.edu>
1808 * src/fccache.c (FcDirCacheValid):
1810 Ensure that a directory cache has the appropriate section
1811 before reporting that it is valid (reported by Matthias Clasen).
1813 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1821 Use libxml2 if requested (with --enable-libxml2) or if
1822 expat is not available.
1824 2005-09-29 Patrick Lam <plam@mit.edu>
1825 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1827 Fix multi-arch cache files: compute the position for the
1828 block to be added using info from OrigFile, not NewFile.
1830 2005-09-28 Patrick Lam <plam@mit.edu>
1831 * src/fccache.c (FcCacheMachineSignature):
1833 Cast results of sizeof() to unsigned int to get rid of
1834 warnings on x86_64 (thanks Matthias Clasen).
1836 2005-09-27 Patrick Lam <plam@mit.edu>
1837 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1840 Use FcAtomic to rewrite cache files.
1842 2005-09-27 Patrick Lam <plam@mit.edu>
1844 * src/fccache.c (FcDirCacheWrite):
1846 Don't unlink the fonts.cache-2 file even if there's no data
1847 to write; just write an empty cache file. (thanks Lubos Lunak)
1849 2005-09-27 Patrick Lam <plam@mit.edu>
1851 * src/fccache.c (FcDirCacheWrite):
1853 Allocate room for the subdirectory names in each
1854 directory cache. Thanks to James Cloos for finding
1855 and diagnosing this bug!
1857 2005-09-22 Patrick Lam <plam@mit.edu>
1859 * fc-cache/fc-cache.sgml:
1860 * src/fccache.c (FcDirCacheWrite):
1861 * src/fccache.h (struct FcCache):
1863 Update documentation -- fc-cache's man page now says that you
1864 need to run fc-cache once per cached architecture; add some
1865 documentation to the FcCache structure.
1867 Make fc-cache write out fonts.cache-2 files for directories with
1868 no fonts (i.e. only subdirectories).
1870 2005-09-22 Patrick Lam <plam@mit.edu>
1872 * fc-cache/fc-cache.sgml:
1873 * fc-case/fc-case.c:
1874 * fc-glyphname/fc-glyphname.c:
1880 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1884 * fc-lang/fc-lang.c:
1885 * fontconfig/fcprivate.h:
1886 * fontconfig/fontconfig.h:
1900 Implement new mmaped cache for font information.
1901 Bump so revision to 2.3.90.
1903 2005-07-25 Keith Packard <keithp@keithp.com>
1905 * doc/fontconfig-user.sgml:
1906 * fc-glyphname/fc-glyphname.c: (scan), (main):
1907 * fc-lang/fc-lang.c: (FcConfigHome):
1908 * fc-match/fc-match.c: (main):
1909 * src/fccfg.c: (FcConfigHome):
1910 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1911 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1912 (addtag), (FcFontCapabilities):
1913 * src/fcpat.c: (FcValueListEntCreate):
1914 * src/fcstr.c: (FcStrCaseWalkerInit):
1915 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1917 Various GCC 4 cleanups for signed vs unsigned char
1919 Match only [0-9]*.conf files in <include>{directory}</include>
1920 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1922 2005-07-15 Carl Worth <cworth@cworth.org>
1925 * src/fcinit.c: (FcFini):
1926 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1929 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1930 Pull the FcObjectStateName hash table out to file scope, and add
1931 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1934 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1937 2005-06-16 Patrick Lam <plam@MIT.EDU>
1941 * src/fccfg.c: (FcConfigCompareValue):
1942 Make FcOpNotContains use FcStrStr for strings so that
1943 it matches semantics for !FcOpContains.
1945 2005-05-20 Keith Packard <keithp@keithp.com>
1949 Move fontconfig source package to libs as per override
1951 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1953 reviewed by: Mike Fabian
1956 The ka.orth file requires several characters which are not
1957 used anymore in modern Georgian and which are missing in the free
1958 Georgian TrueType fonts downloadable at:
1960 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1962 2005-04-27 Keith Packard <keithp@keithp.com>
1966 Update date to real 2.3.2 release date.
1967 Fix change attributions
1969 2005-04-27 Keith Packard <keithp@keithp.com>
1972 Bump so revision for 2.3.2
1973 * fc-cache/fc-cache.c: (scanDirs):
1974 Fix a few minor leaks in error cases.
1976 2005-04-23 Keith Packard <keithp@keithp.com>
1981 * fontconfig/fontconfig.h:
1982 Update for version 2.3.2
1984 2005-04-21 Keith Packard <keithp@keithp.com>
1986 * debian/fontconfig.postinst:
1987 Don't force bitmap font enable in default
1988 configuration; allows users to override this in
1998 * debian/po/pt_BR.po:
1999 * debian/po/templates.pot:
2001 * debian/po/zh_CN.po:
2002 Updated translations
2004 * fc-cache/fc-cache.c: (main):
2005 Destroy font configuration on exit to help valgrind
2008 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
2009 (FcFreeTypeCheckGlyph):
2010 Use own transcoding routines in preference to iconv
2011 which appears to have leaks in some translators.
2012 Call iconv_close after using iconv (oops).
2014 Prefer unicode encoding of Euro char as some
2015 fonts mis-encode Euro in other ones.
2017 Must fetch bitmap glyphs to get width values
2018 to check for monospace/dual-width fonts.
2020 2005-04-13 Ross Burton <ross@burtonini.com>
2023 Check that a pattern isn't already frozen in FcPatternFreeze.
2025 2005-03-31 Ross Burton <ross@burtonini.com>
2030 Run all FcPattern objects through FcObjectStaticName, so that
2031 compares can be done on pointers instead of strings (#2659)
2033 2005-03-17 Tor Lillqvist <tml@novell.com>
2035 * src/fontconfig.def.in: Add the .dll to the dll name.
2037 2005-03-10 Keith Packard <keithp@keithp.com>
2039 * debian/README.Debian:
2040 Update to reflect configuration changes
2042 * debian/fontconfig.postinst:
2043 Fix Autohint vs Autohinter mistake
2044 * debian/fontconfig.templates:
2045 Adopt changes from Josselin Mouette for configuration descriptions
2046 Update debian to version 2.3.1-2
2048 2005-03-08 Keith Packard <keithp@keithp.com>
2052 Update debian for 2.3.1
2054 2005-03-09 Tor Lillqvist <tml@novell.com>
2056 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
2059 * src/fccfg.c (FcConfigFileExists): Check also drive letter
2062 2005-03-08 Keith Packard <keithp@keithp.com>
2066 * fontconfig/fontconfig.h:
2069 2005-03-05 Keith Packard <keithp@keithp.com>
2071 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
2072 Include space and remove numbers from valid script tags.
2073 This ensures that tags like 'lao ' work while rejecting
2074 those which have any digits.
2075 Eliminate a spurious debugging variable (len)
2077 2005-03-05 Keith Packard <keithp@keithp.com>
2079 * src/fcfreetype.c: (addtag), (GetScriptTags),
2080 (FcFontCapabilities):
2081 Rework GSUB/GPOS script parsing to survive broken fonts.
2082 Thanks for the broken font go to Manish Singh
2084 2005-03-05 Keith Packard <keithp@keithp.com>
2089 * debian/fontconfig.config:
2090 * debian/fontconfig.templates:
2092 Include 2.3 release information in changelog
2093 Add Josselin Mouette as an Uploader
2094 Set hinting_type to low priority configuration option
2097 * debian/fontconfig.postinst:
2098 yes_bitmaps.conf -> yes-bitmaps.conf
2104 2005-03-02 Keith Packard <keithp@keithp.com>
2107 * conf.d/Makefile.am:
2108 * conf.d/autohint.conf:
2109 * conf.d/no-sub-pixel.conf:
2110 * conf.d/sub-pixel.conf:
2111 * conf.d/unhinted.conf:
2112 * debian/autohint.conf:
2113 * debian/fontconfig.install:
2114 * debian/fontconfig.postinst:
2115 * debian/fontconfig.templates:
2116 * debian/no-sub-pixel.conf:
2117 * debian/unhinted.conf:
2118 Move debian-specific conf file examples upstream.
2120 Sub-pixel configuration examples must smash subpixel value
2121 as Xft always sets it from X.
2123 Change sub-pixel rendering debconf descriptions from
2124 Enable/Disable to Always/Never.
2126 2005-03-02 Keith Packard <keithp@keithp.com>
2129 * conf.d/.cvsignore:
2131 Ignore more build detritus
2134 Add debian package construction stuff.
2136 * config/config.guess:
2137 * config/config.sub:
2138 Update to newer versions of these tools
2141 Get library manuals to build again (we love automake).
2143 * debian/README.Debian:
2144 * debian/autohint.conf:
2149 * debian/fontconfig-udeb.install:
2150 * debian/fontconfig.config:
2151 * debian/fontconfig.defoma:
2152 * debian/fontconfig.dirs:
2153 * debian/fontconfig.install:
2154 * debian/fontconfig.postinst:
2155 * debian/fontconfig.postrm:
2156 * debian/fontconfig.templates:
2157 * debian/libfontconfig1-dev.install:
2158 * debian/libfontconfig1.install:
2159 * debian/local.conf.md5sum:
2160 * debian/no-sub-pixel.conf:
2161 * debian/po/POTFILES.in:
2170 * debian/po/pt_BR.po:
2171 * debian/po/templates.pot:
2173 * debian/po/zh_CN.po:
2175 * debian/unhinted.conf:
2176 Update debian build system to switch maintainers and
2177 deal with 2.3 functionality
2179 2005-03-01 Keith Packard <keithp@keithp.com>
2183 * fontconfig/fontconfig.h:
2186 2005-03-01 Keith Packard <keithp@keithp.com>
2189 Generate and install PDF versions of the manuals
2191 * doc/fcpattern.fncs:
2194 * doc/fcstring.fncs:
2195 Add missing exported functions, fix data types
2197 * doc/fontconfig-devel.sgml:
2198 Add missing pattern elements.
2200 * doc/fontconfig-user.sgml:
2201 Add missing pattern elements. Document conf.d usage,
2202 clarify available orthography list. Fix some config file
2203 attributes. Complete list of constants.
2205 * fontconfig/fontconfig.h:
2206 Mark FC_SOURCE deprecated.
2208 * src/fcfreetype.c: (FcFreeTypeQuery):
2209 Don't set FC_SOURCE any longer.
2211 2005-02-28 Keith Packard <keithp@keithp.com>
2214 * conf.d/Makefile.am:
2216 * conf.d/no-bitmaps.conf:
2217 * conf.d/sub-pixel.conf:
2218 * conf.d/yes-bitmaps.conf:
2220 Create prototype /etc/fonts/conf.d directory with a few
2221 sample configuration files.
2222 Deprecate use of local.conf for local customizations in favor of
2223 this directory based scheme which is more easily integrated into
2224 installation systems.
2227 Tag FC_EMBOLDEN as a boolean variable
2229 2005-02-10 Keith Packard <keithp@keithp.com>
2231 reviewed by: pborelli@katamail.com
2233 * src/fcdir.c: (FcFileScanConfig):
2234 Free patterns from fonts which are rejected by configuration
2237 2005-01-28 Keith Packard <keithp@keithp.com>
2241 * fontconfig/fontconfig.h:
2242 Update for version 2.2.99
2244 2005-01-28 Keith Packard <keithp@keithp.com>
2247 Add a few pointers (#2284, #2285)
2249 2005-01-28 Keith Packard <keithp@keithp.com>
2252 * src/fcname.c: (FcNameBool):
2253 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
2254 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
2255 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
2256 Polite typechecking for test and edit expressions. Helps
2257 catch errors in the font configuration. (bug 229)
2259 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
2261 reviewed by: Keith Packard <keithp@keithp.com>
2264 Have --with-expat set EXPAT_CFLAGS (bug 2278)
2266 2005-01-13 Keith Packard <keithp@keithp.com>
2268 * doc/fontconfig-user.sgml:
2269 Add SEE ALSO section (bug 2085)
2271 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
2273 reviewed by: Keith Packard <keithp@keithp.com>
2278 * fc-case/Makefile.am:
2279 * fc-glyphname/Makefile.am:
2280 * fc-lang/Makefile.am:
2281 * src/fontconfig.def.in:
2282 Cross compiling fixes (bug 280)
2284 2005-01-13 Keith Packard <keithp@keithp.com>
2287 Update blanks list (Closes bug 86)
2289 2005-01-04 Keith Packard <keithp@keithp.com>
2291 * src/fccache.c: (FcCacheFontSetAdd):
2292 Verify that every font pattern loaded from cache has
2293 both FC_FILE and FC_FAMILY entries.
2294 Attempt to fix bug #2219.
2296 2004-12-29 Keith Packard <keithp@keithp.com>
2300 * fontconfig/fontconfig.h:
2301 Update for version 2.2.98
2303 2004-12-29 Keith Packard <keithp@keithp.com>
2305 * fontconfig/fontconfig.h:
2306 Document ASCII limitations of Fc character conversion macros
2307 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
2308 Fix off-by-one error in utf-8 case walking code.
2309 Add FcStrDowncase (useful for testing case conversion functions)
2311 2004-12-29 Keith Packard <keithp@keithp.com>
2314 * fc-case/.cvsignore:
2315 clean up CVS ignore lists
2316 * fc-lang/iso-3166.txt:
2317 Add territory database
2319 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
2321 Reviewed by: Keith Packard
2324 Remove Han characters from Korean orthography
2326 2004-12-29 Keith Packard <keithp@keithp.com>
2329 Reorder utility programs to make sure fc-case is run before fc-lang
2330 as fc-lang uses fcstr.c which uses fccase.h
2334 2004-12-29 Keith Packard <keithp@keithp.com>
2337 Adopt some RedHat suggestions for standard font configuration.
2341 * fc-case/CaseFolding.txt:
2342 * fc-case/Makefile.am:
2343 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
2344 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
2345 (dump), (parseRaw), (caseFoldReadRaw), (main):
2346 * fc-case/fccase.tmpl.h:
2347 Add new helper program 'fc-case' to construct case folding
2348 tables from standard Unicode CaseFolding.txt file
2351 * src/fclist.c: (FcListValueHash):
2352 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
2353 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
2354 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
2355 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
2356 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
2357 Re-implement case insensitive functions with Unicode
2358 aware versions (including full case folding mappings)
2360 2004-12-13 Keith Packard <keithp@keithp.com>
2362 reviewed by: Owen Taylor <otaylor@redhat.com>
2364 * src/fcmatch.c: (FcFontSetSort):
2365 I changed FcFontSetSort to respect the generic aliases better
2366 in the face of language matching.
2368 What I did was to ammend the strict sort order used by FcFontSort so
2369 that it 'satisfies' the language specified in the pattern by locating
2370 the best matching font supporting each pattern language and then
2371 ignores language in the remaining fonts for purposes of matching.
2373 So, when asking for 'sans:lang=en', you'll get an English font first,
2374 and then the remaining fonts sorted with respect to the 'sans' alias
2375 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
2377 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
2379 reviewed by: Keith Packard <keithp@keithp.com>
2381 * fontconfig/fontconfig.h:
2384 Configuration changes to request synthetic emboldening of
2385 fonts. The actual emboldening code will live in Xft.
2387 2004-12-09 John Thacker <thacker@math.cornell.edu>
2389 reviewed by: Keith Packard <keithp@keithp.com>
2393 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
2394 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
2395 и), and don't even appear in KOI8-R. (The hypothesis that they
2396 don't appear in KOI8-R due to their similarity with Latin I and i is
2397 eliminated by their presence in KOI8-U.) I have a couple of fonts
2398 with Russian support that don't have the letter.
2400 Therefore, 0406 and 0456 should be removed from or commented out of
2403 2004-12-06 michael meeks <mmeeks@novell.com>
2405 Reviewed by: Keith Packard <keithp@keithp.com>
2407 * src/fcinit.c: (FcMemReport):
2409 * src/fclist.c: (FcObjectSetAdd):
2410 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
2411 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
2412 * src/fcxml.c: (FcParsePatelt):
2413 memoize strings and share a single copy for all uses. Note that
2414 this could be improved further by using statically allocated blocks
2415 and gluing multiple strings together, but I'm basically lazy.
2416 In my environment with 800 font files, I get a savings of about 90KB.
2418 2004-12-06 Keith Packard <keithp@keithp.com>
2422 * config/Makedefs.in:
2425 * doc/fcatomic.fncs:
2426 * doc/fcblanks.fncs:
2427 * doc/fccharset.fncs:
2428 * doc/fcconfig.fncs:
2429 * doc/fcconstant.fncs:
2431 * doc/fcfontset.fncs:
2432 * doc/fcfreetype.fncs:
2434 * doc/fcmatrix.fncs:
2435 * doc/fcobjectset.fncs:
2436 * doc/fcobjecttype.fncs:
2437 * doc/fcpattern.fncs:
2438 * doc/fcstring.fncs:
2439 * doc/fcstrset.fncs:
2441 * doc/fontconfig-devel.sgml:
2442 * doc/fontconfig-user.sgml:
2444 * doc/version.sgml.in:
2445 * fc-cache/Makefile.am:
2446 * fc-cache/fc-cache.c:
2447 * fc-glyphname/Makefile.am:
2448 * fc-glyphname/fc-glyphname.c:
2449 * fc-glyphname/fcglyphname.tmpl.h:
2450 * fc-lang/Makefile.am:
2460 * fc-lang/az_ir.orth:
2494 * fc-lang/fc-lang.c:
2495 * fc-lang/fc-lang.man:
2496 * fc-lang/fclang.tmpl.h:
2541 * fc-lang/ku_ir.orth:
2574 * fc-lang/ps_af.orth:
2575 * fc-lang/ps_pk.orth:
2604 * fc-lang/ti_er.orth:
2605 * fc-lang/ti_et.orth:
2631 * fc-lang/zh_cn.orth:
2632 * fc-lang/zh_hk.orth:
2633 * fc-lang/zh_mo.orth:
2634 * fc-lang/zh_sg.orth:
2635 * fc-lang/zh_tw.orth:
2637 * fc-list/Makefile.am:
2638 * fc-list/fc-list.c:
2639 * fc-match/Makefile.am:
2640 * fc-match/fc-match.1:
2641 * fc-match/fc-match.c:
2642 * fontconfig/fcfreetype.h:
2643 * fontconfig/fcprivate.h:
2644 * fontconfig/fontconfig.h:
2665 Change files from ISO-Latin-1 to UTF-8
2667 2004-12-04 Keith Packard <keithp@keithp.com>
2670 Update links to new freedesktop.org locations
2672 Add uninstall-local to get rid of fonts.conf and local.conf if they
2673 match the distributed versions. Fixes 'make distcheck'
2675 2004-12-04 Keith Packard <keithp@keithp.com>
2679 * fontconfig/fontconfig.h:
2680 Updates for version 2.2.97
2682 2004-12-04 Owen Taylor <otaylor@redhat.com>
2684 reviewed by: Keith Packard <keithp@keithp.com>
2686 * fc-cache/fc-cache.c: (main):
2687 Sleep for two seconds before exiting to make sure timestamps
2688 for future changes have distinct mod times in the file system.
2691 Add Punjabi orthography. Bug #1671.
2693 2004-12-04 Keith Packard <keithp@keithp.com>
2696 Just remove the FC_FONTDATE -- it has locale issues and
2697 annoys redhat multi-arch installs. Now that all X fonts are
2698 included without prejudice, the chances of the date being at
2699 all interesting are rather limited. Bug #505.
2701 Add copyright and license
2703 2004-12-04 Keith Packard <keithp@keithp.com>
2706 Change default set of fonts to include all of
2707 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2708 * doc/fontconfig-user.sgml:
2709 Document new <include>directory-name</include> semantics
2711 add <include ignore_missing="yes">conf.d</include>
2713 Add selectfont to ignore bitmap fonts, add comment for
2714 selectfont which accepts bitmap fonts.
2717 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2718 Allow <include> configuration elements to reference directories.
2719 Parse and load all files of the form [0-9]* in sorted order.
2721 2004-12-04 Keith Packard <keithp@keithp.com>
2724 Report command line for $srcdir/configure accurately.
2727 2004-12-04 Keith Packard <keithp@keithp.com>
2729 * src/fcfreetype.c: (FcFreeTypeQuery):
2730 Check for non-empty face->family_name and face->style_name
2731 before using those for the font. Empty names match everything.
2734 2004-12-04 Keith Packard <keithp@keithp.com>
2737 * fontconfig/fontconfig.h:
2738 * src/fcfreetype.c: (FcFreeTypeQuery):
2740 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2741 available. This provides font file format information (BDF, Type 1,
2742 PCF, TrueType) for each font. Closes #109.
2744 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2746 reviewed by: Keith Packard <keithp@keithp.com>
2748 * doc/fontconfig-user.sgml:
2751 * fontconfig/fontconfig.h:
2752 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2753 (GetScriptTags), (FcFontCapabilities):
2755 Add detection for font capabilities (bug #105)
2757 2004-12-04 Keith Packard <keithp@keithp.com>
2760 Move existing fonts.conf to fonts.conf.bak
2763 Add detection of iconv
2765 * doc/fcpattern.fncs:
2766 * doc/fontconfig-devel.sgml:
2767 * doc/fontconfig-user.sgml:
2769 Document new selectfont elements
2772 Switch to UTF-8 in comment
2774 * fontconfig/fontconfig.h:
2776 Add fullname, and family/style/fullname language entries
2778 * src/fccache.c: (FcCacheFontSetAdd):
2779 * src/fcdir.c: (FcFileScanConfig):
2780 Respect selectfont/*/glob
2783 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2784 (FcConfigCompareValue), (FcConfigPatternsAdd),
2785 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2786 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2787 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2788 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2789 Add support for selectfont
2791 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2792 (FcStringInPatternElement), (FcFreeTypeQuery):
2793 Add multi-lingual family/style/fullname support
2795 * src/fclist.c: (FcListPatternMatchAny):
2796 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2798 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2799 (FcObjectStaticName):
2800 Add new FcPatternRemove/FcPatternAppend.
2801 FcObjectStaticName stores computed pattern element names which
2802 are required to be static.
2804 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2809 Remove spurious / after $(DESTDIR)
2811 2004-06-30 Keith Packard <keithp@keithp.com>
2815 * fontconfig/fontconfig.h:
2818 2004-06-30 Keith Packard <keithp@keithp.com>
2820 Provided by: Lubos Lunak <l.lunak@suse.cz>
2822 * src/fccfg.c: (FcConfigUptoDate):
2823 However FcConfigUptoDate() doesn't seem to work. See the attached
2824 patch. First there's an obvious misplaced parenthesis making it
2825 return always false, and second, even this call fails to detect font
2826 changes (e.g. adding a new font to
2827 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2828 well. The problem seems to be triggered by my fonts.conf specifying
2829 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2830 doesn't include subdirs, unlike config->fontDirs.
2832 2004-06-03 Keith Packard <keithp@keithp.com>
2834 * fontconfig/fontconfig.h:
2835 Remove comma at end of FcResult enum definition.
2837 2004-05-29 Keith Packard <keithp@keithp.com>
2840 Add steps to md5sum release
2842 2004-05-29 Keith Packard <keithp@keithp.com>
2846 * fontconfig/fontconfig.h:
2849 2004-05-29 Keith Packard <keithp@keithp.com>
2851 * fontconfig/fontconfig.h:
2852 * src/fcmatch.c: (FcFontSetMatch):
2853 Add FcResultOutOfMemory to provide an accurate error when
2854 FcFontSetMatch fails in this way
2857 Make #warning about lacking various FreeType features indicate
2858 which version those features appeared so users know how to
2859 fix the problem (Thanks to Anton Tropashko)
2861 2004-05-05 Keith Packard <keithp@keithp.com>
2863 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2864 Replace MIN/MAX/ABS macros which happen to have come
2865 from FreeType with fontconfig-specific ones (FC_*)
2867 2004-04-23 Keith Packard <keithp@keithp.com>
2870 Extend release preparation instructions to include
2871 notification and distribution steps
2873 2004-04-23 Keith Packard <keithp@keithp.com>
2877 * fontconfig/fontconfig.h:
2878 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2880 2004-04-23 Keith Packard <keithp@keithp.com>
2883 Ignore a few more autotool files
2885 2004-04-14 Keith Packard <keithp@keithp.com>
2888 Add instructions for doing a release
2890 * fontconfig.spec.in:
2891 clean up .spec file; perhaps this will be useful to somebody...
2895 * fontconfig/fontconfig.h:
2898 * fc-lang/fc-lang.c:
2899 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2901 * fc-glyphname/Makefile.am:
2902 * fc-lang/Makefile.am:
2903 * fc-list/Makefile.am:
2904 * fc-match/Makefile.am:
2906 Add WARN_CFLAGS to pass -W flags for GCC systems
2908 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2909 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2910 Change various char types around to match across
2912 Fixed bug in using available_sizes[i].height which
2913 is in pixels, not 64ths of a pixel.
2915 2004-03-06 Keith Packard <keithp@keithp.com>
2917 * src/fcfreetype.c: (FcFreeTypeQuery):
2918 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2919 matches looking for explicit values prefer exact matches
2921 2004-03-02 Keith Packard <keithp@keithp.com>
2923 Supplied by: mfabian@suse.de (Mike FABIAN)
2925 * src/fcfreetype.c: (FcFreeTypeQuery):
2926 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2927 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2929 2004-02-21 Manish Singh <yosh@gimp.org>
2931 * fc-glyphname/fc-glyphname.c: (main):
2932 Cast strlen to int for printf, so we're 64-bit clean.
2934 2004-02-11 Keith Packard <keithp@keithp.com>
2937 * src/fcfreetype.c: (FcGetPixelSize):
2938 Ok, so I messed up the test for y_ppem. Let's see if I
2939 got it right this time.
2941 2004-02-10 Keith Packard <keithp@keithp.com>
2944 * src/fcfreetype.c: (FcGetPixelSize):
2945 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2946 FT_Bitmap_Size record. Add a configure.in test for this
2947 and change the code accordingly (using height instead).
2949 2004-02-06 Keith Packard <keithp@keithp.com>
2952 Add Low Saxon orthography
2953 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2955 * src/fccfg.c: (FcConfigNewestFile):
2956 Oops. Left 'newest.set' unset, which would miscompute
2959 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2960 (FcFreeTypeCheckGlyph):
2961 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2962 font properties (which report the wrong value in current FreeType)
2964 Don't attempt to check for empty glyphs in non-scalable fonts; they
2967 2004-02-01 Tor Lillqvist <tml@iki.fi>
2969 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2970 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2971 cache if config->cache is NULL, which happens if FcConfigHome() is
2972 NULL. Guard against that by using the temp folder in that case.
2974 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2976 * fc-lang/az_ir.orth:
2977 * fc-lang/ku_ir.orth:
2978 * fc-lang/ps_af.orth:
2979 * fc-lang/ps_pk.orth:
2980 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2981 (Afghan and Pakistani).
2983 Updated Urdu orthography with real data.
2985 2003-12-11 Carl Worth <cworth@east.isi.edu>
2987 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2990 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2992 (all-local): Remove excessive whitespace.
2994 * autogen.sh: Add 'set -e' to abort when any program fails,
2995 (avoids printing of 'now type make' after configure aborts).
2997 2003-11-17 Eric Christopherson <rakko@charter.net>
2999 reviewed by: Keith Packard <keithp@keithp.com>
3002 * fontconfig/fcfreetype.h:
3004 Switch to FreeType 2.1.7 style includes. Bug #150.
3006 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
3008 * fc-list/fc-list.sgml: Add some example usages.
3010 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
3013 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
3016 2003-10-27 Keith Packard <keith@keithp.com>
3019 * fontconfig/fontconfig.h:
3020 Update to version 2.2.92
3022 2003-10-27 Keith Packard <keithp@keithp.com>
3027 * fc-cache/Makefile.am:
3028 * fc-glyphname/Makefile.am:
3029 * fc-lang/Makefile.am:
3030 * fc-list/Makefile.am:
3031 * fc-match/Makefile.am:
3034 Yet more cleanups to finish getting 'make distcheck' working
3035 This has been tested to ensure that it even works from a _build
3038 2003-10-26 Keith Packard <keithp@keithp.com>
3042 * fc-cache/Makefile.am:
3043 * fc-glyphname/Makefile.am:
3044 * fc-lang/Makefile.am:
3045 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
3046 * fc-list/Makefile.am:
3047 * fc-match/Makefile.am:
3048 Attempts to fix 'make distcheck' work. Things are
3049 progressing pretty well, but there are still failures
3050 long into the process dealing with docs (as always).
3052 The big changes here are mostly to make $(srcdir) != "."
3053 work correctly, fixing the docbook related sections and
3054 fc-lang were particularily tricky. Docbook refuses to load
3055 system entities from anywhere other than where the original .sgml
3056 file was located, so no luck looking in "." for the
3057 configure-generated version.sgml and confdir.sgml files.
3059 fc-lang needed help finding .orth files; added a -d option
3060 to set the directory as the least evil of many options.
3062 Now to go use a faster machine and try and wring out the last
3065 2003-10-26 Keith Packard <keithp@keithp.com>
3069 2003-10-26 Keith Packard <keithp@keithp.com>
3072 Include confdir.sgml.in in EXTRA_DIST
3074 2003-10-09 Josselin Mouette <joss@debian.org>
3076 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
3077 * fc-list/fc-list.sgml fc-list/Makefile.am:
3078 Replace fc-cache and fc-list manpages with more detailed, SGML
3081 2003-09-23 Owen Taylor <otaylor@redhat.com>
3083 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
3084 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
3085 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
3088 2003-09-23 Owen Taylor <otaylor@redhat.com>
3090 * fc-lang/ka.orth: Remove Georgian capitals, they
3091 aren't used for normal writing. (Bug #116)
3093 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
3095 * doc/fontconfig-devel.sgml:
3096 * doc/fontconfig-user.sgml:
3097 * fontconfig/fontconfig.h:
3099 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
3100 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
3102 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
3103 monospace and dual-width fonts, allow roughly a 3% variance in the
3106 2003-08-31 Manish Singh <yosh@gimp.org>
3108 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
3111 2003-08-15 Carl Worth <cworth@isi.edu>
3113 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
3114 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
3116 * src/fcpat.c (FcValueListEntDestroy): New function to support
3117 FcFini memory cleanup. Some statistics are not kept in
3119 (FcValueListFreeze): Move hashTable outside this function so it
3120 can be accessed by FcValueListThawAll.
3121 (FcValueListThawAll): New function complements FcValueListFreeze.
3122 (FcPatternBaseFreeze): Move hashTable outside this function so it
3123 can be accessed by FcPatternBaseThawAll.
3124 (FcPatternBaseThawAll): New function complements
3125 FcPatternBaseFreeze.
3126 (FcPatternThawAll): New function complements FcPatternFreeze.
3128 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
3130 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
3131 allocated FcCharLeafEnt "blocks" so they can be freed later.
3132 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
3133 can be accessed by FcCharSetThawAllLeaf.
3134 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
3135 (FcCharSetFreezeBase): Move hashTable outside this function so it
3136 can be accessed by FcCharSetThawAll.
3137 (FcCharSetThawAll): New function complements FcCharSetFreeze.
3139 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
3140 (FcConfigDestroy): Fic leak of FcBlanks.
3142 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
3143 (main): Add call to FcFini when finished.
3145 * fc-glyphname/fc-glyphname.c: Mark several local functions as
3146 static. Add prototypes.
3148 * doc/fcinit.fncs: Add documentation for FcFini function.
3150 * doc/edit-sgml.c: Mark several local functions as static. Add
3153 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
3155 2003-06-15 Tor Lillqvist <tml@iki.fi>
3157 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
3158 before comparing (needed on Windows).
3160 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
3162 2003-06-13 Tor Lillqvist <tml@iki.fi>
3164 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
3167 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
3168 WINDOWSFONTDIR token.
3170 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
3171 end, not to confuse libtool, which expects the EXPORTS line to be
3172 the first. Add FcConfigEnableHome.
3174 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
3175 built as a DLL on Win32.
3177 2003-06-09 Keith Packard <keithp@keithp.com>
3179 * Tag version 2.2.90
3181 2003-06-09 Keith Packard <keithp@keithp.com>
3183 * Optimization in FcLangSetIndex was broken, occasionally
3184 returning a pointer to the wrong location on miss
3186 * Add fc-match to test font matching from the command line.
3188 2003-05-31 Keith Packard <keithp@keithp.com>
3190 * (Bug 85) add support for culmus fonts
3191 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
3192 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
3194 2003-05-28 James Su <suzhe@turbolinux.com.cn>
3196 * Fix "contains" op for strings and langsets.
3198 2003-05-17 Keith Packard <keithp@keithp.com>
3200 * Fix build error with BDF prop local. Free langset after query
3202 2003-05-14 Keith Packard <keithp@keithp.com>
3204 * Extract spacing from XLFD atom
3206 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
3208 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
3209 disappeared in 1.30.
3211 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
3213 2003-05-12 Keith Packard <keithp@keithp.com>
3215 * Use FcIsWidth to share code
3217 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
3218 misclassifying some Han fonts as monospaced.
3220 2003-05-07 Keith Packard <keithp@keithp.com>
3222 * Add filename-based accept/reject to ammend available fonts.
3224 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
3225 older FreeType releases.
3227 2003-05-06 Keith Packard <keithp@keithp.com>
3229 * Remove 0b82 and Tamil numbers from tamil
3230 orthography (Jungshik Shin <jshin@mailaps.org>)
3232 2003-05-04 Keith Packard <keithp@keithp.com>
3234 + Map glyph names in fonts with adobe custom encoding to unicode
3236 2003-05-02 Keith Packard <keithp@keithp.com>
3238 * Add FC_WEIGHT_BOOK as weight 75
3240 2003-04-30 Keith Packard <keithp@keithp.com>
3242 * Typo in bitstream foundry name
3244 2003-04-24 Keith Packard <keithp@keithp.com>
3246 * Eliminate italic_angle check for PS fonts
3248 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
3250 * Getting closer to fixing /etc/fonts hard-coding.
3252 2003-04-22 Keith Packard <keithp@keithp.com>
3254 * Update autogen.sh to work with newer automake versions
3255 * Handle pattern elements moving during multiple edits
3257 2003-04-23 James Henstridge <james@daa.com.au>
3259 * doc/fontconfig-devel.sgml: close the <para> element.
3261 * doc/fcpattern.fncs: close the <para> element.
3263 * doc/func.sgml: close the <refsynopsisdiv> element.
3265 2003-04-22 Keith Packard <keithp@keithp.com
3267 * Update autogen.sh to work with newer automake versions
3268 * Handle pattern elements moving during multiple edits
3270 2003-04-17 Colin Walters <walters@debian.org>
3272 + Remove some unused variables, and initialize some other ones so
3273 gcc doesn't warn us.
3275 2003-04-16 Keith Packard <keithp@keithp.com>
3277 + tag version 2.1.94
3279 2003-04-16 Keith Packard <keithp@keithp.com>
3281 + add BDF property fetching support for foundry
3282 (from Juliusz Chroboczek)
3283 + add BDF property fetching support for width
3285 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
3287 + Implemented foundry generation for Type 1 and TrueType
3289 2003-04-11 Gerard Escalante <g2@magestudios.net>
3291 + Retrieve information from Type1 FontInfo dictionaries
3293 2003-04-07 Colin Walters <walters@verbum.org>
3295 + src/Makefile.am: Fix dummy makefile target names when
3296 MS_LIB_AVAILABLE isn't set.
3298 2003-03-22 Tor Lillqvist <tml@iki.fi>
3300 Changes for Windows:
3302 + On Windows with gcc (a.k.a. mingw) build as a DLL.
3304 + We don't want to hardcode the fonts.conf file location in the
3305 DLL, so we look up the DLL location at run-time in a DllMain()
3306 function. The fonts.conf location is deduced from that.
3308 + The colon can't be used as path separator on Windows,
3309 semicolon is used instead. File path components can be separated
3310 with either slash or backslash. Absolute paths can also begin
3311 with a drive letter.
3313 + Add internal function FcStrLastSlash that strrchr's the last
3314 slash, or backslash on Windows.
3316 + There is no link() on Windows. For atomicity checks, mkdir a
3317 lock directory instead.
3319 + In addition to HOME, also look for USERPROFILE.
3321 + Recognize the special font directory token WINDOWSFONTDIR, to
3322 use the system's font directory.
3324 + Remove the fontconfig-def.cpp that was obsolete. Add
3325 fontconfig.def(.in), without internal functions.
3327 + Add a fontconfig-zip(.in) script, used to build a binary
3330 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
3331 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
3332 to main package and man3/* to devel package
3334 + Added missing defattr(-, root, root) to main RPM package
3336 + Added HTML and text development documentation to -devel subpackage
3338 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
3339 + Added back the configure macro options --disable-docs, otherwise
3340 fontconfig installs docs into /usr/share/doc/fontconfig (with no
3341 version number) unconditionally, causing RPM to fail the build due
3342 to _unpackaged_files_terminate_build. We pick up the pregenerated
3343 docs with %doc already.
3345 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
3346 + Removed commented out rpm macro define at top of spec file,
3347 replacing it with a simple explanation, since rpm macros are
3348 expanded by rpm even in comments.
3350 + Changed /usr/bin to _bindir in BuildRequires lines
3352 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
3354 + Reorganized file manifest lists
3356 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
3358 + fontconfig.spec.in: Improvements from Red Hat spec file.
3360 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
3362 + docs/*.sgml: SGML fixes.
3364 Sat Mar 1 17:28:53 PST 2003 keithp
3365 + Ok, so the ChangeLog is a bit out of date
3367 + Lots of bugs fixed; most are in bugzilla, the
3368 biggest problems were in cache management where
3369 Owen discovered the library would lose badly when
3370 combining fonts-cache and ~/.fonts-cache data
3372 + Converted from autoconf to automake. This after
3373 getting patches accepted into libtool to allow
3374 the '-version-number' argument which lets
3375 packages set version numbers explicitly rather
3376 than the roundabout libtool way
3378 + Converted documentation to SGML using the docbook
3379 DTD. Now .txt and .html documents are installed
3380 in /usr/share/doc/fontconfig and there's no
3381 man page. Perhaps a man version can be written
3384 Sat Aug 31 15:21:22 PDT 2002 keithp
3385 + Xrender and Xft had several bugs related to
3386 rendering manually placed or poly-face text
3388 + Added more complete memory tracing in fontconfig
3389 Checked with (patched) mozilla and found no leaks
3391 + Updated Latin orthographies by comparing those from
3392 evertype.com with those from eki.ee. Tried to make
3393 sensible choices, including chars that occured in both
3394 and leaving some optional chars out that occured only
3397 Mon Aug 26 16:33:04 PDT 2002 keithp
3398 + Owen discovered that FcLangSetHasLang wasn't actually
3399 checking the language set.
3401 Mon Aug 26 13:37:23 PDT 2002 keithp
3402 + Append a version number to cache filenames
3404 Thu Aug 22 11:36:18 PDT 2002 keithp
3406 + Add "contains" and "not_contains" operators and elements to
3409 + Changed semantics of eq operator for LangSets to check for
3410 FcLangEqual so that any match will do
3412 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
3413 of FcValueEqual to check for identical values when inserting into
3414 the results. This broke when the above semantic change was made,
3415 now it uses FcValueEqual which is "more correct" in any case.
3417 Thu Aug 22 00:32:29 PDT 2002 keithp
3419 + Reimplement FC_LANG as new datatype. Lists of strings
3420 was consuming over a megabyte of memory for 401 fonts.
3422 + Freeze patterns loaded from cache files. This shares
3423 common value lists and common patterns which saves
3424 considerable memory.
3426 + Change the denotation of 'constant' charsets to use special
3427 ref value instead of separate boolean.
3429 + Clean up leak tracing stuff, found several unannoted alloc/free
3432 Tue Aug 20 16:17:37 PDT 2002 keithp
3434 + Fix memory leak when parsing matrices from XML
3436 Mon Aug 19 11:57:27 PDT 2002 keithp
3438 + Fix autoconf files to pass FONTCONFIG_PATH on
3439 compile line so that ${prefix} gets substituted
3442 + Use getc_unlocked/putc_unlocked on systems that
3443 provide them to avoid damage done to stdio by posix
3445 + Eliminate FC_PATTERN and FcTypePattern in favor of
3446 an extended api for FcConfigSubstitute which takes
3447 both the font and the pattern.
3449 + Add 'sans serif' alias for 'sans-serif' as some apps
3450 can't handle hyphens in family names
3452 + Eliminate pretense of support for libxml2
3454 + Comment origins of Han orthographies
3456 Tue Jul 30 18:37:09 PDT 2002 keithp
3458 + Add binding property to edit element so that strong
3459 binding values may be inserted by the config file.
3460 The default remains weak.
3462 Sun 28 Jul 04:16:55 PDT 2002 keithp
3464 + Tagged release candidate 1 in the CVS tree and
3465 placed fcpackage.rc1.tar.gz for distribution
3467 Thu Aug 1 08:55:08 PDT 2002 keithp
3469 + Fixed autoconf builds to always specify install
3470 target files (for BSD). Also fixed to
3471 define FONTCONFIG_PATH in config.h so that
3472 nonstandard installs will actually work.