1 2006-02-07 Takashi Iwai <tiwai@suse.de>
4 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
7 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
8 Declare extern for static arrays as arrays, not pointers.
9 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
11 2006-02-07 Dirk Mueller <dmueller@suse.com>
24 Add Euro sign to list of symbols required by European languages.
26 2006-02-07 Patrick Lam <plam@mit.edu>
27 * src/fccache.c (FcCacheReadString):
29 Fix hidden variable warning.
31 2006-02-07 Dirk Mueller <dmueller@suse.com>
34 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
36 Remove de-escaping logic because FcCacheWriteString
37 doesn't escape anyway. Do blockwise reading instead
38 of byte-wise for performance.
40 2006-02-06 Patrick Lam <plam@mit.edu>
41 Takashi Iwai <tiwai@suse.de>
43 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
45 Don't loop infinitely on recursive symlinks (client-side).
47 2006-02-06 Takashi Iwai <tiwai@suse.de>
49 * fc-cache/fc-cache.c (scanDirs, main):
51 Don't loop infinitely on recursive symlinks.
53 2006-02-06 Takashi Iwai <tiwai@suse.de>
55 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
56 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
57 FcGlobalCacheSave, FcCacheReadDirs):
60 Skip subdirs when skipping over stale bits of global cache.
61 Introduce state machine into FcGlobalCacheDir to avoid
62 doing inappropriate operations on global dir entries, e.g.
63 writing out an out-of-date cache entry.
65 2006-02-06 Takashi Iwai <tiwai@suse.de>
67 * src/fcdir.c (FcFileScanConfig):
69 Hoist FcFileIsDir check out of FcFileScanConfig loop.
71 2006-02-06 Takashi Iwai <tiwai@suse.de>
74 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
75 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
77 Don't rescan when trying to normalize a non-declared font dir.
78 Don't add font dirs multiple times (even if they're aliased).
80 2006-02-06 Dirk Mueller <dmueller@suse.de>
83 * src/fcfs.c (FcFontSetUnserialize):
85 Explain apples/oranges comparison and fix compilation error.
87 2006-02-06 Dirk Mueller <dmueller@suse.de>
90 * src/fcfs.c (FcFontSetUnserialize):
92 Insert check for integer overflow in # of fonts.
94 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
98 * fc-cache/Makefile.am:
100 * fc-list/Makefile.am:
102 Make 'make distcheck' work with automake 1.6.3.
104 2006-02-03 Takashi IWAI <tiwai@suse.de>
107 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
110 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
111 FcDirCacheConsume, FcDirCacheWrite)
112 * src/fcxml.c (FcConfigMessage):
114 Check I/O call return values and eliminate unused variable
117 2006-02-03 Takashi Iwai <tiwai@suse.de>
120 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
124 2006-02-03 Dirk Mueller <dmueller@suse.de>
127 * src/fcfs.c (FcFontSetUnserialize):
129 Gracefully handle the case where a cache asserts that it
130 has a negative number of fonts, causing overflow.
132 2006-02-03 Patrick Lam <plam@mit.edu>
133 * src/fccache.c (FcDirCacheUnlink):
135 Fix double free in error case.
137 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
138 Stephan Kulow <coolo@suse.de>
141 * fc-cache/Makefile.am:
143 Replace 'stamp' target with mkinstalldirs.
145 2006-01-31 Mike Fabian <mfabian@suse.de>
148 * src/fccache.c (FcGlobalCacheLoad):
150 Toast broken global cache files.
152 2006-01-30 Patrick Lam <plam@mit.edu>
153 * src/fccache.c (FcGlobalCacheReadDir):
155 Actually use the directories that I added to the global cache.
158 2006-01-30 Mike Fabian <mfabian@suse.de>
161 * fc-cache/fc-cache.c (scanDirs):
163 Don't stop scanning if a directory in fonts.conf doesn't
164 exist, because subsequent directories might exist.
166 2006-01-30 Patrick Lam <plam@mit.edu>
167 * src/fccache.c (FcGlobalCacheLoad):
169 Make global cache work again after putting dir names into global
170 cache (I misplaced the recording of a file offset).
172 2006-01-30 Patrick Lam <plam@mit.edu>
173 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
175 Update fc-cat to handle subdir lists in global cache file.
177 * src/fccache.c (FcGlobalCacheLoad):
179 Another FcCacheReadString return value check.
181 2006-01-30 Mike Fabian <mfabian@suse.de>
184 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
185 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
187 Make fccache more resilient to broken cache files by checking
188 return value of FcCacheReadString all the time.
190 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
193 * fc-match/fc-match.1:
194 * fc-lang/fc-lang.man:
196 Remove references to dead fontconfig(3) manpages in
197 other fontconfig manpages.
199 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
202 * doc/fcpattern.fncs:
204 Fix world's tiniest typo in code example.
206 2006-01-29 Mike Fabian <mfabian@suse.de>
209 * src/fccache.c (FcGlobalCacheReadDir):
211 Fix global cache reads of subdirectories.
213 2006-01-29 Patrick Lam <plam@mit.edu>
215 Add documentation for FcConfigNormalizeFontDir.
217 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
218 FcGlobalCacheUpdate, FcGlobalCacheSave):
219 * src/fcdir.c (FcDirScanConfig):
222 Write directory information to global caches to fix make check
223 (reported by Ronny V. Vindenes). This changes the global cache
226 2006-01-27 Patrick Lam <plam@mit.edu>
227 * fc-cache/fc-cache.c (scanDirs):
228 * fontconfig/fontconfig.h:
230 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
232 Move FcConfigNormalizeFontDir call so that it doesn't result in
233 infinite recursion (reported by Ronny V. Vindenes).
235 2006-01-26 Patrick Lam <plam@mit.edu>
236 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
237 * src/fccfg.c (FcConfigNormalizeFontDir):
239 Add a couple of missing normalizations to make fc-cache work
240 right; only scan subdirectories once.
242 2006-01-26 Mike Fabian <mfabian@suse.de>
245 * src/fcacache.c (FcGlobalCacheReadDir):
247 Don't crash on non-existant directories in global cache.
249 2006-01-26 Patirck Lam <plam@mit.edu>
250 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
251 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
252 * src/fcdir.c (FcDirScanConfig):
253 * src/fcxml.c (FcEndElement):
255 Stop trampling the directory name when writing out caches.
256 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
257 subdirs when necessary. Don't scan directories that can't be
260 2006-01-25 Patrick Lam <plam@mit.edu>
261 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
262 * src/fccfg.c (FcConfigEvaluate):
263 * src/fcfreetype.c (FcPatternAddWithBinding):
265 Fix additional memory leaks reported by Ronny V. Vindenes: don't
266 invoke FcValueSave on hashed static strings in
267 FcPatternAddWithBinding.
269 Add another st_dev check in FcDirCacheOpen.
271 2006-01-24 James Su <james.su@gmail.com>
274 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
275 * fc-lang/zh_hk.orth:
277 Treat zh-hk fonts differently from zh-tw fonts. This patch may
278 cause fontconfig to treat A-X fonts differently from A-Y fonts;
279 please mail the fontconfig list if this causes any problems.
281 2006-01-24 Patrick Lam <plam@mit.edu>
282 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
283 * src/fcfreetype.c (FcFreeTypeQuery):
285 Fix memory leaks reported by Ronny V. Vindenes.
287 2006-01-19 Andreas Schwab <schwab@suse.de>
290 * src/fcpat.c (FcStrNeededBytes):
292 Fix for unaligned memory accesses.
294 2006-01-18 Mike Fabian <mfabian@suse.de>
297 * src/fcdir.c (FcDirScanConfig):
299 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
300 calls to avoid crashes.
302 2006-01-14 Patrick Lam <plam@mit.edu>
303 * src/fccache.c (FcDirCacheConsume):
305 Fix segfault when consuming zero-length caches in fc-cat
306 (which has no config, so FcConfigAddFontDir shouldn't be called.)
308 2006-01-14 Patrick Lam <plam@mit.edu>
309 * fc-cache/fc-cache.c (scanDirs):
310 * fontconfig/fontconfig.h:
311 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
312 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
313 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
314 * src/fcdir.c (FcDirScanConfig):
317 Compare device numbers as well as inodes.
318 Always normalize directory names before comparing them.
320 2006-01-11 Mike Fabian <mfabian@suse.de>
323 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
325 Allocate extra space for appended '/' in directory name.
327 2006-01-10 Patrick Lam <plam@mit.edu>
328 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
329 FcDirCacheValid, FcDirCacheHasCurrentArch,
330 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
331 * fc-cache/fc-cache.c (main):
333 Explicitly add font dirs to config.fontDirs even if they're empty.
334 Set current config in fc-cache.c.
335 Fix treatment of cache directory as read from cache file; don't
336 use string equality to determine if we have the right file,
339 2006-01-09 Patrick Lam <plam@mit.edu>
340 * fc-cache/fc-cache.c (scanDirs):
341 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
342 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
343 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
344 * src/fccfg.c (FcConfigNormalizeFontDir):
345 * src/fcdir.c (FcDirScanConfig):
348 Normalize font dirs by using the form, as given in fonts.conf, and
349 recorded in FcConfig's fontDirs string set, as canonical.
351 Actually update config.fontDirs as font directories are scanned.
353 2006-01-08 James Su <james.su@gmail.com>
354 * src/fcmatch.c (FcFontSetMatch):
356 Fix matching bug when multiple elements match; don't use
357 the sum of all scores, but the best score.
359 Also more perf opts, e.g. evaluate best over all font sets
360 rather than on a per-set basis (and other changes).
362 2006-01-08 Patrick Lam <plam@mit.edu>
363 * src/fccache.c (FcDirCacheConsume):
365 Properly skip past dir caches that contain zero fonts (as occurs
366 in global caches.) Reported by Mike Fabian.
368 2006-01-06 Patrick Lam <plam@mit.edu>
369 * src/fcdbg.c (FcPatternPrint):
371 Print out full pathname in fc-match -v as well. Reported by
374 2006-01-06 Mike Fabian <mfabian@suse.de>
377 * src/fcname.c (FcNameParse):
379 Fix bug where fc-match crashes when given __DUMMY__ property to
382 (I added the __DUMMY__ string to enable callers of
383 FcObjectToPtrLookup to distinguish an error return from a
384 successful return. -PL)
386 2006-01-05 Patrick Lam <plam@mit.edu>
389 Add self to AUTHORS list.
391 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
392 FcCacheFileRead, FcCachePrintSet, main):
393 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
394 FcGlobalCacheSave, FcCacheNextOffset,
395 FcDirCacheHasCurrentArch, FcDirCacheRead,
396 FcDirCacheConsume, FcDirCacheWrite):
398 * src/fcpat.c (comment):
400 Minor change to global cache file format to fix fc-cat bug
401 reported by Frederic Crozat, and buglet with not globally caching
402 directories with zero fonts cached.
404 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
407 * src/fccfg.c (FcConfigEvaluate):
409 Fix double-free which occurs because FcValueCanonicalize doesn't
410 create an extra copy of the returned value, it only canonicalizes
413 2006-01-02 Patrick Lam <plam@mit.edu>
414 * doc/fontconfig-user.sgml:
416 Fix version of .cache file (currently 1 -> currently 2). Reported
419 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
422 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
424 Shut up GCC warnings on amd.
426 2005-12-20 Patrick Lam <plam@mit.edu>
430 * fontconfig/fontconfig.h:
432 Bump version to 2.3.93.
434 2005-12-20 Patrick Lam <plam@mit.edu>
435 * src/fccharset.c (FcLangCharSetPopulate):
436 * src/fcint.h (FcCacheBankToIndex):
438 Avoid check on _fcBankId nullness and fix case where it used to
441 2005-12-20 Patrick Lam <plam@mit.edu>
442 * src/fcxml.c (FcConfigParseAndLoad):
444 Use open instead of fopen (requested by Phil Race for Sun).
446 2005-12-20 Patrick Lam <plam@mit.edu>
447 * src/fccache.c (FcDirCacheWrite);
448 * fc-cache/Makefile.am:
450 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
453 2005-12-20 Patrick Lam <plam@mit.edu>
454 * src/fcfreetype.c (FcFreeTypeQuery):
456 Restore code to skip over PCF fonts that have no encoded
458 (We guess that a font is PCF by presence of the PIXEL_SIZE
461 2005-12-12 Patrick Lam <plam@mit.edu>
462 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
464 Read and write the original location as a fallback for the
465 hashed cache file locations. This is mostly for users to be
466 able to have per-directory cache files.
468 2005-12-12 Patrick Lam <plam@mit.edu>
469 * fc-cache/fc-cache.c (scanDirs):
470 * fc-cache/Makefile.am:
471 * src/fccache.c (FcDirCacheHashName):
473 Improve error message when fc-cache can't write the cache. Add
474 missing slash. Reported by Behdad. Incorporate Behdad's patch to
475 create /var/cache/fontconfig when appropriate.
477 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
480 * src/fcxml.c (FcConfigGetAttribute):
482 Fix crash reported by Frederic Crozat when using libxml2.
484 2005-12-09 Patrick Lam <plam@mit.edu>
487 * fc-cache/Makefile.am:
488 * fc-cat/Makefile.am:
490 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
491 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
492 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
493 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
494 FcDirCacheHasCurrentArch, FcDirCacheHashName,
495 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
497 Migrate cache files from fonts directories to
498 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
499 but requires that all caches get rebuilt.
501 Also, autogen.sh now needs the additional parameter
502 --localstatedir=/var.
504 2005-12-07 Patrick Lam <plam@mit.edu>
505 * src/fcpat.c (FcPatternAddString):
507 Because we've changed FcPatternAddString to use FcStrStaticName
508 and not FcValueSave, explicitly handle the case of a null string.
510 2005-12-06 Patrick Lam <plam@mit.edu>
511 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
515 2005-12-05 Patrick Lam <plam@mit.edu>
516 * src/fcname.c (FcNameGetObjectType):
518 Don't assign types to user object names.
520 2005-12-05 Patrick Lam <plam@mit.edu>
521 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
523 Don't free strings that have been returned from FcStrStaticName.
525 2005-12-01 Patrick Lam <plam@mit.edu>
526 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
528 Add codepath for reading global cache files as well.
530 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
533 * conf.d/10-fonts.persian.conf:
534 * conf.d/Makefile.am:
536 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
538 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
541 * src/fcxml.c (FcConfigParseAndLoad):
543 Only add a config file to the set of config files once.
545 2005-11-29 Patrick Lam <plam@mit.edu>
546 * src/fcint.h (FcCacheBankToIndex);
548 Fix segfault by guarding array dereference.
550 2005-11-29 Dirk Mueller <dmueller@suse.de>
554 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
555 FcCacheBankToIndex, FcCacheBankToIndexMTF,
559 Refactor FcCacheBankToIndex into an inlineable part
560 (in fcint.h) which checks the front of the list and a
561 non-inlineable part which finds and moves the appropriate element
562 to the front of the list.
564 2005-11-29 Patrick Lam <plam@mit.edu>
565 * src/fccfg.c (FcConfigBuildFonts):
566 * src/fccache.c (FcCacheReadDirs):
568 Make the perf guys hate me a bit less: hoist the directory-name
569 FcConfigAcceptFont check for cached fonts up to directory cache
570 read time, rather than running it for each font.
572 2005-11-29 Patrick Lam <plam@mit.edu>
573 * src/fccfg.c (FcConfigBuildFonts):
575 * src/fcpat.c (FcPatternFindFullFname):
577 Don't make FcPatternFindFullFname available to fccfg, it's not
578 really safe. Instead go through FcPatternGetString (sorry,
579 perf guys.) Also, use globs for dirs as well.
581 2005-11-28 Patrick Lam <plam@mit.edu>
582 * src/fccfg.c (FcConfigBuildFonts):
586 2005-11-28 Patrick Lam <plam@mit.edu>
588 * src/fcpat.c (FcPatternFindFullFname):
589 * src/fccfg.c (FcConfigBuildFonts):
591 Fix problem dating back at least to 2.3.2 where globs weren't
592 being applied to patterns loaded from a cache.
594 2005-11-28 Patrick Lam <plam@mit.edu>
595 * doc/fontconfig-user.sgml:
597 Fix some obvious spelling mistakes.
599 2005-11-28 Dirk Mueller <dmueller@suse.com>
600 Stephan Kulow <coolo@suse.de>
603 * src/fcmatch.c (FcFontSetMatch):
605 Don't kill all fonts during match (oops!)
608 2005-11-25 Dirk Mueller <dmueller@suse.com>
609 Stephan Kulow <coolo@suse.de>
610 Michael Matz <matz@suse.de>
613 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
616 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
617 inline FcCompare into FcFontSetMatch and reorder the
618 loops, adding a boolean array which blocks patterns from future
619 consideration if they're known to not be best on some past
622 2005-11-26 Dirk Mueller <dmueller@suse.com>
625 * src/fcmatch.c (FcCompareValueList):
629 2005-11-25 Patrick Lam <plam@mit.edu>
630 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
632 Don't do random matching when bad objects are passed into
635 2005-11-25 Patrick Lam <plam@mit.edu>
637 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
638 FcPatternSerialize, FcPatternUnserialize,
639 FcValueListEnsureBank, FcValueListDistributeBytes,
640 FcValueListUnserialize):
642 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
643 _fcPatternElts, _fcValueLists for consistency.
645 2005-11-25 Dirk Mueller <dmueller@suse.com>
650 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
652 2005-11-25 Patrick Lam <plam@mit.edu>
654 * src/fccache.c (FcDirCacheConsume):
655 * src/fccharset.c (FcCharSetUnserialize):
656 * src/fcfs.c (FcFontSetUnserialize):
657 * src/fclang.c (FcLangSetUnserialize):
658 * src/fcname.c (FcObjectUnserialize):
659 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
660 FcPatternUnserialize):
662 Pass around FcCache *s to the Unserialize functions for extra
663 consistency (and less overhead, for what that's worth).
665 2005-11-24 Dirk Mueller <dmueller@suse.com>
669 * src/fcmatch.c (FcCompare*, FcFontSetSort):
670 * src/fcname.c (FcNameUnparseValue):
672 Inline the *PtrU functions to gain perf.
673 Remove unneeded params for the FcCompare* functions.
675 2005-11-24 Dirk Mueller <dmueller@suse.com>
678 * src/fcint.h, fontconfig/fontconfig.h:
680 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
682 * src/fcpat.c, src/fcint.h, src/fcname.c:
684 Check for type validity during FcPatternAddWithBinding, don't
685 verify type in FcFontMatch, don't call FcCanonicalize here
686 (which always does a deep copy).
688 2005-11-24 Dirk Mueller <dmueller@suse.com>
691 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
692 * src/fcpat.c (FcPatternAddWithBinding):
694 Make FcCompareString and FcCompareFamily less expensive.
695 Only add a value for FC_FAMILY if the proposed value is a string.
697 2005-11-24 Dirk Mueller <dmueller@suse.com>
700 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
701 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
702 * src/fcint.h (FcDebug):
704 Inline FcDebug invocations and only initialize once, in FcInit*.
705 Improve debug msg in FcPatternPrint.
707 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
710 * fontconfig/fontconfig.h:
713 Minor code warning cleanups.
715 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
718 * fc-match/fc-match.c (main):
720 Make getopt_long accept -s parameter to fc-match as well.
722 2005-11-21 Dirk Mueller <dmueller@suse.com>
725 * src/fcmatch.c (FcCompareValueList):
727 Manually perform inlining & partial redundancy elimination to
728 reduce calls to FcValueListPtrU.
730 2005-11-21 Dirk Mueller <dmueller@suse.com>
733 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
734 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
736 Only invoke strlen() when really necessary.
738 2005-11-19 Matthias Clasen <mclasen@redhat.com>
742 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
747 Get rid of the use of freetype internal headers in fcfreetype.c,
748 since those headers will go away with freetype 2.2. Replace with
749 public domain ftglue code from pango. Note that the patch removes
750 some extra error checking in FT_Get_BDF_Property() and comments
751 out the skipping of empty pcf fonts.
753 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
756 * fc-lang/fc-lang.c (main):
758 Further fix of patch from 2005-11-04: miscounted numbers count
759 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
760 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
762 Removed leafidx_count and numbers_count since they are the same
763 and replaced them with offset_count.
765 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
768 * fc-cat/fc-cat.c (main):
770 Don't crash when fc-cat invoked with no arguments.
772 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
775 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
777 Fix invalid read access caused by premature free and
778 GCC4 warnings in libxml2 codepath.
780 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
783 * src/fccfg.c (FcConfigValues):
785 List iteration not needed in FcConfigValues, since it's building
786 up the list itself; we can just strip FcVoid elements during
789 2005-11-17 Patrick Lam <plam@mit.edu>
790 * src/fccfg.c (FcConfigValues):
792 Fix crash on invalid constants in config files (forgot to update
793 a pointer upon list iteration.)
795 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
798 * src/fcxml.c (FcTypecheckExpr):
800 Complain about invalid constants in config files.
802 2005-11-17 Andreas Schwab <schwab@suse.de>
805 * src/fccache.c (FcGlobalCacheSave):
807 Don't add current_arch_start more than once.
809 2005-11-16 Patrick Lam <plam@mit.edu>
810 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
811 * src/fcfs.c (FcFontSetUnserialize):
812 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
813 * src/fcpat.c (FcStrUnserialize):
815 Fix ordering of ALIGN with respect to saving block_ptr; add
816 another ALIGN to fcfs.c.
818 2005-11-16 Patrick Lam <plam@mit.edu>
819 * src/fccache.c (FcDirCacheProduce)
821 Fix case where alignment bytes bumped up metadata->count
822 causing unwarranted failures to write cache files.
823 (Reported by Stephan Kulow).
825 2005-11-16 Patrick Lam <plam@mit.edu>
826 * src/fccache.c (FcDirCacheProduce):
827 * src/fccharset.c (FcCharSetDistributeBytes):
828 * src/fcfs.c (FcFontSetDistributeBytes):
830 * src/fclang.c (FcLangSetDistributeBytes):
831 * src/fcname.c (FcObjectDistributeBytes):
832 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
835 Add *NeededBytesAlign(), which overestimates the padding which is
836 later added by the new ALIGN macro. Fix alignment problems on
837 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
838 version by Andreas Schwab).
840 2005-11-16 Stephan Kulow <coolo@kde.org>
845 Use sysconf to determine proper PAGESIZE value; this
846 appears to be POSIX-compliant. (reported by Andreas Schwab)
848 2005-11-04 Patrick Lam <plam@mit.edu>
854 Fix bug 2878 (excessive relocations at startup for charsets,
855 reported by Ross Burton): fc-lang/fc-lang now creates the
856 static form of the langset, not the dynamic form, so that
857 the charsets should now be in .rodata.
859 2005-11-04 Patrick Lam <plam@mit.edu>
860 * src/fcdir.c (FcDirScanConfig):
862 Add test for validity of directory caches that
863 somehow got lost (reported by make distcheck).
865 2005-11-04 Patrick Lam <plam@mit.edu>
869 * fontconfig/fontconfig.h:
871 Bump version to 2.3.92.
873 2005-11-02 Patrick Lam <plam@mit.edu>
874 * src/fcpat.c (FcPatternDuplicate):
876 Fix argument ordering problem in call to FcPatternTransferFullFname.
878 2005-11-02 Patrick Lam <plam@mit.edu>
879 * src/fcfreetype.c (FcFreetypeQuery):
880 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
881 FcPatternTransferFullFname):
883 Fix warnings and embarrassing double-free error.
885 2005-11-02 Zhe Su <zsu@novell.com>
890 Change the rule for artificial emboldening in fonts.conf.in. This
891 enables the support for artificial emboldening included in cairo.
893 2005-11-02 Patrick Lam <plam@mit.edu>
894 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
896 Don't zero out full names for FC_REF_CONSTANT fonts;
897 also, duplicate full names when transferring, and free
898 full names when freeing the associated font.
899 Reported by Jinghua Luo.
901 2005-11-02 Patrick Lam <plam@mit.edu>
902 * fc-cache/fc-cache.c (scanDirs):
903 * src/fcpat.c (FcValueListSerialize):
905 Revert the previous patch and commit the correct patch:
906 I forgot a canonicalization in FcValueListSerialize, so
907 that it would choke on already-serialized input files. Duh!
909 2005-11-02 Patrick Lam <plam@mit.edu>
910 * fc-cache/fc-cache.c (scanDirs):
912 Forcibly rescan a directory before writing a fresh local
913 cache file for that directory, fixing the losing-fonts
914 problem reported by Mike Fabian and also apparently the
915 font cache file corruption.
917 2005-11-02 Patrick Lam <plam@mit.edu>
918 * src/fccache.c (FcGlobalCacheLoad):
920 Fix thinko: actually, the whole global cache is stale
921 if the global cache is older than the (newest) config file.
923 2005-11-02 Patrick Lam <plam@mit.edu>
924 * src/fccache.c (FcGlobalCacheLoad):
925 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
928 Declare the global cache of a directory's contents to be stale if
929 the directory is newer than the (newest) configuration file.
931 2005-10-31 Patrick Lam <plam@mit.edu>
933 * src/fclist.c (FcListAppend):
934 * src/fcmatch.c (FcFontRenderPrepare):
935 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
936 FcPatternFreeze, FcPatternBaseFreeze):
938 Copy the full pathname whenever duplicating an FcPattern; otherwise,
939 applications continue breaking.
941 2005-10-31 Patrick Lam <plam@mit.edu>
942 * fc-cat/fc-cat.c (FcCacheFileRead, main):
943 * src/fcfreetype.c (FcFreeTypeQuery):
945 Fix small memory error (tried to free argv); use basename and
946 dirname correctly (they can modify their arguments).
948 2005-10-31 Patrick Lam <plam@mit.edu>
956 Reinstate basename patch, but keep a hash table linking FcPatterns
957 to their fully-qualified font names for clients' benefit. Clients
958 only pay for the font names once they request the FC_FILE property
959 from an FcPattern, but the font name is malloc'd at that point (i.e.
960 not mmapped: that's impossible, since it may vary between machines.)
961 Clients do have to pay for a copy of the path name per cache file.
963 Note that FcPatternGetString now does some rewriting if you ask
964 for an FC_FILE, appending the pathname as appropriate.
966 2005-10-31 Patrick Lam <plam@mit.edu>
967 * src/fcfreetype.c (FcFreeTypeQuery):
969 Revert basename patch, which breaks fontconfig clients on my system.
971 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
974 * fontconfig/fonts.conf.in:
975 * fontconfig/fontconfig.h:
979 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
980 to load embedded bitmaps or not.
982 2005-10-25 Patrick Lam <plam@mit.edu>
983 * src/fcfreetype.c (FcFreeTypeQuery):
985 Only add basename to patterns' FC_FILE element, not any part of
988 2005-10-22 Patrick Lam <plam@mit.edu>
991 Add some more consts, fixing more GCC4 warnings.
993 2005-10-22 Zhe Su <zsu@novell.com>
996 Support localized font family and style names.
997 This has been reported to break old apps like xfd, but modern
998 (gtk+/qt/mozilla) apps work fine.
1000 2005-10-21 Patrick Lam <plam@mit.edu>
1001 * src/fccache.c (FcGlobalCacheLoad):
1003 Destroy the global cache file if it's terminally broken. (reported by
1006 2005-10-21 Patrick Lam <plam@mit.edu>
1007 * fc-list/fc-list.c (main):
1008 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1009 * fontconfig/fontconfig.h:
1011 Prevent fc-list from escaping strings when printing them (reported by
1014 2005-10-20 Marcus Meissner <meissner@suse.de>
1017 * fontconfig/fontconfig.h:
1019 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1021 2005-10-14 Ross Burton <ross@burtonini.com>
1024 * fc-glyphname/fc-glyphname.c:
1027 Add consts to variables so as to move arrays into .rodata.
1029 2005-10-14 Mike Fabian <mfabian@suse.de>
1032 * src/fccache.c (FcDirCacheUnlink):
1034 Check existence of directory cache file before attempting to unlink.
1036 2005-10-13 Patrick Lam <plam@mit.edu>
1037 * src/fccache.c (FcDirCacheUnlink):
1039 Fix flipped return value on unlink. (Reported by Mike Fabian)
1041 2005-10-12 Patrick Lam <plam@mit.edu>
1044 * src/fcdir.c (FcDirScanConfig):
1047 When fc-cache is run without --force, use directory cache files
1048 to speed up fc-cache run time. (Reported by Mike Fabian)
1050 2005-10-06 Patrick Lam <plam@mit.edu>
1052 * src/fcname.c (FcObjectToPtr):
1053 * src/fcpat.c (FcStrStaticName):
1055 Add padding to make valgrind and glibc not hate each other
1056 when calling strlen().
1058 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1059 reviewed by: plam & keithp
1063 Modify config file to use Greek fonts before Asian fonts with
1066 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1067 reviewed by: plam & keithp
1071 Use libtool -no-undefined flag on all platforms.
1073 2005-10-05 Patrick Lam <plam@mit.edu>
1074 * src/fccache.c (FcCacheHaveBank):
1076 Implement move-to-front array for banks (perf regression
1077 reported by Ronny V. Vindenes).
1079 2005-10-04 Patrick Lam <plam@mit.edu>
1080 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1081 FcDirCacheHasCurrentArch):
1082 * fc-cache/fc-cache.c (scanDirs):
1083 * fontconfig/fontconfig.h:
1085 Add new API which unlinks directory caches and checks dir caches
1086 for existence of appropriate sections. Fix fc-cache to unlink
1087 stale cache files and save directory caches that lack relevant
1090 2005-10-03 Patrick Lam <plam@mit.edu>
1091 * src/fccache.c (FcDirCacheValid):
1093 Ensure that a directory cache has the appropriate section
1094 before reporting that it is valid (reported by Matthias Clasen).
1096 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1104 Use libxml2 if requested (with --enable-libxml2) or if
1105 expat is not available.
1107 2005-09-29 Patrick Lam <plam@mit.edu>
1108 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1110 Fix multi-arch cache files: compute the position for the
1111 block to be added using info from OrigFile, not NewFile.
1113 2005-09-28 Patrick Lam <plam@mit.edu>
1114 * src/fccache.c (FcCacheMachineSignature):
1116 Cast results of sizeof() to unsigned int to get rid of
1117 warnings on x86_64 (thanks Matthias Clasen).
1119 2005-09-27 Patrick Lam <plam@mit.edu>
1120 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1123 Use FcAtomic to rewrite cache files.
1125 2005-09-27 Patrick Lam <plam@mit.edu>
1127 * src/fccache.c (FcDirCacheWrite):
1129 Don't unlink the fonts.cache-2 file even if there's no data
1130 to write; just write an empty cache file. (thanks Lubos Lunak)
1132 2005-09-27 Patrick Lam <plam@mit.edu>
1134 * src/fccache.c (FcDirCacheWrite):
1136 Allocate room for the subdirectory names in each
1137 directory cache. Thanks to James Cloos for finding
1138 and diagnosing this bug!
1140 2005-09-22 Patrick Lam <plam@mit.edu>
1142 * fc-cache/fc-cache.sgml:
1143 * src/fccache.c (FcDirCacheWrite):
1144 * src/fccache.h (struct FcCache):
1146 Update documentation -- fc-cache's man page now says that you
1147 need to run fc-cache once per cached architecture; add some
1148 documentation to the FcCache structure.
1150 Make fc-cache write out fonts.cache-2 files for directories with
1151 no fonts (i.e. only subdirectories).
1153 2005-09-22 Patrick Lam <plam@mit.edu>
1155 * fc-cache/fc-cache.sgml:
1156 * fc-case/fc-case.c:
1157 * fc-glyphname/fc-glyphname.c:
1163 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1167 * fc-lang/fc-lang.c:
1168 * fontconfig/fcprivate.h:
1169 * fontconfig/fontconfig.h:
1183 Implement new mmaped cache for font information.
1184 Bump so revision to 2.3.90.
1186 2005-07-25 Keith Packard <keithp@keithp.com>
1188 * doc/fontconfig-user.sgml:
1189 * fc-glyphname/fc-glyphname.c: (scan), (main):
1190 * fc-lang/fc-lang.c: (FcConfigHome):
1191 * fc-match/fc-match.c: (main):
1192 * src/fccfg.c: (FcConfigHome):
1193 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1194 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1195 (addtag), (FcFontCapabilities):
1196 * src/fcpat.c: (FcValueListEntCreate):
1197 * src/fcstr.c: (FcStrCaseWalkerInit):
1198 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1200 Various GCC 4 cleanups for signed vs unsigned char
1202 Match only [0-9]*.conf files in <include>{directory}</include>
1203 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1205 2005-07-15 Carl Worth <cworth@cworth.org>
1208 * src/fcinit.c: (FcFini):
1209 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1212 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1213 Pull the FcObjectStateName hash table out to file scope, and add
1214 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1217 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1220 2005-06-16 Patrick Lam <plam@MIT.EDU>
1224 * src/fccfg.c: (FcConfigCompareValue):
1225 Make FcOpNotContains use FcStrStr for strings so that
1226 it matches semantics for !FcOpContains.
1228 2005-05-20 Keith Packard <keithp@keithp.com>
1232 Move fontconfig source package to libs as per override
1234 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1236 reviewed by: Mike Fabian
1239 The ka.orth file requires several characters which are not
1240 used anymore in modern Georgian and which are missing in the free
1241 Georgian TrueType fonts downloadable at:
1243 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1245 2005-04-27 Keith Packard <keithp@keithp.com>
1249 Update date to real 2.3.2 release date.
1250 Fix change attributions
1252 2005-04-27 Keith Packard <keithp@keithp.com>
1255 Bump so revision for 2.3.2
1256 * fc-cache/fc-cache.c: (scanDirs):
1257 Fix a few minor leaks in error cases.
1259 2005-04-23 Keith Packard <keithp@keithp.com>
1264 * fontconfig/fontconfig.h:
1265 Update for version 2.3.2
1267 2005-04-21 Keith Packard <keithp@keithp.com>
1269 * debian/fontconfig.postinst:
1270 Don't force bitmap font enable in default
1271 configuration; allows users to override this in
1281 * debian/po/pt_BR.po:
1282 * debian/po/templates.pot:
1284 * debian/po/zh_CN.po:
1285 Updated translations
1287 * fc-cache/fc-cache.c: (main):
1288 Destroy font configuration on exit to help valgrind
1291 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1292 (FcFreeTypeCheckGlyph):
1293 Use own transcoding routines in preference to iconv
1294 which appears to have leaks in some translators.
1295 Call iconv_close after using iconv (oops).
1297 Prefer unicode encoding of Euro char as some
1298 fonts mis-encode Euro in other ones.
1300 Must fetch bitmap glyphs to get width values
1301 to check for monospace/dual-width fonts.
1303 2005-04-13 Ross Burton <ross@burtonini.com>
1306 Check that a pattern isn't already frozen in FcPatternFreeze.
1308 2005-03-31 Ross Burton <ross@burtonini.com>
1313 Run all FcPattern objects through FcObjectStaticName, so that
1314 compares can be done on pointers instead of strings (#2659)
1316 2005-03-17 Tor Lillqvist <tml@novell.com>
1318 * src/fontconfig.def.in: Add the .dll to the dll name.
1320 2005-03-10 Keith Packard <keithp@keithp.com>
1322 * debian/README.Debian:
1323 Update to reflect configuration changes
1325 * debian/fontconfig.postinst:
1326 Fix Autohint vs Autohinter mistake
1327 * debian/fontconfig.templates:
1328 Adopt changes from Josselin Mouette for configuration descriptions
1329 Update debian to version 2.3.1-2
1331 2005-03-08 Keith Packard <keithp@keithp.com>
1335 Update debian for 2.3.1
1337 2005-03-09 Tor Lillqvist <tml@novell.com>
1339 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1342 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1345 2005-03-08 Keith Packard <keithp@keithp.com>
1349 * fontconfig/fontconfig.h:
1352 2005-03-05 Keith Packard <keithp@keithp.com>
1354 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1355 Include space and remove numbers from valid script tags.
1356 This ensures that tags like 'lao ' work while rejecting
1357 those which have any digits.
1358 Eliminate a spurious debugging variable (len)
1360 2005-03-05 Keith Packard <keithp@keithp.com>
1362 * src/fcfreetype.c: (addtag), (GetScriptTags),
1363 (FcFontCapabilities):
1364 Rework GSUB/GPOS script parsing to survive broken fonts.
1365 Thanks for the broken font go to Manish Singh
1367 2005-03-05 Keith Packard <keithp@keithp.com>
1372 * debian/fontconfig.config:
1373 * debian/fontconfig.templates:
1375 Include 2.3 release information in changelog
1376 Add Josselin Mouette as an Uploader
1377 Set hinting_type to low priority configuration option
1380 * debian/fontconfig.postinst:
1381 yes_bitmaps.conf -> yes-bitmaps.conf
1387 2005-03-02 Keith Packard <keithp@keithp.com>
1390 * conf.d/Makefile.am:
1391 * conf.d/autohint.conf:
1392 * conf.d/no-sub-pixel.conf:
1393 * conf.d/sub-pixel.conf:
1394 * conf.d/unhinted.conf:
1395 * debian/autohint.conf:
1396 * debian/fontconfig.install:
1397 * debian/fontconfig.postinst:
1398 * debian/fontconfig.templates:
1399 * debian/no-sub-pixel.conf:
1400 * debian/unhinted.conf:
1401 Move debian-specific conf file examples upstream.
1403 Sub-pixel configuration examples must smash subpixel value
1404 as Xft always sets it from X.
1406 Change sub-pixel rendering debconf descriptions from
1407 Enable/Disable to Always/Never.
1409 2005-03-02 Keith Packard <keithp@keithp.com>
1412 * conf.d/.cvsignore:
1414 Ignore more build detritus
1417 Add debian package construction stuff.
1419 * config/config.guess:
1420 * config/config.sub:
1421 Update to newer versions of these tools
1424 Get library manuals to build again (we love automake).
1426 * debian/README.Debian:
1427 * debian/autohint.conf:
1432 * debian/fontconfig-udeb.install:
1433 * debian/fontconfig.config:
1434 * debian/fontconfig.defoma:
1435 * debian/fontconfig.dirs:
1436 * debian/fontconfig.install:
1437 * debian/fontconfig.postinst:
1438 * debian/fontconfig.postrm:
1439 * debian/fontconfig.templates:
1440 * debian/libfontconfig1-dev.install:
1441 * debian/libfontconfig1.install:
1442 * debian/local.conf.md5sum:
1443 * debian/no-sub-pixel.conf:
1444 * debian/po/POTFILES.in:
1453 * debian/po/pt_BR.po:
1454 * debian/po/templates.pot:
1456 * debian/po/zh_CN.po:
1458 * debian/unhinted.conf:
1459 Update debian build system to switch maintainers and
1460 deal with 2.3 functionality
1462 2005-03-01 Keith Packard <keithp@keithp.com>
1466 * fontconfig/fontconfig.h:
1469 2005-03-01 Keith Packard <keithp@keithp.com>
1472 Generate and install PDF versions of the manuals
1474 * doc/fcpattern.fncs:
1477 * doc/fcstring.fncs:
1478 Add missing exported functions, fix data types
1480 * doc/fontconfig-devel.sgml:
1481 Add missing pattern elements.
1483 * doc/fontconfig-user.sgml:
1484 Add missing pattern elements. Document conf.d usage,
1485 clarify available orthography list. Fix some config file
1486 attributes. Complete list of constants.
1488 * fontconfig/fontconfig.h:
1489 Mark FC_SOURCE deprecated.
1491 * src/fcfreetype.c: (FcFreeTypeQuery):
1492 Don't set FC_SOURCE any longer.
1494 2005-02-28 Keith Packard <keithp@keithp.com>
1497 * conf.d/Makefile.am:
1499 * conf.d/no-bitmaps.conf:
1500 * conf.d/sub-pixel.conf:
1501 * conf.d/yes-bitmaps.conf:
1503 Create prototype /etc/fonts/conf.d directory with a few
1504 sample configuration files.
1505 Deprecate use of local.conf for local customizations in favor of
1506 this directory based scheme which is more easily integrated into
1507 installation systems.
1510 Tag FC_EMBOLDEN as a boolean variable
1512 2005-02-10 Keith Packard <keithp@keithp.com>
1514 reviewed by: pborelli@katamail.com
1516 * src/fcdir.c: (FcFileScanConfig):
1517 Free patterns from fonts which are rejected by configuration
1520 2005-01-28 Keith Packard <keithp@keithp.com>
1524 * fontconfig/fontconfig.h:
1525 Update for version 2.2.99
1527 2005-01-28 Keith Packard <keithp@keithp.com>
1530 Add a few pointers (#2284, #2285)
1532 2005-01-28 Keith Packard <keithp@keithp.com>
1535 * src/fcname.c: (FcNameBool):
1536 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1537 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1538 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1539 Polite typechecking for test and edit expressions. Helps
1540 catch errors in the font configuration. (bug 229)
1542 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1544 reviewed by: Keith Packard <keithp@keithp.com>
1547 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1549 2005-01-13 Keith Packard <keithp@keithp.com>
1551 * doc/fontconfig-user.sgml:
1552 Add SEE ALSO section (bug 2085)
1554 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1556 reviewed by: Keith Packard <keithp@keithp.com>
1561 * fc-case/Makefile.am:
1562 * fc-glyphname/Makefile.am:
1563 * fc-lang/Makefile.am:
1564 * src/fontconfig.def.in:
1565 Cross compiling fixes (bug 280)
1567 2005-01-13 Keith Packard <keithp@keithp.com>
1570 Update blanks list (Closes bug 86)
1572 2005-01-04 Keith Packard <keithp@keithp.com>
1574 * src/fccache.c: (FcCacheFontSetAdd):
1575 Verify that every font pattern loaded from cache has
1576 both FC_FILE and FC_FAMILY entries.
1577 Attempt to fix bug #2219.
1579 2004-12-29 Keith Packard <keithp@keithp.com>
1583 * fontconfig/fontconfig.h:
1584 Update for version 2.2.98
1586 2004-12-29 Keith Packard <keithp@keithp.com>
1588 * fontconfig/fontconfig.h:
1589 Document ASCII limitations of Fc character conversion macros
1590 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1591 Fix off-by-one error in utf-8 case walking code.
1592 Add FcStrDowncase (useful for testing case conversion functions)
1594 2004-12-29 Keith Packard <keithp@keithp.com>
1597 * fc-case/.cvsignore:
1598 clean up CVS ignore lists
1599 * fc-lang/iso-3166.txt:
1600 Add territory database
1602 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1604 Reviewed by: Keith Packard
1607 Remove Han characters from Korean orthography
1609 2004-12-29 Keith Packard <keithp@keithp.com>
1612 Reorder utility programs to make sure fc-case is run before fc-lang
1613 as fc-lang uses fcstr.c which uses fccase.h
1617 2004-12-29 Keith Packard <keithp@keithp.com>
1620 Adopt some RedHat suggestions for standard font configuration.
1624 * fc-case/CaseFolding.txt:
1625 * fc-case/Makefile.am:
1626 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1627 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1628 (dump), (parseRaw), (caseFoldReadRaw), (main):
1629 * fc-case/fccase.tmpl.h:
1630 Add new helper program 'fc-case' to construct case folding
1631 tables from standard Unicode CaseFolding.txt file
1634 * src/fclist.c: (FcListValueHash):
1635 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1636 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1637 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1638 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1639 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1640 Re-implement case insensitive functions with Unicode
1641 aware versions (including full case folding mappings)
1643 2004-12-13 Keith Packard <keithp@keithp.com>
1645 reviewed by: Owen Taylor <otaylor@redhat.com>
1647 * src/fcmatch.c: (FcFontSetSort):
1648 I changed FcFontSetSort to respect the generic aliases better
1649 in the face of language matching.
1651 What I did was to ammend the strict sort order used by FcFontSort so
1652 that it 'satisfies' the language specified in the pattern by locating
1653 the best matching font supporting each pattern language and then
1654 ignores language in the remaining fonts for purposes of matching.
1656 So, when asking for 'sans:lang=en', you'll get an English font first,
1657 and then the remaining fonts sorted with respect to the 'sans' alias
1658 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1660 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1662 reviewed by: Keith Packard <keithp@keithp.com>
1664 * fontconfig/fontconfig.h:
1667 Configuration changes to request synthetic emboldening of
1668 fonts. The actual emboldening code will live in Xft.
1670 2004-12-09 John Thacker <thacker@math.cornell.edu>
1672 reviewed by: Keith Packard <keithp@keithp.com>
1676 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1677 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1678 и), and don't even appear in KOI8-R. (The hypothesis that they
1679 don't appear in KOI8-R due to their similarity with Latin I and i is
1680 eliminated by their presence in KOI8-U.) I have a couple of fonts
1681 with Russian support that don't have the letter.
1683 Therefore, 0406 and 0456 should be removed from or commented out of
1686 2004-12-06 michael meeks <mmeeks@novell.com>
1688 Reviewed by: Keith Packard <keithp@keithp.com>
1690 * src/fcinit.c: (FcMemReport):
1692 * src/fclist.c: (FcObjectSetAdd):
1693 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1694 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1695 * src/fcxml.c: (FcParsePatelt):
1696 memoize strings and share a single copy for all uses. Note that
1697 this could be improved further by using statically allocated blocks
1698 and gluing multiple strings together, but I'm basically lazy.
1699 In my environment with 800 font files, I get a savings of about 90KB.
1701 2004-12-06 Keith Packard <keithp@keithp.com>
1705 * config/Makedefs.in:
1708 * doc/fcatomic.fncs:
1709 * doc/fcblanks.fncs:
1710 * doc/fccharset.fncs:
1711 * doc/fcconfig.fncs:
1712 * doc/fcconstant.fncs:
1714 * doc/fcfontset.fncs:
1715 * doc/fcfreetype.fncs:
1717 * doc/fcmatrix.fncs:
1718 * doc/fcobjectset.fncs:
1719 * doc/fcobjecttype.fncs:
1720 * doc/fcpattern.fncs:
1721 * doc/fcstring.fncs:
1722 * doc/fcstrset.fncs:
1724 * doc/fontconfig-devel.sgml:
1725 * doc/fontconfig-user.sgml:
1727 * doc/version.sgml.in:
1728 * fc-cache/Makefile.am:
1729 * fc-cache/fc-cache.c:
1730 * fc-glyphname/Makefile.am:
1731 * fc-glyphname/fc-glyphname.c:
1732 * fc-glyphname/fcglyphname.tmpl.h:
1733 * fc-lang/Makefile.am:
1743 * fc-lang/az_ir.orth:
1777 * fc-lang/fc-lang.c:
1778 * fc-lang/fc-lang.man:
1779 * fc-lang/fclang.tmpl.h:
1824 * fc-lang/ku_ir.orth:
1857 * fc-lang/ps_af.orth:
1858 * fc-lang/ps_pk.orth:
1887 * fc-lang/ti_er.orth:
1888 * fc-lang/ti_et.orth:
1914 * fc-lang/zh_cn.orth:
1915 * fc-lang/zh_hk.orth:
1916 * fc-lang/zh_mo.orth:
1917 * fc-lang/zh_sg.orth:
1918 * fc-lang/zh_tw.orth:
1920 * fc-list/Makefile.am:
1921 * fc-list/fc-list.c:
1922 * fc-match/Makefile.am:
1923 * fc-match/fc-match.1:
1924 * fc-match/fc-match.c:
1925 * fontconfig/fcfreetype.h:
1926 * fontconfig/fcprivate.h:
1927 * fontconfig/fontconfig.h:
1948 Change files from ISO-Latin-1 to UTF-8
1950 2004-12-04 Keith Packard <keithp@keithp.com>
1953 Update links to new freedesktop.org locations
1955 Add uninstall-local to get rid of fonts.conf and local.conf if they
1956 match the distributed versions. Fixes 'make distcheck'
1958 2004-12-04 Keith Packard <keithp@keithp.com>
1962 * fontconfig/fontconfig.h:
1963 Updates for version 2.2.97
1965 2004-12-04 Owen Taylor <otaylor@redhat.com>
1967 reviewed by: Keith Packard <keithp@keithp.com>
1969 * fc-cache/fc-cache.c: (main):
1970 Sleep for two seconds before exiting to make sure timestamps
1971 for future changes have distinct mod times in the file system.
1974 Add Punjabi orthography. Bug #1671.
1976 2004-12-04 Keith Packard <keithp@keithp.com>
1979 Just remove the FC_FONTDATE -- it has locale issues and
1980 annoys redhat multi-arch installs. Now that all X fonts are
1981 included without prejudice, the chances of the date being at
1982 all interesting are rather limited. Bug #505.
1984 Add copyright and license
1986 2004-12-04 Keith Packard <keithp@keithp.com>
1989 Change default set of fonts to include all of
1990 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
1991 * doc/fontconfig-user.sgml:
1992 Document new <include>directory-name</include> semantics
1994 add <include ignore_missing="yes">conf.d</include>
1996 Add selectfont to ignore bitmap fonts, add comment for
1997 selectfont which accepts bitmap fonts.
2000 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2001 Allow <include> configuration elements to reference directories.
2002 Parse and load all files of the form [0-9]* in sorted order.
2004 2004-12-04 Keith Packard <keithp@keithp.com>
2007 Report command line for $srcdir/configure accurately.
2010 2004-12-04 Keith Packard <keithp@keithp.com>
2012 * src/fcfreetype.c: (FcFreeTypeQuery):
2013 Check for non-empty face->family_name and face->style_name
2014 before using those for the font. Empty names match everything.
2017 2004-12-04 Keith Packard <keithp@keithp.com>
2020 * fontconfig/fontconfig.h:
2021 * src/fcfreetype.c: (FcFreeTypeQuery):
2023 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2024 available. This provides font file format information (BDF, Type 1,
2025 PCF, TrueType) for each font. Closes #109.
2027 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2029 reviewed by: Keith Packard <keithp@keithp.com>
2031 * doc/fontconfig-user.sgml:
2034 * fontconfig/fontconfig.h:
2035 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2036 (GetScriptTags), (FcFontCapabilities):
2038 Add detection for font capabilities (bug #105)
2040 2004-12-04 Keith Packard <keithp@keithp.com>
2043 Move existing fonts.conf to fonts.conf.bak
2046 Add detection of iconv
2048 * doc/fcpattern.fncs:
2049 * doc/fontconfig-devel.sgml:
2050 * doc/fontconfig-user.sgml:
2052 Document new selectfont elements
2055 Switch to UTF-8 in comment
2057 * fontconfig/fontconfig.h:
2059 Add fullname, and family/style/fullname language entries
2061 * src/fccache.c: (FcCacheFontSetAdd):
2062 * src/fcdir.c: (FcFileScanConfig):
2063 Respect selectfont/*/glob
2066 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2067 (FcConfigCompareValue), (FcConfigPatternsAdd),
2068 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2069 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2070 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2071 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2072 Add support for selectfont
2074 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2075 (FcStringInPatternElement), (FcFreeTypeQuery):
2076 Add multi-lingual family/style/fullname support
2078 * src/fclist.c: (FcListPatternMatchAny):
2079 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2081 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2082 (FcObjectStaticName):
2083 Add new FcPatternRemove/FcPatternAppend.
2084 FcObjectStaticName stores computed pattern element names which
2085 are required to be static.
2087 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2092 Remove spurious / after $(DESTDIR)
2094 2004-06-30 Keith Packard <keithp@keithp.com>
2098 * fontconfig/fontconfig.h:
2101 2004-06-30 Keith Packard <keithp@keithp.com>
2103 Provided by: Lubos Lunak <l.lunak@suse.cz>
2105 * src/fccfg.c: (FcConfigUptoDate):
2106 However FcConfigUptoDate() doesn't seem to work. See the attached
2107 patch. First there's an obvious misplaced parenthesis making it
2108 return always false, and second, even this call fails to detect font
2109 changes (e.g. adding a new font to
2110 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2111 well. The problem seems to be triggered by my fonts.conf specifying
2112 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2113 doesn't include subdirs, unlike config->fontDirs.
2115 2004-06-03 Keith Packard <keithp@keithp.com>
2117 * fontconfig/fontconfig.h:
2118 Remove comma at end of FcResult enum definition.
2120 2004-05-29 Keith Packard <keithp@keithp.com>
2123 Add steps to md5sum release
2125 2004-05-29 Keith Packard <keithp@keithp.com>
2129 * fontconfig/fontconfig.h:
2132 2004-05-29 Keith Packard <keithp@keithp.com>
2134 * fontconfig/fontconfig.h:
2135 * src/fcmatch.c: (FcFontSetMatch):
2136 Add FcResultOutOfMemory to provide an accurate error when
2137 FcFontSetMatch fails in this way
2140 Make #warning about lacking various FreeType features indicate
2141 which version those features appeared so users know how to
2142 fix the problem (Thanks to Anton Tropashko)
2144 2004-05-05 Keith Packard <keithp@keithp.com>
2146 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2147 Replace MIN/MAX/ABS macros which happen to have come
2148 from FreeType with fontconfig-specific ones (FC_*)
2150 2004-04-23 Keith Packard <keithp@keithp.com>
2153 Extend release preparation instructions to include
2154 notification and distribution steps
2156 2004-04-23 Keith Packard <keithp@keithp.com>
2160 * fontconfig/fontconfig.h:
2161 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2163 2004-04-23 Keith Packard <keithp@keithp.com>
2166 Ignore a few more autotool files
2168 2004-04-14 Keith Packard <keithp@keithp.com>
2171 Add instructions for doing a release
2173 * fontconfig.spec.in:
2174 clean up .spec file; perhaps this will be useful to somebody...
2178 * fontconfig/fontconfig.h:
2181 * fc-lang/fc-lang.c:
2182 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2184 * fc-glyphname/Makefile.am:
2185 * fc-lang/Makefile.am:
2186 * fc-list/Makefile.am:
2187 * fc-match/Makefile.am:
2189 Add WARN_CFLAGS to pass -W flags for GCC systems
2191 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2192 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2193 Change various char types around to match across
2195 Fixed bug in using available_sizes[i].height which
2196 is in pixels, not 64ths of a pixel.
2198 2004-03-06 Keith Packard <keithp@keithp.com>
2200 * src/fcfreetype.c: (FcFreeTypeQuery):
2201 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2202 matches looking for explicit values prefer exact matches
2204 2004-03-02 Keith Packard <keithp@keithp.com>
2206 Supplied by: mfabian@suse.de (Mike FABIAN)
2208 * src/fcfreetype.c: (FcFreeTypeQuery):
2209 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2210 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2212 2004-02-21 Manish Singh <yosh@gimp.org>
2214 * fc-glyphname/fc-glyphname.c: (main):
2215 Cast strlen to int for printf, so we're 64-bit clean.
2217 2004-02-11 Keith Packard <keithp@keithp.com>
2220 * src/fcfreetype.c: (FcGetPixelSize):
2221 Ok, so I messed up the test for y_ppem. Let's see if I
2222 got it right this time.
2224 2004-02-10 Keith Packard <keithp@keithp.com>
2227 * src/fcfreetype.c: (FcGetPixelSize):
2228 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2229 FT_Bitmap_Size record. Add a configure.in test for this
2230 and change the code accordingly (using height instead).
2232 2004-02-06 Keith Packard <keithp@keithp.com>
2235 Add Low Saxon orthography
2236 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2238 * src/fccfg.c: (FcConfigNewestFile):
2239 Oops. Left 'newest.set' unset, which would miscompute
2242 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2243 (FcFreeTypeCheckGlyph):
2244 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2245 font properties (which report the wrong value in current FreeType)
2247 Don't attempt to check for empty glyphs in non-scalable fonts; they
2250 2004-02-01 Tor Lillqvist <tml@iki.fi>
2252 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2253 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2254 cache if config->cache is NULL, which happens if FcConfigHome() is
2255 NULL. Guard against that by using the temp folder in that case.
2257 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2259 * fc-lang/az_ir.orth:
2260 * fc-lang/ku_ir.orth:
2261 * fc-lang/ps_af.orth:
2262 * fc-lang/ps_pk.orth:
2263 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2264 (Afghan and Pakistani).
2266 Updated Urdu orthography with real data.
2268 2003-12-11 Carl Worth <cworth@east.isi.edu>
2270 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2273 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2275 (all-local): Remove excessive whitespace.
2277 * autogen.sh: Add 'set -e' to abort when any program fails,
2278 (avoids printing of 'now type make' after configure aborts).
2280 2003-11-17 Eric Christopherson <rakko@charter.net>
2282 reviewed by: Keith Packard <keithp@keithp.com>
2285 * fontconfig/fcfreetype.h:
2287 Switch to FreeType 2.1.7 style includes. Bug #150.
2289 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2291 * fc-list/fc-list.sgml: Add some example usages.
2293 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2296 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2299 2003-10-27 Keith Packard <keith@keithp.com>
2302 * fontconfig/fontconfig.h:
2303 Update to version 2.2.92
2305 2003-10-27 Keith Packard <keithp@keithp.com>
2310 * fc-cache/Makefile.am:
2311 * fc-glyphname/Makefile.am:
2312 * fc-lang/Makefile.am:
2313 * fc-list/Makefile.am:
2314 * fc-match/Makefile.am:
2317 Yet more cleanups to finish getting 'make distcheck' working
2318 This has been tested to ensure that it even works from a _build
2321 2003-10-26 Keith Packard <keithp@keithp.com>
2325 * fc-cache/Makefile.am:
2326 * fc-glyphname/Makefile.am:
2327 * fc-lang/Makefile.am:
2328 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2329 * fc-list/Makefile.am:
2330 * fc-match/Makefile.am:
2331 Attempts to fix 'make distcheck' work. Things are
2332 progressing pretty well, but there are still failures
2333 long into the process dealing with docs (as always).
2335 The big changes here are mostly to make $(srcdir) != "."
2336 work correctly, fixing the docbook related sections and
2337 fc-lang were particularily tricky. Docbook refuses to load
2338 system entities from anywhere other than where the original .sgml
2339 file was located, so no luck looking in "." for the
2340 configure-generated version.sgml and confdir.sgml files.
2342 fc-lang needed help finding .orth files; added a -d option
2343 to set the directory as the least evil of many options.
2345 Now to go use a faster machine and try and wring out the last
2348 2003-10-26 Keith Packard <keithp@keithp.com>
2352 2003-10-26 Keith Packard <keithp@keithp.com>
2355 Include confdir.sgml.in in EXTRA_DIST
2357 2003-10-09 Josselin Mouette <joss@debian.org>
2359 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2360 * fc-list/fc-list.sgml fc-list/Makefile.am:
2361 Replace fc-cache and fc-list manpages with more detailed, SGML
2364 2003-09-23 Owen Taylor <otaylor@redhat.com>
2366 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2367 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2368 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2371 2003-09-23 Owen Taylor <otaylor@redhat.com>
2373 * fc-lang/ka.orth: Remove Georgian capitals, they
2374 aren't used for normal writing. (Bug #116)
2376 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2378 * doc/fontconfig-devel.sgml:
2379 * doc/fontconfig-user.sgml:
2380 * fontconfig/fontconfig.h:
2382 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2383 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2385 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2386 monospace and dual-width fonts, allow roughly a 3% variance in the
2389 2003-08-31 Manish Singh <yosh@gimp.org>
2391 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2394 2003-08-15 Carl Worth <cworth@isi.edu>
2396 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2397 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2399 * src/fcpat.c (FcValueListEntDestroy): New function to support
2400 FcFini memory cleanup. Some statistics are not kept in
2402 (FcValueListFreeze): Move hashTable outside this function so it
2403 can be accessed by FcValueListThawAll.
2404 (FcValueListThawAll): New function complements FcValueListFreeze.
2405 (FcPatternBaseFreeze): Move hashTable outside this function so it
2406 can be accessed by FcPatternBaseThawAll.
2407 (FcPatternBaseThawAll): New function complements
2408 FcPatternBaseFreeze.
2409 (FcPatternThawAll): New function complements FcPatternFreeze.
2411 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2413 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2414 allocated FcCharLeafEnt "blocks" so they can be freed later.
2415 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2416 can be accessed by FcCharSetThawAllLeaf.
2417 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2418 (FcCharSetFreezeBase): Move hashTable outside this function so it
2419 can be accessed by FcCharSetThawAll.
2420 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2422 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2423 (FcConfigDestroy): Fic leak of FcBlanks.
2425 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2426 (main): Add call to FcFini when finished.
2428 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2429 static. Add prototypes.
2431 * doc/fcinit.fncs: Add documentation for FcFini function.
2433 * doc/edit-sgml.c: Mark several local functions as static. Add
2436 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2438 2003-06-15 Tor Lillqvist <tml@iki.fi>
2440 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2441 before comparing (needed on Windows).
2443 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2445 2003-06-13 Tor Lillqvist <tml@iki.fi>
2447 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2450 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2451 WINDOWSFONTDIR token.
2453 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2454 end, not to confuse libtool, which expects the EXPORTS line to be
2455 the first. Add FcConfigEnableHome.
2457 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2458 built as a DLL on Win32.
2460 2003-06-09 Keith Packard <keithp@keithp.com>
2462 * Tag version 2.2.90
2464 2003-06-09 Keith Packard <keithp@keithp.com>
2466 * Optimization in FcLangSetIndex was broken, occasionally
2467 returning a pointer to the wrong location on miss
2469 * Add fc-match to test font matching from the command line.
2471 2003-05-31 Keith Packard <keithp@keithp.com>
2473 * (Bug 85) add support for culmus fonts
2474 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2475 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2477 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2479 * Fix "contains" op for strings and langsets.
2481 2003-05-17 Keith Packard <keithp@keithp.com>
2483 * Fix build error with BDF prop local. Free langset after query
2485 2003-05-14 Keith Packard <keithp@keithp.com>
2487 * Extract spacing from XLFD atom
2489 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2491 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2492 disappeared in 1.30.
2494 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2496 2003-05-12 Keith Packard <keithp@keithp.com>
2498 * Use FcIsWidth to share code
2500 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2501 misclassifying some Han fonts as monospaced.
2503 2003-05-07 Keith Packard <keithp@keithp.com>
2505 * Add filename-based accept/reject to ammend available fonts.
2507 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2508 older FreeType releases.
2510 2003-05-06 Keith Packard <keithp@keithp.com>
2512 * Remove 0b82 and Tamil numbers from tamil
2513 orthography (Jungshik Shin <jshin@mailaps.org>)
2515 2003-05-04 Keith Packard <keithp@keithp.com>
2517 + Map glyph names in fonts with adobe custom encoding to unicode
2519 2003-05-02 Keith Packard <keithp@keithp.com>
2521 * Add FC_WEIGHT_BOOK as weight 75
2523 2003-04-30 Keith Packard <keithp@keithp.com>
2525 * Typo in bitstream foundry name
2527 2003-04-24 Keith Packard <keithp@keithp.com>
2529 * Eliminate italic_angle check for PS fonts
2531 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2533 * Getting closer to fixing /etc/fonts hard-coding.
2535 2003-04-22 Keith Packard <keithp@keithp.com>
2537 * Update autogen.sh to work with newer automake versions
2538 * Handle pattern elements moving during multiple edits
2540 2003-04-23 James Henstridge <james@daa.com.au>
2542 * doc/fontconfig-devel.sgml: close the <para> element.
2544 * doc/fcpattern.fncs: close the <para> element.
2546 * doc/func.sgml: close the <refsynopsisdiv> element.
2548 2003-04-22 Keith Packard <keithp@keithp.com
2550 * Update autogen.sh to work with newer automake versions
2551 * Handle pattern elements moving during multiple edits
2553 2003-04-17 Colin Walters <walters@debian.org>
2555 + Remove some unused variables, and initialize some other ones so
2556 gcc doesn't warn us.
2558 2003-04-16 Keith Packard <keithp@keithp.com>
2560 + tag version 2.1.94
2562 2003-04-16 Keith Packard <keithp@keithp.com>
2564 + add BDF property fetching support for foundry
2565 (from Juliusz Chroboczek)
2566 + add BDF property fetching support for width
2568 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2570 + Implemented foundry generation for Type 1 and TrueType
2572 2003-04-11 Gerard Escalante <g2@magestudios.net>
2574 + Retrieve information from Type1 FontInfo dictionaries
2576 2003-04-07 Colin Walters <walters@verbum.org>
2578 + src/Makefile.am: Fix dummy makefile target names when
2579 MS_LIB_AVAILABLE isn't set.
2581 2003-03-22 Tor Lillqvist <tml@iki.fi>
2583 Changes for Windows:
2585 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2587 + We don't want to hardcode the fonts.conf file location in the
2588 DLL, so we look up the DLL location at run-time in a DllMain()
2589 function. The fonts.conf location is deduced from that.
2591 + The colon can't be used as path separator on Windows,
2592 semicolon is used instead. File path components can be separated
2593 with either slash or backslash. Absolute paths can also begin
2594 with a drive letter.
2596 + Add internal function FcStrLastSlash that strrchr's the last
2597 slash, or backslash on Windows.
2599 + There is no link() on Windows. For atomicity checks, mkdir a
2600 lock directory instead.
2602 + In addition to HOME, also look for USERPROFILE.
2604 + Recognize the special font directory token WINDOWSFONTDIR, to
2605 use the system's font directory.
2607 + Remove the fontconfig-def.cpp that was obsolete. Add
2608 fontconfig.def(.in), without internal functions.
2610 + Add a fontconfig-zip(.in) script, used to build a binary
2613 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2614 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2615 to main package and man3/* to devel package
2617 + Added missing defattr(-, root, root) to main RPM package
2619 + Added HTML and text development documentation to -devel subpackage
2621 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2622 + Added back the configure macro options --disable-docs, otherwise
2623 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2624 version number) unconditionally, causing RPM to fail the build due
2625 to _unpackaged_files_terminate_build. We pick up the pregenerated
2626 docs with %doc already.
2628 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2629 + Removed commented out rpm macro define at top of spec file,
2630 replacing it with a simple explanation, since rpm macros are
2631 expanded by rpm even in comments.
2633 + Changed /usr/bin to _bindir in BuildRequires lines
2635 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2637 + Reorganized file manifest lists
2639 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2641 + fontconfig.spec.in: Improvements from Red Hat spec file.
2643 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2645 + docs/*.sgml: SGML fixes.
2647 Sat Mar 1 17:28:53 PST 2003 keithp
2648 + Ok, so the ChangeLog is a bit out of date
2650 + Lots of bugs fixed; most are in bugzilla, the
2651 biggest problems were in cache management where
2652 Owen discovered the library would lose badly when
2653 combining fonts-cache and ~/.fonts-cache data
2655 + Converted from autoconf to automake. This after
2656 getting patches accepted into libtool to allow
2657 the '-version-number' argument which lets
2658 packages set version numbers explicitly rather
2659 than the roundabout libtool way
2661 + Converted documentation to SGML using the docbook
2662 DTD. Now .txt and .html documents are installed
2663 in /usr/share/doc/fontconfig and there's no
2664 man page. Perhaps a man version can be written
2667 Sat Aug 31 15:21:22 PDT 2002 keithp
2668 + Xrender and Xft had several bugs related to
2669 rendering manually placed or poly-face text
2671 + Added more complete memory tracing in fontconfig
2672 Checked with (patched) mozilla and found no leaks
2674 + Updated Latin orthographies by comparing those from
2675 evertype.com with those from eki.ee. Tried to make
2676 sensible choices, including chars that occured in both
2677 and leaving some optional chars out that occured only
2680 Mon Aug 26 16:33:04 PDT 2002 keithp
2681 + Owen discovered that FcLangSetHasLang wasn't actually
2682 checking the language set.
2684 Mon Aug 26 13:37:23 PDT 2002 keithp
2685 + Append a version number to cache filenames
2687 Thu Aug 22 11:36:18 PDT 2002 keithp
2689 + Add "contains" and "not_contains" operators and elements to
2692 + Changed semantics of eq operator for LangSets to check for
2693 FcLangEqual so that any match will do
2695 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2696 of FcValueEqual to check for identical values when inserting into
2697 the results. This broke when the above semantic change was made,
2698 now it uses FcValueEqual which is "more correct" in any case.
2700 Thu Aug 22 00:32:29 PDT 2002 keithp
2702 + Reimplement FC_LANG as new datatype. Lists of strings
2703 was consuming over a megabyte of memory for 401 fonts.
2705 + Freeze patterns loaded from cache files. This shares
2706 common value lists and common patterns which saves
2707 considerable memory.
2709 + Change the denotation of 'constant' charsets to use special
2710 ref value instead of separate boolean.
2712 + Clean up leak tracing stuff, found several unannoted alloc/free
2715 Tue Aug 20 16:17:37 PDT 2002 keithp
2717 + Fix memory leak when parsing matrices from XML
2719 Mon Aug 19 11:57:27 PDT 2002 keithp
2721 + Fix autoconf files to pass FONTCONFIG_PATH on
2722 compile line so that ${prefix} gets substituted
2725 + Use getc_unlocked/putc_unlocked on systems that
2726 provide them to avoid damage done to stdio by posix
2728 + Eliminate FC_PATTERN and FcTypePattern in favor of
2729 an extended api for FcConfigSubstitute which takes
2730 both the font and the pattern.
2732 + Add 'sans serif' alias for 'sans-serif' as some apps
2733 can't handle hyphens in family names
2735 + Eliminate pretense of support for libxml2
2737 + Comment origins of Han orthographies
2739 Tue Jul 30 18:37:09 PDT 2002 keithp
2741 + Add binding property to edit element so that strong
2742 binding values may be inserted by the config file.
2743 The default remains weak.
2745 Sun 28 Jul 04:16:55 PDT 2002 keithp
2747 + Tagged release candidate 1 in the CVS tree and
2748 placed fcpackage.rc1.tar.gz for distribution
2750 Thu Aug 1 08:55:08 PDT 2002 keithp
2752 + Fixed autoconf builds to always specify install
2753 target files (for BSD). Also fixed to
2754 define FONTCONFIG_PATH in config.h so that
2755 nonstandard installs will actually work.