1 2006-03-08 Carl Worth <cworth@cworth.org>
5 * conf.d/10LohitGujarati.conf:
7 Add a configuration file that disables hinting for the Lohit
8 Gujarati font (since the hinting distort some glyphs quite badly).
10 2006-03-08 Egmont Koblinger <egmont@uhulinux.hu>
13 * src/fcdir.c (FcDirScanConfig):
15 Sort directory entries while scanning them from disk;
16 prevents Heisenbugs due to file ordering in a directory.
18 2006-03-07 Behdad Esfahbod <behdad@cs.toronto.edu>
21 * src/fcfreetype.c (GetScriptTags):
22 * src/ftglue.c, src/ftglue.h:
24 Remove stuff we don't use, make get_{char,short,long} functions
25 of ftglue macros to be inlined.
28 * src/fcname.c (FcObjectSerialize):
30 Code cleanups (excess prototype, old-style function definition).
32 2006-03-05 Patrick Lam <plam@mit.edu>
33 * src/fcpat.c (FcPatternGetString):
35 Because we hacked FcPatternGet, we don't really need to expand the
36 filename again in FcPatternGetString.
38 2006-03-05 Patrick Lam <plam@mit.edu>
39 * src/fcpat.c (FcPatternGetString, FcPatternGet):
41 Ok, so some people (wine!) use FcPatternGet to fetch FC_FILE.
42 Make that work. Reported by Bernhard Rosenkraenzer.
44 2006-03-03 Patrick Lam <plam@mit.edu>
47 Include inttypes.h instead of stdint.h if appropriate.
49 2006-03-03 Patrick Lam <plam@mit.edu>
50 * fc-cat/fc-cat.c (FcFileIsDir):
51 * fc-glyphname/fc-flyphname.c:
53 More stub definitions and remove FcFileIsDir from fc-cat.
55 2006-03-03 Patrick Lam <plam@mit.edu>
58 Fix compilation on AIX with stub definitions (bug 6097).
60 2006-03-03 Patrick Lam <plam@mit.edu>
61 * src/fccache.c (FcCacheSkipToArch, FcDirCacheProduce):
62 * src/fcfreetype.c (GetScriptTags):
63 * src/fcfs.c (FcFontSetDistributeBytes):
64 * src/fcpat.c (FcValueListEntCreate, FcValueListNeededBytes):
66 Get rid of C++-style comments.
68 2006-03-03 Patrick Lam <plam@mit.edu>
71 Enable creation of 2.3.94 Debian packages.
73 2006-03-02 Egmont Koblinger <egmont@uhulinux.hu>
76 * src/fclang.c (FcCharSetForLang):
78 Fix suspicious return expression which causes junk
81 2006-02-24 Patrick Lam <plam@mit.edu>
85 * fontconfig/fontconfig.h:
87 Bump version to 2.3.94.
89 2006-02-24 Patrick Lam <plam@mit.edu>
94 2006-02-24 Patrick Lam <plam@mit.edu>
95 * conf.d/10-fonts-persian.conf:
97 Remove unconditional emboldening (per Behdad's instructions).
101 Add @s to hide some echos.
103 2006-02-24 Mike Fabian <mfabian@suse.de>
104 Takashi Iwai <tiwai@suse.de>
107 * src/fcfreetype.c (GetScriptTags):
109 Fix double-free on error case.
111 2006-02-21 Patrick Lam <plam@mit.edu>
112 * fc-lang/fc-lang.c (scan):
114 Strip \r and whitespace from input; fixes bug 3454.
116 2006-02-21 Patrick Lam <plam@mit.edu>
117 * fc-lang/fc-lang.c (main):
119 Allocate large arrays statically in fc-lang to fix crashes under
122 2006-02-21 Diego Petten <flameeyes@gentoo.org>
123 * src/fcfreetype.c (FcFreeTypeCharIndex):
125 Pass the buck; make fontconfig not crash on pango badness.
127 2006-02-21 Patrick Lam <plam@mit.edu>
128 * conf.d/10-fonts-persian.conf:
130 Use embeddedbitmap rather than rh_prefer_bitmap.
132 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
135 * src/fccache.c (FcDirCacheWrite):
136 * src/fcdir.c (FcFileScanConfig):
137 * src/fcfreetype.c (FcStringInPatternElement):
138 * src/fcxml.c (FcParseFamilies):
139 * src/ftglue.c (ftglue_face_goto_table):
141 Eliminate redundancies.
143 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
146 * fc-list/fc-list.c (main):
147 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
148 * src/fcstr.c (FcStrStr):
149 * src/fcxml.c (FcConfigSaveAttr):
151 Eliminate unused vars reported by Intel's compiler.
153 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
158 Remove one more archaic character.
160 2006-02-21 Ross Burton <ross@burtonini.com>
161 reviewed by: plam, keithp
163 * src/fcxml.c (FcParsePatelt):
165 Freeze patterns created by configuration file for tiny
166 memory savings (every little bit helps).
168 2006-02-21 Mike Fabian <mfabian@suse.de>
171 * fc-cat/fc-cat.c (main):
173 Initialize fontconfig library in fc-cat to avoid segfault.
175 2006-02-18 Patrick Lam <plam@mit.edu>
176 * fc-cache/fc-cache.c (scanDirs):
177 * src/fccache.c (FcCacheReadDirs):
178 * src/fcdir.c (FcDirScanConfig):
180 Fix the underlying cause of the below segfault (must usually
181 call FcDirCacheHasCurrentArch after FcDirCacheValid).
183 2006-02-18 Patrick Lam <plam@mit.edu>
184 * src/fccache.c (FcDirCacheHasCurrentArch):
186 Fix triggering of segfault caused by misreading cache files
187 (reported by fcrozat).
189 2006-02-17 Patrick Lam <plam@mit.edu>
190 * src/fcint.h (FC_CACHE_MAGIC):
192 Bump up magic version; we changed the binary format.
194 2006-02-17 Patrick Lam <plam@mit.edu>
195 * fc-cat/fc-cat.c (main):
197 Enable fc-cat to print out old-style cache info when given a
200 2006-02-16 Patrick Lam <plam@mit.edu>
201 * src/fccache.c (FcDirCacheHasCurrentArch):
203 Deal correctly with changing FC_CACHE_MAGIC.
205 2006-02-16 Patrick Lam <plam@mit.edu>
206 * fc-cache/fc-cache.c (usage, scanDirs, main):
208 Add -r --really-force option which blows away cache files and then
211 2006-02-16 Patrick Lam <plam@mit.edu>
212 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
214 Don't bail if fontconfig can't remove a dir cache file.
215 Skip the ID of a cache file when copying.
216 Eliminate 'source file too small' bug in FcDirCacheWrite.
218 2006-02-13 Patrick Lam <plam@mit.edu>
219 * src/fcfreetype.c (FcFreeTypeQuery):
221 Fix memory leak in error condition code.
223 2006-02-13 Mike Fabian <mfabian@suse.de>
225 * src/fcfreetype.c (FcFreeTypeQuery):
227 Skip bitmap fonts which can't even get it together enough to
228 declare a family name; this appears to reproduce previous
229 fontconfig behaviour.
231 2006-02-10 Takashi Iwai <tiwai@suse.de>
233 * src/fccache.c (FcDirCacheOpen):
235 Try to open /var/cache/fontconfig/[hashed name] before
236 fonts.cache-2 in a directory, because /var/cache/fontconfig
237 failures ought to be fixable, unlike fonts.cache-2 failures,
238 which may leave you screwed.
240 2006-02-10 Takashi Iwai <tiwai@suse.de>
242 * src/fcmatch.c (FcFontSetMatch):
244 Use a tri-state to mark the fonts which didn't get blocked but
245 were just missing an element, to distinguish them from the
246 fonts that do match the element.
248 2006-02-10 Takashi Iwai <tiwai@suse.de>
250 * src/fcmatch.c (FcFontSetMatch):
252 Don't kill fonts because they don't declare an element that's
255 2006-02-09 Patrick Lam <plam@mit.edu>
256 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
257 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
259 Define and pass O_BINARY to open if appropriate, for those
260 platforms that need it. Reported by Doodle.
262 2006-02-09 Patrick Lam <plam@mit.edu>
263 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
266 Fix problem with missing 'en' due to euro.patch: change
267 cache file format slightly to coincide with that generated
270 2006-02-07 Patrick Lam <plam@mit.edu>
271 * src/fccache.c (FcCacheReadDirs):
275 2006-02-07 Patrick Lam <plam@mit.edu>
276 * src/fcdir.c (FcDirScanConfig):
278 Don't reject dirs that can't be normalized (fixes lilypond, and
279 is correct in the context of application font directories.)
281 2006-02-07 Takashi Iwai <tiwai@suse.de>
284 * src/fccache.c (FcCacheReadDirs):
286 Use normalized directory name exclusively in FcCacheReadDirs.
288 2006-02-07 Dirk Mueller <dmueller@suse.com>
291 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
293 Perf optimizations. Inline FcValueCanonicalize,
294 reduce FcValueListPtrU usage, remove redundant cast.
296 2006-02-07 Takashi Iwai <tiwai@suse.de>
299 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
302 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
303 Declare extern for static arrays as arrays, not pointers.
304 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
306 2006-02-07 Dirk Mueller <dmueller@suse.com>
319 Add Euro sign to list of symbols required by European languages.
321 2006-02-07 Patrick Lam <plam@mit.edu>
322 * src/fccache.c (FcCacheReadString):
324 Fix hidden variable warning.
326 2006-02-07 Dirk Mueller <dmueller@suse.com>
329 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
331 Remove de-escaping logic because FcCacheWriteString
332 doesn't escape anyway. Do blockwise reading instead
333 of byte-wise for performance.
335 2006-02-06 Patrick Lam <plam@mit.edu>
336 Takashi Iwai <tiwai@suse.de>
338 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
340 Don't loop infinitely on recursive symlinks (client-side).
342 2006-02-06 Takashi Iwai <tiwai@suse.de>
344 * fc-cache/fc-cache.c (scanDirs, main):
346 Don't loop infinitely on recursive symlinks.
348 2006-02-06 Takashi Iwai <tiwai@suse.de>
350 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
351 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
352 FcGlobalCacheSave, FcCacheReadDirs):
355 Skip subdirs when skipping over stale bits of global cache.
356 Introduce state machine into FcGlobalCacheDir to avoid
357 doing inappropriate operations on global dir entries, e.g.
358 writing out an out-of-date cache entry.
360 2006-02-06 Takashi Iwai <tiwai@suse.de>
362 * src/fcdir.c (FcFileScanConfig):
364 Hoist FcFileIsDir check out of FcFileScanConfig loop.
366 2006-02-06 Takashi Iwai <tiwai@suse.de>
369 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
370 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
372 Don't rescan when trying to normalize a non-declared font dir.
373 Don't add font dirs multiple times (even if they're aliased).
375 2006-02-06 Dirk Mueller <dmueller@suse.de>
378 * src/fcfs.c (FcFontSetUnserialize):
380 Explain apples/oranges comparison and fix compilation error.
382 2006-02-06 Dirk Mueller <dmueller@suse.de>
385 * src/fcfs.c (FcFontSetUnserialize):
387 Insert check for integer overflow in # of fonts.
389 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
393 * fc-cache/Makefile.am:
394 * fc-cat/Makefile.am:
395 * fc-list/Makefile.am:
397 Make 'make distcheck' work with automake 1.6.3.
399 2006-02-03 Takashi IWAI <tiwai@suse.de>
402 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
405 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
406 FcDirCacheConsume, FcDirCacheWrite)
407 * src/fcxml.c (FcConfigMessage):
409 Check I/O call return values and eliminate unused variable
412 2006-02-03 Takashi Iwai <tiwai@suse.de>
415 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
419 2006-02-03 Dirk Mueller <dmueller@suse.de>
422 * src/fcfs.c (FcFontSetUnserialize):
424 Gracefully handle the case where a cache asserts that it
425 has a negative number of fonts, causing overflow.
427 2006-02-03 Patrick Lam <plam@mit.edu>
428 * src/fccache.c (FcDirCacheUnlink):
430 Fix double free in error case.
432 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
433 Stephan Kulow <coolo@suse.de>
436 * fc-cache/Makefile.am:
438 Replace 'stamp' target with mkinstalldirs.
440 2006-01-31 Mike Fabian <mfabian@suse.de>
443 * src/fccache.c (FcGlobalCacheLoad):
445 Toast broken global cache files.
447 2006-01-30 Patrick Lam <plam@mit.edu>
448 * src/fccache.c (FcGlobalCacheReadDir):
450 Actually use the directories that I added to the global cache.
453 2006-01-30 Mike Fabian <mfabian@suse.de>
456 * fc-cache/fc-cache.c (scanDirs):
458 Don't stop scanning if a directory in fonts.conf doesn't
459 exist, because subsequent directories might exist.
461 2006-01-30 Patrick Lam <plam@mit.edu>
462 * src/fccache.c (FcGlobalCacheLoad):
464 Make global cache work again after putting dir names into global
465 cache (I misplaced the recording of a file offset).
467 2006-01-30 Patrick Lam <plam@mit.edu>
468 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
470 Update fc-cat to handle subdir lists in global cache file.
472 * src/fccache.c (FcGlobalCacheLoad):
474 Another FcCacheReadString return value check.
476 2006-01-30 Mike Fabian <mfabian@suse.de>
479 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
480 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
482 Make fccache more resilient to broken cache files by checking
483 return value of FcCacheReadString all the time.
485 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
488 * fc-match/fc-match.1:
489 * fc-lang/fc-lang.man:
491 Remove references to dead fontconfig(3) manpages in
492 other fontconfig manpages.
494 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
497 * doc/fcpattern.fncs:
499 Fix world's tiniest typo in code example.
501 2006-01-29 Mike Fabian <mfabian@suse.de>
504 * src/fccache.c (FcGlobalCacheReadDir):
506 Fix global cache reads of subdirectories.
508 2006-01-29 Patrick Lam <plam@mit.edu>
510 Add documentation for FcConfigNormalizeFontDir.
512 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
513 FcGlobalCacheUpdate, FcGlobalCacheSave):
514 * src/fcdir.c (FcDirScanConfig):
517 Write directory information to global caches to fix make check
518 (reported by Ronny V. Vindenes). This changes the global cache
521 2006-01-27 Patrick Lam <plam@mit.edu>
522 * fc-cache/fc-cache.c (scanDirs):
523 * fontconfig/fontconfig.h:
525 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
527 Move FcConfigNormalizeFontDir call so that it doesn't result in
528 infinite recursion (reported by Ronny V. Vindenes).
530 2006-01-26 Patrick Lam <plam@mit.edu>
531 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
532 * src/fccfg.c (FcConfigNormalizeFontDir):
534 Add a couple of missing normalizations to make fc-cache work
535 right; only scan subdirectories once.
537 2006-01-26 Mike Fabian <mfabian@suse.de>
540 * src/fcacache.c (FcGlobalCacheReadDir):
542 Don't crash on non-existant directories in global cache.
544 2006-01-26 Patrick Lam <plam@mit.edu>
545 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
546 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
547 * src/fcdir.c (FcDirScanConfig):
548 * src/fcxml.c (FcEndElement):
550 Stop trampling the directory name when writing out caches.
551 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
552 subdirs when necessary. Don't scan directories that can't be
555 2006-01-25 Patrick Lam <plam@mit.edu>
556 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
557 * src/fccfg.c (FcConfigEvaluate):
558 * src/fcfreetype.c (FcPatternAddWithBinding):
560 Fix additional memory leaks reported by Ronny V. Vindenes: don't
561 invoke FcValueSave on hashed static strings in
562 FcPatternAddWithBinding.
564 Add another st_dev check in FcDirCacheOpen.
566 2006-01-24 James Su <james.su@gmail.com>
569 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
570 * fc-lang/zh_hk.orth:
572 Treat zh-hk fonts differently from zh-tw fonts. This patch may
573 cause fontconfig to treat A-X fonts differently from A-Y fonts;
574 please mail the fontconfig list if this causes any problems.
576 2006-01-24 Patrick Lam <plam@mit.edu>
577 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
578 * src/fcfreetype.c (FcFreeTypeQuery):
580 Fix memory leaks reported by Ronny V. Vindenes.
582 2006-01-19 Andreas Schwab <schwab@suse.de>
585 * src/fcpat.c (FcStrNeededBytes):
587 Fix for unaligned memory accesses.
589 2006-01-18 Mike Fabian <mfabian@suse.de>
592 * src/fcdir.c (FcDirScanConfig):
594 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
595 calls to avoid crashes.
597 2006-01-14 Patrick Lam <plam@mit.edu>
598 * src/fccache.c (FcDirCacheConsume):
600 Fix segfault when consuming zero-length caches in fc-cat
601 (which has no config, so FcConfigAddFontDir shouldn't be called.)
603 2006-01-14 Patrick Lam <plam@mit.edu>
604 * fc-cache/fc-cache.c (scanDirs):
605 * fontconfig/fontconfig.h:
606 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
607 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
608 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
609 * src/fcdir.c (FcDirScanConfig):
612 Compare device numbers as well as inodes.
613 Always normalize directory names before comparing them.
615 2006-01-11 Mike Fabian <mfabian@suse.de>
618 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
620 Allocate extra space for appended '/' in directory name.
622 2006-01-10 Patrick Lam <plam@mit.edu>
623 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
624 FcDirCacheValid, FcDirCacheHasCurrentArch,
625 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
626 * fc-cache/fc-cache.c (main):
628 Explicitly add font dirs to config.fontDirs even if they're empty.
629 Set current config in fc-cache.c.
630 Fix treatment of cache directory as read from cache file; don't
631 use string equality to determine if we have the right file,
634 2006-01-09 Patrick Lam <plam@mit.edu>
635 * fc-cache/fc-cache.c (scanDirs):
636 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
637 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
638 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
639 * src/fccfg.c (FcConfigNormalizeFontDir):
640 * src/fcdir.c (FcDirScanConfig):
643 Normalize font dirs by using the form, as given in fonts.conf, and
644 recorded in FcConfig's fontDirs string set, as canonical.
646 Actually update config.fontDirs as font directories are scanned.
648 2006-01-08 James Su <james.su@gmail.com>
649 * src/fcmatch.c (FcFontSetMatch):
651 Fix matching bug when multiple elements match; don't use
652 the sum of all scores, but the best score.
654 Also more perf opts, e.g. evaluate best over all font sets
655 rather than on a per-set basis (and other changes).
657 2006-01-08 Patrick Lam <plam@mit.edu>
658 * src/fccache.c (FcDirCacheConsume):
660 Properly skip past dir caches that contain zero fonts (as occurs
661 in global caches.) Reported by Mike Fabian.
663 2006-01-06 Patrick Lam <plam@mit.edu>
664 * src/fcdbg.c (FcPatternPrint):
666 Print out full pathname in fc-match -v as well. Reported by
669 2006-01-06 Mike Fabian <mfabian@suse.de>
672 * src/fcname.c (FcNameParse):
674 Fix bug where fc-match crashes when given __DUMMY__ property to
677 (I added the __DUMMY__ string to enable callers of
678 FcObjectToPtrLookup to distinguish an error return from a
679 successful return. -PL)
681 2006-01-05 Patrick Lam <plam@mit.edu>
684 Add self to AUTHORS list.
686 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
687 FcCacheFileRead, FcCachePrintSet, main):
688 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
689 FcGlobalCacheSave, FcCacheNextOffset,
690 FcDirCacheHasCurrentArch, FcDirCacheRead,
691 FcDirCacheConsume, FcDirCacheWrite):
693 * src/fcpat.c (comment):
695 Minor change to global cache file format to fix fc-cat bug
696 reported by Frederic Crozat, and buglet with not globally caching
697 directories with zero fonts cached.
699 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
702 * src/fccfg.c (FcConfigEvaluate):
704 Fix double-free which occurs because FcValueCanonicalize doesn't
705 create an extra copy of the returned value, it only canonicalizes
708 2006-01-02 Patrick Lam <plam@mit.edu>
709 * doc/fontconfig-user.sgml:
711 Fix version of .cache file (currently 1 -> currently 2). Reported
714 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
717 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
719 Shut up GCC warnings on amd.
721 2005-12-20 Patrick Lam <plam@mit.edu>
725 * fontconfig/fontconfig.h:
727 Bump version to 2.3.93.
729 2005-12-20 Patrick Lam <plam@mit.edu>
730 * src/fccharset.c (FcLangCharSetPopulate):
731 * src/fcint.h (FcCacheBankToIndex):
733 Avoid check on _fcBankId nullness and fix case where it used to
736 2005-12-20 Patrick Lam <plam@mit.edu>
737 * src/fcxml.c (FcConfigParseAndLoad):
739 Use open instead of fopen (requested by Phil Race for Sun).
741 2005-12-20 Patrick Lam <plam@mit.edu>
742 * src/fccache.c (FcDirCacheWrite);
743 * fc-cache/Makefile.am:
745 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
748 2005-12-20 Patrick Lam <plam@mit.edu>
749 * src/fcfreetype.c (FcFreeTypeQuery):
751 Restore code to skip over PCF fonts that have no encoded
753 (We guess that a font is PCF by presence of the PIXEL_SIZE
756 2005-12-12 Patrick Lam <plam@mit.edu>
757 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
759 Read and write the original location as a fallback for the
760 hashed cache file locations. This is mostly for users to be
761 able to have per-directory cache files.
763 2005-12-12 Patrick Lam <plam@mit.edu>
764 * fc-cache/fc-cache.c (scanDirs):
765 * fc-cache/Makefile.am:
766 * src/fccache.c (FcDirCacheHashName):
768 Improve error message when fc-cache can't write the cache. Add
769 missing slash. Reported by Behdad. Incorporate Behdad's patch to
770 create /var/cache/fontconfig when appropriate.
772 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
775 * src/fcxml.c (FcConfigGetAttribute):
777 Fix crash reported by Frederic Crozat when using libxml2.
779 2005-12-09 Patrick Lam <plam@mit.edu>
782 * fc-cache/Makefile.am:
783 * fc-cat/Makefile.am:
785 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
786 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
787 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
788 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
789 FcDirCacheHasCurrentArch, FcDirCacheHashName,
790 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
792 Migrate cache files from fonts directories to
793 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
794 but requires that all caches get rebuilt.
796 Also, autogen.sh now needs the additional parameter
797 --localstatedir=/var.
799 2005-12-07 Patrick Lam <plam@mit.edu>
800 * src/fcpat.c (FcPatternAddString):
802 Because we've changed FcPatternAddString to use FcStrStaticName
803 and not FcValueSave, explicitly handle the case of a null string.
805 2005-12-06 Patrick Lam <plam@mit.edu>
806 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
810 2005-12-05 Patrick Lam <plam@mit.edu>
811 * src/fcname.c (FcNameGetObjectType):
813 Don't assign types to user object names.
815 2005-12-05 Patrick Lam <plam@mit.edu>
816 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
818 Don't free strings that have been returned from FcStrStaticName.
820 2005-12-01 Patrick Lam <plam@mit.edu>
821 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
823 Add codepath for reading global cache files as well.
825 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
828 * conf.d/10-fonts.persian.conf:
829 * conf.d/Makefile.am:
831 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
833 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
836 * src/fcxml.c (FcConfigParseAndLoad):
838 Only add a config file to the set of config files once.
840 2005-11-29 Patrick Lam <plam@mit.edu>
841 * src/fcint.h (FcCacheBankToIndex);
843 Fix segfault by guarding array dereference.
845 2005-11-29 Dirk Mueller <dmueller@suse.de>
849 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
850 FcCacheBankToIndex, FcCacheBankToIndexMTF,
854 Refactor FcCacheBankToIndex into an inlineable part
855 (in fcint.h) which checks the front of the list and a
856 non-inlineable part which finds and moves the appropriate element
857 to the front of the list.
859 2005-11-29 Patrick Lam <plam@mit.edu>
860 * src/fccfg.c (FcConfigBuildFonts):
861 * src/fccache.c (FcCacheReadDirs):
863 Make the perf guys hate me a bit less: hoist the directory-name
864 FcConfigAcceptFont check for cached fonts up to directory cache
865 read time, rather than running it for each font.
867 2005-11-29 Patrick Lam <plam@mit.edu>
868 * src/fccfg.c (FcConfigBuildFonts):
870 * src/fcpat.c (FcPatternFindFullFname):
872 Don't make FcPatternFindFullFname available to fccfg, it's not
873 really safe. Instead go through FcPatternGetString (sorry,
874 perf guys.) Also, use globs for dirs as well.
876 2005-11-28 Patrick Lam <plam@mit.edu>
877 * src/fccfg.c (FcConfigBuildFonts):
881 2005-11-28 Patrick Lam <plam@mit.edu>
883 * src/fcpat.c (FcPatternFindFullFname):
884 * src/fccfg.c (FcConfigBuildFonts):
886 Fix problem dating back at least to 2.3.2 where globs weren't
887 being applied to patterns loaded from a cache.
889 2005-11-28 Patrick Lam <plam@mit.edu>
890 * doc/fontconfig-user.sgml:
892 Fix some obvious spelling mistakes.
894 2005-11-28 Dirk Mueller <dmueller@suse.com>
895 Stephan Kulow <coolo@suse.de>
898 * src/fcmatch.c (FcFontSetMatch):
900 Don't kill all fonts during match (oops!)
903 2005-11-25 Dirk Mueller <dmueller@suse.com>
904 Stephan Kulow <coolo@suse.de>
905 Michael Matz <matz@suse.de>
908 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
911 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
912 inline FcCompare into FcFontSetMatch and reorder the
913 loops, adding a boolean array which blocks patterns from future
914 consideration if they're known to not be best on some past
917 2005-11-26 Dirk Mueller <dmueller@suse.com>
920 * src/fcmatch.c (FcCompareValueList):
924 2005-11-25 Patrick Lam <plam@mit.edu>
925 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
927 Don't do random matching when bad objects are passed into
930 2005-11-25 Patrick Lam <plam@mit.edu>
932 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
933 FcPatternSerialize, FcPatternUnserialize,
934 FcValueListEnsureBank, FcValueListDistributeBytes,
935 FcValueListUnserialize):
937 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
938 _fcPatternElts, _fcValueLists for consistency.
940 2005-11-25 Dirk Mueller <dmueller@suse.com>
945 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
947 2005-11-25 Patrick Lam <plam@mit.edu>
949 * src/fccache.c (FcDirCacheConsume):
950 * src/fccharset.c (FcCharSetUnserialize):
951 * src/fcfs.c (FcFontSetUnserialize):
952 * src/fclang.c (FcLangSetUnserialize):
953 * src/fcname.c (FcObjectUnserialize):
954 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
955 FcPatternUnserialize):
957 Pass around FcCache *s to the Unserialize functions for extra
958 consistency (and less overhead, for what that's worth).
960 2005-11-24 Dirk Mueller <dmueller@suse.com>
964 * src/fcmatch.c (FcCompare*, FcFontSetSort):
965 * src/fcname.c (FcNameUnparseValue):
967 Inline the *PtrU functions to gain perf.
968 Remove unneeded params for the FcCompare* functions.
970 2005-11-24 Dirk Mueller <dmueller@suse.com>
973 * src/fcint.h, fontconfig/fontconfig.h:
975 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
977 * src/fcpat.c, src/fcint.h, src/fcname.c:
979 Check for type validity during FcPatternAddWithBinding, don't
980 verify type in FcFontMatch, don't call FcCanonicalize here
981 (which always does a deep copy).
983 2005-11-24 Dirk Mueller <dmueller@suse.com>
986 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
987 * src/fcpat.c (FcPatternAddWithBinding):
989 Make FcCompareString and FcCompareFamily less expensive.
990 Only add a value for FC_FAMILY if the proposed value is a string.
992 2005-11-24 Dirk Mueller <dmueller@suse.com>
995 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
996 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
997 * src/fcint.h (FcDebug):
999 Inline FcDebug invocations and only initialize once, in FcInit*.
1000 Improve debug msg in FcPatternPrint.
1002 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1005 * fontconfig/fontconfig.h:
1008 Minor code warning cleanups.
1010 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
1013 * fc-match/fc-match.c (main):
1015 Make getopt_long accept -s parameter to fc-match as well.
1017 2005-11-21 Dirk Mueller <dmueller@suse.com>
1020 * src/fcmatch.c (FcCompareValueList):
1022 Manually perform inlining & partial redundancy elimination to
1023 reduce calls to FcValueListPtrU.
1025 2005-11-21 Dirk Mueller <dmueller@suse.com>
1028 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
1029 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
1031 Only invoke strlen() when really necessary.
1033 2005-11-19 Matthias Clasen <mclasen@redhat.com>
1037 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
1038 FcFontCapabilities):
1042 Get rid of the use of freetype internal headers in fcfreetype.c,
1043 since those headers will go away with freetype 2.2. Replace with
1044 public domain ftglue code from pango. Note that the patch removes
1045 some extra error checking in FT_Get_BDF_Property() and comments
1046 out the skipping of empty pcf fonts.
1048 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
1051 * fc-lang/fc-lang.c (main):
1053 Further fix of patch from 2005-11-04: miscounted numbers count
1054 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
1055 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
1057 Removed leafidx_count and numbers_count since they are the same
1058 and replaced them with offset_count.
1060 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1063 * fc-cat/fc-cat.c (main):
1065 Don't crash when fc-cat invoked with no arguments.
1067 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1070 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
1072 Fix invalid read access caused by premature free and
1073 GCC4 warnings in libxml2 codepath.
1075 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
1078 * src/fccfg.c (FcConfigValues):
1080 List iteration not needed in FcConfigValues, since it's building
1081 up the list itself; we can just strip FcVoid elements during
1084 2005-11-17 Patrick Lam <plam@mit.edu>
1085 * src/fccfg.c (FcConfigValues):
1087 Fix crash on invalid constants in config files (forgot to update
1088 a pointer upon list iteration.)
1090 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
1093 * src/fcxml.c (FcTypecheckExpr):
1095 Complain about invalid constants in config files.
1097 2005-11-17 Andreas Schwab <schwab@suse.de>
1100 * src/fccache.c (FcGlobalCacheSave):
1102 Don't add current_arch_start more than once.
1104 2005-11-16 Patrick Lam <plam@mit.edu>
1105 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1106 * src/fcfs.c (FcFontSetUnserialize):
1107 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1108 * src/fcpat.c (FcStrUnserialize):
1110 Fix ordering of ALIGN with respect to saving block_ptr; add
1111 another ALIGN to fcfs.c.
1113 2005-11-16 Patrick Lam <plam@mit.edu>
1114 * src/fccache.c (FcDirCacheProduce)
1116 Fix case where alignment bytes bumped up metadata->count
1117 causing unwarranted failures to write cache files.
1118 (Reported by Stephan Kulow).
1120 2005-11-16 Patrick Lam <plam@mit.edu>
1121 * src/fccache.c (FcDirCacheProduce):
1122 * src/fccharset.c (FcCharSetDistributeBytes):
1123 * src/fcfs.c (FcFontSetDistributeBytes):
1125 * src/fclang.c (FcLangSetDistributeBytes):
1126 * src/fcname.c (FcObjectDistributeBytes):
1127 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1130 Add *NeededBytesAlign(), which overestimates the padding which is
1131 later added by the new ALIGN macro. Fix alignment problems on
1132 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1133 version by Andreas Schwab).
1135 2005-11-16 Stephan Kulow <coolo@kde.org>
1140 Use sysconf to determine proper PAGESIZE value; this
1141 appears to be POSIX-compliant. (reported by Andreas Schwab)
1143 2005-11-04 Patrick Lam <plam@mit.edu>
1144 * fc-lang/fc-lang.c:
1149 Fix bug 2878 (excessive relocations at startup for charsets,
1150 reported by Ross Burton): fc-lang/fc-lang now creates the
1151 static form of the langset, not the dynamic form, so that
1152 the charsets should now be in .rodata.
1154 2005-11-04 Patrick Lam <plam@mit.edu>
1155 * src/fcdir.c (FcDirScanConfig):
1157 Add test for validity of directory caches that
1158 somehow got lost (reported by make distcheck).
1160 2005-11-04 Patrick Lam <plam@mit.edu>
1164 * fontconfig/fontconfig.h:
1166 Bump version to 2.3.92.
1168 2005-11-02 Patrick Lam <plam@mit.edu>
1169 * src/fcpat.c (FcPatternDuplicate):
1171 Fix argument ordering problem in call to FcPatternTransferFullFname.
1173 2005-11-02 Patrick Lam <plam@mit.edu>
1174 * src/fcfreetype.c (FcFreetypeQuery):
1175 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1176 FcPatternTransferFullFname):
1178 Fix warnings and embarrassing double-free error.
1180 2005-11-02 Zhe Su <zsu@novell.com>
1185 Change the rule for artificial emboldening in fonts.conf.in. This
1186 enables the support for artificial emboldening included in cairo.
1188 2005-11-02 Patrick Lam <plam@mit.edu>
1189 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1191 Don't zero out full names for FC_REF_CONSTANT fonts;
1192 also, duplicate full names when transferring, and free
1193 full names when freeing the associated font.
1194 Reported by Jinghua Luo.
1196 2005-11-02 Patrick Lam <plam@mit.edu>
1197 * fc-cache/fc-cache.c (scanDirs):
1198 * src/fcpat.c (FcValueListSerialize):
1200 Revert the previous patch and commit the correct patch:
1201 I forgot a canonicalization in FcValueListSerialize, so
1202 that it would choke on already-serialized input files. Duh!
1204 2005-11-02 Patrick Lam <plam@mit.edu>
1205 * fc-cache/fc-cache.c (scanDirs):
1207 Forcibly rescan a directory before writing a fresh local
1208 cache file for that directory, fixing the losing-fonts
1209 problem reported by Mike Fabian and also apparently the
1210 font cache file corruption.
1212 2005-11-02 Patrick Lam <plam@mit.edu>
1213 * src/fccache.c (FcGlobalCacheLoad):
1215 Fix thinko: actually, the whole global cache is stale
1216 if the global cache is older than the (newest) config file.
1218 2005-11-02 Patrick Lam <plam@mit.edu>
1219 * src/fccache.c (FcGlobalCacheLoad):
1220 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1223 Declare the global cache of a directory's contents to be stale if
1224 the directory is newer than the (newest) configuration file.
1226 2005-10-31 Patrick Lam <plam@mit.edu>
1228 * src/fclist.c (FcListAppend):
1229 * src/fcmatch.c (FcFontRenderPrepare):
1230 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1231 FcPatternFreeze, FcPatternBaseFreeze):
1233 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1234 applications continue breaking.
1236 2005-10-31 Patrick Lam <plam@mit.edu>
1237 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1238 * src/fcfreetype.c (FcFreeTypeQuery):
1240 Fix small memory error (tried to free argv); use basename and
1241 dirname correctly (they can modify their arguments).
1243 2005-10-31 Patrick Lam <plam@mit.edu>
1251 Reinstate basename patch, but keep a hash table linking FcPatterns
1252 to their fully-qualified font names for clients' benefit. Clients
1253 only pay for the font names once they request the FC_FILE property
1254 from an FcPattern, but the font name is malloc'd at that point (i.e.
1255 not mmapped: that's impossible, since it may vary between machines.)
1256 Clients do have to pay for a copy of the path name per cache file.
1258 Note that FcPatternGetString now does some rewriting if you ask
1259 for an FC_FILE, appending the pathname as appropriate.
1261 2005-10-31 Patrick Lam <plam@mit.edu>
1262 * src/fcfreetype.c (FcFreeTypeQuery):
1264 Revert basename patch, which breaks fontconfig clients on my system.
1266 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1269 * fontconfig/fonts.conf.in:
1270 * fontconfig/fontconfig.h:
1274 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1275 to load embedded bitmaps or not.
1277 2005-10-25 Patrick Lam <plam@mit.edu>
1278 * src/fcfreetype.c (FcFreeTypeQuery):
1280 Only add basename to patterns' FC_FILE element, not any part of
1283 2005-10-22 Patrick Lam <plam@mit.edu>
1286 Add some more consts, fixing more GCC4 warnings.
1288 2005-10-22 Zhe Su <zsu@novell.com>
1291 Support localized font family and style names.
1292 This has been reported to break old apps like xfd, but modern
1293 (gtk+/qt/mozilla) apps work fine.
1295 2005-10-21 Patrick Lam <plam@mit.edu>
1296 * src/fccache.c (FcGlobalCacheLoad):
1298 Destroy the global cache file if it's terminally broken. (reported by
1301 2005-10-21 Patrick Lam <plam@mit.edu>
1302 * fc-list/fc-list.c (main):
1303 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1304 * fontconfig/fontconfig.h:
1306 Prevent fc-list from escaping strings when printing them (reported by
1309 2005-10-20 Marcus Meissner <meissner@suse.de>
1312 * fontconfig/fontconfig.h:
1314 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1316 2005-10-14 Ross Burton <ross@burtonini.com>
1319 * fc-glyphname/fc-glyphname.c:
1322 Add consts to variables so as to move arrays into .rodata.
1324 2005-10-14 Mike Fabian <mfabian@suse.de>
1327 * src/fccache.c (FcDirCacheUnlink):
1329 Check existence of directory cache file before attempting to unlink.
1331 2005-10-13 Patrick Lam <plam@mit.edu>
1332 * src/fccache.c (FcDirCacheUnlink):
1334 Fix flipped return value on unlink. (Reported by Mike Fabian)
1336 2005-10-12 Patrick Lam <plam@mit.edu>
1339 * src/fcdir.c (FcDirScanConfig):
1342 When fc-cache is run without --force, use directory cache files
1343 to speed up fc-cache run time. (Reported by Mike Fabian)
1345 2005-10-06 Patrick Lam <plam@mit.edu>
1347 * src/fcname.c (FcObjectToPtr):
1348 * src/fcpat.c (FcStrStaticName):
1350 Add padding to make valgrind and glibc not hate each other
1351 when calling strlen().
1353 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1354 reviewed by: plam & keithp
1358 Modify config file to use Greek fonts before Asian fonts with
1361 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1362 reviewed by: plam & keithp
1366 Use libtool -no-undefined flag on all platforms.
1368 2005-10-05 Patrick Lam <plam@mit.edu>
1369 * src/fccache.c (FcCacheHaveBank):
1371 Implement move-to-front array for banks (perf regression
1372 reported by Ronny V. Vindenes).
1374 2005-10-04 Patrick Lam <plam@mit.edu>
1375 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1376 FcDirCacheHasCurrentArch):
1377 * fc-cache/fc-cache.c (scanDirs):
1378 * fontconfig/fontconfig.h:
1380 Add new API which unlinks directory caches and checks dir caches
1381 for existence of appropriate sections. Fix fc-cache to unlink
1382 stale cache files and save directory caches that lack relevant
1385 2005-10-03 Patrick Lam <plam@mit.edu>
1386 * src/fccache.c (FcDirCacheValid):
1388 Ensure that a directory cache has the appropriate section
1389 before reporting that it is valid (reported by Matthias Clasen).
1391 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1399 Use libxml2 if requested (with --enable-libxml2) or if
1400 expat is not available.
1402 2005-09-29 Patrick Lam <plam@mit.edu>
1403 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1405 Fix multi-arch cache files: compute the position for the
1406 block to be added using info from OrigFile, not NewFile.
1408 2005-09-28 Patrick Lam <plam@mit.edu>
1409 * src/fccache.c (FcCacheMachineSignature):
1411 Cast results of sizeof() to unsigned int to get rid of
1412 warnings on x86_64 (thanks Matthias Clasen).
1414 2005-09-27 Patrick Lam <plam@mit.edu>
1415 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1418 Use FcAtomic to rewrite cache files.
1420 2005-09-27 Patrick Lam <plam@mit.edu>
1422 * src/fccache.c (FcDirCacheWrite):
1424 Don't unlink the fonts.cache-2 file even if there's no data
1425 to write; just write an empty cache file. (thanks Lubos Lunak)
1427 2005-09-27 Patrick Lam <plam@mit.edu>
1429 * src/fccache.c (FcDirCacheWrite):
1431 Allocate room for the subdirectory names in each
1432 directory cache. Thanks to James Cloos for finding
1433 and diagnosing this bug!
1435 2005-09-22 Patrick Lam <plam@mit.edu>
1437 * fc-cache/fc-cache.sgml:
1438 * src/fccache.c (FcDirCacheWrite):
1439 * src/fccache.h (struct FcCache):
1441 Update documentation -- fc-cache's man page now says that you
1442 need to run fc-cache once per cached architecture; add some
1443 documentation to the FcCache structure.
1445 Make fc-cache write out fonts.cache-2 files for directories with
1446 no fonts (i.e. only subdirectories).
1448 2005-09-22 Patrick Lam <plam@mit.edu>
1450 * fc-cache/fc-cache.sgml:
1451 * fc-case/fc-case.c:
1452 * fc-glyphname/fc-glyphname.c:
1458 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1462 * fc-lang/fc-lang.c:
1463 * fontconfig/fcprivate.h:
1464 * fontconfig/fontconfig.h:
1478 Implement new mmaped cache for font information.
1479 Bump so revision to 2.3.90.
1481 2005-07-25 Keith Packard <keithp@keithp.com>
1483 * doc/fontconfig-user.sgml:
1484 * fc-glyphname/fc-glyphname.c: (scan), (main):
1485 * fc-lang/fc-lang.c: (FcConfigHome):
1486 * fc-match/fc-match.c: (main):
1487 * src/fccfg.c: (FcConfigHome):
1488 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1489 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1490 (addtag), (FcFontCapabilities):
1491 * src/fcpat.c: (FcValueListEntCreate):
1492 * src/fcstr.c: (FcStrCaseWalkerInit):
1493 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1495 Various GCC 4 cleanups for signed vs unsigned char
1497 Match only [0-9]*.conf files in <include>{directory}</include>
1498 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1500 2005-07-15 Carl Worth <cworth@cworth.org>
1503 * src/fcinit.c: (FcFini):
1504 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1507 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1508 Pull the FcObjectStateName hash table out to file scope, and add
1509 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1512 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1515 2005-06-16 Patrick Lam <plam@MIT.EDU>
1519 * src/fccfg.c: (FcConfigCompareValue):
1520 Make FcOpNotContains use FcStrStr for strings so that
1521 it matches semantics for !FcOpContains.
1523 2005-05-20 Keith Packard <keithp@keithp.com>
1527 Move fontconfig source package to libs as per override
1529 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1531 reviewed by: Mike Fabian
1534 The ka.orth file requires several characters which are not
1535 used anymore in modern Georgian and which are missing in the free
1536 Georgian TrueType fonts downloadable at:
1538 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1540 2005-04-27 Keith Packard <keithp@keithp.com>
1544 Update date to real 2.3.2 release date.
1545 Fix change attributions
1547 2005-04-27 Keith Packard <keithp@keithp.com>
1550 Bump so revision for 2.3.2
1551 * fc-cache/fc-cache.c: (scanDirs):
1552 Fix a few minor leaks in error cases.
1554 2005-04-23 Keith Packard <keithp@keithp.com>
1559 * fontconfig/fontconfig.h:
1560 Update for version 2.3.2
1562 2005-04-21 Keith Packard <keithp@keithp.com>
1564 * debian/fontconfig.postinst:
1565 Don't force bitmap font enable in default
1566 configuration; allows users to override this in
1576 * debian/po/pt_BR.po:
1577 * debian/po/templates.pot:
1579 * debian/po/zh_CN.po:
1580 Updated translations
1582 * fc-cache/fc-cache.c: (main):
1583 Destroy font configuration on exit to help valgrind
1586 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1587 (FcFreeTypeCheckGlyph):
1588 Use own transcoding routines in preference to iconv
1589 which appears to have leaks in some translators.
1590 Call iconv_close after using iconv (oops).
1592 Prefer unicode encoding of Euro char as some
1593 fonts mis-encode Euro in other ones.
1595 Must fetch bitmap glyphs to get width values
1596 to check for monospace/dual-width fonts.
1598 2005-04-13 Ross Burton <ross@burtonini.com>
1601 Check that a pattern isn't already frozen in FcPatternFreeze.
1603 2005-03-31 Ross Burton <ross@burtonini.com>
1608 Run all FcPattern objects through FcObjectStaticName, so that
1609 compares can be done on pointers instead of strings (#2659)
1611 2005-03-17 Tor Lillqvist <tml@novell.com>
1613 * src/fontconfig.def.in: Add the .dll to the dll name.
1615 2005-03-10 Keith Packard <keithp@keithp.com>
1617 * debian/README.Debian:
1618 Update to reflect configuration changes
1620 * debian/fontconfig.postinst:
1621 Fix Autohint vs Autohinter mistake
1622 * debian/fontconfig.templates:
1623 Adopt changes from Josselin Mouette for configuration descriptions
1624 Update debian to version 2.3.1-2
1626 2005-03-08 Keith Packard <keithp@keithp.com>
1630 Update debian for 2.3.1
1632 2005-03-09 Tor Lillqvist <tml@novell.com>
1634 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1637 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1640 2005-03-08 Keith Packard <keithp@keithp.com>
1644 * fontconfig/fontconfig.h:
1647 2005-03-05 Keith Packard <keithp@keithp.com>
1649 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1650 Include space and remove numbers from valid script tags.
1651 This ensures that tags like 'lao ' work while rejecting
1652 those which have any digits.
1653 Eliminate a spurious debugging variable (len)
1655 2005-03-05 Keith Packard <keithp@keithp.com>
1657 * src/fcfreetype.c: (addtag), (GetScriptTags),
1658 (FcFontCapabilities):
1659 Rework GSUB/GPOS script parsing to survive broken fonts.
1660 Thanks for the broken font go to Manish Singh
1662 2005-03-05 Keith Packard <keithp@keithp.com>
1667 * debian/fontconfig.config:
1668 * debian/fontconfig.templates:
1670 Include 2.3 release information in changelog
1671 Add Josselin Mouette as an Uploader
1672 Set hinting_type to low priority configuration option
1675 * debian/fontconfig.postinst:
1676 yes_bitmaps.conf -> yes-bitmaps.conf
1682 2005-03-02 Keith Packard <keithp@keithp.com>
1685 * conf.d/Makefile.am:
1686 * conf.d/autohint.conf:
1687 * conf.d/no-sub-pixel.conf:
1688 * conf.d/sub-pixel.conf:
1689 * conf.d/unhinted.conf:
1690 * debian/autohint.conf:
1691 * debian/fontconfig.install:
1692 * debian/fontconfig.postinst:
1693 * debian/fontconfig.templates:
1694 * debian/no-sub-pixel.conf:
1695 * debian/unhinted.conf:
1696 Move debian-specific conf file examples upstream.
1698 Sub-pixel configuration examples must smash subpixel value
1699 as Xft always sets it from X.
1701 Change sub-pixel rendering debconf descriptions from
1702 Enable/Disable to Always/Never.
1704 2005-03-02 Keith Packard <keithp@keithp.com>
1707 * conf.d/.cvsignore:
1709 Ignore more build detritus
1712 Add debian package construction stuff.
1714 * config/config.guess:
1715 * config/config.sub:
1716 Update to newer versions of these tools
1719 Get library manuals to build again (we love automake).
1721 * debian/README.Debian:
1722 * debian/autohint.conf:
1727 * debian/fontconfig-udeb.install:
1728 * debian/fontconfig.config:
1729 * debian/fontconfig.defoma:
1730 * debian/fontconfig.dirs:
1731 * debian/fontconfig.install:
1732 * debian/fontconfig.postinst:
1733 * debian/fontconfig.postrm:
1734 * debian/fontconfig.templates:
1735 * debian/libfontconfig1-dev.install:
1736 * debian/libfontconfig1.install:
1737 * debian/local.conf.md5sum:
1738 * debian/no-sub-pixel.conf:
1739 * debian/po/POTFILES.in:
1748 * debian/po/pt_BR.po:
1749 * debian/po/templates.pot:
1751 * debian/po/zh_CN.po:
1753 * debian/unhinted.conf:
1754 Update debian build system to switch maintainers and
1755 deal with 2.3 functionality
1757 2005-03-01 Keith Packard <keithp@keithp.com>
1761 * fontconfig/fontconfig.h:
1764 2005-03-01 Keith Packard <keithp@keithp.com>
1767 Generate and install PDF versions of the manuals
1769 * doc/fcpattern.fncs:
1772 * doc/fcstring.fncs:
1773 Add missing exported functions, fix data types
1775 * doc/fontconfig-devel.sgml:
1776 Add missing pattern elements.
1778 * doc/fontconfig-user.sgml:
1779 Add missing pattern elements. Document conf.d usage,
1780 clarify available orthography list. Fix some config file
1781 attributes. Complete list of constants.
1783 * fontconfig/fontconfig.h:
1784 Mark FC_SOURCE deprecated.
1786 * src/fcfreetype.c: (FcFreeTypeQuery):
1787 Don't set FC_SOURCE any longer.
1789 2005-02-28 Keith Packard <keithp@keithp.com>
1792 * conf.d/Makefile.am:
1794 * conf.d/no-bitmaps.conf:
1795 * conf.d/sub-pixel.conf:
1796 * conf.d/yes-bitmaps.conf:
1798 Create prototype /etc/fonts/conf.d directory with a few
1799 sample configuration files.
1800 Deprecate use of local.conf for local customizations in favor of
1801 this directory based scheme which is more easily integrated into
1802 installation systems.
1805 Tag FC_EMBOLDEN as a boolean variable
1807 2005-02-10 Keith Packard <keithp@keithp.com>
1809 reviewed by: pborelli@katamail.com
1811 * src/fcdir.c: (FcFileScanConfig):
1812 Free patterns from fonts which are rejected by configuration
1815 2005-01-28 Keith Packard <keithp@keithp.com>
1819 * fontconfig/fontconfig.h:
1820 Update for version 2.2.99
1822 2005-01-28 Keith Packard <keithp@keithp.com>
1825 Add a few pointers (#2284, #2285)
1827 2005-01-28 Keith Packard <keithp@keithp.com>
1830 * src/fcname.c: (FcNameBool):
1831 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1832 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1833 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1834 Polite typechecking for test and edit expressions. Helps
1835 catch errors in the font configuration. (bug 229)
1837 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1839 reviewed by: Keith Packard <keithp@keithp.com>
1842 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1844 2005-01-13 Keith Packard <keithp@keithp.com>
1846 * doc/fontconfig-user.sgml:
1847 Add SEE ALSO section (bug 2085)
1849 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1851 reviewed by: Keith Packard <keithp@keithp.com>
1856 * fc-case/Makefile.am:
1857 * fc-glyphname/Makefile.am:
1858 * fc-lang/Makefile.am:
1859 * src/fontconfig.def.in:
1860 Cross compiling fixes (bug 280)
1862 2005-01-13 Keith Packard <keithp@keithp.com>
1865 Update blanks list (Closes bug 86)
1867 2005-01-04 Keith Packard <keithp@keithp.com>
1869 * src/fccache.c: (FcCacheFontSetAdd):
1870 Verify that every font pattern loaded from cache has
1871 both FC_FILE and FC_FAMILY entries.
1872 Attempt to fix bug #2219.
1874 2004-12-29 Keith Packard <keithp@keithp.com>
1878 * fontconfig/fontconfig.h:
1879 Update for version 2.2.98
1881 2004-12-29 Keith Packard <keithp@keithp.com>
1883 * fontconfig/fontconfig.h:
1884 Document ASCII limitations of Fc character conversion macros
1885 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1886 Fix off-by-one error in utf-8 case walking code.
1887 Add FcStrDowncase (useful for testing case conversion functions)
1889 2004-12-29 Keith Packard <keithp@keithp.com>
1892 * fc-case/.cvsignore:
1893 clean up CVS ignore lists
1894 * fc-lang/iso-3166.txt:
1895 Add territory database
1897 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1899 Reviewed by: Keith Packard
1902 Remove Han characters from Korean orthography
1904 2004-12-29 Keith Packard <keithp@keithp.com>
1907 Reorder utility programs to make sure fc-case is run before fc-lang
1908 as fc-lang uses fcstr.c which uses fccase.h
1912 2004-12-29 Keith Packard <keithp@keithp.com>
1915 Adopt some RedHat suggestions for standard font configuration.
1919 * fc-case/CaseFolding.txt:
1920 * fc-case/Makefile.am:
1921 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1922 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1923 (dump), (parseRaw), (caseFoldReadRaw), (main):
1924 * fc-case/fccase.tmpl.h:
1925 Add new helper program 'fc-case' to construct case folding
1926 tables from standard Unicode CaseFolding.txt file
1929 * src/fclist.c: (FcListValueHash):
1930 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1931 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1932 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1933 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1934 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1935 Re-implement case insensitive functions with Unicode
1936 aware versions (including full case folding mappings)
1938 2004-12-13 Keith Packard <keithp@keithp.com>
1940 reviewed by: Owen Taylor <otaylor@redhat.com>
1942 * src/fcmatch.c: (FcFontSetSort):
1943 I changed FcFontSetSort to respect the generic aliases better
1944 in the face of language matching.
1946 What I did was to ammend the strict sort order used by FcFontSort so
1947 that it 'satisfies' the language specified in the pattern by locating
1948 the best matching font supporting each pattern language and then
1949 ignores language in the remaining fonts for purposes of matching.
1951 So, when asking for 'sans:lang=en', you'll get an English font first,
1952 and then the remaining fonts sorted with respect to the 'sans' alias
1953 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1955 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1957 reviewed by: Keith Packard <keithp@keithp.com>
1959 * fontconfig/fontconfig.h:
1962 Configuration changes to request synthetic emboldening of
1963 fonts. The actual emboldening code will live in Xft.
1965 2004-12-09 John Thacker <thacker@math.cornell.edu>
1967 reviewed by: Keith Packard <keithp@keithp.com>
1971 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1972 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1973 и), and don't even appear in KOI8-R. (The hypothesis that they
1974 don't appear in KOI8-R due to their similarity with Latin I and i is
1975 eliminated by their presence in KOI8-U.) I have a couple of fonts
1976 with Russian support that don't have the letter.
1978 Therefore, 0406 and 0456 should be removed from or commented out of
1981 2004-12-06 michael meeks <mmeeks@novell.com>
1983 Reviewed by: Keith Packard <keithp@keithp.com>
1985 * src/fcinit.c: (FcMemReport):
1987 * src/fclist.c: (FcObjectSetAdd):
1988 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1989 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1990 * src/fcxml.c: (FcParsePatelt):
1991 memoize strings and share a single copy for all uses. Note that
1992 this could be improved further by using statically allocated blocks
1993 and gluing multiple strings together, but I'm basically lazy.
1994 In my environment with 800 font files, I get a savings of about 90KB.
1996 2004-12-06 Keith Packard <keithp@keithp.com>
2000 * config/Makedefs.in:
2003 * doc/fcatomic.fncs:
2004 * doc/fcblanks.fncs:
2005 * doc/fccharset.fncs:
2006 * doc/fcconfig.fncs:
2007 * doc/fcconstant.fncs:
2009 * doc/fcfontset.fncs:
2010 * doc/fcfreetype.fncs:
2012 * doc/fcmatrix.fncs:
2013 * doc/fcobjectset.fncs:
2014 * doc/fcobjecttype.fncs:
2015 * doc/fcpattern.fncs:
2016 * doc/fcstring.fncs:
2017 * doc/fcstrset.fncs:
2019 * doc/fontconfig-devel.sgml:
2020 * doc/fontconfig-user.sgml:
2022 * doc/version.sgml.in:
2023 * fc-cache/Makefile.am:
2024 * fc-cache/fc-cache.c:
2025 * fc-glyphname/Makefile.am:
2026 * fc-glyphname/fc-glyphname.c:
2027 * fc-glyphname/fcglyphname.tmpl.h:
2028 * fc-lang/Makefile.am:
2038 * fc-lang/az_ir.orth:
2072 * fc-lang/fc-lang.c:
2073 * fc-lang/fc-lang.man:
2074 * fc-lang/fclang.tmpl.h:
2119 * fc-lang/ku_ir.orth:
2152 * fc-lang/ps_af.orth:
2153 * fc-lang/ps_pk.orth:
2182 * fc-lang/ti_er.orth:
2183 * fc-lang/ti_et.orth:
2209 * fc-lang/zh_cn.orth:
2210 * fc-lang/zh_hk.orth:
2211 * fc-lang/zh_mo.orth:
2212 * fc-lang/zh_sg.orth:
2213 * fc-lang/zh_tw.orth:
2215 * fc-list/Makefile.am:
2216 * fc-list/fc-list.c:
2217 * fc-match/Makefile.am:
2218 * fc-match/fc-match.1:
2219 * fc-match/fc-match.c:
2220 * fontconfig/fcfreetype.h:
2221 * fontconfig/fcprivate.h:
2222 * fontconfig/fontconfig.h:
2243 Change files from ISO-Latin-1 to UTF-8
2245 2004-12-04 Keith Packard <keithp@keithp.com>
2248 Update links to new freedesktop.org locations
2250 Add uninstall-local to get rid of fonts.conf and local.conf if they
2251 match the distributed versions. Fixes 'make distcheck'
2253 2004-12-04 Keith Packard <keithp@keithp.com>
2257 * fontconfig/fontconfig.h:
2258 Updates for version 2.2.97
2260 2004-12-04 Owen Taylor <otaylor@redhat.com>
2262 reviewed by: Keith Packard <keithp@keithp.com>
2264 * fc-cache/fc-cache.c: (main):
2265 Sleep for two seconds before exiting to make sure timestamps
2266 for future changes have distinct mod times in the file system.
2269 Add Punjabi orthography. Bug #1671.
2271 2004-12-04 Keith Packard <keithp@keithp.com>
2274 Just remove the FC_FONTDATE -- it has locale issues and
2275 annoys redhat multi-arch installs. Now that all X fonts are
2276 included without prejudice, the chances of the date being at
2277 all interesting are rather limited. Bug #505.
2279 Add copyright and license
2281 2004-12-04 Keith Packard <keithp@keithp.com>
2284 Change default set of fonts to include all of
2285 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2286 * doc/fontconfig-user.sgml:
2287 Document new <include>directory-name</include> semantics
2289 add <include ignore_missing="yes">conf.d</include>
2291 Add selectfont to ignore bitmap fonts, add comment for
2292 selectfont which accepts bitmap fonts.
2295 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2296 Allow <include> configuration elements to reference directories.
2297 Parse and load all files of the form [0-9]* in sorted order.
2299 2004-12-04 Keith Packard <keithp@keithp.com>
2302 Report command line for $srcdir/configure accurately.
2305 2004-12-04 Keith Packard <keithp@keithp.com>
2307 * src/fcfreetype.c: (FcFreeTypeQuery):
2308 Check for non-empty face->family_name and face->style_name
2309 before using those for the font. Empty names match everything.
2312 2004-12-04 Keith Packard <keithp@keithp.com>
2315 * fontconfig/fontconfig.h:
2316 * src/fcfreetype.c: (FcFreeTypeQuery):
2318 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2319 available. This provides font file format information (BDF, Type 1,
2320 PCF, TrueType) for each font. Closes #109.
2322 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2324 reviewed by: Keith Packard <keithp@keithp.com>
2326 * doc/fontconfig-user.sgml:
2329 * fontconfig/fontconfig.h:
2330 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2331 (GetScriptTags), (FcFontCapabilities):
2333 Add detection for font capabilities (bug #105)
2335 2004-12-04 Keith Packard <keithp@keithp.com>
2338 Move existing fonts.conf to fonts.conf.bak
2341 Add detection of iconv
2343 * doc/fcpattern.fncs:
2344 * doc/fontconfig-devel.sgml:
2345 * doc/fontconfig-user.sgml:
2347 Document new selectfont elements
2350 Switch to UTF-8 in comment
2352 * fontconfig/fontconfig.h:
2354 Add fullname, and family/style/fullname language entries
2356 * src/fccache.c: (FcCacheFontSetAdd):
2357 * src/fcdir.c: (FcFileScanConfig):
2358 Respect selectfont/*/glob
2361 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2362 (FcConfigCompareValue), (FcConfigPatternsAdd),
2363 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2364 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2365 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2366 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2367 Add support for selectfont
2369 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2370 (FcStringInPatternElement), (FcFreeTypeQuery):
2371 Add multi-lingual family/style/fullname support
2373 * src/fclist.c: (FcListPatternMatchAny):
2374 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2376 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2377 (FcObjectStaticName):
2378 Add new FcPatternRemove/FcPatternAppend.
2379 FcObjectStaticName stores computed pattern element names which
2380 are required to be static.
2382 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2387 Remove spurious / after $(DESTDIR)
2389 2004-06-30 Keith Packard <keithp@keithp.com>
2393 * fontconfig/fontconfig.h:
2396 2004-06-30 Keith Packard <keithp@keithp.com>
2398 Provided by: Lubos Lunak <l.lunak@suse.cz>
2400 * src/fccfg.c: (FcConfigUptoDate):
2401 However FcConfigUptoDate() doesn't seem to work. See the attached
2402 patch. First there's an obvious misplaced parenthesis making it
2403 return always false, and second, even this call fails to detect font
2404 changes (e.g. adding a new font to
2405 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2406 well. The problem seems to be triggered by my fonts.conf specifying
2407 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2408 doesn't include subdirs, unlike config->fontDirs.
2410 2004-06-03 Keith Packard <keithp@keithp.com>
2412 * fontconfig/fontconfig.h:
2413 Remove comma at end of FcResult enum definition.
2415 2004-05-29 Keith Packard <keithp@keithp.com>
2418 Add steps to md5sum release
2420 2004-05-29 Keith Packard <keithp@keithp.com>
2424 * fontconfig/fontconfig.h:
2427 2004-05-29 Keith Packard <keithp@keithp.com>
2429 * fontconfig/fontconfig.h:
2430 * src/fcmatch.c: (FcFontSetMatch):
2431 Add FcResultOutOfMemory to provide an accurate error when
2432 FcFontSetMatch fails in this way
2435 Make #warning about lacking various FreeType features indicate
2436 which version those features appeared so users know how to
2437 fix the problem (Thanks to Anton Tropashko)
2439 2004-05-05 Keith Packard <keithp@keithp.com>
2441 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2442 Replace MIN/MAX/ABS macros which happen to have come
2443 from FreeType with fontconfig-specific ones (FC_*)
2445 2004-04-23 Keith Packard <keithp@keithp.com>
2448 Extend release preparation instructions to include
2449 notification and distribution steps
2451 2004-04-23 Keith Packard <keithp@keithp.com>
2455 * fontconfig/fontconfig.h:
2456 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2458 2004-04-23 Keith Packard <keithp@keithp.com>
2461 Ignore a few more autotool files
2463 2004-04-14 Keith Packard <keithp@keithp.com>
2466 Add instructions for doing a release
2468 * fontconfig.spec.in:
2469 clean up .spec file; perhaps this will be useful to somebody...
2473 * fontconfig/fontconfig.h:
2476 * fc-lang/fc-lang.c:
2477 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2479 * fc-glyphname/Makefile.am:
2480 * fc-lang/Makefile.am:
2481 * fc-list/Makefile.am:
2482 * fc-match/Makefile.am:
2484 Add WARN_CFLAGS to pass -W flags for GCC systems
2486 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2487 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2488 Change various char types around to match across
2490 Fixed bug in using available_sizes[i].height which
2491 is in pixels, not 64ths of a pixel.
2493 2004-03-06 Keith Packard <keithp@keithp.com>
2495 * src/fcfreetype.c: (FcFreeTypeQuery):
2496 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2497 matches looking for explicit values prefer exact matches
2499 2004-03-02 Keith Packard <keithp@keithp.com>
2501 Supplied by: mfabian@suse.de (Mike FABIAN)
2503 * src/fcfreetype.c: (FcFreeTypeQuery):
2504 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2505 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2507 2004-02-21 Manish Singh <yosh@gimp.org>
2509 * fc-glyphname/fc-glyphname.c: (main):
2510 Cast strlen to int for printf, so we're 64-bit clean.
2512 2004-02-11 Keith Packard <keithp@keithp.com>
2515 * src/fcfreetype.c: (FcGetPixelSize):
2516 Ok, so I messed up the test for y_ppem. Let's see if I
2517 got it right this time.
2519 2004-02-10 Keith Packard <keithp@keithp.com>
2522 * src/fcfreetype.c: (FcGetPixelSize):
2523 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2524 FT_Bitmap_Size record. Add a configure.in test for this
2525 and change the code accordingly (using height instead).
2527 2004-02-06 Keith Packard <keithp@keithp.com>
2530 Add Low Saxon orthography
2531 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2533 * src/fccfg.c: (FcConfigNewestFile):
2534 Oops. Left 'newest.set' unset, which would miscompute
2537 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2538 (FcFreeTypeCheckGlyph):
2539 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2540 font properties (which report the wrong value in current FreeType)
2542 Don't attempt to check for empty glyphs in non-scalable fonts; they
2545 2004-02-01 Tor Lillqvist <tml@iki.fi>
2547 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2548 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2549 cache if config->cache is NULL, which happens if FcConfigHome() is
2550 NULL. Guard against that by using the temp folder in that case.
2552 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2554 * fc-lang/az_ir.orth:
2555 * fc-lang/ku_ir.orth:
2556 * fc-lang/ps_af.orth:
2557 * fc-lang/ps_pk.orth:
2558 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2559 (Afghan and Pakistani).
2561 Updated Urdu orthography with real data.
2563 2003-12-11 Carl Worth <cworth@east.isi.edu>
2565 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2568 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2570 (all-local): Remove excessive whitespace.
2572 * autogen.sh: Add 'set -e' to abort when any program fails,
2573 (avoids printing of 'now type make' after configure aborts).
2575 2003-11-17 Eric Christopherson <rakko@charter.net>
2577 reviewed by: Keith Packard <keithp@keithp.com>
2580 * fontconfig/fcfreetype.h:
2582 Switch to FreeType 2.1.7 style includes. Bug #150.
2584 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2586 * fc-list/fc-list.sgml: Add some example usages.
2588 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2591 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2594 2003-10-27 Keith Packard <keith@keithp.com>
2597 * fontconfig/fontconfig.h:
2598 Update to version 2.2.92
2600 2003-10-27 Keith Packard <keithp@keithp.com>
2605 * fc-cache/Makefile.am:
2606 * fc-glyphname/Makefile.am:
2607 * fc-lang/Makefile.am:
2608 * fc-list/Makefile.am:
2609 * fc-match/Makefile.am:
2612 Yet more cleanups to finish getting 'make distcheck' working
2613 This has been tested to ensure that it even works from a _build
2616 2003-10-26 Keith Packard <keithp@keithp.com>
2620 * fc-cache/Makefile.am:
2621 * fc-glyphname/Makefile.am:
2622 * fc-lang/Makefile.am:
2623 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2624 * fc-list/Makefile.am:
2625 * fc-match/Makefile.am:
2626 Attempts to fix 'make distcheck' work. Things are
2627 progressing pretty well, but there are still failures
2628 long into the process dealing with docs (as always).
2630 The big changes here are mostly to make $(srcdir) != "."
2631 work correctly, fixing the docbook related sections and
2632 fc-lang were particularily tricky. Docbook refuses to load
2633 system entities from anywhere other than where the original .sgml
2634 file was located, so no luck looking in "." for the
2635 configure-generated version.sgml and confdir.sgml files.
2637 fc-lang needed help finding .orth files; added a -d option
2638 to set the directory as the least evil of many options.
2640 Now to go use a faster machine and try and wring out the last
2643 2003-10-26 Keith Packard <keithp@keithp.com>
2647 2003-10-26 Keith Packard <keithp@keithp.com>
2650 Include confdir.sgml.in in EXTRA_DIST
2652 2003-10-09 Josselin Mouette <joss@debian.org>
2654 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2655 * fc-list/fc-list.sgml fc-list/Makefile.am:
2656 Replace fc-cache and fc-list manpages with more detailed, SGML
2659 2003-09-23 Owen Taylor <otaylor@redhat.com>
2661 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2662 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2663 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2666 2003-09-23 Owen Taylor <otaylor@redhat.com>
2668 * fc-lang/ka.orth: Remove Georgian capitals, they
2669 aren't used for normal writing. (Bug #116)
2671 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2673 * doc/fontconfig-devel.sgml:
2674 * doc/fontconfig-user.sgml:
2675 * fontconfig/fontconfig.h:
2677 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2678 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2680 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2681 monospace and dual-width fonts, allow roughly a 3% variance in the
2684 2003-08-31 Manish Singh <yosh@gimp.org>
2686 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2689 2003-08-15 Carl Worth <cworth@isi.edu>
2691 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2692 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2694 * src/fcpat.c (FcValueListEntDestroy): New function to support
2695 FcFini memory cleanup. Some statistics are not kept in
2697 (FcValueListFreeze): Move hashTable outside this function so it
2698 can be accessed by FcValueListThawAll.
2699 (FcValueListThawAll): New function complements FcValueListFreeze.
2700 (FcPatternBaseFreeze): Move hashTable outside this function so it
2701 can be accessed by FcPatternBaseThawAll.
2702 (FcPatternBaseThawAll): New function complements
2703 FcPatternBaseFreeze.
2704 (FcPatternThawAll): New function complements FcPatternFreeze.
2706 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2708 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2709 allocated FcCharLeafEnt "blocks" so they can be freed later.
2710 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2711 can be accessed by FcCharSetThawAllLeaf.
2712 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2713 (FcCharSetFreezeBase): Move hashTable outside this function so it
2714 can be accessed by FcCharSetThawAll.
2715 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2717 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2718 (FcConfigDestroy): Fic leak of FcBlanks.
2720 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2721 (main): Add call to FcFini when finished.
2723 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2724 static. Add prototypes.
2726 * doc/fcinit.fncs: Add documentation for FcFini function.
2728 * doc/edit-sgml.c: Mark several local functions as static. Add
2731 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2733 2003-06-15 Tor Lillqvist <tml@iki.fi>
2735 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2736 before comparing (needed on Windows).
2738 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2740 2003-06-13 Tor Lillqvist <tml@iki.fi>
2742 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2745 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2746 WINDOWSFONTDIR token.
2748 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2749 end, not to confuse libtool, which expects the EXPORTS line to be
2750 the first. Add FcConfigEnableHome.
2752 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2753 built as a DLL on Win32.
2755 2003-06-09 Keith Packard <keithp@keithp.com>
2757 * Tag version 2.2.90
2759 2003-06-09 Keith Packard <keithp@keithp.com>
2761 * Optimization in FcLangSetIndex was broken, occasionally
2762 returning a pointer to the wrong location on miss
2764 * Add fc-match to test font matching from the command line.
2766 2003-05-31 Keith Packard <keithp@keithp.com>
2768 * (Bug 85) add support for culmus fonts
2769 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2770 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2772 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2774 * Fix "contains" op for strings and langsets.
2776 2003-05-17 Keith Packard <keithp@keithp.com>
2778 * Fix build error with BDF prop local. Free langset after query
2780 2003-05-14 Keith Packard <keithp@keithp.com>
2782 * Extract spacing from XLFD atom
2784 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2786 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2787 disappeared in 1.30.
2789 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2791 2003-05-12 Keith Packard <keithp@keithp.com>
2793 * Use FcIsWidth to share code
2795 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2796 misclassifying some Han fonts as monospaced.
2798 2003-05-07 Keith Packard <keithp@keithp.com>
2800 * Add filename-based accept/reject to ammend available fonts.
2802 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2803 older FreeType releases.
2805 2003-05-06 Keith Packard <keithp@keithp.com>
2807 * Remove 0b82 and Tamil numbers from tamil
2808 orthography (Jungshik Shin <jshin@mailaps.org>)
2810 2003-05-04 Keith Packard <keithp@keithp.com>
2812 + Map glyph names in fonts with adobe custom encoding to unicode
2814 2003-05-02 Keith Packard <keithp@keithp.com>
2816 * Add FC_WEIGHT_BOOK as weight 75
2818 2003-04-30 Keith Packard <keithp@keithp.com>
2820 * Typo in bitstream foundry name
2822 2003-04-24 Keith Packard <keithp@keithp.com>
2824 * Eliminate italic_angle check for PS fonts
2826 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2828 * Getting closer to fixing /etc/fonts hard-coding.
2830 2003-04-22 Keith Packard <keithp@keithp.com>
2832 * Update autogen.sh to work with newer automake versions
2833 * Handle pattern elements moving during multiple edits
2835 2003-04-23 James Henstridge <james@daa.com.au>
2837 * doc/fontconfig-devel.sgml: close the <para> element.
2839 * doc/fcpattern.fncs: close the <para> element.
2841 * doc/func.sgml: close the <refsynopsisdiv> element.
2843 2003-04-22 Keith Packard <keithp@keithp.com
2845 * Update autogen.sh to work with newer automake versions
2846 * Handle pattern elements moving during multiple edits
2848 2003-04-17 Colin Walters <walters@debian.org>
2850 + Remove some unused variables, and initialize some other ones so
2851 gcc doesn't warn us.
2853 2003-04-16 Keith Packard <keithp@keithp.com>
2855 + tag version 2.1.94
2857 2003-04-16 Keith Packard <keithp@keithp.com>
2859 + add BDF property fetching support for foundry
2860 (from Juliusz Chroboczek)
2861 + add BDF property fetching support for width
2863 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2865 + Implemented foundry generation for Type 1 and TrueType
2867 2003-04-11 Gerard Escalante <g2@magestudios.net>
2869 + Retrieve information from Type1 FontInfo dictionaries
2871 2003-04-07 Colin Walters <walters@verbum.org>
2873 + src/Makefile.am: Fix dummy makefile target names when
2874 MS_LIB_AVAILABLE isn't set.
2876 2003-03-22 Tor Lillqvist <tml@iki.fi>
2878 Changes for Windows:
2880 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2882 + We don't want to hardcode the fonts.conf file location in the
2883 DLL, so we look up the DLL location at run-time in a DllMain()
2884 function. The fonts.conf location is deduced from that.
2886 + The colon can't be used as path separator on Windows,
2887 semicolon is used instead. File path components can be separated
2888 with either slash or backslash. Absolute paths can also begin
2889 with a drive letter.
2891 + Add internal function FcStrLastSlash that strrchr's the last
2892 slash, or backslash on Windows.
2894 + There is no link() on Windows. For atomicity checks, mkdir a
2895 lock directory instead.
2897 + In addition to HOME, also look for USERPROFILE.
2899 + Recognize the special font directory token WINDOWSFONTDIR, to
2900 use the system's font directory.
2902 + Remove the fontconfig-def.cpp that was obsolete. Add
2903 fontconfig.def(.in), without internal functions.
2905 + Add a fontconfig-zip(.in) script, used to build a binary
2908 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2909 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2910 to main package and man3/* to devel package
2912 + Added missing defattr(-, root, root) to main RPM package
2914 + Added HTML and text development documentation to -devel subpackage
2916 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2917 + Added back the configure macro options --disable-docs, otherwise
2918 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2919 version number) unconditionally, causing RPM to fail the build due
2920 to _unpackaged_files_terminate_build. We pick up the pregenerated
2921 docs with %doc already.
2923 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2924 + Removed commented out rpm macro define at top of spec file,
2925 replacing it with a simple explanation, since rpm macros are
2926 expanded by rpm even in comments.
2928 + Changed /usr/bin to _bindir in BuildRequires lines
2930 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2932 + Reorganized file manifest lists
2934 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2936 + fontconfig.spec.in: Improvements from Red Hat spec file.
2938 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2940 + docs/*.sgml: SGML fixes.
2942 Sat Mar 1 17:28:53 PST 2003 keithp
2943 + Ok, so the ChangeLog is a bit out of date
2945 + Lots of bugs fixed; most are in bugzilla, the
2946 biggest problems were in cache management where
2947 Owen discovered the library would lose badly when
2948 combining fonts-cache and ~/.fonts-cache data
2950 + Converted from autoconf to automake. This after
2951 getting patches accepted into libtool to allow
2952 the '-version-number' argument which lets
2953 packages set version numbers explicitly rather
2954 than the roundabout libtool way
2956 + Converted documentation to SGML using the docbook
2957 DTD. Now .txt and .html documents are installed
2958 in /usr/share/doc/fontconfig and there's no
2959 man page. Perhaps a man version can be written
2962 Sat Aug 31 15:21:22 PDT 2002 keithp
2963 + Xrender and Xft had several bugs related to
2964 rendering manually placed or poly-face text
2966 + Added more complete memory tracing in fontconfig
2967 Checked with (patched) mozilla and found no leaks
2969 + Updated Latin orthographies by comparing those from
2970 evertype.com with those from eki.ee. Tried to make
2971 sensible choices, including chars that occured in both
2972 and leaving some optional chars out that occured only
2975 Mon Aug 26 16:33:04 PDT 2002 keithp
2976 + Owen discovered that FcLangSetHasLang wasn't actually
2977 checking the language set.
2979 Mon Aug 26 13:37:23 PDT 2002 keithp
2980 + Append a version number to cache filenames
2982 Thu Aug 22 11:36:18 PDT 2002 keithp
2984 + Add "contains" and "not_contains" operators and elements to
2987 + Changed semantics of eq operator for LangSets to check for
2988 FcLangEqual so that any match will do
2990 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2991 of FcValueEqual to check for identical values when inserting into
2992 the results. This broke when the above semantic change was made,
2993 now it uses FcValueEqual which is "more correct" in any case.
2995 Thu Aug 22 00:32:29 PDT 2002 keithp
2997 + Reimplement FC_LANG as new datatype. Lists of strings
2998 was consuming over a megabyte of memory for 401 fonts.
3000 + Freeze patterns loaded from cache files. This shares
3001 common value lists and common patterns which saves
3002 considerable memory.
3004 + Change the denotation of 'constant' charsets to use special
3005 ref value instead of separate boolean.
3007 + Clean up leak tracing stuff, found several unannoted alloc/free
3010 Tue Aug 20 16:17:37 PDT 2002 keithp
3012 + Fix memory leak when parsing matrices from XML
3014 Mon Aug 19 11:57:27 PDT 2002 keithp
3016 + Fix autoconf files to pass FONTCONFIG_PATH on
3017 compile line so that ${prefix} gets substituted
3020 + Use getc_unlocked/putc_unlocked on systems that
3021 provide them to avoid damage done to stdio by posix
3023 + Eliminate FC_PATTERN and FcTypePattern in favor of
3024 an extended api for FcConfigSubstitute which takes
3025 both the font and the pattern.
3027 + Add 'sans serif' alias for 'sans-serif' as some apps
3028 can't handle hyphens in family names
3030 + Eliminate pretense of support for libxml2
3032 + Comment origins of Han orthographies
3034 Tue Jul 30 18:37:09 PDT 2002 keithp
3036 + Add binding property to edit element so that strong
3037 binding values may be inserted by the config file.
3038 The default remains weak.
3040 Sun 28 Jul 04:16:55 PDT 2002 keithp
3042 + Tagged release candidate 1 in the CVS tree and
3043 placed fcpackage.rc1.tar.gz for distribution
3045 Thu Aug 1 08:55:08 PDT 2002 keithp
3047 + Fixed autoconf builds to always specify install
3048 target files (for BSD). Also fixed to
3049 define FONTCONFIG_PATH in config.h so that
3050 nonstandard installs will actually work.