1 2006-03-05 Patrick Lam <plam@mit.edu>
2 * src/fcpat.c (FcPatternGetString, FcPatternGet):
4 Ok, so some people (wine!) use FcPatternGet to fetch FC_FILE.
5 Make that work. Reported by Bernhard Rosenkraenzer.
7 2006-03-03 Patrick Lam <plam@mit.edu>
10 Include inttypes.h instead of stdint.h if appropriate.
12 2006-03-03 Patrick Lam <plam@mit.edu>
13 * fc-cat/fc-cat.c (FcFileIsDir):
14 * fc-glyphname/fc-flyphname.c:
16 More stub definitions and remove FcFileIsDir from fc-cat.
18 2006-03-03 Patrick Lam <plam@mit.edu>
21 Fix compilation on AIX with stub definitions (bug 6097).
23 2006-03-03 Patrick Lam <plam@mit.edu>
24 * src/fccache.c (FcCacheSkipToArch, FcDirCacheProduce):
25 * src/fcfreetype.c (GetScriptTags):
26 * src/fcfs.c (FcFontSetDistributeBytes):
27 * src/fcpat.c (FcValueListEntCreate, FcValueListNeededBytes):
29 Get rid of C++-style comments.
31 2006-03-03 Patrick Lam <plam@mit.edu>
34 Enable creation of 2.3.94 Debian packages.
36 2006-03-02 Egmont Koblinger <egmont@uhulinux.hu>
39 * src/fclang.c (FcCharSetForLang):
41 Fix suspicious return expression which causes junk
44 2006-02-24 Patrick Lam <plam@mit.edu>
48 * fontconfig/fontconfig.h:
50 Bump version to 2.3.94.
52 2006-02-24 Patrick Lam <plam@mit.edu>
57 2006-02-24 Patrick Lam <plam@mit.edu>
58 * conf.d/10-fonts-persian.conf:
60 Remove unconditional emboldening (per Behdad's instructions).
64 Add @s to hide some echos.
66 2006-02-24 Mike Fabian <mfabian@suse.de>
67 Takashi Iwai <tiwai@suse.de>
70 * src/fcfreetype.c (GetScriptTags):
72 Fix double-free on error case.
74 2006-02-21 Patrick Lam <plam@mit.edu>
75 * fc-lang/fc-lang.c (scan):
77 Strip \r and whitespace from input; fixes bug 3454.
79 2006-02-21 Patrick Lam <plam@mit.edu>
80 * fc-lang/fc-lang.c (main):
82 Allocate large arrays statically in fc-lang to fix crashes under
85 2006-02-21 Diego Petten <flameeyes@gentoo.org>
86 * src/fcfreetype.c (FcFreeTypeCharIndex):
88 Pass the buck; make fontconfig not crash on pango badness.
90 2006-02-21 Patrick Lam <plam@mit.edu>
91 * conf.d/10-fonts-persian.conf:
93 Use embeddedbitmap rather than rh_prefer_bitmap.
95 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
98 * src/fccache.c (FcDirCacheWrite):
99 * src/fcdir.c (FcFileScanConfig):
100 * src/fcfreetype.c (FcStringInPatternElement):
101 * src/fcxml.c (FcParseFamilies):
102 * src/ftglue.c (ftglue_face_goto_table):
104 Eliminate redundancies.
106 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
109 * fc-list/fc-list.c (main):
110 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
111 * src/fcstr.c (FcStrStr):
112 * src/fcxml.c (FcConfigSaveAttr):
114 Eliminate unused vars reported by Intel's compiler.
116 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
121 Remove one more archaic character.
123 2006-02-21 Ross Burton <ross@burtonini.com>
124 reviewed by: plam, keithp
126 * src/fcxml.c (FcParsePatelt):
128 Freeze patterns created by configuration file for tiny
129 memory savings (every little bit helps).
131 2006-02-21 Mike Fabian <mfabian@suse.de>
134 * fc-cat/fc-cat.c (main):
136 Initialize fontconfig library in fc-cat to avoid segfault.
138 2006-02-18 Patrick Lam <plam@mit.edu>
139 * fc-cache/fc-cache.c (scanDirs):
140 * src/fccache.c (FcCacheReadDirs):
141 * src/fcdir.c (FcDirScanConfig):
143 Fix the underlying cause of the below segfault (must usually
144 call FcDirCacheHasCurrentArch after FcDirCacheValid).
146 2006-02-18 Patrick Lam <plam@mit.edu>
147 * src/fccache.c (FcDirCacheHasCurrentArch):
149 Fix triggering of segfault caused by misreading cache files
150 (reported by fcrozat).
152 2006-02-17 Patrick Lam <plam@mit.edu>
153 * src/fcint.h (FC_CACHE_MAGIC):
155 Bump up magic version; we changed the binary format.
157 2006-02-17 Patrick Lam <plam@mit.edu>
158 * fc-cat/fc-cat.c (main):
160 Enable fc-cat to print out old-style cache info when given a
163 2006-02-16 Patrick Lam <plam@mit.edu>
164 * src/fccache.c (FcDirCacheHasCurrentArch):
166 Deal correctly with changing FC_CACHE_MAGIC.
168 2006-02-16 Patrick Lam <plam@mit.edu>
169 * fc-cache/fc-cache.c (usage, scanDirs, main):
171 Add -r --really-force option which blows away cache files and then
174 2006-02-16 Patrick Lam <plam@mit.edu>
175 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
177 Don't bail if fontconfig can't remove a dir cache file.
178 Skip the ID of a cache file when copying.
179 Eliminate 'source file too small' bug in FcDirCacheWrite.
181 2006-02-13 Patrick Lam <plam@mit.edu>
182 * src/fcfreetype.c (FcFreeTypeQuery):
184 Fix memory leak in error condition code.
186 2006-02-13 Mike Fabian <mfabian@suse.de>
188 * src/fcfreetype.c (FcFreeTypeQuery):
190 Skip bitmap fonts which can't even get it together enough to
191 declare a family name; this appears to reproduce previous
192 fontconfig behaviour.
194 2006-02-10 Takashi Iwai <tiwai@suse.de>
196 * src/fccache.c (FcDirCacheOpen):
198 Try to open /var/cache/fontconfig/[hashed name] before
199 fonts.cache-2 in a directory, because /var/cache/fontconfig
200 failures ought to be fixable, unlike fonts.cache-2 failures,
201 which may leave you screwed.
203 2006-02-10 Takashi Iwai <tiwai@suse.de>
205 * src/fcmatch.c (FcFontSetMatch):
207 Use a tri-state to mark the fonts which didn't get blocked but
208 were just missing an element, to distinguish them from the
209 fonts that do match the element.
211 2006-02-10 Takashi Iwai <tiwai@suse.de>
213 * src/fcmatch.c (FcFontSetMatch):
215 Don't kill fonts because they don't declare an element that's
218 2006-02-09 Patrick Lam <plam@mit.edu>
219 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
220 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
222 Define and pass O_BINARY to open if appropriate, for those
223 platforms that need it. Reported by Doodle.
225 2006-02-09 Patrick Lam <plam@mit.edu>
226 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
229 Fix problem with missing 'en' due to euro.patch: change
230 cache file format slightly to coincide with that generated
233 2006-02-07 Patrick Lam <plam@mit.edu>
234 * src/fccache.c (FcCacheReadDirs):
238 2006-02-07 Patrick Lam <plam@mit.edu>
239 * src/fcdir.c (FcDirScanConfig):
241 Don't reject dirs that can't be normalized (fixes lilypond, and
242 is correct in the context of application font directories.)
244 2006-02-07 Takashi Iwai <tiwai@suse.de>
247 * src/fccache.c (FcCacheReadDirs):
249 Use normalized directory name exclusively in FcCacheReadDirs.
251 2006-02-07 Dirk Mueller <dmueller@suse.com>
254 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
256 Perf optimizations. Inline FcValueCanonicalize,
257 reduce FcValueListPtrU usage, remove redundant cast.
259 2006-02-07 Takashi Iwai <tiwai@suse.de>
262 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
265 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
266 Declare extern for static arrays as arrays, not pointers.
267 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
269 2006-02-07 Dirk Mueller <dmueller@suse.com>
282 Add Euro sign to list of symbols required by European languages.
284 2006-02-07 Patrick Lam <plam@mit.edu>
285 * src/fccache.c (FcCacheReadString):
287 Fix hidden variable warning.
289 2006-02-07 Dirk Mueller <dmueller@suse.com>
292 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
294 Remove de-escaping logic because FcCacheWriteString
295 doesn't escape anyway. Do blockwise reading instead
296 of byte-wise for performance.
298 2006-02-06 Patrick Lam <plam@mit.edu>
299 Takashi Iwai <tiwai@suse.de>
301 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
303 Don't loop infinitely on recursive symlinks (client-side).
305 2006-02-06 Takashi Iwai <tiwai@suse.de>
307 * fc-cache/fc-cache.c (scanDirs, main):
309 Don't loop infinitely on recursive symlinks.
311 2006-02-06 Takashi Iwai <tiwai@suse.de>
313 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
314 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
315 FcGlobalCacheSave, FcCacheReadDirs):
318 Skip subdirs when skipping over stale bits of global cache.
319 Introduce state machine into FcGlobalCacheDir to avoid
320 doing inappropriate operations on global dir entries, e.g.
321 writing out an out-of-date cache entry.
323 2006-02-06 Takashi Iwai <tiwai@suse.de>
325 * src/fcdir.c (FcFileScanConfig):
327 Hoist FcFileIsDir check out of FcFileScanConfig loop.
329 2006-02-06 Takashi Iwai <tiwai@suse.de>
332 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
333 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
335 Don't rescan when trying to normalize a non-declared font dir.
336 Don't add font dirs multiple times (even if they're aliased).
338 2006-02-06 Dirk Mueller <dmueller@suse.de>
341 * src/fcfs.c (FcFontSetUnserialize):
343 Explain apples/oranges comparison and fix compilation error.
345 2006-02-06 Dirk Mueller <dmueller@suse.de>
348 * src/fcfs.c (FcFontSetUnserialize):
350 Insert check for integer overflow in # of fonts.
352 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
356 * fc-cache/Makefile.am:
357 * fc-cat/Makefile.am:
358 * fc-list/Makefile.am:
360 Make 'make distcheck' work with automake 1.6.3.
362 2006-02-03 Takashi IWAI <tiwai@suse.de>
365 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
368 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
369 FcDirCacheConsume, FcDirCacheWrite)
370 * src/fcxml.c (FcConfigMessage):
372 Check I/O call return values and eliminate unused variable
375 2006-02-03 Takashi Iwai <tiwai@suse.de>
378 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
382 2006-02-03 Dirk Mueller <dmueller@suse.de>
385 * src/fcfs.c (FcFontSetUnserialize):
387 Gracefully handle the case where a cache asserts that it
388 has a negative number of fonts, causing overflow.
390 2006-02-03 Patrick Lam <plam@mit.edu>
391 * src/fccache.c (FcDirCacheUnlink):
393 Fix double free in error case.
395 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
396 Stephan Kulow <coolo@suse.de>
399 * fc-cache/Makefile.am:
401 Replace 'stamp' target with mkinstalldirs.
403 2006-01-31 Mike Fabian <mfabian@suse.de>
406 * src/fccache.c (FcGlobalCacheLoad):
408 Toast broken global cache files.
410 2006-01-30 Patrick Lam <plam@mit.edu>
411 * src/fccache.c (FcGlobalCacheReadDir):
413 Actually use the directories that I added to the global cache.
416 2006-01-30 Mike Fabian <mfabian@suse.de>
419 * fc-cache/fc-cache.c (scanDirs):
421 Don't stop scanning if a directory in fonts.conf doesn't
422 exist, because subsequent directories might exist.
424 2006-01-30 Patrick Lam <plam@mit.edu>
425 * src/fccache.c (FcGlobalCacheLoad):
427 Make global cache work again after putting dir names into global
428 cache (I misplaced the recording of a file offset).
430 2006-01-30 Patrick Lam <plam@mit.edu>
431 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
433 Update fc-cat to handle subdir lists in global cache file.
435 * src/fccache.c (FcGlobalCacheLoad):
437 Another FcCacheReadString return value check.
439 2006-01-30 Mike Fabian <mfabian@suse.de>
442 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
443 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
445 Make fccache more resilient to broken cache files by checking
446 return value of FcCacheReadString all the time.
448 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
451 * fc-match/fc-match.1:
452 * fc-lang/fc-lang.man:
454 Remove references to dead fontconfig(3) manpages in
455 other fontconfig manpages.
457 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
460 * doc/fcpattern.fncs:
462 Fix world's tiniest typo in code example.
464 2006-01-29 Mike Fabian <mfabian@suse.de>
467 * src/fccache.c (FcGlobalCacheReadDir):
469 Fix global cache reads of subdirectories.
471 2006-01-29 Patrick Lam <plam@mit.edu>
473 Add documentation for FcConfigNormalizeFontDir.
475 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
476 FcGlobalCacheUpdate, FcGlobalCacheSave):
477 * src/fcdir.c (FcDirScanConfig):
480 Write directory information to global caches to fix make check
481 (reported by Ronny V. Vindenes). This changes the global cache
484 2006-01-27 Patrick Lam <plam@mit.edu>
485 * fc-cache/fc-cache.c (scanDirs):
486 * fontconfig/fontconfig.h:
488 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
490 Move FcConfigNormalizeFontDir call so that it doesn't result in
491 infinite recursion (reported by Ronny V. Vindenes).
493 2006-01-26 Patrick Lam <plam@mit.edu>
494 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
495 * src/fccfg.c (FcConfigNormalizeFontDir):
497 Add a couple of missing normalizations to make fc-cache work
498 right; only scan subdirectories once.
500 2006-01-26 Mike Fabian <mfabian@suse.de>
503 * src/fcacache.c (FcGlobalCacheReadDir):
505 Don't crash on non-existant directories in global cache.
507 2006-01-26 Patrick Lam <plam@mit.edu>
508 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
509 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
510 * src/fcdir.c (FcDirScanConfig):
511 * src/fcxml.c (FcEndElement):
513 Stop trampling the directory name when writing out caches.
514 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
515 subdirs when necessary. Don't scan directories that can't be
518 2006-01-25 Patrick Lam <plam@mit.edu>
519 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
520 * src/fccfg.c (FcConfigEvaluate):
521 * src/fcfreetype.c (FcPatternAddWithBinding):
523 Fix additional memory leaks reported by Ronny V. Vindenes: don't
524 invoke FcValueSave on hashed static strings in
525 FcPatternAddWithBinding.
527 Add another st_dev check in FcDirCacheOpen.
529 2006-01-24 James Su <james.su@gmail.com>
532 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
533 * fc-lang/zh_hk.orth:
535 Treat zh-hk fonts differently from zh-tw fonts. This patch may
536 cause fontconfig to treat A-X fonts differently from A-Y fonts;
537 please mail the fontconfig list if this causes any problems.
539 2006-01-24 Patrick Lam <plam@mit.edu>
540 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
541 * src/fcfreetype.c (FcFreeTypeQuery):
543 Fix memory leaks reported by Ronny V. Vindenes.
545 2006-01-19 Andreas Schwab <schwab@suse.de>
548 * src/fcpat.c (FcStrNeededBytes):
550 Fix for unaligned memory accesses.
552 2006-01-18 Mike Fabian <mfabian@suse.de>
555 * src/fcdir.c (FcDirScanConfig):
557 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
558 calls to avoid crashes.
560 2006-01-14 Patrick Lam <plam@mit.edu>
561 * src/fccache.c (FcDirCacheConsume):
563 Fix segfault when consuming zero-length caches in fc-cat
564 (which has no config, so FcConfigAddFontDir shouldn't be called.)
566 2006-01-14 Patrick Lam <plam@mit.edu>
567 * fc-cache/fc-cache.c (scanDirs):
568 * fontconfig/fontconfig.h:
569 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
570 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
571 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
572 * src/fcdir.c (FcDirScanConfig):
575 Compare device numbers as well as inodes.
576 Always normalize directory names before comparing them.
578 2006-01-11 Mike Fabian <mfabian@suse.de>
581 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
583 Allocate extra space for appended '/' in directory name.
585 2006-01-10 Patrick Lam <plam@mit.edu>
586 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
587 FcDirCacheValid, FcDirCacheHasCurrentArch,
588 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
589 * fc-cache/fc-cache.c (main):
591 Explicitly add font dirs to config.fontDirs even if they're empty.
592 Set current config in fc-cache.c.
593 Fix treatment of cache directory as read from cache file; don't
594 use string equality to determine if we have the right file,
597 2006-01-09 Patrick Lam <plam@mit.edu>
598 * fc-cache/fc-cache.c (scanDirs):
599 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
600 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
601 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
602 * src/fccfg.c (FcConfigNormalizeFontDir):
603 * src/fcdir.c (FcDirScanConfig):
606 Normalize font dirs by using the form, as given in fonts.conf, and
607 recorded in FcConfig's fontDirs string set, as canonical.
609 Actually update config.fontDirs as font directories are scanned.
611 2006-01-08 James Su <james.su@gmail.com>
612 * src/fcmatch.c (FcFontSetMatch):
614 Fix matching bug when multiple elements match; don't use
615 the sum of all scores, but the best score.
617 Also more perf opts, e.g. evaluate best over all font sets
618 rather than on a per-set basis (and other changes).
620 2006-01-08 Patrick Lam <plam@mit.edu>
621 * src/fccache.c (FcDirCacheConsume):
623 Properly skip past dir caches that contain zero fonts (as occurs
624 in global caches.) Reported by Mike Fabian.
626 2006-01-06 Patrick Lam <plam@mit.edu>
627 * src/fcdbg.c (FcPatternPrint):
629 Print out full pathname in fc-match -v as well. Reported by
632 2006-01-06 Mike Fabian <mfabian@suse.de>
635 * src/fcname.c (FcNameParse):
637 Fix bug where fc-match crashes when given __DUMMY__ property to
640 (I added the __DUMMY__ string to enable callers of
641 FcObjectToPtrLookup to distinguish an error return from a
642 successful return. -PL)
644 2006-01-05 Patrick Lam <plam@mit.edu>
647 Add self to AUTHORS list.
649 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
650 FcCacheFileRead, FcCachePrintSet, main):
651 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
652 FcGlobalCacheSave, FcCacheNextOffset,
653 FcDirCacheHasCurrentArch, FcDirCacheRead,
654 FcDirCacheConsume, FcDirCacheWrite):
656 * src/fcpat.c (comment):
658 Minor change to global cache file format to fix fc-cat bug
659 reported by Frederic Crozat, and buglet with not globally caching
660 directories with zero fonts cached.
662 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
665 * src/fccfg.c (FcConfigEvaluate):
667 Fix double-free which occurs because FcValueCanonicalize doesn't
668 create an extra copy of the returned value, it only canonicalizes
671 2006-01-02 Patrick Lam <plam@mit.edu>
672 * doc/fontconfig-user.sgml:
674 Fix version of .cache file (currently 1 -> currently 2). Reported
677 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
680 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
682 Shut up GCC warnings on amd.
684 2005-12-20 Patrick Lam <plam@mit.edu>
688 * fontconfig/fontconfig.h:
690 Bump version to 2.3.93.
692 2005-12-20 Patrick Lam <plam@mit.edu>
693 * src/fccharset.c (FcLangCharSetPopulate):
694 * src/fcint.h (FcCacheBankToIndex):
696 Avoid check on _fcBankId nullness and fix case where it used to
699 2005-12-20 Patrick Lam <plam@mit.edu>
700 * src/fcxml.c (FcConfigParseAndLoad):
702 Use open instead of fopen (requested by Phil Race for Sun).
704 2005-12-20 Patrick Lam <plam@mit.edu>
705 * src/fccache.c (FcDirCacheWrite);
706 * fc-cache/Makefile.am:
708 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
711 2005-12-20 Patrick Lam <plam@mit.edu>
712 * src/fcfreetype.c (FcFreeTypeQuery):
714 Restore code to skip over PCF fonts that have no encoded
716 (We guess that a font is PCF by presence of the PIXEL_SIZE
719 2005-12-12 Patrick Lam <plam@mit.edu>
720 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
722 Read and write the original location as a fallback for the
723 hashed cache file locations. This is mostly for users to be
724 able to have per-directory cache files.
726 2005-12-12 Patrick Lam <plam@mit.edu>
727 * fc-cache/fc-cache.c (scanDirs):
728 * fc-cache/Makefile.am:
729 * src/fccache.c (FcDirCacheHashName):
731 Improve error message when fc-cache can't write the cache. Add
732 missing slash. Reported by Behdad. Incorporate Behdad's patch to
733 create /var/cache/fontconfig when appropriate.
735 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
738 * src/fcxml.c (FcConfigGetAttribute):
740 Fix crash reported by Frederic Crozat when using libxml2.
742 2005-12-09 Patrick Lam <plam@mit.edu>
745 * fc-cache/Makefile.am:
746 * fc-cat/Makefile.am:
748 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
749 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
750 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
751 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
752 FcDirCacheHasCurrentArch, FcDirCacheHashName,
753 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
755 Migrate cache files from fonts directories to
756 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
757 but requires that all caches get rebuilt.
759 Also, autogen.sh now needs the additional parameter
760 --localstatedir=/var.
762 2005-12-07 Patrick Lam <plam@mit.edu>
763 * src/fcpat.c (FcPatternAddString):
765 Because we've changed FcPatternAddString to use FcStrStaticName
766 and not FcValueSave, explicitly handle the case of a null string.
768 2005-12-06 Patrick Lam <plam@mit.edu>
769 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
773 2005-12-05 Patrick Lam <plam@mit.edu>
774 * src/fcname.c (FcNameGetObjectType):
776 Don't assign types to user object names.
778 2005-12-05 Patrick Lam <plam@mit.edu>
779 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
781 Don't free strings that have been returned from FcStrStaticName.
783 2005-12-01 Patrick Lam <plam@mit.edu>
784 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
786 Add codepath for reading global cache files as well.
788 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
791 * conf.d/10-fonts.persian.conf:
792 * conf.d/Makefile.am:
794 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
796 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
799 * src/fcxml.c (FcConfigParseAndLoad):
801 Only add a config file to the set of config files once.
803 2005-11-29 Patrick Lam <plam@mit.edu>
804 * src/fcint.h (FcCacheBankToIndex);
806 Fix segfault by guarding array dereference.
808 2005-11-29 Dirk Mueller <dmueller@suse.de>
812 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
813 FcCacheBankToIndex, FcCacheBankToIndexMTF,
817 Refactor FcCacheBankToIndex into an inlineable part
818 (in fcint.h) which checks the front of the list and a
819 non-inlineable part which finds and moves the appropriate element
820 to the front of the list.
822 2005-11-29 Patrick Lam <plam@mit.edu>
823 * src/fccfg.c (FcConfigBuildFonts):
824 * src/fccache.c (FcCacheReadDirs):
826 Make the perf guys hate me a bit less: hoist the directory-name
827 FcConfigAcceptFont check for cached fonts up to directory cache
828 read time, rather than running it for each font.
830 2005-11-29 Patrick Lam <plam@mit.edu>
831 * src/fccfg.c (FcConfigBuildFonts):
833 * src/fcpat.c (FcPatternFindFullFname):
835 Don't make FcPatternFindFullFname available to fccfg, it's not
836 really safe. Instead go through FcPatternGetString (sorry,
837 perf guys.) Also, use globs for dirs as well.
839 2005-11-28 Patrick Lam <plam@mit.edu>
840 * src/fccfg.c (FcConfigBuildFonts):
844 2005-11-28 Patrick Lam <plam@mit.edu>
846 * src/fcpat.c (FcPatternFindFullFname):
847 * src/fccfg.c (FcConfigBuildFonts):
849 Fix problem dating back at least to 2.3.2 where globs weren't
850 being applied to patterns loaded from a cache.
852 2005-11-28 Patrick Lam <plam@mit.edu>
853 * doc/fontconfig-user.sgml:
855 Fix some obvious spelling mistakes.
857 2005-11-28 Dirk Mueller <dmueller@suse.com>
858 Stephan Kulow <coolo@suse.de>
861 * src/fcmatch.c (FcFontSetMatch):
863 Don't kill all fonts during match (oops!)
866 2005-11-25 Dirk Mueller <dmueller@suse.com>
867 Stephan Kulow <coolo@suse.de>
868 Michael Matz <matz@suse.de>
871 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
874 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
875 inline FcCompare into FcFontSetMatch and reorder the
876 loops, adding a boolean array which blocks patterns from future
877 consideration if they're known to not be best on some past
880 2005-11-26 Dirk Mueller <dmueller@suse.com>
883 * src/fcmatch.c (FcCompareValueList):
887 2005-11-25 Patrick Lam <plam@mit.edu>
888 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
890 Don't do random matching when bad objects are passed into
893 2005-11-25 Patrick Lam <plam@mit.edu>
895 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
896 FcPatternSerialize, FcPatternUnserialize,
897 FcValueListEnsureBank, FcValueListDistributeBytes,
898 FcValueListUnserialize):
900 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
901 _fcPatternElts, _fcValueLists for consistency.
903 2005-11-25 Dirk Mueller <dmueller@suse.com>
908 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
910 2005-11-25 Patrick Lam <plam@mit.edu>
912 * src/fccache.c (FcDirCacheConsume):
913 * src/fccharset.c (FcCharSetUnserialize):
914 * src/fcfs.c (FcFontSetUnserialize):
915 * src/fclang.c (FcLangSetUnserialize):
916 * src/fcname.c (FcObjectUnserialize):
917 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
918 FcPatternUnserialize):
920 Pass around FcCache *s to the Unserialize functions for extra
921 consistency (and less overhead, for what that's worth).
923 2005-11-24 Dirk Mueller <dmueller@suse.com>
927 * src/fcmatch.c (FcCompare*, FcFontSetSort):
928 * src/fcname.c (FcNameUnparseValue):
930 Inline the *PtrU functions to gain perf.
931 Remove unneeded params for the FcCompare* functions.
933 2005-11-24 Dirk Mueller <dmueller@suse.com>
936 * src/fcint.h, fontconfig/fontconfig.h:
938 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
940 * src/fcpat.c, src/fcint.h, src/fcname.c:
942 Check for type validity during FcPatternAddWithBinding, don't
943 verify type in FcFontMatch, don't call FcCanonicalize here
944 (which always does a deep copy).
946 2005-11-24 Dirk Mueller <dmueller@suse.com>
949 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
950 * src/fcpat.c (FcPatternAddWithBinding):
952 Make FcCompareString and FcCompareFamily less expensive.
953 Only add a value for FC_FAMILY if the proposed value is a string.
955 2005-11-24 Dirk Mueller <dmueller@suse.com>
958 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
959 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
960 * src/fcint.h (FcDebug):
962 Inline FcDebug invocations and only initialize once, in FcInit*.
963 Improve debug msg in FcPatternPrint.
965 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
968 * fontconfig/fontconfig.h:
971 Minor code warning cleanups.
973 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
976 * fc-match/fc-match.c (main):
978 Make getopt_long accept -s parameter to fc-match as well.
980 2005-11-21 Dirk Mueller <dmueller@suse.com>
983 * src/fcmatch.c (FcCompareValueList):
985 Manually perform inlining & partial redundancy elimination to
986 reduce calls to FcValueListPtrU.
988 2005-11-21 Dirk Mueller <dmueller@suse.com>
991 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
992 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
994 Only invoke strlen() when really necessary.
996 2005-11-19 Matthias Clasen <mclasen@redhat.com>
1000 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
1001 FcFontCapabilities):
1005 Get rid of the use of freetype internal headers in fcfreetype.c,
1006 since those headers will go away with freetype 2.2. Replace with
1007 public domain ftglue code from pango. Note that the patch removes
1008 some extra error checking in FT_Get_BDF_Property() and comments
1009 out the skipping of empty pcf fonts.
1011 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
1014 * fc-lang/fc-lang.c (main):
1016 Further fix of patch from 2005-11-04: miscounted numbers count
1017 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
1018 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
1020 Removed leafidx_count and numbers_count since they are the same
1021 and replaced them with offset_count.
1023 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1026 * fc-cat/fc-cat.c (main):
1028 Don't crash when fc-cat invoked with no arguments.
1030 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1033 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
1035 Fix invalid read access caused by premature free and
1036 GCC4 warnings in libxml2 codepath.
1038 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
1041 * src/fccfg.c (FcConfigValues):
1043 List iteration not needed in FcConfigValues, since it's building
1044 up the list itself; we can just strip FcVoid elements during
1047 2005-11-17 Patrick Lam <plam@mit.edu>
1048 * src/fccfg.c (FcConfigValues):
1050 Fix crash on invalid constants in config files (forgot to update
1051 a pointer upon list iteration.)
1053 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
1056 * src/fcxml.c (FcTypecheckExpr):
1058 Complain about invalid constants in config files.
1060 2005-11-17 Andreas Schwab <schwab@suse.de>
1063 * src/fccache.c (FcGlobalCacheSave):
1065 Don't add current_arch_start more than once.
1067 2005-11-16 Patrick Lam <plam@mit.edu>
1068 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1069 * src/fcfs.c (FcFontSetUnserialize):
1070 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1071 * src/fcpat.c (FcStrUnserialize):
1073 Fix ordering of ALIGN with respect to saving block_ptr; add
1074 another ALIGN to fcfs.c.
1076 2005-11-16 Patrick Lam <plam@mit.edu>
1077 * src/fccache.c (FcDirCacheProduce)
1079 Fix case where alignment bytes bumped up metadata->count
1080 causing unwarranted failures to write cache files.
1081 (Reported by Stephan Kulow).
1083 2005-11-16 Patrick Lam <plam@mit.edu>
1084 * src/fccache.c (FcDirCacheProduce):
1085 * src/fccharset.c (FcCharSetDistributeBytes):
1086 * src/fcfs.c (FcFontSetDistributeBytes):
1088 * src/fclang.c (FcLangSetDistributeBytes):
1089 * src/fcname.c (FcObjectDistributeBytes):
1090 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1093 Add *NeededBytesAlign(), which overestimates the padding which is
1094 later added by the new ALIGN macro. Fix alignment problems on
1095 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1096 version by Andreas Schwab).
1098 2005-11-16 Stephan Kulow <coolo@kde.org>
1103 Use sysconf to determine proper PAGESIZE value; this
1104 appears to be POSIX-compliant. (reported by Andreas Schwab)
1106 2005-11-04 Patrick Lam <plam@mit.edu>
1107 * fc-lang/fc-lang.c:
1112 Fix bug 2878 (excessive relocations at startup for charsets,
1113 reported by Ross Burton): fc-lang/fc-lang now creates the
1114 static form of the langset, not the dynamic form, so that
1115 the charsets should now be in .rodata.
1117 2005-11-04 Patrick Lam <plam@mit.edu>
1118 * src/fcdir.c (FcDirScanConfig):
1120 Add test for validity of directory caches that
1121 somehow got lost (reported by make distcheck).
1123 2005-11-04 Patrick Lam <plam@mit.edu>
1127 * fontconfig/fontconfig.h:
1129 Bump version to 2.3.92.
1131 2005-11-02 Patrick Lam <plam@mit.edu>
1132 * src/fcpat.c (FcPatternDuplicate):
1134 Fix argument ordering problem in call to FcPatternTransferFullFname.
1136 2005-11-02 Patrick Lam <plam@mit.edu>
1137 * src/fcfreetype.c (FcFreetypeQuery):
1138 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1139 FcPatternTransferFullFname):
1141 Fix warnings and embarrassing double-free error.
1143 2005-11-02 Zhe Su <zsu@novell.com>
1148 Change the rule for artificial emboldening in fonts.conf.in. This
1149 enables the support for artificial emboldening included in cairo.
1151 2005-11-02 Patrick Lam <plam@mit.edu>
1152 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1154 Don't zero out full names for FC_REF_CONSTANT fonts;
1155 also, duplicate full names when transferring, and free
1156 full names when freeing the associated font.
1157 Reported by Jinghua Luo.
1159 2005-11-02 Patrick Lam <plam@mit.edu>
1160 * fc-cache/fc-cache.c (scanDirs):
1161 * src/fcpat.c (FcValueListSerialize):
1163 Revert the previous patch and commit the correct patch:
1164 I forgot a canonicalization in FcValueListSerialize, so
1165 that it would choke on already-serialized input files. Duh!
1167 2005-11-02 Patrick Lam <plam@mit.edu>
1168 * fc-cache/fc-cache.c (scanDirs):
1170 Forcibly rescan a directory before writing a fresh local
1171 cache file for that directory, fixing the losing-fonts
1172 problem reported by Mike Fabian and also apparently the
1173 font cache file corruption.
1175 2005-11-02 Patrick Lam <plam@mit.edu>
1176 * src/fccache.c (FcGlobalCacheLoad):
1178 Fix thinko: actually, the whole global cache is stale
1179 if the global cache is older than the (newest) config file.
1181 2005-11-02 Patrick Lam <plam@mit.edu>
1182 * src/fccache.c (FcGlobalCacheLoad):
1183 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1186 Declare the global cache of a directory's contents to be stale if
1187 the directory is newer than the (newest) configuration file.
1189 2005-10-31 Patrick Lam <plam@mit.edu>
1191 * src/fclist.c (FcListAppend):
1192 * src/fcmatch.c (FcFontRenderPrepare):
1193 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1194 FcPatternFreeze, FcPatternBaseFreeze):
1196 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1197 applications continue breaking.
1199 2005-10-31 Patrick Lam <plam@mit.edu>
1200 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1201 * src/fcfreetype.c (FcFreeTypeQuery):
1203 Fix small memory error (tried to free argv); use basename and
1204 dirname correctly (they can modify their arguments).
1206 2005-10-31 Patrick Lam <plam@mit.edu>
1214 Reinstate basename patch, but keep a hash table linking FcPatterns
1215 to their fully-qualified font names for clients' benefit. Clients
1216 only pay for the font names once they request the FC_FILE property
1217 from an FcPattern, but the font name is malloc'd at that point (i.e.
1218 not mmapped: that's impossible, since it may vary between machines.)
1219 Clients do have to pay for a copy of the path name per cache file.
1221 Note that FcPatternGetString now does some rewriting if you ask
1222 for an FC_FILE, appending the pathname as appropriate.
1224 2005-10-31 Patrick Lam <plam@mit.edu>
1225 * src/fcfreetype.c (FcFreeTypeQuery):
1227 Revert basename patch, which breaks fontconfig clients on my system.
1229 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1232 * fontconfig/fonts.conf.in:
1233 * fontconfig/fontconfig.h:
1237 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1238 to load embedded bitmaps or not.
1240 2005-10-25 Patrick Lam <plam@mit.edu>
1241 * src/fcfreetype.c (FcFreeTypeQuery):
1243 Only add basename to patterns' FC_FILE element, not any part of
1246 2005-10-22 Patrick Lam <plam@mit.edu>
1249 Add some more consts, fixing more GCC4 warnings.
1251 2005-10-22 Zhe Su <zsu@novell.com>
1254 Support localized font family and style names.
1255 This has been reported to break old apps like xfd, but modern
1256 (gtk+/qt/mozilla) apps work fine.
1258 2005-10-21 Patrick Lam <plam@mit.edu>
1259 * src/fccache.c (FcGlobalCacheLoad):
1261 Destroy the global cache file if it's terminally broken. (reported by
1264 2005-10-21 Patrick Lam <plam@mit.edu>
1265 * fc-list/fc-list.c (main):
1266 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1267 * fontconfig/fontconfig.h:
1269 Prevent fc-list from escaping strings when printing them (reported by
1272 2005-10-20 Marcus Meissner <meissner@suse.de>
1275 * fontconfig/fontconfig.h:
1277 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1279 2005-10-14 Ross Burton <ross@burtonini.com>
1282 * fc-glyphname/fc-glyphname.c:
1285 Add consts to variables so as to move arrays into .rodata.
1287 2005-10-14 Mike Fabian <mfabian@suse.de>
1290 * src/fccache.c (FcDirCacheUnlink):
1292 Check existence of directory cache file before attempting to unlink.
1294 2005-10-13 Patrick Lam <plam@mit.edu>
1295 * src/fccache.c (FcDirCacheUnlink):
1297 Fix flipped return value on unlink. (Reported by Mike Fabian)
1299 2005-10-12 Patrick Lam <plam@mit.edu>
1302 * src/fcdir.c (FcDirScanConfig):
1305 When fc-cache is run without --force, use directory cache files
1306 to speed up fc-cache run time. (Reported by Mike Fabian)
1308 2005-10-06 Patrick Lam <plam@mit.edu>
1310 * src/fcname.c (FcObjectToPtr):
1311 * src/fcpat.c (FcStrStaticName):
1313 Add padding to make valgrind and glibc not hate each other
1314 when calling strlen().
1316 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1317 reviewed by: plam & keithp
1321 Modify config file to use Greek fonts before Asian fonts with
1324 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1325 reviewed by: plam & keithp
1329 Use libtool -no-undefined flag on all platforms.
1331 2005-10-05 Patrick Lam <plam@mit.edu>
1332 * src/fccache.c (FcCacheHaveBank):
1334 Implement move-to-front array for banks (perf regression
1335 reported by Ronny V. Vindenes).
1337 2005-10-04 Patrick Lam <plam@mit.edu>
1338 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1339 FcDirCacheHasCurrentArch):
1340 * fc-cache/fc-cache.c (scanDirs):
1341 * fontconfig/fontconfig.h:
1343 Add new API which unlinks directory caches and checks dir caches
1344 for existence of appropriate sections. Fix fc-cache to unlink
1345 stale cache files and save directory caches that lack relevant
1348 2005-10-03 Patrick Lam <plam@mit.edu>
1349 * src/fccache.c (FcDirCacheValid):
1351 Ensure that a directory cache has the appropriate section
1352 before reporting that it is valid (reported by Matthias Clasen).
1354 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1362 Use libxml2 if requested (with --enable-libxml2) or if
1363 expat is not available.
1365 2005-09-29 Patrick Lam <plam@mit.edu>
1366 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1368 Fix multi-arch cache files: compute the position for the
1369 block to be added using info from OrigFile, not NewFile.
1371 2005-09-28 Patrick Lam <plam@mit.edu>
1372 * src/fccache.c (FcCacheMachineSignature):
1374 Cast results of sizeof() to unsigned int to get rid of
1375 warnings on x86_64 (thanks Matthias Clasen).
1377 2005-09-27 Patrick Lam <plam@mit.edu>
1378 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1381 Use FcAtomic to rewrite cache files.
1383 2005-09-27 Patrick Lam <plam@mit.edu>
1385 * src/fccache.c (FcDirCacheWrite):
1387 Don't unlink the fonts.cache-2 file even if there's no data
1388 to write; just write an empty cache file. (thanks Lubos Lunak)
1390 2005-09-27 Patrick Lam <plam@mit.edu>
1392 * src/fccache.c (FcDirCacheWrite):
1394 Allocate room for the subdirectory names in each
1395 directory cache. Thanks to James Cloos for finding
1396 and diagnosing this bug!
1398 2005-09-22 Patrick Lam <plam@mit.edu>
1400 * fc-cache/fc-cache.sgml:
1401 * src/fccache.c (FcDirCacheWrite):
1402 * src/fccache.h (struct FcCache):
1404 Update documentation -- fc-cache's man page now says that you
1405 need to run fc-cache once per cached architecture; add some
1406 documentation to the FcCache structure.
1408 Make fc-cache write out fonts.cache-2 files for directories with
1409 no fonts (i.e. only subdirectories).
1411 2005-09-22 Patrick Lam <plam@mit.edu>
1413 * fc-cache/fc-cache.sgml:
1414 * fc-case/fc-case.c:
1415 * fc-glyphname/fc-glyphname.c:
1421 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1425 * fc-lang/fc-lang.c:
1426 * fontconfig/fcprivate.h:
1427 * fontconfig/fontconfig.h:
1441 Implement new mmaped cache for font information.
1442 Bump so revision to 2.3.90.
1444 2005-07-25 Keith Packard <keithp@keithp.com>
1446 * doc/fontconfig-user.sgml:
1447 * fc-glyphname/fc-glyphname.c: (scan), (main):
1448 * fc-lang/fc-lang.c: (FcConfigHome):
1449 * fc-match/fc-match.c: (main):
1450 * src/fccfg.c: (FcConfigHome):
1451 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1452 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1453 (addtag), (FcFontCapabilities):
1454 * src/fcpat.c: (FcValueListEntCreate):
1455 * src/fcstr.c: (FcStrCaseWalkerInit):
1456 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1458 Various GCC 4 cleanups for signed vs unsigned char
1460 Match only [0-9]*.conf files in <include>{directory}</include>
1461 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1463 2005-07-15 Carl Worth <cworth@cworth.org>
1466 * src/fcinit.c: (FcFini):
1467 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1470 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1471 Pull the FcObjectStateName hash table out to file scope, and add
1472 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1475 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1478 2005-06-16 Patrick Lam <plam@MIT.EDU>
1482 * src/fccfg.c: (FcConfigCompareValue):
1483 Make FcOpNotContains use FcStrStr for strings so that
1484 it matches semantics for !FcOpContains.
1486 2005-05-20 Keith Packard <keithp@keithp.com>
1490 Move fontconfig source package to libs as per override
1492 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1494 reviewed by: Mike Fabian
1497 The ka.orth file requires several characters which are not
1498 used anymore in modern Georgian and which are missing in the free
1499 Georgian TrueType fonts downloadable at:
1501 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1503 2005-04-27 Keith Packard <keithp@keithp.com>
1507 Update date to real 2.3.2 release date.
1508 Fix change attributions
1510 2005-04-27 Keith Packard <keithp@keithp.com>
1513 Bump so revision for 2.3.2
1514 * fc-cache/fc-cache.c: (scanDirs):
1515 Fix a few minor leaks in error cases.
1517 2005-04-23 Keith Packard <keithp@keithp.com>
1522 * fontconfig/fontconfig.h:
1523 Update for version 2.3.2
1525 2005-04-21 Keith Packard <keithp@keithp.com>
1527 * debian/fontconfig.postinst:
1528 Don't force bitmap font enable in default
1529 configuration; allows users to override this in
1539 * debian/po/pt_BR.po:
1540 * debian/po/templates.pot:
1542 * debian/po/zh_CN.po:
1543 Updated translations
1545 * fc-cache/fc-cache.c: (main):
1546 Destroy font configuration on exit to help valgrind
1549 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1550 (FcFreeTypeCheckGlyph):
1551 Use own transcoding routines in preference to iconv
1552 which appears to have leaks in some translators.
1553 Call iconv_close after using iconv (oops).
1555 Prefer unicode encoding of Euro char as some
1556 fonts mis-encode Euro in other ones.
1558 Must fetch bitmap glyphs to get width values
1559 to check for monospace/dual-width fonts.
1561 2005-04-13 Ross Burton <ross@burtonini.com>
1564 Check that a pattern isn't already frozen in FcPatternFreeze.
1566 2005-03-31 Ross Burton <ross@burtonini.com>
1571 Run all FcPattern objects through FcObjectStaticName, so that
1572 compares can be done on pointers instead of strings (#2659)
1574 2005-03-17 Tor Lillqvist <tml@novell.com>
1576 * src/fontconfig.def.in: Add the .dll to the dll name.
1578 2005-03-10 Keith Packard <keithp@keithp.com>
1580 * debian/README.Debian:
1581 Update to reflect configuration changes
1583 * debian/fontconfig.postinst:
1584 Fix Autohint vs Autohinter mistake
1585 * debian/fontconfig.templates:
1586 Adopt changes from Josselin Mouette for configuration descriptions
1587 Update debian to version 2.3.1-2
1589 2005-03-08 Keith Packard <keithp@keithp.com>
1593 Update debian for 2.3.1
1595 2005-03-09 Tor Lillqvist <tml@novell.com>
1597 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1600 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1603 2005-03-08 Keith Packard <keithp@keithp.com>
1607 * fontconfig/fontconfig.h:
1610 2005-03-05 Keith Packard <keithp@keithp.com>
1612 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1613 Include space and remove numbers from valid script tags.
1614 This ensures that tags like 'lao ' work while rejecting
1615 those which have any digits.
1616 Eliminate a spurious debugging variable (len)
1618 2005-03-05 Keith Packard <keithp@keithp.com>
1620 * src/fcfreetype.c: (addtag), (GetScriptTags),
1621 (FcFontCapabilities):
1622 Rework GSUB/GPOS script parsing to survive broken fonts.
1623 Thanks for the broken font go to Manish Singh
1625 2005-03-05 Keith Packard <keithp@keithp.com>
1630 * debian/fontconfig.config:
1631 * debian/fontconfig.templates:
1633 Include 2.3 release information in changelog
1634 Add Josselin Mouette as an Uploader
1635 Set hinting_type to low priority configuration option
1638 * debian/fontconfig.postinst:
1639 yes_bitmaps.conf -> yes-bitmaps.conf
1645 2005-03-02 Keith Packard <keithp@keithp.com>
1648 * conf.d/Makefile.am:
1649 * conf.d/autohint.conf:
1650 * conf.d/no-sub-pixel.conf:
1651 * conf.d/sub-pixel.conf:
1652 * conf.d/unhinted.conf:
1653 * debian/autohint.conf:
1654 * debian/fontconfig.install:
1655 * debian/fontconfig.postinst:
1656 * debian/fontconfig.templates:
1657 * debian/no-sub-pixel.conf:
1658 * debian/unhinted.conf:
1659 Move debian-specific conf file examples upstream.
1661 Sub-pixel configuration examples must smash subpixel value
1662 as Xft always sets it from X.
1664 Change sub-pixel rendering debconf descriptions from
1665 Enable/Disable to Always/Never.
1667 2005-03-02 Keith Packard <keithp@keithp.com>
1670 * conf.d/.cvsignore:
1672 Ignore more build detritus
1675 Add debian package construction stuff.
1677 * config/config.guess:
1678 * config/config.sub:
1679 Update to newer versions of these tools
1682 Get library manuals to build again (we love automake).
1684 * debian/README.Debian:
1685 * debian/autohint.conf:
1690 * debian/fontconfig-udeb.install:
1691 * debian/fontconfig.config:
1692 * debian/fontconfig.defoma:
1693 * debian/fontconfig.dirs:
1694 * debian/fontconfig.install:
1695 * debian/fontconfig.postinst:
1696 * debian/fontconfig.postrm:
1697 * debian/fontconfig.templates:
1698 * debian/libfontconfig1-dev.install:
1699 * debian/libfontconfig1.install:
1700 * debian/local.conf.md5sum:
1701 * debian/no-sub-pixel.conf:
1702 * debian/po/POTFILES.in:
1711 * debian/po/pt_BR.po:
1712 * debian/po/templates.pot:
1714 * debian/po/zh_CN.po:
1716 * debian/unhinted.conf:
1717 Update debian build system to switch maintainers and
1718 deal with 2.3 functionality
1720 2005-03-01 Keith Packard <keithp@keithp.com>
1724 * fontconfig/fontconfig.h:
1727 2005-03-01 Keith Packard <keithp@keithp.com>
1730 Generate and install PDF versions of the manuals
1732 * doc/fcpattern.fncs:
1735 * doc/fcstring.fncs:
1736 Add missing exported functions, fix data types
1738 * doc/fontconfig-devel.sgml:
1739 Add missing pattern elements.
1741 * doc/fontconfig-user.sgml:
1742 Add missing pattern elements. Document conf.d usage,
1743 clarify available orthography list. Fix some config file
1744 attributes. Complete list of constants.
1746 * fontconfig/fontconfig.h:
1747 Mark FC_SOURCE deprecated.
1749 * src/fcfreetype.c: (FcFreeTypeQuery):
1750 Don't set FC_SOURCE any longer.
1752 2005-02-28 Keith Packard <keithp@keithp.com>
1755 * conf.d/Makefile.am:
1757 * conf.d/no-bitmaps.conf:
1758 * conf.d/sub-pixel.conf:
1759 * conf.d/yes-bitmaps.conf:
1761 Create prototype /etc/fonts/conf.d directory with a few
1762 sample configuration files.
1763 Deprecate use of local.conf for local customizations in favor of
1764 this directory based scheme which is more easily integrated into
1765 installation systems.
1768 Tag FC_EMBOLDEN as a boolean variable
1770 2005-02-10 Keith Packard <keithp@keithp.com>
1772 reviewed by: pborelli@katamail.com
1774 * src/fcdir.c: (FcFileScanConfig):
1775 Free patterns from fonts which are rejected by configuration
1778 2005-01-28 Keith Packard <keithp@keithp.com>
1782 * fontconfig/fontconfig.h:
1783 Update for version 2.2.99
1785 2005-01-28 Keith Packard <keithp@keithp.com>
1788 Add a few pointers (#2284, #2285)
1790 2005-01-28 Keith Packard <keithp@keithp.com>
1793 * src/fcname.c: (FcNameBool):
1794 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1795 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1796 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1797 Polite typechecking for test and edit expressions. Helps
1798 catch errors in the font configuration. (bug 229)
1800 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1802 reviewed by: Keith Packard <keithp@keithp.com>
1805 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1807 2005-01-13 Keith Packard <keithp@keithp.com>
1809 * doc/fontconfig-user.sgml:
1810 Add SEE ALSO section (bug 2085)
1812 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1814 reviewed by: Keith Packard <keithp@keithp.com>
1819 * fc-case/Makefile.am:
1820 * fc-glyphname/Makefile.am:
1821 * fc-lang/Makefile.am:
1822 * src/fontconfig.def.in:
1823 Cross compiling fixes (bug 280)
1825 2005-01-13 Keith Packard <keithp@keithp.com>
1828 Update blanks list (Closes bug 86)
1830 2005-01-04 Keith Packard <keithp@keithp.com>
1832 * src/fccache.c: (FcCacheFontSetAdd):
1833 Verify that every font pattern loaded from cache has
1834 both FC_FILE and FC_FAMILY entries.
1835 Attempt to fix bug #2219.
1837 2004-12-29 Keith Packard <keithp@keithp.com>
1841 * fontconfig/fontconfig.h:
1842 Update for version 2.2.98
1844 2004-12-29 Keith Packard <keithp@keithp.com>
1846 * fontconfig/fontconfig.h:
1847 Document ASCII limitations of Fc character conversion macros
1848 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1849 Fix off-by-one error in utf-8 case walking code.
1850 Add FcStrDowncase (useful for testing case conversion functions)
1852 2004-12-29 Keith Packard <keithp@keithp.com>
1855 * fc-case/.cvsignore:
1856 clean up CVS ignore lists
1857 * fc-lang/iso-3166.txt:
1858 Add territory database
1860 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1862 Reviewed by: Keith Packard
1865 Remove Han characters from Korean orthography
1867 2004-12-29 Keith Packard <keithp@keithp.com>
1870 Reorder utility programs to make sure fc-case is run before fc-lang
1871 as fc-lang uses fcstr.c which uses fccase.h
1875 2004-12-29 Keith Packard <keithp@keithp.com>
1878 Adopt some RedHat suggestions for standard font configuration.
1882 * fc-case/CaseFolding.txt:
1883 * fc-case/Makefile.am:
1884 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1885 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1886 (dump), (parseRaw), (caseFoldReadRaw), (main):
1887 * fc-case/fccase.tmpl.h:
1888 Add new helper program 'fc-case' to construct case folding
1889 tables from standard Unicode CaseFolding.txt file
1892 * src/fclist.c: (FcListValueHash):
1893 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1894 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1895 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1896 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1897 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1898 Re-implement case insensitive functions with Unicode
1899 aware versions (including full case folding mappings)
1901 2004-12-13 Keith Packard <keithp@keithp.com>
1903 reviewed by: Owen Taylor <otaylor@redhat.com>
1905 * src/fcmatch.c: (FcFontSetSort):
1906 I changed FcFontSetSort to respect the generic aliases better
1907 in the face of language matching.
1909 What I did was to ammend the strict sort order used by FcFontSort so
1910 that it 'satisfies' the language specified in the pattern by locating
1911 the best matching font supporting each pattern language and then
1912 ignores language in the remaining fonts for purposes of matching.
1914 So, when asking for 'sans:lang=en', you'll get an English font first,
1915 and then the remaining fonts sorted with respect to the 'sans' alias
1916 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1918 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1920 reviewed by: Keith Packard <keithp@keithp.com>
1922 * fontconfig/fontconfig.h:
1925 Configuration changes to request synthetic emboldening of
1926 fonts. The actual emboldening code will live in Xft.
1928 2004-12-09 John Thacker <thacker@math.cornell.edu>
1930 reviewed by: Keith Packard <keithp@keithp.com>
1934 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1935 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1936 и), and don't even appear in KOI8-R. (The hypothesis that they
1937 don't appear in KOI8-R due to their similarity with Latin I and i is
1938 eliminated by their presence in KOI8-U.) I have a couple of fonts
1939 with Russian support that don't have the letter.
1941 Therefore, 0406 and 0456 should be removed from or commented out of
1944 2004-12-06 michael meeks <mmeeks@novell.com>
1946 Reviewed by: Keith Packard <keithp@keithp.com>
1948 * src/fcinit.c: (FcMemReport):
1950 * src/fclist.c: (FcObjectSetAdd):
1951 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1952 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1953 * src/fcxml.c: (FcParsePatelt):
1954 memoize strings and share a single copy for all uses. Note that
1955 this could be improved further by using statically allocated blocks
1956 and gluing multiple strings together, but I'm basically lazy.
1957 In my environment with 800 font files, I get a savings of about 90KB.
1959 2004-12-06 Keith Packard <keithp@keithp.com>
1963 * config/Makedefs.in:
1966 * doc/fcatomic.fncs:
1967 * doc/fcblanks.fncs:
1968 * doc/fccharset.fncs:
1969 * doc/fcconfig.fncs:
1970 * doc/fcconstant.fncs:
1972 * doc/fcfontset.fncs:
1973 * doc/fcfreetype.fncs:
1975 * doc/fcmatrix.fncs:
1976 * doc/fcobjectset.fncs:
1977 * doc/fcobjecttype.fncs:
1978 * doc/fcpattern.fncs:
1979 * doc/fcstring.fncs:
1980 * doc/fcstrset.fncs:
1982 * doc/fontconfig-devel.sgml:
1983 * doc/fontconfig-user.sgml:
1985 * doc/version.sgml.in:
1986 * fc-cache/Makefile.am:
1987 * fc-cache/fc-cache.c:
1988 * fc-glyphname/Makefile.am:
1989 * fc-glyphname/fc-glyphname.c:
1990 * fc-glyphname/fcglyphname.tmpl.h:
1991 * fc-lang/Makefile.am:
2001 * fc-lang/az_ir.orth:
2035 * fc-lang/fc-lang.c:
2036 * fc-lang/fc-lang.man:
2037 * fc-lang/fclang.tmpl.h:
2082 * fc-lang/ku_ir.orth:
2115 * fc-lang/ps_af.orth:
2116 * fc-lang/ps_pk.orth:
2145 * fc-lang/ti_er.orth:
2146 * fc-lang/ti_et.orth:
2172 * fc-lang/zh_cn.orth:
2173 * fc-lang/zh_hk.orth:
2174 * fc-lang/zh_mo.orth:
2175 * fc-lang/zh_sg.orth:
2176 * fc-lang/zh_tw.orth:
2178 * fc-list/Makefile.am:
2179 * fc-list/fc-list.c:
2180 * fc-match/Makefile.am:
2181 * fc-match/fc-match.1:
2182 * fc-match/fc-match.c:
2183 * fontconfig/fcfreetype.h:
2184 * fontconfig/fcprivate.h:
2185 * fontconfig/fontconfig.h:
2206 Change files from ISO-Latin-1 to UTF-8
2208 2004-12-04 Keith Packard <keithp@keithp.com>
2211 Update links to new freedesktop.org locations
2213 Add uninstall-local to get rid of fonts.conf and local.conf if they
2214 match the distributed versions. Fixes 'make distcheck'
2216 2004-12-04 Keith Packard <keithp@keithp.com>
2220 * fontconfig/fontconfig.h:
2221 Updates for version 2.2.97
2223 2004-12-04 Owen Taylor <otaylor@redhat.com>
2225 reviewed by: Keith Packard <keithp@keithp.com>
2227 * fc-cache/fc-cache.c: (main):
2228 Sleep for two seconds before exiting to make sure timestamps
2229 for future changes have distinct mod times in the file system.
2232 Add Punjabi orthography. Bug #1671.
2234 2004-12-04 Keith Packard <keithp@keithp.com>
2237 Just remove the FC_FONTDATE -- it has locale issues and
2238 annoys redhat multi-arch installs. Now that all X fonts are
2239 included without prejudice, the chances of the date being at
2240 all interesting are rather limited. Bug #505.
2242 Add copyright and license
2244 2004-12-04 Keith Packard <keithp@keithp.com>
2247 Change default set of fonts to include all of
2248 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2249 * doc/fontconfig-user.sgml:
2250 Document new <include>directory-name</include> semantics
2252 add <include ignore_missing="yes">conf.d</include>
2254 Add selectfont to ignore bitmap fonts, add comment for
2255 selectfont which accepts bitmap fonts.
2258 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2259 Allow <include> configuration elements to reference directories.
2260 Parse and load all files of the form [0-9]* in sorted order.
2262 2004-12-04 Keith Packard <keithp@keithp.com>
2265 Report command line for $srcdir/configure accurately.
2268 2004-12-04 Keith Packard <keithp@keithp.com>
2270 * src/fcfreetype.c: (FcFreeTypeQuery):
2271 Check for non-empty face->family_name and face->style_name
2272 before using those for the font. Empty names match everything.
2275 2004-12-04 Keith Packard <keithp@keithp.com>
2278 * fontconfig/fontconfig.h:
2279 * src/fcfreetype.c: (FcFreeTypeQuery):
2281 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2282 available. This provides font file format information (BDF, Type 1,
2283 PCF, TrueType) for each font. Closes #109.
2285 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2287 reviewed by: Keith Packard <keithp@keithp.com>
2289 * doc/fontconfig-user.sgml:
2292 * fontconfig/fontconfig.h:
2293 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2294 (GetScriptTags), (FcFontCapabilities):
2296 Add detection for font capabilities (bug #105)
2298 2004-12-04 Keith Packard <keithp@keithp.com>
2301 Move existing fonts.conf to fonts.conf.bak
2304 Add detection of iconv
2306 * doc/fcpattern.fncs:
2307 * doc/fontconfig-devel.sgml:
2308 * doc/fontconfig-user.sgml:
2310 Document new selectfont elements
2313 Switch to UTF-8 in comment
2315 * fontconfig/fontconfig.h:
2317 Add fullname, and family/style/fullname language entries
2319 * src/fccache.c: (FcCacheFontSetAdd):
2320 * src/fcdir.c: (FcFileScanConfig):
2321 Respect selectfont/*/glob
2324 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2325 (FcConfigCompareValue), (FcConfigPatternsAdd),
2326 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2327 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2328 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2329 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2330 Add support for selectfont
2332 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2333 (FcStringInPatternElement), (FcFreeTypeQuery):
2334 Add multi-lingual family/style/fullname support
2336 * src/fclist.c: (FcListPatternMatchAny):
2337 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2339 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2340 (FcObjectStaticName):
2341 Add new FcPatternRemove/FcPatternAppend.
2342 FcObjectStaticName stores computed pattern element names which
2343 are required to be static.
2345 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2350 Remove spurious / after $(DESTDIR)
2352 2004-06-30 Keith Packard <keithp@keithp.com>
2356 * fontconfig/fontconfig.h:
2359 2004-06-30 Keith Packard <keithp@keithp.com>
2361 Provided by: Lubos Lunak <l.lunak@suse.cz>
2363 * src/fccfg.c: (FcConfigUptoDate):
2364 However FcConfigUptoDate() doesn't seem to work. See the attached
2365 patch. First there's an obvious misplaced parenthesis making it
2366 return always false, and second, even this call fails to detect font
2367 changes (e.g. adding a new font to
2368 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2369 well. The problem seems to be triggered by my fonts.conf specifying
2370 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2371 doesn't include subdirs, unlike config->fontDirs.
2373 2004-06-03 Keith Packard <keithp@keithp.com>
2375 * fontconfig/fontconfig.h:
2376 Remove comma at end of FcResult enum definition.
2378 2004-05-29 Keith Packard <keithp@keithp.com>
2381 Add steps to md5sum release
2383 2004-05-29 Keith Packard <keithp@keithp.com>
2387 * fontconfig/fontconfig.h:
2390 2004-05-29 Keith Packard <keithp@keithp.com>
2392 * fontconfig/fontconfig.h:
2393 * src/fcmatch.c: (FcFontSetMatch):
2394 Add FcResultOutOfMemory to provide an accurate error when
2395 FcFontSetMatch fails in this way
2398 Make #warning about lacking various FreeType features indicate
2399 which version those features appeared so users know how to
2400 fix the problem (Thanks to Anton Tropashko)
2402 2004-05-05 Keith Packard <keithp@keithp.com>
2404 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2405 Replace MIN/MAX/ABS macros which happen to have come
2406 from FreeType with fontconfig-specific ones (FC_*)
2408 2004-04-23 Keith Packard <keithp@keithp.com>
2411 Extend release preparation instructions to include
2412 notification and distribution steps
2414 2004-04-23 Keith Packard <keithp@keithp.com>
2418 * fontconfig/fontconfig.h:
2419 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2421 2004-04-23 Keith Packard <keithp@keithp.com>
2424 Ignore a few more autotool files
2426 2004-04-14 Keith Packard <keithp@keithp.com>
2429 Add instructions for doing a release
2431 * fontconfig.spec.in:
2432 clean up .spec file; perhaps this will be useful to somebody...
2436 * fontconfig/fontconfig.h:
2439 * fc-lang/fc-lang.c:
2440 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2442 * fc-glyphname/Makefile.am:
2443 * fc-lang/Makefile.am:
2444 * fc-list/Makefile.am:
2445 * fc-match/Makefile.am:
2447 Add WARN_CFLAGS to pass -W flags for GCC systems
2449 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2450 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2451 Change various char types around to match across
2453 Fixed bug in using available_sizes[i].height which
2454 is in pixels, not 64ths of a pixel.
2456 2004-03-06 Keith Packard <keithp@keithp.com>
2458 * src/fcfreetype.c: (FcFreeTypeQuery):
2459 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2460 matches looking for explicit values prefer exact matches
2462 2004-03-02 Keith Packard <keithp@keithp.com>
2464 Supplied by: mfabian@suse.de (Mike FABIAN)
2466 * src/fcfreetype.c: (FcFreeTypeQuery):
2467 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2468 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2470 2004-02-21 Manish Singh <yosh@gimp.org>
2472 * fc-glyphname/fc-glyphname.c: (main):
2473 Cast strlen to int for printf, so we're 64-bit clean.
2475 2004-02-11 Keith Packard <keithp@keithp.com>
2478 * src/fcfreetype.c: (FcGetPixelSize):
2479 Ok, so I messed up the test for y_ppem. Let's see if I
2480 got it right this time.
2482 2004-02-10 Keith Packard <keithp@keithp.com>
2485 * src/fcfreetype.c: (FcGetPixelSize):
2486 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2487 FT_Bitmap_Size record. Add a configure.in test for this
2488 and change the code accordingly (using height instead).
2490 2004-02-06 Keith Packard <keithp@keithp.com>
2493 Add Low Saxon orthography
2494 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2496 * src/fccfg.c: (FcConfigNewestFile):
2497 Oops. Left 'newest.set' unset, which would miscompute
2500 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2501 (FcFreeTypeCheckGlyph):
2502 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2503 font properties (which report the wrong value in current FreeType)
2505 Don't attempt to check for empty glyphs in non-scalable fonts; they
2508 2004-02-01 Tor Lillqvist <tml@iki.fi>
2510 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2511 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2512 cache if config->cache is NULL, which happens if FcConfigHome() is
2513 NULL. Guard against that by using the temp folder in that case.
2515 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2517 * fc-lang/az_ir.orth:
2518 * fc-lang/ku_ir.orth:
2519 * fc-lang/ps_af.orth:
2520 * fc-lang/ps_pk.orth:
2521 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2522 (Afghan and Pakistani).
2524 Updated Urdu orthography with real data.
2526 2003-12-11 Carl Worth <cworth@east.isi.edu>
2528 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2531 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2533 (all-local): Remove excessive whitespace.
2535 * autogen.sh: Add 'set -e' to abort when any program fails,
2536 (avoids printing of 'now type make' after configure aborts).
2538 2003-11-17 Eric Christopherson <rakko@charter.net>
2540 reviewed by: Keith Packard <keithp@keithp.com>
2543 * fontconfig/fcfreetype.h:
2545 Switch to FreeType 2.1.7 style includes. Bug #150.
2547 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2549 * fc-list/fc-list.sgml: Add some example usages.
2551 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2554 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2557 2003-10-27 Keith Packard <keith@keithp.com>
2560 * fontconfig/fontconfig.h:
2561 Update to version 2.2.92
2563 2003-10-27 Keith Packard <keithp@keithp.com>
2568 * fc-cache/Makefile.am:
2569 * fc-glyphname/Makefile.am:
2570 * fc-lang/Makefile.am:
2571 * fc-list/Makefile.am:
2572 * fc-match/Makefile.am:
2575 Yet more cleanups to finish getting 'make distcheck' working
2576 This has been tested to ensure that it even works from a _build
2579 2003-10-26 Keith Packard <keithp@keithp.com>
2583 * fc-cache/Makefile.am:
2584 * fc-glyphname/Makefile.am:
2585 * fc-lang/Makefile.am:
2586 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2587 * fc-list/Makefile.am:
2588 * fc-match/Makefile.am:
2589 Attempts to fix 'make distcheck' work. Things are
2590 progressing pretty well, but there are still failures
2591 long into the process dealing with docs (as always).
2593 The big changes here are mostly to make $(srcdir) != "."
2594 work correctly, fixing the docbook related sections and
2595 fc-lang were particularily tricky. Docbook refuses to load
2596 system entities from anywhere other than where the original .sgml
2597 file was located, so no luck looking in "." for the
2598 configure-generated version.sgml and confdir.sgml files.
2600 fc-lang needed help finding .orth files; added a -d option
2601 to set the directory as the least evil of many options.
2603 Now to go use a faster machine and try and wring out the last
2606 2003-10-26 Keith Packard <keithp@keithp.com>
2610 2003-10-26 Keith Packard <keithp@keithp.com>
2613 Include confdir.sgml.in in EXTRA_DIST
2615 2003-10-09 Josselin Mouette <joss@debian.org>
2617 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2618 * fc-list/fc-list.sgml fc-list/Makefile.am:
2619 Replace fc-cache and fc-list manpages with more detailed, SGML
2622 2003-09-23 Owen Taylor <otaylor@redhat.com>
2624 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2625 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2626 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2629 2003-09-23 Owen Taylor <otaylor@redhat.com>
2631 * fc-lang/ka.orth: Remove Georgian capitals, they
2632 aren't used for normal writing. (Bug #116)
2634 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2636 * doc/fontconfig-devel.sgml:
2637 * doc/fontconfig-user.sgml:
2638 * fontconfig/fontconfig.h:
2640 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2641 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2643 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2644 monospace and dual-width fonts, allow roughly a 3% variance in the
2647 2003-08-31 Manish Singh <yosh@gimp.org>
2649 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2652 2003-08-15 Carl Worth <cworth@isi.edu>
2654 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2655 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2657 * src/fcpat.c (FcValueListEntDestroy): New function to support
2658 FcFini memory cleanup. Some statistics are not kept in
2660 (FcValueListFreeze): Move hashTable outside this function so it
2661 can be accessed by FcValueListThawAll.
2662 (FcValueListThawAll): New function complements FcValueListFreeze.
2663 (FcPatternBaseFreeze): Move hashTable outside this function so it
2664 can be accessed by FcPatternBaseThawAll.
2665 (FcPatternBaseThawAll): New function complements
2666 FcPatternBaseFreeze.
2667 (FcPatternThawAll): New function complements FcPatternFreeze.
2669 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2671 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2672 allocated FcCharLeafEnt "blocks" so they can be freed later.
2673 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2674 can be accessed by FcCharSetThawAllLeaf.
2675 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2676 (FcCharSetFreezeBase): Move hashTable outside this function so it
2677 can be accessed by FcCharSetThawAll.
2678 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2680 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2681 (FcConfigDestroy): Fic leak of FcBlanks.
2683 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2684 (main): Add call to FcFini when finished.
2686 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2687 static. Add prototypes.
2689 * doc/fcinit.fncs: Add documentation for FcFini function.
2691 * doc/edit-sgml.c: Mark several local functions as static. Add
2694 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2696 2003-06-15 Tor Lillqvist <tml@iki.fi>
2698 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2699 before comparing (needed on Windows).
2701 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2703 2003-06-13 Tor Lillqvist <tml@iki.fi>
2705 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2708 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2709 WINDOWSFONTDIR token.
2711 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2712 end, not to confuse libtool, which expects the EXPORTS line to be
2713 the first. Add FcConfigEnableHome.
2715 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2716 built as a DLL on Win32.
2718 2003-06-09 Keith Packard <keithp@keithp.com>
2720 * Tag version 2.2.90
2722 2003-06-09 Keith Packard <keithp@keithp.com>
2724 * Optimization in FcLangSetIndex was broken, occasionally
2725 returning a pointer to the wrong location on miss
2727 * Add fc-match to test font matching from the command line.
2729 2003-05-31 Keith Packard <keithp@keithp.com>
2731 * (Bug 85) add support for culmus fonts
2732 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2733 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2735 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2737 * Fix "contains" op for strings and langsets.
2739 2003-05-17 Keith Packard <keithp@keithp.com>
2741 * Fix build error with BDF prop local. Free langset after query
2743 2003-05-14 Keith Packard <keithp@keithp.com>
2745 * Extract spacing from XLFD atom
2747 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2749 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2750 disappeared in 1.30.
2752 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2754 2003-05-12 Keith Packard <keithp@keithp.com>
2756 * Use FcIsWidth to share code
2758 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2759 misclassifying some Han fonts as monospaced.
2761 2003-05-07 Keith Packard <keithp@keithp.com>
2763 * Add filename-based accept/reject to ammend available fonts.
2765 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2766 older FreeType releases.
2768 2003-05-06 Keith Packard <keithp@keithp.com>
2770 * Remove 0b82 and Tamil numbers from tamil
2771 orthography (Jungshik Shin <jshin@mailaps.org>)
2773 2003-05-04 Keith Packard <keithp@keithp.com>
2775 + Map glyph names in fonts with adobe custom encoding to unicode
2777 2003-05-02 Keith Packard <keithp@keithp.com>
2779 * Add FC_WEIGHT_BOOK as weight 75
2781 2003-04-30 Keith Packard <keithp@keithp.com>
2783 * Typo in bitstream foundry name
2785 2003-04-24 Keith Packard <keithp@keithp.com>
2787 * Eliminate italic_angle check for PS fonts
2789 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2791 * Getting closer to fixing /etc/fonts hard-coding.
2793 2003-04-22 Keith Packard <keithp@keithp.com>
2795 * Update autogen.sh to work with newer automake versions
2796 * Handle pattern elements moving during multiple edits
2798 2003-04-23 James Henstridge <james@daa.com.au>
2800 * doc/fontconfig-devel.sgml: close the <para> element.
2802 * doc/fcpattern.fncs: close the <para> element.
2804 * doc/func.sgml: close the <refsynopsisdiv> element.
2806 2003-04-22 Keith Packard <keithp@keithp.com
2808 * Update autogen.sh to work with newer automake versions
2809 * Handle pattern elements moving during multiple edits
2811 2003-04-17 Colin Walters <walters@debian.org>
2813 + Remove some unused variables, and initialize some other ones so
2814 gcc doesn't warn us.
2816 2003-04-16 Keith Packard <keithp@keithp.com>
2818 + tag version 2.1.94
2820 2003-04-16 Keith Packard <keithp@keithp.com>
2822 + add BDF property fetching support for foundry
2823 (from Juliusz Chroboczek)
2824 + add BDF property fetching support for width
2826 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2828 + Implemented foundry generation for Type 1 and TrueType
2830 2003-04-11 Gerard Escalante <g2@magestudios.net>
2832 + Retrieve information from Type1 FontInfo dictionaries
2834 2003-04-07 Colin Walters <walters@verbum.org>
2836 + src/Makefile.am: Fix dummy makefile target names when
2837 MS_LIB_AVAILABLE isn't set.
2839 2003-03-22 Tor Lillqvist <tml@iki.fi>
2841 Changes for Windows:
2843 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2845 + We don't want to hardcode the fonts.conf file location in the
2846 DLL, so we look up the DLL location at run-time in a DllMain()
2847 function. The fonts.conf location is deduced from that.
2849 + The colon can't be used as path separator on Windows,
2850 semicolon is used instead. File path components can be separated
2851 with either slash or backslash. Absolute paths can also begin
2852 with a drive letter.
2854 + Add internal function FcStrLastSlash that strrchr's the last
2855 slash, or backslash on Windows.
2857 + There is no link() on Windows. For atomicity checks, mkdir a
2858 lock directory instead.
2860 + In addition to HOME, also look for USERPROFILE.
2862 + Recognize the special font directory token WINDOWSFONTDIR, to
2863 use the system's font directory.
2865 + Remove the fontconfig-def.cpp that was obsolete. Add
2866 fontconfig.def(.in), without internal functions.
2868 + Add a fontconfig-zip(.in) script, used to build a binary
2871 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2872 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2873 to main package and man3/* to devel package
2875 + Added missing defattr(-, root, root) to main RPM package
2877 + Added HTML and text development documentation to -devel subpackage
2879 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2880 + Added back the configure macro options --disable-docs, otherwise
2881 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2882 version number) unconditionally, causing RPM to fail the build due
2883 to _unpackaged_files_terminate_build. We pick up the pregenerated
2884 docs with %doc already.
2886 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2887 + Removed commented out rpm macro define at top of spec file,
2888 replacing it with a simple explanation, since rpm macros are
2889 expanded by rpm even in comments.
2891 + Changed /usr/bin to _bindir in BuildRequires lines
2893 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2895 + Reorganized file manifest lists
2897 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2899 + fontconfig.spec.in: Improvements from Red Hat spec file.
2901 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2903 + docs/*.sgml: SGML fixes.
2905 Sat Mar 1 17:28:53 PST 2003 keithp
2906 + Ok, so the ChangeLog is a bit out of date
2908 + Lots of bugs fixed; most are in bugzilla, the
2909 biggest problems were in cache management where
2910 Owen discovered the library would lose badly when
2911 combining fonts-cache and ~/.fonts-cache data
2913 + Converted from autoconf to automake. This after
2914 getting patches accepted into libtool to allow
2915 the '-version-number' argument which lets
2916 packages set version numbers explicitly rather
2917 than the roundabout libtool way
2919 + Converted documentation to SGML using the docbook
2920 DTD. Now .txt and .html documents are installed
2921 in /usr/share/doc/fontconfig and there's no
2922 man page. Perhaps a man version can be written
2925 Sat Aug 31 15:21:22 PDT 2002 keithp
2926 + Xrender and Xft had several bugs related to
2927 rendering manually placed or poly-face text
2929 + Added more complete memory tracing in fontconfig
2930 Checked with (patched) mozilla and found no leaks
2932 + Updated Latin orthographies by comparing those from
2933 evertype.com with those from eki.ee. Tried to make
2934 sensible choices, including chars that occured in both
2935 and leaving some optional chars out that occured only
2938 Mon Aug 26 16:33:04 PDT 2002 keithp
2939 + Owen discovered that FcLangSetHasLang wasn't actually
2940 checking the language set.
2942 Mon Aug 26 13:37:23 PDT 2002 keithp
2943 + Append a version number to cache filenames
2945 Thu Aug 22 11:36:18 PDT 2002 keithp
2947 + Add "contains" and "not_contains" operators and elements to
2950 + Changed semantics of eq operator for LangSets to check for
2951 FcLangEqual so that any match will do
2953 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2954 of FcValueEqual to check for identical values when inserting into
2955 the results. This broke when the above semantic change was made,
2956 now it uses FcValueEqual which is "more correct" in any case.
2958 Thu Aug 22 00:32:29 PDT 2002 keithp
2960 + Reimplement FC_LANG as new datatype. Lists of strings
2961 was consuming over a megabyte of memory for 401 fonts.
2963 + Freeze patterns loaded from cache files. This shares
2964 common value lists and common patterns which saves
2965 considerable memory.
2967 + Change the denotation of 'constant' charsets to use special
2968 ref value instead of separate boolean.
2970 + Clean up leak tracing stuff, found several unannoted alloc/free
2973 Tue Aug 20 16:17:37 PDT 2002 keithp
2975 + Fix memory leak when parsing matrices from XML
2977 Mon Aug 19 11:57:27 PDT 2002 keithp
2979 + Fix autoconf files to pass FONTCONFIG_PATH on
2980 compile line so that ${prefix} gets substituted
2983 + Use getc_unlocked/putc_unlocked on systems that
2984 provide them to avoid damage done to stdio by posix
2986 + Eliminate FC_PATTERN and FcTypePattern in favor of
2987 an extended api for FcConfigSubstitute which takes
2988 both the font and the pattern.
2990 + Add 'sans serif' alias for 'sans-serif' as some apps
2991 can't handle hyphens in family names
2993 + Eliminate pretense of support for libxml2
2995 + Comment origins of Han orthographies
2997 Tue Jul 30 18:37:09 PDT 2002 keithp
2999 + Add binding property to edit element so that strong
3000 binding values may be inserted by the config file.
3001 The default remains weak.
3003 Sun 28 Jul 04:16:55 PDT 2002 keithp
3005 + Tagged release candidate 1 in the CVS tree and
3006 placed fcpackage.rc1.tar.gz for distribution
3008 Thu Aug 1 08:55:08 PDT 2002 keithp
3010 + Fixed autoconf builds to always specify install
3011 target files (for BSD). Also fixed to
3012 define FONTCONFIG_PATH in config.h so that
3013 nonstandard installs will actually work.