1 2006-03-03 Patrick Lam <plam@mit.edu>
4 Fix compilation on AIX with stub definitions (bug 6097).
6 2006-03-03 Patrick Lam <plam@mit.edu>
7 * src/fccache.c (FcCacheSkipToArch, FcDirCacheProduce):
8 * src/fcfreetype.c (GetScriptTags):
9 * src/fcfs.c (FcFontSetDistributeBytes):
10 * src/fcpat.c (FcValueListEntCreate, FcValueListNeededBytes):
12 Get rid of C++-style comments.
14 2006-03-03 Patrick Lam <plam@mit.edu>
17 Enable creation of 2.3.94 Debian packages.
19 2006-03-02 Egmont Koblinger <egmont@uhulinux.hu>
22 * src/fclang.c (FcCharSetForLang):
24 Fix suspicious return expression which causes junk
27 2006-02-24 Patrick Lam <plam@mit.edu>
31 * fontconfig/fontconfig.h:
33 Bump version to 2.3.94.
35 2006-02-24 Patrick Lam <plam@mit.edu>
40 2006-02-24 Patrick Lam <plam@mit.edu>
41 * conf.d/10-fonts-persian.conf:
43 Remove unconditional emboldening (per Behdad's instructions).
47 Add @s to hide some echos.
49 2006-02-24 Mike Fabian <mfabian@suse.de>
50 Takashi Iwai <tiwai@suse.de>
53 * src/fcfreetype.c (GetScriptTags):
55 Fix double-free on error case.
57 2006-02-21 Patrick Lam <plam@mit.edu>
58 * fc-lang/fc-lang.c (scan):
60 Strip \r and whitespace from input; fixes bug 3454.
62 2006-02-21 Patrick Lam <plam@mit.edu>
63 * fc-lang/fc-lang.c (main):
65 Allocate large arrays statically in fc-lang to fix crashes under
68 2006-02-21 Diego Petten <flameeyes@gentoo.org>
69 * src/fcfreetype.c (FcFreeTypeCharIndex):
71 Pass the buck; make fontconfig not crash on pango badness.
73 2006-02-21 Patrick Lam <plam@mit.edu>
74 * conf.d/10-fonts-persian.conf:
76 Use embeddedbitmap rather than rh_prefer_bitmap.
78 2006-02-21 Paul Cornett <paulcor1@bullseye.com>
81 * src/fccache.c (FcDirCacheWrite):
82 * src/fcdir.c (FcFileScanConfig):
83 * src/fcfreetype.c (FcStringInPatternElement):
84 * src/fcxml.c (FcParseFamilies):
85 * src/ftglue.c (ftglue_face_goto_table):
87 Eliminate redundancies.
89 2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
92 * fc-list/fc-list.c (main):
93 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing):
94 * src/fcstr.c (FcStrStr):
95 * src/fcxml.c (FcConfigSaveAttr):
97 Eliminate unused vars reported by Intel's compiler.
99 2006-02-21 Aiet Kolkhi <aietkolkhi@gmail.com>
104 Remove one more archaic character.
106 2006-02-21 Ross Burton <ross@burtonini.com>
107 reviewed by: plam, keithp
109 * src/fcxml.c (FcParsePatelt):
111 Freeze patterns created by configuration file for tiny
112 memory savings (every little bit helps).
114 2006-02-21 Mike Fabian <mfabian@suse.de>
117 * fc-cat/fc-cat.c (main):
119 Initialize fontconfig library in fc-cat to avoid segfault.
121 2006-02-18 Patrick Lam <plam@mit.edu>
122 * fc-cache/fc-cache.c (scanDirs):
123 * src/fccache.c (FcCacheReadDirs):
124 * src/fcdir.c (FcDirScanConfig):
126 Fix the underlying cause of the below segfault (must usually
127 call FcDirCacheHasCurrentArch after FcDirCacheValid).
129 2006-02-18 Patrick Lam <plam@mit.edu>
130 * src/fccache.c (FcDirCacheHasCurrentArch):
132 Fix triggering of segfault caused by misreading cache files
133 (reported by fcrozat).
135 2006-02-17 Patrick Lam <plam@mit.edu>
136 * src/fcint.h (FC_CACHE_MAGIC):
138 Bump up magic version; we changed the binary format.
140 2006-02-17 Patrick Lam <plam@mit.edu>
141 * fc-cat/fc-cat.c (main):
143 Enable fc-cat to print out old-style cache info when given a
146 2006-02-16 Patrick Lam <plam@mit.edu>
147 * src/fccache.c (FcDirCacheHasCurrentArch):
149 Deal correctly with changing FC_CACHE_MAGIC.
151 2006-02-16 Patrick Lam <plam@mit.edu>
152 * fc-cache/fc-cache.c (usage, scanDirs, main):
154 Add -r --really-force option which blows away cache files and then
157 2006-02-16 Patrick Lam <plam@mit.edu>
158 * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
160 Don't bail if fontconfig can't remove a dir cache file.
161 Skip the ID of a cache file when copying.
162 Eliminate 'source file too small' bug in FcDirCacheWrite.
164 2006-02-13 Patrick Lam <plam@mit.edu>
165 * src/fcfreetype.c (FcFreeTypeQuery):
167 Fix memory leak in error condition code.
169 2006-02-13 Mike Fabian <mfabian@suse.de>
171 * src/fcfreetype.c (FcFreeTypeQuery):
173 Skip bitmap fonts which can't even get it together enough to
174 declare a family name; this appears to reproduce previous
175 fontconfig behaviour.
177 2006-02-10 Takashi Iwai <tiwai@suse.de>
179 * src/fccache.c (FcDirCacheOpen):
181 Try to open /var/cache/fontconfig/[hashed name] before
182 fonts.cache-2 in a directory, because /var/cache/fontconfig
183 failures ought to be fixable, unlike fonts.cache-2 failures,
184 which may leave you screwed.
186 2006-02-10 Takashi Iwai <tiwai@suse.de>
188 * src/fcmatch.c (FcFontSetMatch):
190 Use a tri-state to mark the fonts which didn't get blocked but
191 were just missing an element, to distinguish them from the
192 fonts that do match the element.
194 2006-02-10 Takashi Iwai <tiwai@suse.de>
196 * src/fcmatch.c (FcFontSetMatch):
198 Don't kill fonts because they don't declare an element that's
201 2006-02-09 Patrick Lam <plam@mit.edu>
202 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
203 FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
205 Define and pass O_BINARY to open if appropriate, for those
206 platforms that need it. Reported by Doodle.
208 2006-02-09 Patrick Lam <plam@mit.edu>
209 * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize,
212 Fix problem with missing 'en' due to euro.patch: change
213 cache file format slightly to coincide with that generated
216 2006-02-07 Patrick Lam <plam@mit.edu>
217 * src/fccache.c (FcCacheReadDirs):
221 2006-02-07 Patrick Lam <plam@mit.edu>
222 * src/fcdir.c (FcDirScanConfig):
224 Don't reject dirs that can't be normalized (fixes lilypond, and
225 is correct in the context of application font directories.)
227 2006-02-07 Takashi Iwai <tiwai@suse.de>
230 * src/fccache.c (FcCacheReadDirs):
232 Use normalized directory name exclusively in FcCacheReadDirs.
234 2006-02-07 Dirk Mueller <dmueller@suse.com>
237 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
239 Perf optimizations. Inline FcValueCanonicalize,
240 reduce FcValueListPtrU usage, remove redundant cast.
242 2006-02-07 Takashi Iwai <tiwai@suse.de>
245 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
248 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
249 Declare extern for static arrays as arrays, not pointers.
250 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
252 2006-02-07 Dirk Mueller <dmueller@suse.com>
265 Add Euro sign to list of symbols required by European languages.
267 2006-02-07 Patrick Lam <plam@mit.edu>
268 * src/fccache.c (FcCacheReadString):
270 Fix hidden variable warning.
272 2006-02-07 Dirk Mueller <dmueller@suse.com>
275 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
277 Remove de-escaping logic because FcCacheWriteString
278 doesn't escape anyway. Do blockwise reading instead
279 of byte-wise for performance.
281 2006-02-06 Patrick Lam <plam@mit.edu>
282 Takashi Iwai <tiwai@suse.de>
284 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
286 Don't loop infinitely on recursive symlinks (client-side).
288 2006-02-06 Takashi Iwai <tiwai@suse.de>
290 * fc-cache/fc-cache.c (scanDirs, main):
292 Don't loop infinitely on recursive symlinks.
294 2006-02-06 Takashi Iwai <tiwai@suse.de>
296 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
297 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
298 FcGlobalCacheSave, FcCacheReadDirs):
301 Skip subdirs when skipping over stale bits of global cache.
302 Introduce state machine into FcGlobalCacheDir to avoid
303 doing inappropriate operations on global dir entries, e.g.
304 writing out an out-of-date cache entry.
306 2006-02-06 Takashi Iwai <tiwai@suse.de>
308 * src/fcdir.c (FcFileScanConfig):
310 Hoist FcFileIsDir check out of FcFileScanConfig loop.
312 2006-02-06 Takashi Iwai <tiwai@suse.de>
315 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
316 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
318 Don't rescan when trying to normalize a non-declared font dir.
319 Don't add font dirs multiple times (even if they're aliased).
321 2006-02-06 Dirk Mueller <dmueller@suse.de>
324 * src/fcfs.c (FcFontSetUnserialize):
326 Explain apples/oranges comparison and fix compilation error.
328 2006-02-06 Dirk Mueller <dmueller@suse.de>
331 * src/fcfs.c (FcFontSetUnserialize):
333 Insert check for integer overflow in # of fonts.
335 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
339 * fc-cache/Makefile.am:
340 * fc-cat/Makefile.am:
341 * fc-list/Makefile.am:
343 Make 'make distcheck' work with automake 1.6.3.
345 2006-02-03 Takashi IWAI <tiwai@suse.de>
348 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
351 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
352 FcDirCacheConsume, FcDirCacheWrite)
353 * src/fcxml.c (FcConfigMessage):
355 Check I/O call return values and eliminate unused variable
358 2006-02-03 Takashi Iwai <tiwai@suse.de>
361 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
365 2006-02-03 Dirk Mueller <dmueller@suse.de>
368 * src/fcfs.c (FcFontSetUnserialize):
370 Gracefully handle the case where a cache asserts that it
371 has a negative number of fonts, causing overflow.
373 2006-02-03 Patrick Lam <plam@mit.edu>
374 * src/fccache.c (FcDirCacheUnlink):
376 Fix double free in error case.
378 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
379 Stephan Kulow <coolo@suse.de>
382 * fc-cache/Makefile.am:
384 Replace 'stamp' target with mkinstalldirs.
386 2006-01-31 Mike Fabian <mfabian@suse.de>
389 * src/fccache.c (FcGlobalCacheLoad):
391 Toast broken global cache files.
393 2006-01-30 Patrick Lam <plam@mit.edu>
394 * src/fccache.c (FcGlobalCacheReadDir):
396 Actually use the directories that I added to the global cache.
399 2006-01-30 Mike Fabian <mfabian@suse.de>
402 * fc-cache/fc-cache.c (scanDirs):
404 Don't stop scanning if a directory in fonts.conf doesn't
405 exist, because subsequent directories might exist.
407 2006-01-30 Patrick Lam <plam@mit.edu>
408 * src/fccache.c (FcGlobalCacheLoad):
410 Make global cache work again after putting dir names into global
411 cache (I misplaced the recording of a file offset).
413 2006-01-30 Patrick Lam <plam@mit.edu>
414 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
416 Update fc-cat to handle subdir lists in global cache file.
418 * src/fccache.c (FcGlobalCacheLoad):
420 Another FcCacheReadString return value check.
422 2006-01-30 Mike Fabian <mfabian@suse.de>
425 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
426 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
428 Make fccache more resilient to broken cache files by checking
429 return value of FcCacheReadString all the time.
431 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
434 * fc-match/fc-match.1:
435 * fc-lang/fc-lang.man:
437 Remove references to dead fontconfig(3) manpages in
438 other fontconfig manpages.
440 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
443 * doc/fcpattern.fncs:
445 Fix world's tiniest typo in code example.
447 2006-01-29 Mike Fabian <mfabian@suse.de>
450 * src/fccache.c (FcGlobalCacheReadDir):
452 Fix global cache reads of subdirectories.
454 2006-01-29 Patrick Lam <plam@mit.edu>
456 Add documentation for FcConfigNormalizeFontDir.
458 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
459 FcGlobalCacheUpdate, FcGlobalCacheSave):
460 * src/fcdir.c (FcDirScanConfig):
463 Write directory information to global caches to fix make check
464 (reported by Ronny V. Vindenes). This changes the global cache
467 2006-01-27 Patrick Lam <plam@mit.edu>
468 * fc-cache/fc-cache.c (scanDirs):
469 * fontconfig/fontconfig.h:
471 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
473 Move FcConfigNormalizeFontDir call so that it doesn't result in
474 infinite recursion (reported by Ronny V. Vindenes).
476 2006-01-26 Patrick Lam <plam@mit.edu>
477 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
478 * src/fccfg.c (FcConfigNormalizeFontDir):
480 Add a couple of missing normalizations to make fc-cache work
481 right; only scan subdirectories once.
483 2006-01-26 Mike Fabian <mfabian@suse.de>
486 * src/fcacache.c (FcGlobalCacheReadDir):
488 Don't crash on non-existant directories in global cache.
490 2006-01-26 Patrick Lam <plam@mit.edu>
491 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
492 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
493 * src/fcdir.c (FcDirScanConfig):
494 * src/fcxml.c (FcEndElement):
496 Stop trampling the directory name when writing out caches.
497 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
498 subdirs when necessary. Don't scan directories that can't be
501 2006-01-25 Patrick Lam <plam@mit.edu>
502 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
503 * src/fccfg.c (FcConfigEvaluate):
504 * src/fcfreetype.c (FcPatternAddWithBinding):
506 Fix additional memory leaks reported by Ronny V. Vindenes: don't
507 invoke FcValueSave on hashed static strings in
508 FcPatternAddWithBinding.
510 Add another st_dev check in FcDirCacheOpen.
512 2006-01-24 James Su <james.su@gmail.com>
515 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
516 * fc-lang/zh_hk.orth:
518 Treat zh-hk fonts differently from zh-tw fonts. This patch may
519 cause fontconfig to treat A-X fonts differently from A-Y fonts;
520 please mail the fontconfig list if this causes any problems.
522 2006-01-24 Patrick Lam <plam@mit.edu>
523 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
524 * src/fcfreetype.c (FcFreeTypeQuery):
526 Fix memory leaks reported by Ronny V. Vindenes.
528 2006-01-19 Andreas Schwab <schwab@suse.de>
531 * src/fcpat.c (FcStrNeededBytes):
533 Fix for unaligned memory accesses.
535 2006-01-18 Mike Fabian <mfabian@suse.de>
538 * src/fcdir.c (FcDirScanConfig):
540 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
541 calls to avoid crashes.
543 2006-01-14 Patrick Lam <plam@mit.edu>
544 * src/fccache.c (FcDirCacheConsume):
546 Fix segfault when consuming zero-length caches in fc-cat
547 (which has no config, so FcConfigAddFontDir shouldn't be called.)
549 2006-01-14 Patrick Lam <plam@mit.edu>
550 * fc-cache/fc-cache.c (scanDirs):
551 * fontconfig/fontconfig.h:
552 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
553 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
554 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
555 * src/fcdir.c (FcDirScanConfig):
558 Compare device numbers as well as inodes.
559 Always normalize directory names before comparing them.
561 2006-01-11 Mike Fabian <mfabian@suse.de>
564 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
566 Allocate extra space for appended '/' in directory name.
568 2006-01-10 Patrick Lam <plam@mit.edu>
569 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
570 FcDirCacheValid, FcDirCacheHasCurrentArch,
571 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
572 * fc-cache/fc-cache.c (main):
574 Explicitly add font dirs to config.fontDirs even if they're empty.
575 Set current config in fc-cache.c.
576 Fix treatment of cache directory as read from cache file; don't
577 use string equality to determine if we have the right file,
580 2006-01-09 Patrick Lam <plam@mit.edu>
581 * fc-cache/fc-cache.c (scanDirs):
582 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
583 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
584 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
585 * src/fccfg.c (FcConfigNormalizeFontDir):
586 * src/fcdir.c (FcDirScanConfig):
589 Normalize font dirs by using the form, as given in fonts.conf, and
590 recorded in FcConfig's fontDirs string set, as canonical.
592 Actually update config.fontDirs as font directories are scanned.
594 2006-01-08 James Su <james.su@gmail.com>
595 * src/fcmatch.c (FcFontSetMatch):
597 Fix matching bug when multiple elements match; don't use
598 the sum of all scores, but the best score.
600 Also more perf opts, e.g. evaluate best over all font sets
601 rather than on a per-set basis (and other changes).
603 2006-01-08 Patrick Lam <plam@mit.edu>
604 * src/fccache.c (FcDirCacheConsume):
606 Properly skip past dir caches that contain zero fonts (as occurs
607 in global caches.) Reported by Mike Fabian.
609 2006-01-06 Patrick Lam <plam@mit.edu>
610 * src/fcdbg.c (FcPatternPrint):
612 Print out full pathname in fc-match -v as well. Reported by
615 2006-01-06 Mike Fabian <mfabian@suse.de>
618 * src/fcname.c (FcNameParse):
620 Fix bug where fc-match crashes when given __DUMMY__ property to
623 (I added the __DUMMY__ string to enable callers of
624 FcObjectToPtrLookup to distinguish an error return from a
625 successful return. -PL)
627 2006-01-05 Patrick Lam <plam@mit.edu>
630 Add self to AUTHORS list.
632 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
633 FcCacheFileRead, FcCachePrintSet, main):
634 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
635 FcGlobalCacheSave, FcCacheNextOffset,
636 FcDirCacheHasCurrentArch, FcDirCacheRead,
637 FcDirCacheConsume, FcDirCacheWrite):
639 * src/fcpat.c (comment):
641 Minor change to global cache file format to fix fc-cat bug
642 reported by Frederic Crozat, and buglet with not globally caching
643 directories with zero fonts cached.
645 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
648 * src/fccfg.c (FcConfigEvaluate):
650 Fix double-free which occurs because FcValueCanonicalize doesn't
651 create an extra copy of the returned value, it only canonicalizes
654 2006-01-02 Patrick Lam <plam@mit.edu>
655 * doc/fontconfig-user.sgml:
657 Fix version of .cache file (currently 1 -> currently 2). Reported
660 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
663 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
665 Shut up GCC warnings on amd.
667 2005-12-20 Patrick Lam <plam@mit.edu>
671 * fontconfig/fontconfig.h:
673 Bump version to 2.3.93.
675 2005-12-20 Patrick Lam <plam@mit.edu>
676 * src/fccharset.c (FcLangCharSetPopulate):
677 * src/fcint.h (FcCacheBankToIndex):
679 Avoid check on _fcBankId nullness and fix case where it used to
682 2005-12-20 Patrick Lam <plam@mit.edu>
683 * src/fcxml.c (FcConfigParseAndLoad):
685 Use open instead of fopen (requested by Phil Race for Sun).
687 2005-12-20 Patrick Lam <plam@mit.edu>
688 * src/fccache.c (FcDirCacheWrite);
689 * fc-cache/Makefile.am:
691 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
694 2005-12-20 Patrick Lam <plam@mit.edu>
695 * src/fcfreetype.c (FcFreeTypeQuery):
697 Restore code to skip over PCF fonts that have no encoded
699 (We guess that a font is PCF by presence of the PIXEL_SIZE
702 2005-12-12 Patrick Lam <plam@mit.edu>
703 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
705 Read and write the original location as a fallback for the
706 hashed cache file locations. This is mostly for users to be
707 able to have per-directory cache files.
709 2005-12-12 Patrick Lam <plam@mit.edu>
710 * fc-cache/fc-cache.c (scanDirs):
711 * fc-cache/Makefile.am:
712 * src/fccache.c (FcDirCacheHashName):
714 Improve error message when fc-cache can't write the cache. Add
715 missing slash. Reported by Behdad. Incorporate Behdad's patch to
716 create /var/cache/fontconfig when appropriate.
718 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
721 * src/fcxml.c (FcConfigGetAttribute):
723 Fix crash reported by Frederic Crozat when using libxml2.
725 2005-12-09 Patrick Lam <plam@mit.edu>
728 * fc-cache/Makefile.am:
729 * fc-cat/Makefile.am:
731 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
732 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
733 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
734 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
735 FcDirCacheHasCurrentArch, FcDirCacheHashName,
736 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
738 Migrate cache files from fonts directories to
739 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
740 but requires that all caches get rebuilt.
742 Also, autogen.sh now needs the additional parameter
743 --localstatedir=/var.
745 2005-12-07 Patrick Lam <plam@mit.edu>
746 * src/fcpat.c (FcPatternAddString):
748 Because we've changed FcPatternAddString to use FcStrStaticName
749 and not FcValueSave, explicitly handle the case of a null string.
751 2005-12-06 Patrick Lam <plam@mit.edu>
752 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
756 2005-12-05 Patrick Lam <plam@mit.edu>
757 * src/fcname.c (FcNameGetObjectType):
759 Don't assign types to user object names.
761 2005-12-05 Patrick Lam <plam@mit.edu>
762 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
764 Don't free strings that have been returned from FcStrStaticName.
766 2005-12-01 Patrick Lam <plam@mit.edu>
767 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
769 Add codepath for reading global cache files as well.
771 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
774 * conf.d/10-fonts.persian.conf:
775 * conf.d/Makefile.am:
777 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
779 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
782 * src/fcxml.c (FcConfigParseAndLoad):
784 Only add a config file to the set of config files once.
786 2005-11-29 Patrick Lam <plam@mit.edu>
787 * src/fcint.h (FcCacheBankToIndex);
789 Fix segfault by guarding array dereference.
791 2005-11-29 Dirk Mueller <dmueller@suse.de>
795 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
796 FcCacheBankToIndex, FcCacheBankToIndexMTF,
800 Refactor FcCacheBankToIndex into an inlineable part
801 (in fcint.h) which checks the front of the list and a
802 non-inlineable part which finds and moves the appropriate element
803 to the front of the list.
805 2005-11-29 Patrick Lam <plam@mit.edu>
806 * src/fccfg.c (FcConfigBuildFonts):
807 * src/fccache.c (FcCacheReadDirs):
809 Make the perf guys hate me a bit less: hoist the directory-name
810 FcConfigAcceptFont check for cached fonts up to directory cache
811 read time, rather than running it for each font.
813 2005-11-29 Patrick Lam <plam@mit.edu>
814 * src/fccfg.c (FcConfigBuildFonts):
816 * src/fcpat.c (FcPatternFindFullFname):
818 Don't make FcPatternFindFullFname available to fccfg, it's not
819 really safe. Instead go through FcPatternGetString (sorry,
820 perf guys.) Also, use globs for dirs as well.
822 2005-11-28 Patrick Lam <plam@mit.edu>
823 * src/fccfg.c (FcConfigBuildFonts):
827 2005-11-28 Patrick Lam <plam@mit.edu>
829 * src/fcpat.c (FcPatternFindFullFname):
830 * src/fccfg.c (FcConfigBuildFonts):
832 Fix problem dating back at least to 2.3.2 where globs weren't
833 being applied to patterns loaded from a cache.
835 2005-11-28 Patrick Lam <plam@mit.edu>
836 * doc/fontconfig-user.sgml:
838 Fix some obvious spelling mistakes.
840 2005-11-28 Dirk Mueller <dmueller@suse.com>
841 Stephan Kulow <coolo@suse.de>
844 * src/fcmatch.c (FcFontSetMatch):
846 Don't kill all fonts during match (oops!)
849 2005-11-25 Dirk Mueller <dmueller@suse.com>
850 Stephan Kulow <coolo@suse.de>
851 Michael Matz <matz@suse.de>
854 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
857 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
858 inline FcCompare into FcFontSetMatch and reorder the
859 loops, adding a boolean array which blocks patterns from future
860 consideration if they're known to not be best on some past
863 2005-11-26 Dirk Mueller <dmueller@suse.com>
866 * src/fcmatch.c (FcCompareValueList):
870 2005-11-25 Patrick Lam <plam@mit.edu>
871 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
873 Don't do random matching when bad objects are passed into
876 2005-11-25 Patrick Lam <plam@mit.edu>
878 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
879 FcPatternSerialize, FcPatternUnserialize,
880 FcValueListEnsureBank, FcValueListDistributeBytes,
881 FcValueListUnserialize):
883 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
884 _fcPatternElts, _fcValueLists for consistency.
886 2005-11-25 Dirk Mueller <dmueller@suse.com>
891 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
893 2005-11-25 Patrick Lam <plam@mit.edu>
895 * src/fccache.c (FcDirCacheConsume):
896 * src/fccharset.c (FcCharSetUnserialize):
897 * src/fcfs.c (FcFontSetUnserialize):
898 * src/fclang.c (FcLangSetUnserialize):
899 * src/fcname.c (FcObjectUnserialize):
900 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
901 FcPatternUnserialize):
903 Pass around FcCache *s to the Unserialize functions for extra
904 consistency (and less overhead, for what that's worth).
906 2005-11-24 Dirk Mueller <dmueller@suse.com>
910 * src/fcmatch.c (FcCompare*, FcFontSetSort):
911 * src/fcname.c (FcNameUnparseValue):
913 Inline the *PtrU functions to gain perf.
914 Remove unneeded params for the FcCompare* functions.
916 2005-11-24 Dirk Mueller <dmueller@suse.com>
919 * src/fcint.h, fontconfig/fontconfig.h:
921 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
923 * src/fcpat.c, src/fcint.h, src/fcname.c:
925 Check for type validity during FcPatternAddWithBinding, don't
926 verify type in FcFontMatch, don't call FcCanonicalize here
927 (which always does a deep copy).
929 2005-11-24 Dirk Mueller <dmueller@suse.com>
932 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
933 * src/fcpat.c (FcPatternAddWithBinding):
935 Make FcCompareString and FcCompareFamily less expensive.
936 Only add a value for FC_FAMILY if the proposed value is a string.
938 2005-11-24 Dirk Mueller <dmueller@suse.com>
941 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
942 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
943 * src/fcint.h (FcDebug):
945 Inline FcDebug invocations and only initialize once, in FcInit*.
946 Improve debug msg in FcPatternPrint.
948 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
951 * fontconfig/fontconfig.h:
954 Minor code warning cleanups.
956 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
959 * fc-match/fc-match.c (main):
961 Make getopt_long accept -s parameter to fc-match as well.
963 2005-11-21 Dirk Mueller <dmueller@suse.com>
966 * src/fcmatch.c (FcCompareValueList):
968 Manually perform inlining & partial redundancy elimination to
969 reduce calls to FcValueListPtrU.
971 2005-11-21 Dirk Mueller <dmueller@suse.com>
974 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
975 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
977 Only invoke strlen() when really necessary.
979 2005-11-19 Matthias Clasen <mclasen@redhat.com>
983 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
988 Get rid of the use of freetype internal headers in fcfreetype.c,
989 since those headers will go away with freetype 2.2. Replace with
990 public domain ftglue code from pango. Note that the patch removes
991 some extra error checking in FT_Get_BDF_Property() and comments
992 out the skipping of empty pcf fonts.
994 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
997 * fc-lang/fc-lang.c (main):
999 Further fix of patch from 2005-11-04: miscounted numbers count
1000 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
1001 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
1003 Removed leafidx_count and numbers_count since they are the same
1004 and replaced them with offset_count.
1006 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1009 * fc-cat/fc-cat.c (main):
1011 Don't crash when fc-cat invoked with no arguments.
1013 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
1016 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
1018 Fix invalid read access caused by premature free and
1019 GCC4 warnings in libxml2 codepath.
1021 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
1024 * src/fccfg.c (FcConfigValues):
1026 List iteration not needed in FcConfigValues, since it's building
1027 up the list itself; we can just strip FcVoid elements during
1030 2005-11-17 Patrick Lam <plam@mit.edu>
1031 * src/fccfg.c (FcConfigValues):
1033 Fix crash on invalid constants in config files (forgot to update
1034 a pointer upon list iteration.)
1036 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
1039 * src/fcxml.c (FcTypecheckExpr):
1041 Complain about invalid constants in config files.
1043 2005-11-17 Andreas Schwab <schwab@suse.de>
1046 * src/fccache.c (FcGlobalCacheSave):
1048 Don't add current_arch_start more than once.
1050 2005-11-16 Patrick Lam <plam@mit.edu>
1051 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
1052 * src/fcfs.c (FcFontSetUnserialize):
1053 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
1054 * src/fcpat.c (FcStrUnserialize):
1056 Fix ordering of ALIGN with respect to saving block_ptr; add
1057 another ALIGN to fcfs.c.
1059 2005-11-16 Patrick Lam <plam@mit.edu>
1060 * src/fccache.c (FcDirCacheProduce)
1062 Fix case where alignment bytes bumped up metadata->count
1063 causing unwarranted failures to write cache files.
1064 (Reported by Stephan Kulow).
1066 2005-11-16 Patrick Lam <plam@mit.edu>
1067 * src/fccache.c (FcDirCacheProduce):
1068 * src/fccharset.c (FcCharSetDistributeBytes):
1069 * src/fcfs.c (FcFontSetDistributeBytes):
1071 * src/fclang.c (FcLangSetDistributeBytes):
1072 * src/fcname.c (FcObjectDistributeBytes):
1073 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
1076 Add *NeededBytesAlign(), which overestimates the padding which is
1077 later added by the new ALIGN macro. Fix alignment problems on
1078 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
1079 version by Andreas Schwab).
1081 2005-11-16 Stephan Kulow <coolo@kde.org>
1086 Use sysconf to determine proper PAGESIZE value; this
1087 appears to be POSIX-compliant. (reported by Andreas Schwab)
1089 2005-11-04 Patrick Lam <plam@mit.edu>
1090 * fc-lang/fc-lang.c:
1095 Fix bug 2878 (excessive relocations at startup for charsets,
1096 reported by Ross Burton): fc-lang/fc-lang now creates the
1097 static form of the langset, not the dynamic form, so that
1098 the charsets should now be in .rodata.
1100 2005-11-04 Patrick Lam <plam@mit.edu>
1101 * src/fcdir.c (FcDirScanConfig):
1103 Add test for validity of directory caches that
1104 somehow got lost (reported by make distcheck).
1106 2005-11-04 Patrick Lam <plam@mit.edu>
1110 * fontconfig/fontconfig.h:
1112 Bump version to 2.3.92.
1114 2005-11-02 Patrick Lam <plam@mit.edu>
1115 * src/fcpat.c (FcPatternDuplicate):
1117 Fix argument ordering problem in call to FcPatternTransferFullFname.
1119 2005-11-02 Patrick Lam <plam@mit.edu>
1120 * src/fcfreetype.c (FcFreetypeQuery):
1121 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
1122 FcPatternTransferFullFname):
1124 Fix warnings and embarrassing double-free error.
1126 2005-11-02 Zhe Su <zsu@novell.com>
1131 Change the rule for artificial emboldening in fonts.conf.in. This
1132 enables the support for artificial emboldening included in cairo.
1134 2005-11-02 Patrick Lam <plam@mit.edu>
1135 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
1137 Don't zero out full names for FC_REF_CONSTANT fonts;
1138 also, duplicate full names when transferring, and free
1139 full names when freeing the associated font.
1140 Reported by Jinghua Luo.
1142 2005-11-02 Patrick Lam <plam@mit.edu>
1143 * fc-cache/fc-cache.c (scanDirs):
1144 * src/fcpat.c (FcValueListSerialize):
1146 Revert the previous patch and commit the correct patch:
1147 I forgot a canonicalization in FcValueListSerialize, so
1148 that it would choke on already-serialized input files. Duh!
1150 2005-11-02 Patrick Lam <plam@mit.edu>
1151 * fc-cache/fc-cache.c (scanDirs):
1153 Forcibly rescan a directory before writing a fresh local
1154 cache file for that directory, fixing the losing-fonts
1155 problem reported by Mike Fabian and also apparently the
1156 font cache file corruption.
1158 2005-11-02 Patrick Lam <plam@mit.edu>
1159 * src/fccache.c (FcGlobalCacheLoad):
1161 Fix thinko: actually, the whole global cache is stale
1162 if the global cache is older than the (newest) config file.
1164 2005-11-02 Patrick Lam <plam@mit.edu>
1165 * src/fccache.c (FcGlobalCacheLoad):
1166 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
1169 Declare the global cache of a directory's contents to be stale if
1170 the directory is newer than the (newest) configuration file.
1172 2005-10-31 Patrick Lam <plam@mit.edu>
1174 * src/fclist.c (FcListAppend):
1175 * src/fcmatch.c (FcFontRenderPrepare):
1176 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
1177 FcPatternFreeze, FcPatternBaseFreeze):
1179 Copy the full pathname whenever duplicating an FcPattern; otherwise,
1180 applications continue breaking.
1182 2005-10-31 Patrick Lam <plam@mit.edu>
1183 * fc-cat/fc-cat.c (FcCacheFileRead, main):
1184 * src/fcfreetype.c (FcFreeTypeQuery):
1186 Fix small memory error (tried to free argv); use basename and
1187 dirname correctly (they can modify their arguments).
1189 2005-10-31 Patrick Lam <plam@mit.edu>
1197 Reinstate basename patch, but keep a hash table linking FcPatterns
1198 to their fully-qualified font names for clients' benefit. Clients
1199 only pay for the font names once they request the FC_FILE property
1200 from an FcPattern, but the font name is malloc'd at that point (i.e.
1201 not mmapped: that's impossible, since it may vary between machines.)
1202 Clients do have to pay for a copy of the path name per cache file.
1204 Note that FcPatternGetString now does some rewriting if you ask
1205 for an FC_FILE, appending the pathname as appropriate.
1207 2005-10-31 Patrick Lam <plam@mit.edu>
1208 * src/fcfreetype.c (FcFreeTypeQuery):
1210 Revert basename patch, which breaks fontconfig clients on my system.
1212 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1215 * fontconfig/fonts.conf.in:
1216 * fontconfig/fontconfig.h:
1220 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1221 to load embedded bitmaps or not.
1223 2005-10-25 Patrick Lam <plam@mit.edu>
1224 * src/fcfreetype.c (FcFreeTypeQuery):
1226 Only add basename to patterns' FC_FILE element, not any part of
1229 2005-10-22 Patrick Lam <plam@mit.edu>
1232 Add some more consts, fixing more GCC4 warnings.
1234 2005-10-22 Zhe Su <zsu@novell.com>
1237 Support localized font family and style names.
1238 This has been reported to break old apps like xfd, but modern
1239 (gtk+/qt/mozilla) apps work fine.
1241 2005-10-21 Patrick Lam <plam@mit.edu>
1242 * src/fccache.c (FcGlobalCacheLoad):
1244 Destroy the global cache file if it's terminally broken. (reported by
1247 2005-10-21 Patrick Lam <plam@mit.edu>
1248 * fc-list/fc-list.c (main):
1249 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1250 * fontconfig/fontconfig.h:
1252 Prevent fc-list from escaping strings when printing them (reported by
1255 2005-10-20 Marcus Meissner <meissner@suse.de>
1258 * fontconfig/fontconfig.h:
1260 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1262 2005-10-14 Ross Burton <ross@burtonini.com>
1265 * fc-glyphname/fc-glyphname.c:
1268 Add consts to variables so as to move arrays into .rodata.
1270 2005-10-14 Mike Fabian <mfabian@suse.de>
1273 * src/fccache.c (FcDirCacheUnlink):
1275 Check existence of directory cache file before attempting to unlink.
1277 2005-10-13 Patrick Lam <plam@mit.edu>
1278 * src/fccache.c (FcDirCacheUnlink):
1280 Fix flipped return value on unlink. (Reported by Mike Fabian)
1282 2005-10-12 Patrick Lam <plam@mit.edu>
1285 * src/fcdir.c (FcDirScanConfig):
1288 When fc-cache is run without --force, use directory cache files
1289 to speed up fc-cache run time. (Reported by Mike Fabian)
1291 2005-10-06 Patrick Lam <plam@mit.edu>
1293 * src/fcname.c (FcObjectToPtr):
1294 * src/fcpat.c (FcStrStaticName):
1296 Add padding to make valgrind and glibc not hate each other
1297 when calling strlen().
1299 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1300 reviewed by: plam & keithp
1304 Modify config file to use Greek fonts before Asian fonts with
1307 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1308 reviewed by: plam & keithp
1312 Use libtool -no-undefined flag on all platforms.
1314 2005-10-05 Patrick Lam <plam@mit.edu>
1315 * src/fccache.c (FcCacheHaveBank):
1317 Implement move-to-front array for banks (perf regression
1318 reported by Ronny V. Vindenes).
1320 2005-10-04 Patrick Lam <plam@mit.edu>
1321 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1322 FcDirCacheHasCurrentArch):
1323 * fc-cache/fc-cache.c (scanDirs):
1324 * fontconfig/fontconfig.h:
1326 Add new API which unlinks directory caches and checks dir caches
1327 for existence of appropriate sections. Fix fc-cache to unlink
1328 stale cache files and save directory caches that lack relevant
1331 2005-10-03 Patrick Lam <plam@mit.edu>
1332 * src/fccache.c (FcDirCacheValid):
1334 Ensure that a directory cache has the appropriate section
1335 before reporting that it is valid (reported by Matthias Clasen).
1337 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1345 Use libxml2 if requested (with --enable-libxml2) or if
1346 expat is not available.
1348 2005-09-29 Patrick Lam <plam@mit.edu>
1349 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1351 Fix multi-arch cache files: compute the position for the
1352 block to be added using info from OrigFile, not NewFile.
1354 2005-09-28 Patrick Lam <plam@mit.edu>
1355 * src/fccache.c (FcCacheMachineSignature):
1357 Cast results of sizeof() to unsigned int to get rid of
1358 warnings on x86_64 (thanks Matthias Clasen).
1360 2005-09-27 Patrick Lam <plam@mit.edu>
1361 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1364 Use FcAtomic to rewrite cache files.
1366 2005-09-27 Patrick Lam <plam@mit.edu>
1368 * src/fccache.c (FcDirCacheWrite):
1370 Don't unlink the fonts.cache-2 file even if there's no data
1371 to write; just write an empty cache file. (thanks Lubos Lunak)
1373 2005-09-27 Patrick Lam <plam@mit.edu>
1375 * src/fccache.c (FcDirCacheWrite):
1377 Allocate room for the subdirectory names in each
1378 directory cache. Thanks to James Cloos for finding
1379 and diagnosing this bug!
1381 2005-09-22 Patrick Lam <plam@mit.edu>
1383 * fc-cache/fc-cache.sgml:
1384 * src/fccache.c (FcDirCacheWrite):
1385 * src/fccache.h (struct FcCache):
1387 Update documentation -- fc-cache's man page now says that you
1388 need to run fc-cache once per cached architecture; add some
1389 documentation to the FcCache structure.
1391 Make fc-cache write out fonts.cache-2 files for directories with
1392 no fonts (i.e. only subdirectories).
1394 2005-09-22 Patrick Lam <plam@mit.edu>
1396 * fc-cache/fc-cache.sgml:
1397 * fc-case/fc-case.c:
1398 * fc-glyphname/fc-glyphname.c:
1404 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1408 * fc-lang/fc-lang.c:
1409 * fontconfig/fcprivate.h:
1410 * fontconfig/fontconfig.h:
1424 Implement new mmaped cache for font information.
1425 Bump so revision to 2.3.90.
1427 2005-07-25 Keith Packard <keithp@keithp.com>
1429 * doc/fontconfig-user.sgml:
1430 * fc-glyphname/fc-glyphname.c: (scan), (main):
1431 * fc-lang/fc-lang.c: (FcConfigHome):
1432 * fc-match/fc-match.c: (main):
1433 * src/fccfg.c: (FcConfigHome):
1434 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1435 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1436 (addtag), (FcFontCapabilities):
1437 * src/fcpat.c: (FcValueListEntCreate):
1438 * src/fcstr.c: (FcStrCaseWalkerInit):
1439 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1441 Various GCC 4 cleanups for signed vs unsigned char
1443 Match only [0-9]*.conf files in <include>{directory}</include>
1444 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1446 2005-07-15 Carl Worth <cworth@cworth.org>
1449 * src/fcinit.c: (FcFini):
1450 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1453 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1454 Pull the FcObjectStateName hash table out to file scope, and add
1455 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1458 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1461 2005-06-16 Patrick Lam <plam@MIT.EDU>
1465 * src/fccfg.c: (FcConfigCompareValue):
1466 Make FcOpNotContains use FcStrStr for strings so that
1467 it matches semantics for !FcOpContains.
1469 2005-05-20 Keith Packard <keithp@keithp.com>
1473 Move fontconfig source package to libs as per override
1475 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1477 reviewed by: Mike Fabian
1480 The ka.orth file requires several characters which are not
1481 used anymore in modern Georgian and which are missing in the free
1482 Georgian TrueType fonts downloadable at:
1484 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1486 2005-04-27 Keith Packard <keithp@keithp.com>
1490 Update date to real 2.3.2 release date.
1491 Fix change attributions
1493 2005-04-27 Keith Packard <keithp@keithp.com>
1496 Bump so revision for 2.3.2
1497 * fc-cache/fc-cache.c: (scanDirs):
1498 Fix a few minor leaks in error cases.
1500 2005-04-23 Keith Packard <keithp@keithp.com>
1505 * fontconfig/fontconfig.h:
1506 Update for version 2.3.2
1508 2005-04-21 Keith Packard <keithp@keithp.com>
1510 * debian/fontconfig.postinst:
1511 Don't force bitmap font enable in default
1512 configuration; allows users to override this in
1522 * debian/po/pt_BR.po:
1523 * debian/po/templates.pot:
1525 * debian/po/zh_CN.po:
1526 Updated translations
1528 * fc-cache/fc-cache.c: (main):
1529 Destroy font configuration on exit to help valgrind
1532 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1533 (FcFreeTypeCheckGlyph):
1534 Use own transcoding routines in preference to iconv
1535 which appears to have leaks in some translators.
1536 Call iconv_close after using iconv (oops).
1538 Prefer unicode encoding of Euro char as some
1539 fonts mis-encode Euro in other ones.
1541 Must fetch bitmap glyphs to get width values
1542 to check for monospace/dual-width fonts.
1544 2005-04-13 Ross Burton <ross@burtonini.com>
1547 Check that a pattern isn't already frozen in FcPatternFreeze.
1549 2005-03-31 Ross Burton <ross@burtonini.com>
1554 Run all FcPattern objects through FcObjectStaticName, so that
1555 compares can be done on pointers instead of strings (#2659)
1557 2005-03-17 Tor Lillqvist <tml@novell.com>
1559 * src/fontconfig.def.in: Add the .dll to the dll name.
1561 2005-03-10 Keith Packard <keithp@keithp.com>
1563 * debian/README.Debian:
1564 Update to reflect configuration changes
1566 * debian/fontconfig.postinst:
1567 Fix Autohint vs Autohinter mistake
1568 * debian/fontconfig.templates:
1569 Adopt changes from Josselin Mouette for configuration descriptions
1570 Update debian to version 2.3.1-2
1572 2005-03-08 Keith Packard <keithp@keithp.com>
1576 Update debian for 2.3.1
1578 2005-03-09 Tor Lillqvist <tml@novell.com>
1580 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1583 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1586 2005-03-08 Keith Packard <keithp@keithp.com>
1590 * fontconfig/fontconfig.h:
1593 2005-03-05 Keith Packard <keithp@keithp.com>
1595 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1596 Include space and remove numbers from valid script tags.
1597 This ensures that tags like 'lao ' work while rejecting
1598 those which have any digits.
1599 Eliminate a spurious debugging variable (len)
1601 2005-03-05 Keith Packard <keithp@keithp.com>
1603 * src/fcfreetype.c: (addtag), (GetScriptTags),
1604 (FcFontCapabilities):
1605 Rework GSUB/GPOS script parsing to survive broken fonts.
1606 Thanks for the broken font go to Manish Singh
1608 2005-03-05 Keith Packard <keithp@keithp.com>
1613 * debian/fontconfig.config:
1614 * debian/fontconfig.templates:
1616 Include 2.3 release information in changelog
1617 Add Josselin Mouette as an Uploader
1618 Set hinting_type to low priority configuration option
1621 * debian/fontconfig.postinst:
1622 yes_bitmaps.conf -> yes-bitmaps.conf
1628 2005-03-02 Keith Packard <keithp@keithp.com>
1631 * conf.d/Makefile.am:
1632 * conf.d/autohint.conf:
1633 * conf.d/no-sub-pixel.conf:
1634 * conf.d/sub-pixel.conf:
1635 * conf.d/unhinted.conf:
1636 * debian/autohint.conf:
1637 * debian/fontconfig.install:
1638 * debian/fontconfig.postinst:
1639 * debian/fontconfig.templates:
1640 * debian/no-sub-pixel.conf:
1641 * debian/unhinted.conf:
1642 Move debian-specific conf file examples upstream.
1644 Sub-pixel configuration examples must smash subpixel value
1645 as Xft always sets it from X.
1647 Change sub-pixel rendering debconf descriptions from
1648 Enable/Disable to Always/Never.
1650 2005-03-02 Keith Packard <keithp@keithp.com>
1653 * conf.d/.cvsignore:
1655 Ignore more build detritus
1658 Add debian package construction stuff.
1660 * config/config.guess:
1661 * config/config.sub:
1662 Update to newer versions of these tools
1665 Get library manuals to build again (we love automake).
1667 * debian/README.Debian:
1668 * debian/autohint.conf:
1673 * debian/fontconfig-udeb.install:
1674 * debian/fontconfig.config:
1675 * debian/fontconfig.defoma:
1676 * debian/fontconfig.dirs:
1677 * debian/fontconfig.install:
1678 * debian/fontconfig.postinst:
1679 * debian/fontconfig.postrm:
1680 * debian/fontconfig.templates:
1681 * debian/libfontconfig1-dev.install:
1682 * debian/libfontconfig1.install:
1683 * debian/local.conf.md5sum:
1684 * debian/no-sub-pixel.conf:
1685 * debian/po/POTFILES.in:
1694 * debian/po/pt_BR.po:
1695 * debian/po/templates.pot:
1697 * debian/po/zh_CN.po:
1699 * debian/unhinted.conf:
1700 Update debian build system to switch maintainers and
1701 deal with 2.3 functionality
1703 2005-03-01 Keith Packard <keithp@keithp.com>
1707 * fontconfig/fontconfig.h:
1710 2005-03-01 Keith Packard <keithp@keithp.com>
1713 Generate and install PDF versions of the manuals
1715 * doc/fcpattern.fncs:
1718 * doc/fcstring.fncs:
1719 Add missing exported functions, fix data types
1721 * doc/fontconfig-devel.sgml:
1722 Add missing pattern elements.
1724 * doc/fontconfig-user.sgml:
1725 Add missing pattern elements. Document conf.d usage,
1726 clarify available orthography list. Fix some config file
1727 attributes. Complete list of constants.
1729 * fontconfig/fontconfig.h:
1730 Mark FC_SOURCE deprecated.
1732 * src/fcfreetype.c: (FcFreeTypeQuery):
1733 Don't set FC_SOURCE any longer.
1735 2005-02-28 Keith Packard <keithp@keithp.com>
1738 * conf.d/Makefile.am:
1740 * conf.d/no-bitmaps.conf:
1741 * conf.d/sub-pixel.conf:
1742 * conf.d/yes-bitmaps.conf:
1744 Create prototype /etc/fonts/conf.d directory with a few
1745 sample configuration files.
1746 Deprecate use of local.conf for local customizations in favor of
1747 this directory based scheme which is more easily integrated into
1748 installation systems.
1751 Tag FC_EMBOLDEN as a boolean variable
1753 2005-02-10 Keith Packard <keithp@keithp.com>
1755 reviewed by: pborelli@katamail.com
1757 * src/fcdir.c: (FcFileScanConfig):
1758 Free patterns from fonts which are rejected by configuration
1761 2005-01-28 Keith Packard <keithp@keithp.com>
1765 * fontconfig/fontconfig.h:
1766 Update for version 2.2.99
1768 2005-01-28 Keith Packard <keithp@keithp.com>
1771 Add a few pointers (#2284, #2285)
1773 2005-01-28 Keith Packard <keithp@keithp.com>
1776 * src/fcname.c: (FcNameBool):
1777 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1778 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1779 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1780 Polite typechecking for test and edit expressions. Helps
1781 catch errors in the font configuration. (bug 229)
1783 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1785 reviewed by: Keith Packard <keithp@keithp.com>
1788 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1790 2005-01-13 Keith Packard <keithp@keithp.com>
1792 * doc/fontconfig-user.sgml:
1793 Add SEE ALSO section (bug 2085)
1795 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1797 reviewed by: Keith Packard <keithp@keithp.com>
1802 * fc-case/Makefile.am:
1803 * fc-glyphname/Makefile.am:
1804 * fc-lang/Makefile.am:
1805 * src/fontconfig.def.in:
1806 Cross compiling fixes (bug 280)
1808 2005-01-13 Keith Packard <keithp@keithp.com>
1811 Update blanks list (Closes bug 86)
1813 2005-01-04 Keith Packard <keithp@keithp.com>
1815 * src/fccache.c: (FcCacheFontSetAdd):
1816 Verify that every font pattern loaded from cache has
1817 both FC_FILE and FC_FAMILY entries.
1818 Attempt to fix bug #2219.
1820 2004-12-29 Keith Packard <keithp@keithp.com>
1824 * fontconfig/fontconfig.h:
1825 Update for version 2.2.98
1827 2004-12-29 Keith Packard <keithp@keithp.com>
1829 * fontconfig/fontconfig.h:
1830 Document ASCII limitations of Fc character conversion macros
1831 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1832 Fix off-by-one error in utf-8 case walking code.
1833 Add FcStrDowncase (useful for testing case conversion functions)
1835 2004-12-29 Keith Packard <keithp@keithp.com>
1838 * fc-case/.cvsignore:
1839 clean up CVS ignore lists
1840 * fc-lang/iso-3166.txt:
1841 Add territory database
1843 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1845 Reviewed by: Keith Packard
1848 Remove Han characters from Korean orthography
1850 2004-12-29 Keith Packard <keithp@keithp.com>
1853 Reorder utility programs to make sure fc-case is run before fc-lang
1854 as fc-lang uses fcstr.c which uses fccase.h
1858 2004-12-29 Keith Packard <keithp@keithp.com>
1861 Adopt some RedHat suggestions for standard font configuration.
1865 * fc-case/CaseFolding.txt:
1866 * fc-case/Makefile.am:
1867 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1868 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1869 (dump), (parseRaw), (caseFoldReadRaw), (main):
1870 * fc-case/fccase.tmpl.h:
1871 Add new helper program 'fc-case' to construct case folding
1872 tables from standard Unicode CaseFolding.txt file
1875 * src/fclist.c: (FcListValueHash):
1876 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1877 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1878 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1879 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1880 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1881 Re-implement case insensitive functions with Unicode
1882 aware versions (including full case folding mappings)
1884 2004-12-13 Keith Packard <keithp@keithp.com>
1886 reviewed by: Owen Taylor <otaylor@redhat.com>
1888 * src/fcmatch.c: (FcFontSetSort):
1889 I changed FcFontSetSort to respect the generic aliases better
1890 in the face of language matching.
1892 What I did was to ammend the strict sort order used by FcFontSort so
1893 that it 'satisfies' the language specified in the pattern by locating
1894 the best matching font supporting each pattern language and then
1895 ignores language in the remaining fonts for purposes of matching.
1897 So, when asking for 'sans:lang=en', you'll get an English font first,
1898 and then the remaining fonts sorted with respect to the 'sans' alias
1899 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1901 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1903 reviewed by: Keith Packard <keithp@keithp.com>
1905 * fontconfig/fontconfig.h:
1908 Configuration changes to request synthetic emboldening of
1909 fonts. The actual emboldening code will live in Xft.
1911 2004-12-09 John Thacker <thacker@math.cornell.edu>
1913 reviewed by: Keith Packard <keithp@keithp.com>
1917 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1918 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1919 и), and don't even appear in KOI8-R. (The hypothesis that they
1920 don't appear in KOI8-R due to their similarity with Latin I and i is
1921 eliminated by their presence in KOI8-U.) I have a couple of fonts
1922 with Russian support that don't have the letter.
1924 Therefore, 0406 and 0456 should be removed from or commented out of
1927 2004-12-06 michael meeks <mmeeks@novell.com>
1929 Reviewed by: Keith Packard <keithp@keithp.com>
1931 * src/fcinit.c: (FcMemReport):
1933 * src/fclist.c: (FcObjectSetAdd):
1934 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1935 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1936 * src/fcxml.c: (FcParsePatelt):
1937 memoize strings and share a single copy for all uses. Note that
1938 this could be improved further by using statically allocated blocks
1939 and gluing multiple strings together, but I'm basically lazy.
1940 In my environment with 800 font files, I get a savings of about 90KB.
1942 2004-12-06 Keith Packard <keithp@keithp.com>
1946 * config/Makedefs.in:
1949 * doc/fcatomic.fncs:
1950 * doc/fcblanks.fncs:
1951 * doc/fccharset.fncs:
1952 * doc/fcconfig.fncs:
1953 * doc/fcconstant.fncs:
1955 * doc/fcfontset.fncs:
1956 * doc/fcfreetype.fncs:
1958 * doc/fcmatrix.fncs:
1959 * doc/fcobjectset.fncs:
1960 * doc/fcobjecttype.fncs:
1961 * doc/fcpattern.fncs:
1962 * doc/fcstring.fncs:
1963 * doc/fcstrset.fncs:
1965 * doc/fontconfig-devel.sgml:
1966 * doc/fontconfig-user.sgml:
1968 * doc/version.sgml.in:
1969 * fc-cache/Makefile.am:
1970 * fc-cache/fc-cache.c:
1971 * fc-glyphname/Makefile.am:
1972 * fc-glyphname/fc-glyphname.c:
1973 * fc-glyphname/fcglyphname.tmpl.h:
1974 * fc-lang/Makefile.am:
1984 * fc-lang/az_ir.orth:
2018 * fc-lang/fc-lang.c:
2019 * fc-lang/fc-lang.man:
2020 * fc-lang/fclang.tmpl.h:
2065 * fc-lang/ku_ir.orth:
2098 * fc-lang/ps_af.orth:
2099 * fc-lang/ps_pk.orth:
2128 * fc-lang/ti_er.orth:
2129 * fc-lang/ti_et.orth:
2155 * fc-lang/zh_cn.orth:
2156 * fc-lang/zh_hk.orth:
2157 * fc-lang/zh_mo.orth:
2158 * fc-lang/zh_sg.orth:
2159 * fc-lang/zh_tw.orth:
2161 * fc-list/Makefile.am:
2162 * fc-list/fc-list.c:
2163 * fc-match/Makefile.am:
2164 * fc-match/fc-match.1:
2165 * fc-match/fc-match.c:
2166 * fontconfig/fcfreetype.h:
2167 * fontconfig/fcprivate.h:
2168 * fontconfig/fontconfig.h:
2189 Change files from ISO-Latin-1 to UTF-8
2191 2004-12-04 Keith Packard <keithp@keithp.com>
2194 Update links to new freedesktop.org locations
2196 Add uninstall-local to get rid of fonts.conf and local.conf if they
2197 match the distributed versions. Fixes 'make distcheck'
2199 2004-12-04 Keith Packard <keithp@keithp.com>
2203 * fontconfig/fontconfig.h:
2204 Updates for version 2.2.97
2206 2004-12-04 Owen Taylor <otaylor@redhat.com>
2208 reviewed by: Keith Packard <keithp@keithp.com>
2210 * fc-cache/fc-cache.c: (main):
2211 Sleep for two seconds before exiting to make sure timestamps
2212 for future changes have distinct mod times in the file system.
2215 Add Punjabi orthography. Bug #1671.
2217 2004-12-04 Keith Packard <keithp@keithp.com>
2220 Just remove the FC_FONTDATE -- it has locale issues and
2221 annoys redhat multi-arch installs. Now that all X fonts are
2222 included without prejudice, the chances of the date being at
2223 all interesting are rather limited. Bug #505.
2225 Add copyright and license
2227 2004-12-04 Keith Packard <keithp@keithp.com>
2230 Change default set of fonts to include all of
2231 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2232 * doc/fontconfig-user.sgml:
2233 Document new <include>directory-name</include> semantics
2235 add <include ignore_missing="yes">conf.d</include>
2237 Add selectfont to ignore bitmap fonts, add comment for
2238 selectfont which accepts bitmap fonts.
2241 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2242 Allow <include> configuration elements to reference directories.
2243 Parse and load all files of the form [0-9]* in sorted order.
2245 2004-12-04 Keith Packard <keithp@keithp.com>
2248 Report command line for $srcdir/configure accurately.
2251 2004-12-04 Keith Packard <keithp@keithp.com>
2253 * src/fcfreetype.c: (FcFreeTypeQuery):
2254 Check for non-empty face->family_name and face->style_name
2255 before using those for the font. Empty names match everything.
2258 2004-12-04 Keith Packard <keithp@keithp.com>
2261 * fontconfig/fontconfig.h:
2262 * src/fcfreetype.c: (FcFreeTypeQuery):
2264 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2265 available. This provides font file format information (BDF, Type 1,
2266 PCF, TrueType) for each font. Closes #109.
2268 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2270 reviewed by: Keith Packard <keithp@keithp.com>
2272 * doc/fontconfig-user.sgml:
2275 * fontconfig/fontconfig.h:
2276 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2277 (GetScriptTags), (FcFontCapabilities):
2279 Add detection for font capabilities (bug #105)
2281 2004-12-04 Keith Packard <keithp@keithp.com>
2284 Move existing fonts.conf to fonts.conf.bak
2287 Add detection of iconv
2289 * doc/fcpattern.fncs:
2290 * doc/fontconfig-devel.sgml:
2291 * doc/fontconfig-user.sgml:
2293 Document new selectfont elements
2296 Switch to UTF-8 in comment
2298 * fontconfig/fontconfig.h:
2300 Add fullname, and family/style/fullname language entries
2302 * src/fccache.c: (FcCacheFontSetAdd):
2303 * src/fcdir.c: (FcFileScanConfig):
2304 Respect selectfont/*/glob
2307 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2308 (FcConfigCompareValue), (FcConfigPatternsAdd),
2309 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2310 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2311 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2312 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2313 Add support for selectfont
2315 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2316 (FcStringInPatternElement), (FcFreeTypeQuery):
2317 Add multi-lingual family/style/fullname support
2319 * src/fclist.c: (FcListPatternMatchAny):
2320 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2322 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2323 (FcObjectStaticName):
2324 Add new FcPatternRemove/FcPatternAppend.
2325 FcObjectStaticName stores computed pattern element names which
2326 are required to be static.
2328 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2333 Remove spurious / after $(DESTDIR)
2335 2004-06-30 Keith Packard <keithp@keithp.com>
2339 * fontconfig/fontconfig.h:
2342 2004-06-30 Keith Packard <keithp@keithp.com>
2344 Provided by: Lubos Lunak <l.lunak@suse.cz>
2346 * src/fccfg.c: (FcConfigUptoDate):
2347 However FcConfigUptoDate() doesn't seem to work. See the attached
2348 patch. First there's an obvious misplaced parenthesis making it
2349 return always false, and second, even this call fails to detect font
2350 changes (e.g. adding a new font to
2351 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2352 well. The problem seems to be triggered by my fonts.conf specifying
2353 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2354 doesn't include subdirs, unlike config->fontDirs.
2356 2004-06-03 Keith Packard <keithp@keithp.com>
2358 * fontconfig/fontconfig.h:
2359 Remove comma at end of FcResult enum definition.
2361 2004-05-29 Keith Packard <keithp@keithp.com>
2364 Add steps to md5sum release
2366 2004-05-29 Keith Packard <keithp@keithp.com>
2370 * fontconfig/fontconfig.h:
2373 2004-05-29 Keith Packard <keithp@keithp.com>
2375 * fontconfig/fontconfig.h:
2376 * src/fcmatch.c: (FcFontSetMatch):
2377 Add FcResultOutOfMemory to provide an accurate error when
2378 FcFontSetMatch fails in this way
2381 Make #warning about lacking various FreeType features indicate
2382 which version those features appeared so users know how to
2383 fix the problem (Thanks to Anton Tropashko)
2385 2004-05-05 Keith Packard <keithp@keithp.com>
2387 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2388 Replace MIN/MAX/ABS macros which happen to have come
2389 from FreeType with fontconfig-specific ones (FC_*)
2391 2004-04-23 Keith Packard <keithp@keithp.com>
2394 Extend release preparation instructions to include
2395 notification and distribution steps
2397 2004-04-23 Keith Packard <keithp@keithp.com>
2401 * fontconfig/fontconfig.h:
2402 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2404 2004-04-23 Keith Packard <keithp@keithp.com>
2407 Ignore a few more autotool files
2409 2004-04-14 Keith Packard <keithp@keithp.com>
2412 Add instructions for doing a release
2414 * fontconfig.spec.in:
2415 clean up .spec file; perhaps this will be useful to somebody...
2419 * fontconfig/fontconfig.h:
2422 * fc-lang/fc-lang.c:
2423 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2425 * fc-glyphname/Makefile.am:
2426 * fc-lang/Makefile.am:
2427 * fc-list/Makefile.am:
2428 * fc-match/Makefile.am:
2430 Add WARN_CFLAGS to pass -W flags for GCC systems
2432 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2433 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2434 Change various char types around to match across
2436 Fixed bug in using available_sizes[i].height which
2437 is in pixels, not 64ths of a pixel.
2439 2004-03-06 Keith Packard <keithp@keithp.com>
2441 * src/fcfreetype.c: (FcFreeTypeQuery):
2442 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2443 matches looking for explicit values prefer exact matches
2445 2004-03-02 Keith Packard <keithp@keithp.com>
2447 Supplied by: mfabian@suse.de (Mike FABIAN)
2449 * src/fcfreetype.c: (FcFreeTypeQuery):
2450 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2451 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2453 2004-02-21 Manish Singh <yosh@gimp.org>
2455 * fc-glyphname/fc-glyphname.c: (main):
2456 Cast strlen to int for printf, so we're 64-bit clean.
2458 2004-02-11 Keith Packard <keithp@keithp.com>
2461 * src/fcfreetype.c: (FcGetPixelSize):
2462 Ok, so I messed up the test for y_ppem. Let's see if I
2463 got it right this time.
2465 2004-02-10 Keith Packard <keithp@keithp.com>
2468 * src/fcfreetype.c: (FcGetPixelSize):
2469 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2470 FT_Bitmap_Size record. Add a configure.in test for this
2471 and change the code accordingly (using height instead).
2473 2004-02-06 Keith Packard <keithp@keithp.com>
2476 Add Low Saxon orthography
2477 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2479 * src/fccfg.c: (FcConfigNewestFile):
2480 Oops. Left 'newest.set' unset, which would miscompute
2483 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2484 (FcFreeTypeCheckGlyph):
2485 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2486 font properties (which report the wrong value in current FreeType)
2488 Don't attempt to check for empty glyphs in non-scalable fonts; they
2491 2004-02-01 Tor Lillqvist <tml@iki.fi>
2493 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2494 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2495 cache if config->cache is NULL, which happens if FcConfigHome() is
2496 NULL. Guard against that by using the temp folder in that case.
2498 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2500 * fc-lang/az_ir.orth:
2501 * fc-lang/ku_ir.orth:
2502 * fc-lang/ps_af.orth:
2503 * fc-lang/ps_pk.orth:
2504 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2505 (Afghan and Pakistani).
2507 Updated Urdu orthography with real data.
2509 2003-12-11 Carl Worth <cworth@east.isi.edu>
2511 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2514 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2516 (all-local): Remove excessive whitespace.
2518 * autogen.sh: Add 'set -e' to abort when any program fails,
2519 (avoids printing of 'now type make' after configure aborts).
2521 2003-11-17 Eric Christopherson <rakko@charter.net>
2523 reviewed by: Keith Packard <keithp@keithp.com>
2526 * fontconfig/fcfreetype.h:
2528 Switch to FreeType 2.1.7 style includes. Bug #150.
2530 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2532 * fc-list/fc-list.sgml: Add some example usages.
2534 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2537 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2540 2003-10-27 Keith Packard <keith@keithp.com>
2543 * fontconfig/fontconfig.h:
2544 Update to version 2.2.92
2546 2003-10-27 Keith Packard <keithp@keithp.com>
2551 * fc-cache/Makefile.am:
2552 * fc-glyphname/Makefile.am:
2553 * fc-lang/Makefile.am:
2554 * fc-list/Makefile.am:
2555 * fc-match/Makefile.am:
2558 Yet more cleanups to finish getting 'make distcheck' working
2559 This has been tested to ensure that it even works from a _build
2562 2003-10-26 Keith Packard <keithp@keithp.com>
2566 * fc-cache/Makefile.am:
2567 * fc-glyphname/Makefile.am:
2568 * fc-lang/Makefile.am:
2569 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2570 * fc-list/Makefile.am:
2571 * fc-match/Makefile.am:
2572 Attempts to fix 'make distcheck' work. Things are
2573 progressing pretty well, but there are still failures
2574 long into the process dealing with docs (as always).
2576 The big changes here are mostly to make $(srcdir) != "."
2577 work correctly, fixing the docbook related sections and
2578 fc-lang were particularily tricky. Docbook refuses to load
2579 system entities from anywhere other than where the original .sgml
2580 file was located, so no luck looking in "." for the
2581 configure-generated version.sgml and confdir.sgml files.
2583 fc-lang needed help finding .orth files; added a -d option
2584 to set the directory as the least evil of many options.
2586 Now to go use a faster machine and try and wring out the last
2589 2003-10-26 Keith Packard <keithp@keithp.com>
2593 2003-10-26 Keith Packard <keithp@keithp.com>
2596 Include confdir.sgml.in in EXTRA_DIST
2598 2003-10-09 Josselin Mouette <joss@debian.org>
2600 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2601 * fc-list/fc-list.sgml fc-list/Makefile.am:
2602 Replace fc-cache and fc-list manpages with more detailed, SGML
2605 2003-09-23 Owen Taylor <otaylor@redhat.com>
2607 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2608 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2609 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2612 2003-09-23 Owen Taylor <otaylor@redhat.com>
2614 * fc-lang/ka.orth: Remove Georgian capitals, they
2615 aren't used for normal writing. (Bug #116)
2617 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2619 * doc/fontconfig-devel.sgml:
2620 * doc/fontconfig-user.sgml:
2621 * fontconfig/fontconfig.h:
2623 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2624 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2626 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2627 monospace and dual-width fonts, allow roughly a 3% variance in the
2630 2003-08-31 Manish Singh <yosh@gimp.org>
2632 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2635 2003-08-15 Carl Worth <cworth@isi.edu>
2637 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2638 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2640 * src/fcpat.c (FcValueListEntDestroy): New function to support
2641 FcFini memory cleanup. Some statistics are not kept in
2643 (FcValueListFreeze): Move hashTable outside this function so it
2644 can be accessed by FcValueListThawAll.
2645 (FcValueListThawAll): New function complements FcValueListFreeze.
2646 (FcPatternBaseFreeze): Move hashTable outside this function so it
2647 can be accessed by FcPatternBaseThawAll.
2648 (FcPatternBaseThawAll): New function complements
2649 FcPatternBaseFreeze.
2650 (FcPatternThawAll): New function complements FcPatternFreeze.
2652 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2654 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2655 allocated FcCharLeafEnt "blocks" so they can be freed later.
2656 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2657 can be accessed by FcCharSetThawAllLeaf.
2658 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2659 (FcCharSetFreezeBase): Move hashTable outside this function so it
2660 can be accessed by FcCharSetThawAll.
2661 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2663 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2664 (FcConfigDestroy): Fic leak of FcBlanks.
2666 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2667 (main): Add call to FcFini when finished.
2669 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2670 static. Add prototypes.
2672 * doc/fcinit.fncs: Add documentation for FcFini function.
2674 * doc/edit-sgml.c: Mark several local functions as static. Add
2677 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2679 2003-06-15 Tor Lillqvist <tml@iki.fi>
2681 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2682 before comparing (needed on Windows).
2684 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2686 2003-06-13 Tor Lillqvist <tml@iki.fi>
2688 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2691 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2692 WINDOWSFONTDIR token.
2694 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2695 end, not to confuse libtool, which expects the EXPORTS line to be
2696 the first. Add FcConfigEnableHome.
2698 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2699 built as a DLL on Win32.
2701 2003-06-09 Keith Packard <keithp@keithp.com>
2703 * Tag version 2.2.90
2705 2003-06-09 Keith Packard <keithp@keithp.com>
2707 * Optimization in FcLangSetIndex was broken, occasionally
2708 returning a pointer to the wrong location on miss
2710 * Add fc-match to test font matching from the command line.
2712 2003-05-31 Keith Packard <keithp@keithp.com>
2714 * (Bug 85) add support for culmus fonts
2715 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2716 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2718 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2720 * Fix "contains" op for strings and langsets.
2722 2003-05-17 Keith Packard <keithp@keithp.com>
2724 * Fix build error with BDF prop local. Free langset after query
2726 2003-05-14 Keith Packard <keithp@keithp.com>
2728 * Extract spacing from XLFD atom
2730 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2732 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2733 disappeared in 1.30.
2735 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2737 2003-05-12 Keith Packard <keithp@keithp.com>
2739 * Use FcIsWidth to share code
2741 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2742 misclassifying some Han fonts as monospaced.
2744 2003-05-07 Keith Packard <keithp@keithp.com>
2746 * Add filename-based accept/reject to ammend available fonts.
2748 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2749 older FreeType releases.
2751 2003-05-06 Keith Packard <keithp@keithp.com>
2753 * Remove 0b82 and Tamil numbers from tamil
2754 orthography (Jungshik Shin <jshin@mailaps.org>)
2756 2003-05-04 Keith Packard <keithp@keithp.com>
2758 + Map glyph names in fonts with adobe custom encoding to unicode
2760 2003-05-02 Keith Packard <keithp@keithp.com>
2762 * Add FC_WEIGHT_BOOK as weight 75
2764 2003-04-30 Keith Packard <keithp@keithp.com>
2766 * Typo in bitstream foundry name
2768 2003-04-24 Keith Packard <keithp@keithp.com>
2770 * Eliminate italic_angle check for PS fonts
2772 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2774 * Getting closer to fixing /etc/fonts hard-coding.
2776 2003-04-22 Keith Packard <keithp@keithp.com>
2778 * Update autogen.sh to work with newer automake versions
2779 * Handle pattern elements moving during multiple edits
2781 2003-04-23 James Henstridge <james@daa.com.au>
2783 * doc/fontconfig-devel.sgml: close the <para> element.
2785 * doc/fcpattern.fncs: close the <para> element.
2787 * doc/func.sgml: close the <refsynopsisdiv> element.
2789 2003-04-22 Keith Packard <keithp@keithp.com
2791 * Update autogen.sh to work with newer automake versions
2792 * Handle pattern elements moving during multiple edits
2794 2003-04-17 Colin Walters <walters@debian.org>
2796 + Remove some unused variables, and initialize some other ones so
2797 gcc doesn't warn us.
2799 2003-04-16 Keith Packard <keithp@keithp.com>
2801 + tag version 2.1.94
2803 2003-04-16 Keith Packard <keithp@keithp.com>
2805 + add BDF property fetching support for foundry
2806 (from Juliusz Chroboczek)
2807 + add BDF property fetching support for width
2809 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2811 + Implemented foundry generation for Type 1 and TrueType
2813 2003-04-11 Gerard Escalante <g2@magestudios.net>
2815 + Retrieve information from Type1 FontInfo dictionaries
2817 2003-04-07 Colin Walters <walters@verbum.org>
2819 + src/Makefile.am: Fix dummy makefile target names when
2820 MS_LIB_AVAILABLE isn't set.
2822 2003-03-22 Tor Lillqvist <tml@iki.fi>
2824 Changes for Windows:
2826 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2828 + We don't want to hardcode the fonts.conf file location in the
2829 DLL, so we look up the DLL location at run-time in a DllMain()
2830 function. The fonts.conf location is deduced from that.
2832 + The colon can't be used as path separator on Windows,
2833 semicolon is used instead. File path components can be separated
2834 with either slash or backslash. Absolute paths can also begin
2835 with a drive letter.
2837 + Add internal function FcStrLastSlash that strrchr's the last
2838 slash, or backslash on Windows.
2840 + There is no link() on Windows. For atomicity checks, mkdir a
2841 lock directory instead.
2843 + In addition to HOME, also look for USERPROFILE.
2845 + Recognize the special font directory token WINDOWSFONTDIR, to
2846 use the system's font directory.
2848 + Remove the fontconfig-def.cpp that was obsolete. Add
2849 fontconfig.def(.in), without internal functions.
2851 + Add a fontconfig-zip(.in) script, used to build a binary
2854 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2855 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2856 to main package and man3/* to devel package
2858 + Added missing defattr(-, root, root) to main RPM package
2860 + Added HTML and text development documentation to -devel subpackage
2862 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2863 + Added back the configure macro options --disable-docs, otherwise
2864 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2865 version number) unconditionally, causing RPM to fail the build due
2866 to _unpackaged_files_terminate_build. We pick up the pregenerated
2867 docs with %doc already.
2869 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2870 + Removed commented out rpm macro define at top of spec file,
2871 replacing it with a simple explanation, since rpm macros are
2872 expanded by rpm even in comments.
2874 + Changed /usr/bin to _bindir in BuildRequires lines
2876 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2878 + Reorganized file manifest lists
2880 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2882 + fontconfig.spec.in: Improvements from Red Hat spec file.
2884 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2886 + docs/*.sgml: SGML fixes.
2888 Sat Mar 1 17:28:53 PST 2003 keithp
2889 + Ok, so the ChangeLog is a bit out of date
2891 + Lots of bugs fixed; most are in bugzilla, the
2892 biggest problems were in cache management where
2893 Owen discovered the library would lose badly when
2894 combining fonts-cache and ~/.fonts-cache data
2896 + Converted from autoconf to automake. This after
2897 getting patches accepted into libtool to allow
2898 the '-version-number' argument which lets
2899 packages set version numbers explicitly rather
2900 than the roundabout libtool way
2902 + Converted documentation to SGML using the docbook
2903 DTD. Now .txt and .html documents are installed
2904 in /usr/share/doc/fontconfig and there's no
2905 man page. Perhaps a man version can be written
2908 Sat Aug 31 15:21:22 PDT 2002 keithp
2909 + Xrender and Xft had several bugs related to
2910 rendering manually placed or poly-face text
2912 + Added more complete memory tracing in fontconfig
2913 Checked with (patched) mozilla and found no leaks
2915 + Updated Latin orthographies by comparing those from
2916 evertype.com with those from eki.ee. Tried to make
2917 sensible choices, including chars that occured in both
2918 and leaving some optional chars out that occured only
2921 Mon Aug 26 16:33:04 PDT 2002 keithp
2922 + Owen discovered that FcLangSetHasLang wasn't actually
2923 checking the language set.
2925 Mon Aug 26 13:37:23 PDT 2002 keithp
2926 + Append a version number to cache filenames
2928 Thu Aug 22 11:36:18 PDT 2002 keithp
2930 + Add "contains" and "not_contains" operators and elements to
2933 + Changed semantics of eq operator for LangSets to check for
2934 FcLangEqual so that any match will do
2936 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2937 of FcValueEqual to check for identical values when inserting into
2938 the results. This broke when the above semantic change was made,
2939 now it uses FcValueEqual which is "more correct" in any case.
2941 Thu Aug 22 00:32:29 PDT 2002 keithp
2943 + Reimplement FC_LANG as new datatype. Lists of strings
2944 was consuming over a megabyte of memory for 401 fonts.
2946 + Freeze patterns loaded from cache files. This shares
2947 common value lists and common patterns which saves
2948 considerable memory.
2950 + Change the denotation of 'constant' charsets to use special
2951 ref value instead of separate boolean.
2953 + Clean up leak tracing stuff, found several unannoted alloc/free
2956 Tue Aug 20 16:17:37 PDT 2002 keithp
2958 + Fix memory leak when parsing matrices from XML
2960 Mon Aug 19 11:57:27 PDT 2002 keithp
2962 + Fix autoconf files to pass FONTCONFIG_PATH on
2963 compile line so that ${prefix} gets substituted
2966 + Use getc_unlocked/putc_unlocked on systems that
2967 provide them to avoid damage done to stdio by posix
2969 + Eliminate FC_PATTERN and FcTypePattern in favor of
2970 an extended api for FcConfigSubstitute which takes
2971 both the font and the pattern.
2973 + Add 'sans serif' alias for 'sans-serif' as some apps
2974 can't handle hyphens in family names
2976 + Eliminate pretense of support for libxml2
2978 + Comment origins of Han orthographies
2980 Tue Jul 30 18:37:09 PDT 2002 keithp
2982 + Add binding property to edit element so that strong
2983 binding values may be inserted by the config file.
2984 The default remains weak.
2986 Sun 28 Jul 04:16:55 PDT 2002 keithp
2988 + Tagged release candidate 1 in the CVS tree and
2989 placed fcpackage.rc1.tar.gz for distribution
2991 Thu Aug 1 08:55:08 PDT 2002 keithp
2993 + Fixed autoconf builds to always specify install
2994 target files (for BSD). Also fixed to
2995 define FONTCONFIG_PATH in config.h so that
2996 nonstandard installs will actually work.