1 2006-02-07 Patrick Lam <plam@mit.edu>
2 * src/fccache.c (FcCacheReadDirs):
6 2006-02-07 Patrick Lam <plam@mit.edu>
7 * src/fcdir.c (FcDirScanConfig):
9 Don't reject dirs that can't be normalized (fixes lilypond, and
10 is correct in the context of application font directories.)
12 2006-02-07 Takashi Iwai <tiwai@suse.de>
15 * src/fccache.c (FcCacheReadDirs):
17 Use normalized directory name exclusively in FcCacheReadDirs.
19 2006-02-07 Dirk Mueller <dmueller@suse.com>
22 * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate):
24 Perf optimizations. Inline FcValueCanonicalize,
25 reduce FcValueListPtrU usage, remove redundant cast.
27 2006-02-07 Takashi Iwai <tiwai@suse.de>
30 * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
33 Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
34 Declare extern for static arrays as arrays, not pointers.
35 (Part of the fix for 'fonts don't have en' issue after Euro patch.)
37 2006-02-07 Dirk Mueller <dmueller@suse.com>
50 Add Euro sign to list of symbols required by European languages.
52 2006-02-07 Patrick Lam <plam@mit.edu>
53 * src/fccache.c (FcCacheReadString):
55 Fix hidden variable warning.
57 2006-02-07 Dirk Mueller <dmueller@suse.com>
60 * src/fccache.c (FcCacheReadString, FcCacheSkipString):
62 Remove de-escaping logic because FcCacheWriteString
63 doesn't escape anyway. Do blockwise reading instead
64 of byte-wise for performance.
66 2006-02-06 Patrick Lam <plam@mit.edu>
67 Takashi Iwai <tiwai@suse.de>
69 * src/fccache.c (FcCacheReadDirs, FcCacheRead):
71 Don't loop infinitely on recursive symlinks (client-side).
73 2006-02-06 Takashi Iwai <tiwai@suse.de>
75 * fc-cache/fc-cache.c (scanDirs, main):
77 Don't loop infinitely on recursive symlinks.
79 2006-02-06 Takashi Iwai <tiwai@suse.de>
81 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
82 FcGlobalCacheDirFind, FcGlobalCacheUpdate,
83 FcGlobalCacheSave, FcCacheReadDirs):
86 Skip subdirs when skipping over stale bits of global cache.
87 Introduce state machine into FcGlobalCacheDir to avoid
88 doing inappropriate operations on global dir entries, e.g.
89 writing out an out-of-date cache entry.
91 2006-02-06 Takashi Iwai <tiwai@suse.de>
93 * src/fcdir.c (FcFileScanConfig):
95 Hoist FcFileIsDir check out of FcFileScanConfig loop.
97 2006-02-06 Takashi Iwai <tiwai@suse.de>
100 * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
101 FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
103 Don't rescan when trying to normalize a non-declared font dir.
104 Don't add font dirs multiple times (even if they're aliased).
106 2006-02-06 Dirk Mueller <dmueller@suse.de>
109 * src/fcfs.c (FcFontSetUnserialize):
111 Explain apples/oranges comparison and fix compilation error.
113 2006-02-06 Dirk Mueller <dmueller@suse.de>
116 * src/fcfs.c (FcFontSetUnserialize):
118 Insert check for integer overflow in # of fonts.
120 2006-02-04 Behdad Esfahbod <behdad@cs.toronto.edu>
124 * fc-cache/Makefile.am:
125 * fc-cat/Makefile.am:
126 * fc-list/Makefile.am:
128 Make 'make distcheck' work with automake 1.6.3.
130 2006-02-03 Takashi IWAI <tiwai@suse.de>
133 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
136 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
137 FcDirCacheConsume, FcDirCacheWrite)
138 * src/fcxml.c (FcConfigMessage):
140 Check I/O call return values and eliminate unused variable
143 2006-02-03 Takashi Iwai <tiwai@suse.de>
146 * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
150 2006-02-03 Dirk Mueller <dmueller@suse.de>
153 * src/fcfs.c (FcFontSetUnserialize):
155 Gracefully handle the case where a cache asserts that it
156 has a negative number of fonts, causing overflow.
158 2006-02-03 Patrick Lam <plam@mit.edu>
159 * src/fccache.c (FcDirCacheUnlink):
161 Fix double free in error case.
163 2006-01-31 Behdad Esfabod <behdad@cs.utoronto.edu>
164 Stephan Kulow <coolo@suse.de>
167 * fc-cache/Makefile.am:
169 Replace 'stamp' target with mkinstalldirs.
171 2006-01-31 Mike Fabian <mfabian@suse.de>
174 * src/fccache.c (FcGlobalCacheLoad):
176 Toast broken global cache files.
178 2006-01-30 Patrick Lam <plam@mit.edu>
179 * src/fccache.c (FcGlobalCacheReadDir):
181 Actually use the directories that I added to the global cache.
184 2006-01-30 Mike Fabian <mfabian@suse.de>
187 * fc-cache/fc-cache.c (scanDirs):
189 Don't stop scanning if a directory in fonts.conf doesn't
190 exist, because subsequent directories might exist.
192 2006-01-30 Patrick Lam <plam@mit.edu>
193 * src/fccache.c (FcGlobalCacheLoad):
195 Make global cache work again after putting dir names into global
196 cache (I misplaced the recording of a file offset).
198 2006-01-30 Patrick Lam <plam@mit.edu>
199 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
201 Update fc-cat to handle subdir lists in global cache file.
203 * src/fccache.c (FcGlobalCacheLoad):
205 Another FcCacheReadString return value check.
207 2006-01-30 Mike Fabian <mfabian@suse.de>
210 * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
211 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
213 Make fccache more resilient to broken cache files by checking
214 return value of FcCacheReadString all the time.
216 2006-01-30 Frederic Crozat <fcrozat@mandriva.com>
219 * fc-match/fc-match.1:
220 * fc-lang/fc-lang.man:
222 Remove references to dead fontconfig(3) manpages in
223 other fontconfig manpages.
225 2006-01-29 Behdad Esfabod <behdad@cs.utoronto.edu>
228 * doc/fcpattern.fncs:
230 Fix world's tiniest typo in code example.
232 2006-01-29 Mike Fabian <mfabian@suse.de>
235 * src/fccache.c (FcGlobalCacheReadDir):
237 Fix global cache reads of subdirectories.
239 2006-01-29 Patrick Lam <plam@mit.edu>
241 Add documentation for FcConfigNormalizeFontDir.
243 * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
244 FcGlobalCacheUpdate, FcGlobalCacheSave):
245 * src/fcdir.c (FcDirScanConfig):
248 Write directory information to global caches to fix make check
249 (reported by Ronny V. Vindenes). This changes the global cache
252 2006-01-27 Patrick Lam <plam@mit.edu>
253 * fc-cache/fc-cache.c (scanDirs):
254 * fontconfig/fontconfig.h:
256 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
258 Move FcConfigNormalizeFontDir call so that it doesn't result in
259 infinite recursion (reported by Ronny V. Vindenes).
261 2006-01-26 Patrick Lam <plam@mit.edu>
262 * src/fccache.c (FcDirCacheValid, FcDirCacheHasCurrentArch):
263 * src/fccfg.c (FcConfigNormalizeFontDir):
265 Add a couple of missing normalizations to make fc-cache work
266 right; only scan subdirectories once.
268 2006-01-26 Mike Fabian <mfabian@suse.de>
271 * src/fcacache.c (FcGlobalCacheReadDir):
273 Don't crash on non-existant directories in global cache.
275 2006-01-26 Patirck Lam <plam@mit.edu>
276 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
277 * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
278 * src/fcdir.c (FcDirScanConfig):
279 * src/fcxml.c (FcEndElement):
281 Stop trampling the directory name when writing out caches.
282 (with Mike Fabian:) Beef up FcConfigNormalizeFontDir to scan
283 subdirs when necessary. Don't scan directories that can't be
286 2006-01-25 Patrick Lam <plam@mit.edu>
287 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
288 * src/fccfg.c (FcConfigEvaluate):
289 * src/fcfreetype.c (FcPatternAddWithBinding):
291 Fix additional memory leaks reported by Ronny V. Vindenes: don't
292 invoke FcValueSave on hashed static strings in
293 FcPatternAddWithBinding.
295 Add another st_dev check in FcDirCacheOpen.
297 2006-01-24 James Su <james.su@gmail.com>
300 * src/fcfreetype.c (FcFreeTypeIsExclusiveLang):
301 * fc-lang/zh_hk.orth:
303 Treat zh-hk fonts differently from zh-tw fonts. This patch may
304 cause fontconfig to treat A-X fonts differently from A-Y fonts;
305 please mail the fontconfig list if this causes any problems.
307 2006-01-24 Patrick Lam <plam@mit.edu>
308 * src/fccache.c (FcDirCacheUnlink, FcDirCacheWrite):
309 * src/fcfreetype.c (FcFreeTypeQuery):
311 Fix memory leaks reported by Ronny V. Vindenes.
313 2006-01-19 Andreas Schwab <schwab@suse.de>
316 * src/fcpat.c (FcStrNeededBytes):
318 Fix for unaligned memory accesses.
320 2006-01-18 Mike Fabian <mfabian@suse.de>
323 * src/fcdir.c (FcDirScanConfig):
325 Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
326 calls to avoid crashes.
328 2006-01-14 Patrick Lam <plam@mit.edu>
329 * src/fccache.c (FcDirCacheConsume):
331 Fix segfault when consuming zero-length caches in fc-cat
332 (which has no config, so FcConfigAddFontDir shouldn't be called.)
334 2006-01-14 Patrick Lam <plam@mit.edu>
335 * fc-cache/fc-cache.c (scanDirs):
336 * fontconfig/fontconfig.h:
337 * src/fccache.c (FcGlobalCacheReadDir, FcGlobalCacheUpdate,
338 FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen):
339 * src/fccfg.c (FcConfigBuildFonts, FcConfigNormalizeFontDir):
340 * src/fcdir.c (FcDirScanConfig):
343 Compare device numbers as well as inodes.
344 Always normalize directory names before comparing them.
346 2006-01-11 Mike Fabian <mfabian@suse.de>
349 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
351 Allocate extra space for appended '/' in directory name.
353 2006-01-10 Patrick Lam <plam@mit.edu>
354 * src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
355 FcDirCacheValid, FcDirCacheHasCurrentArch,
356 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
357 * fc-cache/fc-cache.c (main):
359 Explicitly add font dirs to config.fontDirs even if they're empty.
360 Set current config in fc-cache.c.
361 Fix treatment of cache directory as read from cache file; don't
362 use string equality to determine if we have the right file,
365 2006-01-09 Patrick Lam <plam@mit.edu>
366 * fc-cache/fc-cache.c (scanDirs):
367 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
368 * src/fccache.c (FcGlobalCacheReadDir, FcCacheReadDirs,
369 FcDirCacheRead, FcDirCacheConsume, FcDirCacheWrite):
370 * src/fccfg.c (FcConfigNormalizeFontDir):
371 * src/fcdir.c (FcDirScanConfig):
374 Normalize font dirs by using the form, as given in fonts.conf, and
375 recorded in FcConfig's fontDirs string set, as canonical.
377 Actually update config.fontDirs as font directories are scanned.
379 2006-01-08 James Su <james.su@gmail.com>
380 * src/fcmatch.c (FcFontSetMatch):
382 Fix matching bug when multiple elements match; don't use
383 the sum of all scores, but the best score.
385 Also more perf opts, e.g. evaluate best over all font sets
386 rather than on a per-set basis (and other changes).
388 2006-01-08 Patrick Lam <plam@mit.edu>
389 * src/fccache.c (FcDirCacheConsume):
391 Properly skip past dir caches that contain zero fonts (as occurs
392 in global caches.) Reported by Mike Fabian.
394 2006-01-06 Patrick Lam <plam@mit.edu>
395 * src/fcdbg.c (FcPatternPrint):
397 Print out full pathname in fc-match -v as well. Reported by
400 2006-01-06 Mike Fabian <mfabian@suse.de>
403 * src/fcname.c (FcNameParse):
405 Fix bug where fc-match crashes when given __DUMMY__ property to
408 (I added the __DUMMY__ string to enable callers of
409 FcObjectToPtrLookup to distinguish an error return from a
410 successful return. -PL)
412 2006-01-05 Patrick Lam <plam@mit.edu>
415 Add self to AUTHORS list.
417 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint,
418 FcCacheFileRead, FcCachePrintSet, main):
419 * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheUpdate,
420 FcGlobalCacheSave, FcCacheNextOffset,
421 FcDirCacheHasCurrentArch, FcDirCacheRead,
422 FcDirCacheConsume, FcDirCacheWrite):
424 * src/fcpat.c (comment):
426 Minor change to global cache file format to fix fc-cat bug
427 reported by Frederic Crozat, and buglet with not globally caching
428 directories with zero fonts cached.
430 2006-01-02 Lubos Lunak <l.lunak@suse.cz>
433 * src/fccfg.c (FcConfigEvaluate):
435 Fix double-free which occurs because FcValueCanonicalize doesn't
436 create an extra copy of the returned value, it only canonicalizes
439 2006-01-02 Patrick Lam <plam@mit.edu>
440 * doc/fontconfig-user.sgml:
442 Fix version of .cache file (currently 1 -> currently 2). Reported
445 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
448 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
450 Shut up GCC warnings on amd.
452 2005-12-20 Patrick Lam <plam@mit.edu>
456 * fontconfig/fontconfig.h:
458 Bump version to 2.3.93.
460 2005-12-20 Patrick Lam <plam@mit.edu>
461 * src/fccharset.c (FcLangCharSetPopulate):
462 * src/fcint.h (FcCacheBankToIndex):
464 Avoid check on _fcBankId nullness and fix case where it used to
467 2005-12-20 Patrick Lam <plam@mit.edu>
468 * src/fcxml.c (FcConfigParseAndLoad):
470 Use open instead of fopen (requested by Phil Race for Sun).
472 2005-12-20 Patrick Lam <plam@mit.edu>
473 * src/fccache.c (FcDirCacheWrite);
474 * fc-cache/Makefile.am:
476 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
479 2005-12-20 Patrick Lam <plam@mit.edu>
480 * src/fcfreetype.c (FcFreeTypeQuery):
482 Restore code to skip over PCF fonts that have no encoded
484 (We guess that a font is PCF by presence of the PIXEL_SIZE
487 2005-12-12 Patrick Lam <plam@mit.edu>
488 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
490 Read and write the original location as a fallback for the
491 hashed cache file locations. This is mostly for users to be
492 able to have per-directory cache files.
494 2005-12-12 Patrick Lam <plam@mit.edu>
495 * fc-cache/fc-cache.c (scanDirs):
496 * fc-cache/Makefile.am:
497 * src/fccache.c (FcDirCacheHashName):
499 Improve error message when fc-cache can't write the cache. Add
500 missing slash. Reported by Behdad. Incorporate Behdad's patch to
501 create /var/cache/fontconfig when appropriate.
503 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
506 * src/fcxml.c (FcConfigGetAttribute):
508 Fix crash reported by Frederic Crozat when using libxml2.
510 2005-12-09 Patrick Lam <plam@mit.edu>
513 * fc-cache/Makefile.am:
514 * fc-cat/Makefile.am:
516 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
517 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
518 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
519 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
520 FcDirCacheHasCurrentArch, FcDirCacheHashName,
521 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
523 Migrate cache files from fonts directories to
524 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
525 but requires that all caches get rebuilt.
527 Also, autogen.sh now needs the additional parameter
528 --localstatedir=/var.
530 2005-12-07 Patrick Lam <plam@mit.edu>
531 * src/fcpat.c (FcPatternAddString):
533 Because we've changed FcPatternAddString to use FcStrStaticName
534 and not FcValueSave, explicitly handle the case of a null string.
536 2005-12-06 Patrick Lam <plam@mit.edu>
537 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
541 2005-12-05 Patrick Lam <plam@mit.edu>
542 * src/fcname.c (FcNameGetObjectType):
544 Don't assign types to user object names.
546 2005-12-05 Patrick Lam <plam@mit.edu>
547 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
549 Don't free strings that have been returned from FcStrStaticName.
551 2005-12-01 Patrick Lam <plam@mit.edu>
552 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
554 Add codepath for reading global cache files as well.
556 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
559 * conf.d/10-fonts.persian.conf:
560 * conf.d/Makefile.am:
562 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
564 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
567 * src/fcxml.c (FcConfigParseAndLoad):
569 Only add a config file to the set of config files once.
571 2005-11-29 Patrick Lam <plam@mit.edu>
572 * src/fcint.h (FcCacheBankToIndex);
574 Fix segfault by guarding array dereference.
576 2005-11-29 Dirk Mueller <dmueller@suse.de>
580 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
581 FcCacheBankToIndex, FcCacheBankToIndexMTF,
585 Refactor FcCacheBankToIndex into an inlineable part
586 (in fcint.h) which checks the front of the list and a
587 non-inlineable part which finds and moves the appropriate element
588 to the front of the list.
590 2005-11-29 Patrick Lam <plam@mit.edu>
591 * src/fccfg.c (FcConfigBuildFonts):
592 * src/fccache.c (FcCacheReadDirs):
594 Make the perf guys hate me a bit less: hoist the directory-name
595 FcConfigAcceptFont check for cached fonts up to directory cache
596 read time, rather than running it for each font.
598 2005-11-29 Patrick Lam <plam@mit.edu>
599 * src/fccfg.c (FcConfigBuildFonts):
601 * src/fcpat.c (FcPatternFindFullFname):
603 Don't make FcPatternFindFullFname available to fccfg, it's not
604 really safe. Instead go through FcPatternGetString (sorry,
605 perf guys.) Also, use globs for dirs as well.
607 2005-11-28 Patrick Lam <plam@mit.edu>
608 * src/fccfg.c (FcConfigBuildFonts):
612 2005-11-28 Patrick Lam <plam@mit.edu>
614 * src/fcpat.c (FcPatternFindFullFname):
615 * src/fccfg.c (FcConfigBuildFonts):
617 Fix problem dating back at least to 2.3.2 where globs weren't
618 being applied to patterns loaded from a cache.
620 2005-11-28 Patrick Lam <plam@mit.edu>
621 * doc/fontconfig-user.sgml:
623 Fix some obvious spelling mistakes.
625 2005-11-28 Dirk Mueller <dmueller@suse.com>
626 Stephan Kulow <coolo@suse.de>
629 * src/fcmatch.c (FcFontSetMatch):
631 Don't kill all fonts during match (oops!)
634 2005-11-25 Dirk Mueller <dmueller@suse.com>
635 Stephan Kulow <coolo@suse.de>
636 Michael Matz <matz@suse.de>
639 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
642 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
643 inline FcCompare into FcFontSetMatch and reorder the
644 loops, adding a boolean array which blocks patterns from future
645 consideration if they're known to not be best on some past
648 2005-11-26 Dirk Mueller <dmueller@suse.com>
651 * src/fcmatch.c (FcCompareValueList):
655 2005-11-25 Patrick Lam <plam@mit.edu>
656 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
658 Don't do random matching when bad objects are passed into
661 2005-11-25 Patrick Lam <plam@mit.edu>
663 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
664 FcPatternSerialize, FcPatternUnserialize,
665 FcValueListEnsureBank, FcValueListDistributeBytes,
666 FcValueListUnserialize):
668 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
669 _fcPatternElts, _fcValueLists for consistency.
671 2005-11-25 Dirk Mueller <dmueller@suse.com>
676 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
678 2005-11-25 Patrick Lam <plam@mit.edu>
680 * src/fccache.c (FcDirCacheConsume):
681 * src/fccharset.c (FcCharSetUnserialize):
682 * src/fcfs.c (FcFontSetUnserialize):
683 * src/fclang.c (FcLangSetUnserialize):
684 * src/fcname.c (FcObjectUnserialize):
685 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
686 FcPatternUnserialize):
688 Pass around FcCache *s to the Unserialize functions for extra
689 consistency (and less overhead, for what that's worth).
691 2005-11-24 Dirk Mueller <dmueller@suse.com>
695 * src/fcmatch.c (FcCompare*, FcFontSetSort):
696 * src/fcname.c (FcNameUnparseValue):
698 Inline the *PtrU functions to gain perf.
699 Remove unneeded params for the FcCompare* functions.
701 2005-11-24 Dirk Mueller <dmueller@suse.com>
704 * src/fcint.h, fontconfig/fontconfig.h:
706 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
708 * src/fcpat.c, src/fcint.h, src/fcname.c:
710 Check for type validity during FcPatternAddWithBinding, don't
711 verify type in FcFontMatch, don't call FcCanonicalize here
712 (which always does a deep copy).
714 2005-11-24 Dirk Mueller <dmueller@suse.com>
717 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
718 * src/fcpat.c (FcPatternAddWithBinding):
720 Make FcCompareString and FcCompareFamily less expensive.
721 Only add a value for FC_FAMILY if the proposed value is a string.
723 2005-11-24 Dirk Mueller <dmueller@suse.com>
726 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
727 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
728 * src/fcint.h (FcDebug):
730 Inline FcDebug invocations and only initialize once, in FcInit*.
731 Improve debug msg in FcPatternPrint.
733 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
736 * fontconfig/fontconfig.h:
739 Minor code warning cleanups.
741 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
744 * fc-match/fc-match.c (main):
746 Make getopt_long accept -s parameter to fc-match as well.
748 2005-11-21 Dirk Mueller <dmueller@suse.com>
751 * src/fcmatch.c (FcCompareValueList):
753 Manually perform inlining & partial redundancy elimination to
754 reduce calls to FcValueListPtrU.
756 2005-11-21 Dirk Mueller <dmueller@suse.com>
759 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
760 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
762 Only invoke strlen() when really necessary.
764 2005-11-19 Matthias Clasen <mclasen@redhat.com>
768 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
773 Get rid of the use of freetype internal headers in fcfreetype.c,
774 since those headers will go away with freetype 2.2. Replace with
775 public domain ftglue code from pango. Note that the patch removes
776 some extra error checking in FT_Get_BDF_Property() and comments
777 out the skipping of empty pcf fonts.
779 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
782 * fc-lang/fc-lang.c (main):
784 Further fix of patch from 2005-11-04: miscounted numbers count
785 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
786 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
788 Removed leafidx_count and numbers_count since they are the same
789 and replaced them with offset_count.
791 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
794 * fc-cat/fc-cat.c (main):
796 Don't crash when fc-cat invoked with no arguments.
798 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
801 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
803 Fix invalid read access caused by premature free and
804 GCC4 warnings in libxml2 codepath.
806 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
809 * src/fccfg.c (FcConfigValues):
811 List iteration not needed in FcConfigValues, since it's building
812 up the list itself; we can just strip FcVoid elements during
815 2005-11-17 Patrick Lam <plam@mit.edu>
816 * src/fccfg.c (FcConfigValues):
818 Fix crash on invalid constants in config files (forgot to update
819 a pointer upon list iteration.)
821 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
824 * src/fcxml.c (FcTypecheckExpr):
826 Complain about invalid constants in config files.
828 2005-11-17 Andreas Schwab <schwab@suse.de>
831 * src/fccache.c (FcGlobalCacheSave):
833 Don't add current_arch_start more than once.
835 2005-11-16 Patrick Lam <plam@mit.edu>
836 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
837 * src/fcfs.c (FcFontSetUnserialize):
838 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
839 * src/fcpat.c (FcStrUnserialize):
841 Fix ordering of ALIGN with respect to saving block_ptr; add
842 another ALIGN to fcfs.c.
844 2005-11-16 Patrick Lam <plam@mit.edu>
845 * src/fccache.c (FcDirCacheProduce)
847 Fix case where alignment bytes bumped up metadata->count
848 causing unwarranted failures to write cache files.
849 (Reported by Stephan Kulow).
851 2005-11-16 Patrick Lam <plam@mit.edu>
852 * src/fccache.c (FcDirCacheProduce):
853 * src/fccharset.c (FcCharSetDistributeBytes):
854 * src/fcfs.c (FcFontSetDistributeBytes):
856 * src/fclang.c (FcLangSetDistributeBytes):
857 * src/fcname.c (FcObjectDistributeBytes):
858 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
861 Add *NeededBytesAlign(), which overestimates the padding which is
862 later added by the new ALIGN macro. Fix alignment problems on
863 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
864 version by Andreas Schwab).
866 2005-11-16 Stephan Kulow <coolo@kde.org>
871 Use sysconf to determine proper PAGESIZE value; this
872 appears to be POSIX-compliant. (reported by Andreas Schwab)
874 2005-11-04 Patrick Lam <plam@mit.edu>
880 Fix bug 2878 (excessive relocations at startup for charsets,
881 reported by Ross Burton): fc-lang/fc-lang now creates the
882 static form of the langset, not the dynamic form, so that
883 the charsets should now be in .rodata.
885 2005-11-04 Patrick Lam <plam@mit.edu>
886 * src/fcdir.c (FcDirScanConfig):
888 Add test for validity of directory caches that
889 somehow got lost (reported by make distcheck).
891 2005-11-04 Patrick Lam <plam@mit.edu>
895 * fontconfig/fontconfig.h:
897 Bump version to 2.3.92.
899 2005-11-02 Patrick Lam <plam@mit.edu>
900 * src/fcpat.c (FcPatternDuplicate):
902 Fix argument ordering problem in call to FcPatternTransferFullFname.
904 2005-11-02 Patrick Lam <plam@mit.edu>
905 * src/fcfreetype.c (FcFreetypeQuery):
906 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
907 FcPatternTransferFullFname):
909 Fix warnings and embarrassing double-free error.
911 2005-11-02 Zhe Su <zsu@novell.com>
916 Change the rule for artificial emboldening in fonts.conf.in. This
917 enables the support for artificial emboldening included in cairo.
919 2005-11-02 Patrick Lam <plam@mit.edu>
920 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
922 Don't zero out full names for FC_REF_CONSTANT fonts;
923 also, duplicate full names when transferring, and free
924 full names when freeing the associated font.
925 Reported by Jinghua Luo.
927 2005-11-02 Patrick Lam <plam@mit.edu>
928 * fc-cache/fc-cache.c (scanDirs):
929 * src/fcpat.c (FcValueListSerialize):
931 Revert the previous patch and commit the correct patch:
932 I forgot a canonicalization in FcValueListSerialize, so
933 that it would choke on already-serialized input files. Duh!
935 2005-11-02 Patrick Lam <plam@mit.edu>
936 * fc-cache/fc-cache.c (scanDirs):
938 Forcibly rescan a directory before writing a fresh local
939 cache file for that directory, fixing the losing-fonts
940 problem reported by Mike Fabian and also apparently the
941 font cache file corruption.
943 2005-11-02 Patrick Lam <plam@mit.edu>
944 * src/fccache.c (FcGlobalCacheLoad):
946 Fix thinko: actually, the whole global cache is stale
947 if the global cache is older than the (newest) config file.
949 2005-11-02 Patrick Lam <plam@mit.edu>
950 * src/fccache.c (FcGlobalCacheLoad):
951 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
954 Declare the global cache of a directory's contents to be stale if
955 the directory is newer than the (newest) configuration file.
957 2005-10-31 Patrick Lam <plam@mit.edu>
959 * src/fclist.c (FcListAppend):
960 * src/fcmatch.c (FcFontRenderPrepare):
961 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
962 FcPatternFreeze, FcPatternBaseFreeze):
964 Copy the full pathname whenever duplicating an FcPattern; otherwise,
965 applications continue breaking.
967 2005-10-31 Patrick Lam <plam@mit.edu>
968 * fc-cat/fc-cat.c (FcCacheFileRead, main):
969 * src/fcfreetype.c (FcFreeTypeQuery):
971 Fix small memory error (tried to free argv); use basename and
972 dirname correctly (they can modify their arguments).
974 2005-10-31 Patrick Lam <plam@mit.edu>
982 Reinstate basename patch, but keep a hash table linking FcPatterns
983 to their fully-qualified font names for clients' benefit. Clients
984 only pay for the font names once they request the FC_FILE property
985 from an FcPattern, but the font name is malloc'd at that point (i.e.
986 not mmapped: that's impossible, since it may vary between machines.)
987 Clients do have to pay for a copy of the path name per cache file.
989 Note that FcPatternGetString now does some rewriting if you ask
990 for an FC_FILE, appending the pathname as appropriate.
992 2005-10-31 Patrick Lam <plam@mit.edu>
993 * src/fcfreetype.c (FcFreeTypeQuery):
995 Revert basename patch, which breaks fontconfig clients on my system.
997 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
1000 * fontconfig/fonts.conf.in:
1001 * fontconfig/fontconfig.h:
1005 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
1006 to load embedded bitmaps or not.
1008 2005-10-25 Patrick Lam <plam@mit.edu>
1009 * src/fcfreetype.c (FcFreeTypeQuery):
1011 Only add basename to patterns' FC_FILE element, not any part of
1014 2005-10-22 Patrick Lam <plam@mit.edu>
1017 Add some more consts, fixing more GCC4 warnings.
1019 2005-10-22 Zhe Su <zsu@novell.com>
1022 Support localized font family and style names.
1023 This has been reported to break old apps like xfd, but modern
1024 (gtk+/qt/mozilla) apps work fine.
1026 2005-10-21 Patrick Lam <plam@mit.edu>
1027 * src/fccache.c (FcGlobalCacheLoad):
1029 Destroy the global cache file if it's terminally broken. (reported by
1032 2005-10-21 Patrick Lam <plam@mit.edu>
1033 * fc-list/fc-list.c (main):
1034 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
1035 * fontconfig/fontconfig.h:
1037 Prevent fc-list from escaping strings when printing them (reported by
1040 2005-10-20 Marcus Meissner <meissner@suse.de>
1043 * fontconfig/fontconfig.h:
1045 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
1047 2005-10-14 Ross Burton <ross@burtonini.com>
1050 * fc-glyphname/fc-glyphname.c:
1053 Add consts to variables so as to move arrays into .rodata.
1055 2005-10-14 Mike Fabian <mfabian@suse.de>
1058 * src/fccache.c (FcDirCacheUnlink):
1060 Check existence of directory cache file before attempting to unlink.
1062 2005-10-13 Patrick Lam <plam@mit.edu>
1063 * src/fccache.c (FcDirCacheUnlink):
1065 Fix flipped return value on unlink. (Reported by Mike Fabian)
1067 2005-10-12 Patrick Lam <plam@mit.edu>
1070 * src/fcdir.c (FcDirScanConfig):
1073 When fc-cache is run without --force, use directory cache files
1074 to speed up fc-cache run time. (Reported by Mike Fabian)
1076 2005-10-06 Patrick Lam <plam@mit.edu>
1078 * src/fcname.c (FcObjectToPtr):
1079 * src/fcpat.c (FcStrStaticName):
1081 Add padding to make valgrind and glibc not hate each other
1082 when calling strlen().
1084 2005-10-05 Simos Xenitellis <simos74@gmx.net>
1085 reviewed by: plam & keithp
1089 Modify config file to use Greek fonts before Asian fonts with
1092 2005-10-05 Christian Biesinger <cbiesinger@web.de>
1093 reviewed by: plam & keithp
1097 Use libtool -no-undefined flag on all platforms.
1099 2005-10-05 Patrick Lam <plam@mit.edu>
1100 * src/fccache.c (FcCacheHaveBank):
1102 Implement move-to-front array for banks (perf regression
1103 reported by Ronny V. Vindenes).
1105 2005-10-04 Patrick Lam <plam@mit.edu>
1106 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
1107 FcDirCacheHasCurrentArch):
1108 * fc-cache/fc-cache.c (scanDirs):
1109 * fontconfig/fontconfig.h:
1111 Add new API which unlinks directory caches and checks dir caches
1112 for existence of appropriate sections. Fix fc-cache to unlink
1113 stale cache files and save directory caches that lack relevant
1116 2005-10-03 Patrick Lam <plam@mit.edu>
1117 * src/fccache.c (FcDirCacheValid):
1119 Ensure that a directory cache has the appropriate section
1120 before reporting that it is valid (reported by Matthias Clasen).
1122 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
1130 Use libxml2 if requested (with --enable-libxml2) or if
1131 expat is not available.
1133 2005-09-29 Patrick Lam <plam@mit.edu>
1134 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
1136 Fix multi-arch cache files: compute the position for the
1137 block to be added using info from OrigFile, not NewFile.
1139 2005-09-28 Patrick Lam <plam@mit.edu>
1140 * src/fccache.c (FcCacheMachineSignature):
1142 Cast results of sizeof() to unsigned int to get rid of
1143 warnings on x86_64 (thanks Matthias Clasen).
1145 2005-09-27 Patrick Lam <plam@mit.edu>
1146 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
1149 Use FcAtomic to rewrite cache files.
1151 2005-09-27 Patrick Lam <plam@mit.edu>
1153 * src/fccache.c (FcDirCacheWrite):
1155 Don't unlink the fonts.cache-2 file even if there's no data
1156 to write; just write an empty cache file. (thanks Lubos Lunak)
1158 2005-09-27 Patrick Lam <plam@mit.edu>
1160 * src/fccache.c (FcDirCacheWrite):
1162 Allocate room for the subdirectory names in each
1163 directory cache. Thanks to James Cloos for finding
1164 and diagnosing this bug!
1166 2005-09-22 Patrick Lam <plam@mit.edu>
1168 * fc-cache/fc-cache.sgml:
1169 * src/fccache.c (FcDirCacheWrite):
1170 * src/fccache.h (struct FcCache):
1172 Update documentation -- fc-cache's man page now says that you
1173 need to run fc-cache once per cached architecture; add some
1174 documentation to the FcCache structure.
1176 Make fc-cache write out fonts.cache-2 files for directories with
1177 no fonts (i.e. only subdirectories).
1179 2005-09-22 Patrick Lam <plam@mit.edu>
1181 * fc-cache/fc-cache.sgml:
1182 * fc-case/fc-case.c:
1183 * fc-glyphname/fc-glyphname.c:
1189 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
1193 * fc-lang/fc-lang.c:
1194 * fontconfig/fcprivate.h:
1195 * fontconfig/fontconfig.h:
1209 Implement new mmaped cache for font information.
1210 Bump so revision to 2.3.90.
1212 2005-07-25 Keith Packard <keithp@keithp.com>
1214 * doc/fontconfig-user.sgml:
1215 * fc-glyphname/fc-glyphname.c: (scan), (main):
1216 * fc-lang/fc-lang.c: (FcConfigHome):
1217 * fc-match/fc-match.c: (main):
1218 * src/fccfg.c: (FcConfigHome):
1219 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1220 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
1221 (addtag), (FcFontCapabilities):
1222 * src/fcpat.c: (FcValueListEntCreate):
1223 * src/fcstr.c: (FcStrCaseWalkerInit):
1224 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
1226 Various GCC 4 cleanups for signed vs unsigned char
1228 Match only [0-9]*.conf files in <include>{directory}</include>
1229 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
1231 2005-07-15 Carl Worth <cworth@cworth.org>
1234 * src/fcinit.c: (FcFini):
1235 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
1238 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
1239 Pull the FcObjectStateName hash table out to file scope, and add
1240 FcObjectStaticNameFini so that FcFini will cleanup this hash table
1243 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
1246 2005-06-16 Patrick Lam <plam@MIT.EDU>
1250 * src/fccfg.c: (FcConfigCompareValue):
1251 Make FcOpNotContains use FcStrStr for strings so that
1252 it matches semantics for !FcOpContains.
1254 2005-05-20 Keith Packard <keithp@keithp.com>
1258 Move fontconfig source package to libs as per override
1260 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
1262 reviewed by: Mike Fabian
1265 The ka.orth file requires several characters which are not
1266 used anymore in modern Georgian and which are missing in the free
1267 Georgian TrueType fonts downloadable at:
1269 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
1271 2005-04-27 Keith Packard <keithp@keithp.com>
1275 Update date to real 2.3.2 release date.
1276 Fix change attributions
1278 2005-04-27 Keith Packard <keithp@keithp.com>
1281 Bump so revision for 2.3.2
1282 * fc-cache/fc-cache.c: (scanDirs):
1283 Fix a few minor leaks in error cases.
1285 2005-04-23 Keith Packard <keithp@keithp.com>
1290 * fontconfig/fontconfig.h:
1291 Update for version 2.3.2
1293 2005-04-21 Keith Packard <keithp@keithp.com>
1295 * debian/fontconfig.postinst:
1296 Don't force bitmap font enable in default
1297 configuration; allows users to override this in
1307 * debian/po/pt_BR.po:
1308 * debian/po/templates.pot:
1310 * debian/po/zh_CN.po:
1311 Updated translations
1313 * fc-cache/fc-cache.c: (main):
1314 Destroy font configuration on exit to help valgrind
1317 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
1318 (FcFreeTypeCheckGlyph):
1319 Use own transcoding routines in preference to iconv
1320 which appears to have leaks in some translators.
1321 Call iconv_close after using iconv (oops).
1323 Prefer unicode encoding of Euro char as some
1324 fonts mis-encode Euro in other ones.
1326 Must fetch bitmap glyphs to get width values
1327 to check for monospace/dual-width fonts.
1329 2005-04-13 Ross Burton <ross@burtonini.com>
1332 Check that a pattern isn't already frozen in FcPatternFreeze.
1334 2005-03-31 Ross Burton <ross@burtonini.com>
1339 Run all FcPattern objects through FcObjectStaticName, so that
1340 compares can be done on pointers instead of strings (#2659)
1342 2005-03-17 Tor Lillqvist <tml@novell.com>
1344 * src/fontconfig.def.in: Add the .dll to the dll name.
1346 2005-03-10 Keith Packard <keithp@keithp.com>
1348 * debian/README.Debian:
1349 Update to reflect configuration changes
1351 * debian/fontconfig.postinst:
1352 Fix Autohint vs Autohinter mistake
1353 * debian/fontconfig.templates:
1354 Adopt changes from Josselin Mouette for configuration descriptions
1355 Update debian to version 2.3.1-2
1357 2005-03-08 Keith Packard <keithp@keithp.com>
1361 Update debian for 2.3.1
1363 2005-03-09 Tor Lillqvist <tml@novell.com>
1365 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
1368 * src/fccfg.c (FcConfigFileExists): Check also drive letter
1371 2005-03-08 Keith Packard <keithp@keithp.com>
1375 * fontconfig/fontconfig.h:
1378 2005-03-05 Keith Packard <keithp@keithp.com>
1380 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
1381 Include space and remove numbers from valid script tags.
1382 This ensures that tags like 'lao ' work while rejecting
1383 those which have any digits.
1384 Eliminate a spurious debugging variable (len)
1386 2005-03-05 Keith Packard <keithp@keithp.com>
1388 * src/fcfreetype.c: (addtag), (GetScriptTags),
1389 (FcFontCapabilities):
1390 Rework GSUB/GPOS script parsing to survive broken fonts.
1391 Thanks for the broken font go to Manish Singh
1393 2005-03-05 Keith Packard <keithp@keithp.com>
1398 * debian/fontconfig.config:
1399 * debian/fontconfig.templates:
1401 Include 2.3 release information in changelog
1402 Add Josselin Mouette as an Uploader
1403 Set hinting_type to low priority configuration option
1406 * debian/fontconfig.postinst:
1407 yes_bitmaps.conf -> yes-bitmaps.conf
1413 2005-03-02 Keith Packard <keithp@keithp.com>
1416 * conf.d/Makefile.am:
1417 * conf.d/autohint.conf:
1418 * conf.d/no-sub-pixel.conf:
1419 * conf.d/sub-pixel.conf:
1420 * conf.d/unhinted.conf:
1421 * debian/autohint.conf:
1422 * debian/fontconfig.install:
1423 * debian/fontconfig.postinst:
1424 * debian/fontconfig.templates:
1425 * debian/no-sub-pixel.conf:
1426 * debian/unhinted.conf:
1427 Move debian-specific conf file examples upstream.
1429 Sub-pixel configuration examples must smash subpixel value
1430 as Xft always sets it from X.
1432 Change sub-pixel rendering debconf descriptions from
1433 Enable/Disable to Always/Never.
1435 2005-03-02 Keith Packard <keithp@keithp.com>
1438 * conf.d/.cvsignore:
1440 Ignore more build detritus
1443 Add debian package construction stuff.
1445 * config/config.guess:
1446 * config/config.sub:
1447 Update to newer versions of these tools
1450 Get library manuals to build again (we love automake).
1452 * debian/README.Debian:
1453 * debian/autohint.conf:
1458 * debian/fontconfig-udeb.install:
1459 * debian/fontconfig.config:
1460 * debian/fontconfig.defoma:
1461 * debian/fontconfig.dirs:
1462 * debian/fontconfig.install:
1463 * debian/fontconfig.postinst:
1464 * debian/fontconfig.postrm:
1465 * debian/fontconfig.templates:
1466 * debian/libfontconfig1-dev.install:
1467 * debian/libfontconfig1.install:
1468 * debian/local.conf.md5sum:
1469 * debian/no-sub-pixel.conf:
1470 * debian/po/POTFILES.in:
1479 * debian/po/pt_BR.po:
1480 * debian/po/templates.pot:
1482 * debian/po/zh_CN.po:
1484 * debian/unhinted.conf:
1485 Update debian build system to switch maintainers and
1486 deal with 2.3 functionality
1488 2005-03-01 Keith Packard <keithp@keithp.com>
1492 * fontconfig/fontconfig.h:
1495 2005-03-01 Keith Packard <keithp@keithp.com>
1498 Generate and install PDF versions of the manuals
1500 * doc/fcpattern.fncs:
1503 * doc/fcstring.fncs:
1504 Add missing exported functions, fix data types
1506 * doc/fontconfig-devel.sgml:
1507 Add missing pattern elements.
1509 * doc/fontconfig-user.sgml:
1510 Add missing pattern elements. Document conf.d usage,
1511 clarify available orthography list. Fix some config file
1512 attributes. Complete list of constants.
1514 * fontconfig/fontconfig.h:
1515 Mark FC_SOURCE deprecated.
1517 * src/fcfreetype.c: (FcFreeTypeQuery):
1518 Don't set FC_SOURCE any longer.
1520 2005-02-28 Keith Packard <keithp@keithp.com>
1523 * conf.d/Makefile.am:
1525 * conf.d/no-bitmaps.conf:
1526 * conf.d/sub-pixel.conf:
1527 * conf.d/yes-bitmaps.conf:
1529 Create prototype /etc/fonts/conf.d directory with a few
1530 sample configuration files.
1531 Deprecate use of local.conf for local customizations in favor of
1532 this directory based scheme which is more easily integrated into
1533 installation systems.
1536 Tag FC_EMBOLDEN as a boolean variable
1538 2005-02-10 Keith Packard <keithp@keithp.com>
1540 reviewed by: pborelli@katamail.com
1542 * src/fcdir.c: (FcFileScanConfig):
1543 Free patterns from fonts which are rejected by configuration
1546 2005-01-28 Keith Packard <keithp@keithp.com>
1550 * fontconfig/fontconfig.h:
1551 Update for version 2.2.99
1553 2005-01-28 Keith Packard <keithp@keithp.com>
1556 Add a few pointers (#2284, #2285)
1558 2005-01-28 Keith Packard <keithp@keithp.com>
1561 * src/fcname.c: (FcNameBool):
1562 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1563 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1564 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1565 Polite typechecking for test and edit expressions. Helps
1566 catch errors in the font configuration. (bug 229)
1568 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1570 reviewed by: Keith Packard <keithp@keithp.com>
1573 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1575 2005-01-13 Keith Packard <keithp@keithp.com>
1577 * doc/fontconfig-user.sgml:
1578 Add SEE ALSO section (bug 2085)
1580 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1582 reviewed by: Keith Packard <keithp@keithp.com>
1587 * fc-case/Makefile.am:
1588 * fc-glyphname/Makefile.am:
1589 * fc-lang/Makefile.am:
1590 * src/fontconfig.def.in:
1591 Cross compiling fixes (bug 280)
1593 2005-01-13 Keith Packard <keithp@keithp.com>
1596 Update blanks list (Closes bug 86)
1598 2005-01-04 Keith Packard <keithp@keithp.com>
1600 * src/fccache.c: (FcCacheFontSetAdd):
1601 Verify that every font pattern loaded from cache has
1602 both FC_FILE and FC_FAMILY entries.
1603 Attempt to fix bug #2219.
1605 2004-12-29 Keith Packard <keithp@keithp.com>
1609 * fontconfig/fontconfig.h:
1610 Update for version 2.2.98
1612 2004-12-29 Keith Packard <keithp@keithp.com>
1614 * fontconfig/fontconfig.h:
1615 Document ASCII limitations of Fc character conversion macros
1616 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1617 Fix off-by-one error in utf-8 case walking code.
1618 Add FcStrDowncase (useful for testing case conversion functions)
1620 2004-12-29 Keith Packard <keithp@keithp.com>
1623 * fc-case/.cvsignore:
1624 clean up CVS ignore lists
1625 * fc-lang/iso-3166.txt:
1626 Add territory database
1628 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1630 Reviewed by: Keith Packard
1633 Remove Han characters from Korean orthography
1635 2004-12-29 Keith Packard <keithp@keithp.com>
1638 Reorder utility programs to make sure fc-case is run before fc-lang
1639 as fc-lang uses fcstr.c which uses fccase.h
1643 2004-12-29 Keith Packard <keithp@keithp.com>
1646 Adopt some RedHat suggestions for standard font configuration.
1650 * fc-case/CaseFolding.txt:
1651 * fc-case/Makefile.am:
1652 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1653 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1654 (dump), (parseRaw), (caseFoldReadRaw), (main):
1655 * fc-case/fccase.tmpl.h:
1656 Add new helper program 'fc-case' to construct case folding
1657 tables from standard Unicode CaseFolding.txt file
1660 * src/fclist.c: (FcListValueHash):
1661 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1662 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1663 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1664 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1665 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1666 Re-implement case insensitive functions with Unicode
1667 aware versions (including full case folding mappings)
1669 2004-12-13 Keith Packard <keithp@keithp.com>
1671 reviewed by: Owen Taylor <otaylor@redhat.com>
1673 * src/fcmatch.c: (FcFontSetSort):
1674 I changed FcFontSetSort to respect the generic aliases better
1675 in the face of language matching.
1677 What I did was to ammend the strict sort order used by FcFontSort so
1678 that it 'satisfies' the language specified in the pattern by locating
1679 the best matching font supporting each pattern language and then
1680 ignores language in the remaining fonts for purposes of matching.
1682 So, when asking for 'sans:lang=en', you'll get an English font first,
1683 and then the remaining fonts sorted with respect to the 'sans' alias
1684 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1686 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1688 reviewed by: Keith Packard <keithp@keithp.com>
1690 * fontconfig/fontconfig.h:
1693 Configuration changes to request synthetic emboldening of
1694 fonts. The actual emboldening code will live in Xft.
1696 2004-12-09 John Thacker <thacker@math.cornell.edu>
1698 reviewed by: Keith Packard <keithp@keithp.com>
1702 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1703 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1704 и), and don't even appear in KOI8-R. (The hypothesis that they
1705 don't appear in KOI8-R due to their similarity with Latin I and i is
1706 eliminated by their presence in KOI8-U.) I have a couple of fonts
1707 with Russian support that don't have the letter.
1709 Therefore, 0406 and 0456 should be removed from or commented out of
1712 2004-12-06 michael meeks <mmeeks@novell.com>
1714 Reviewed by: Keith Packard <keithp@keithp.com>
1716 * src/fcinit.c: (FcMemReport):
1718 * src/fclist.c: (FcObjectSetAdd):
1719 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1720 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1721 * src/fcxml.c: (FcParsePatelt):
1722 memoize strings and share a single copy for all uses. Note that
1723 this could be improved further by using statically allocated blocks
1724 and gluing multiple strings together, but I'm basically lazy.
1725 In my environment with 800 font files, I get a savings of about 90KB.
1727 2004-12-06 Keith Packard <keithp@keithp.com>
1731 * config/Makedefs.in:
1734 * doc/fcatomic.fncs:
1735 * doc/fcblanks.fncs:
1736 * doc/fccharset.fncs:
1737 * doc/fcconfig.fncs:
1738 * doc/fcconstant.fncs:
1740 * doc/fcfontset.fncs:
1741 * doc/fcfreetype.fncs:
1743 * doc/fcmatrix.fncs:
1744 * doc/fcobjectset.fncs:
1745 * doc/fcobjecttype.fncs:
1746 * doc/fcpattern.fncs:
1747 * doc/fcstring.fncs:
1748 * doc/fcstrset.fncs:
1750 * doc/fontconfig-devel.sgml:
1751 * doc/fontconfig-user.sgml:
1753 * doc/version.sgml.in:
1754 * fc-cache/Makefile.am:
1755 * fc-cache/fc-cache.c:
1756 * fc-glyphname/Makefile.am:
1757 * fc-glyphname/fc-glyphname.c:
1758 * fc-glyphname/fcglyphname.tmpl.h:
1759 * fc-lang/Makefile.am:
1769 * fc-lang/az_ir.orth:
1803 * fc-lang/fc-lang.c:
1804 * fc-lang/fc-lang.man:
1805 * fc-lang/fclang.tmpl.h:
1850 * fc-lang/ku_ir.orth:
1883 * fc-lang/ps_af.orth:
1884 * fc-lang/ps_pk.orth:
1913 * fc-lang/ti_er.orth:
1914 * fc-lang/ti_et.orth:
1940 * fc-lang/zh_cn.orth:
1941 * fc-lang/zh_hk.orth:
1942 * fc-lang/zh_mo.orth:
1943 * fc-lang/zh_sg.orth:
1944 * fc-lang/zh_tw.orth:
1946 * fc-list/Makefile.am:
1947 * fc-list/fc-list.c:
1948 * fc-match/Makefile.am:
1949 * fc-match/fc-match.1:
1950 * fc-match/fc-match.c:
1951 * fontconfig/fcfreetype.h:
1952 * fontconfig/fcprivate.h:
1953 * fontconfig/fontconfig.h:
1974 Change files from ISO-Latin-1 to UTF-8
1976 2004-12-04 Keith Packard <keithp@keithp.com>
1979 Update links to new freedesktop.org locations
1981 Add uninstall-local to get rid of fonts.conf and local.conf if they
1982 match the distributed versions. Fixes 'make distcheck'
1984 2004-12-04 Keith Packard <keithp@keithp.com>
1988 * fontconfig/fontconfig.h:
1989 Updates for version 2.2.97
1991 2004-12-04 Owen Taylor <otaylor@redhat.com>
1993 reviewed by: Keith Packard <keithp@keithp.com>
1995 * fc-cache/fc-cache.c: (main):
1996 Sleep for two seconds before exiting to make sure timestamps
1997 for future changes have distinct mod times in the file system.
2000 Add Punjabi orthography. Bug #1671.
2002 2004-12-04 Keith Packard <keithp@keithp.com>
2005 Just remove the FC_FONTDATE -- it has locale issues and
2006 annoys redhat multi-arch installs. Now that all X fonts are
2007 included without prejudice, the chances of the date being at
2008 all interesting are rather limited. Bug #505.
2010 Add copyright and license
2012 2004-12-04 Keith Packard <keithp@keithp.com>
2015 Change default set of fonts to include all of
2016 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
2017 * doc/fontconfig-user.sgml:
2018 Document new <include>directory-name</include> semantics
2020 add <include ignore_missing="yes">conf.d</include>
2022 Add selectfont to ignore bitmap fonts, add comment for
2023 selectfont which accepts bitmap fonts.
2026 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
2027 Allow <include> configuration elements to reference directories.
2028 Parse and load all files of the form [0-9]* in sorted order.
2030 2004-12-04 Keith Packard <keithp@keithp.com>
2033 Report command line for $srcdir/configure accurately.
2036 2004-12-04 Keith Packard <keithp@keithp.com>
2038 * src/fcfreetype.c: (FcFreeTypeQuery):
2039 Check for non-empty face->family_name and face->style_name
2040 before using those for the font. Empty names match everything.
2043 2004-12-04 Keith Packard <keithp@keithp.com>
2046 * fontconfig/fontconfig.h:
2047 * src/fcfreetype.c: (FcFreeTypeQuery):
2049 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
2050 available. This provides font file format information (BDF, Type 1,
2051 PCF, TrueType) for each font. Closes #109.
2053 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
2055 reviewed by: Keith Packard <keithp@keithp.com>
2057 * doc/fontconfig-user.sgml:
2060 * fontconfig/fontconfig.h:
2061 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
2062 (GetScriptTags), (FcFontCapabilities):
2064 Add detection for font capabilities (bug #105)
2066 2004-12-04 Keith Packard <keithp@keithp.com>
2069 Move existing fonts.conf to fonts.conf.bak
2072 Add detection of iconv
2074 * doc/fcpattern.fncs:
2075 * doc/fontconfig-devel.sgml:
2076 * doc/fontconfig-user.sgml:
2078 Document new selectfont elements
2081 Switch to UTF-8 in comment
2083 * fontconfig/fontconfig.h:
2085 Add fullname, and family/style/fullname language entries
2087 * src/fccache.c: (FcCacheFontSetAdd):
2088 * src/fcdir.c: (FcFileScanConfig):
2089 Respect selectfont/*/glob
2092 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
2093 (FcConfigCompareValue), (FcConfigPatternsAdd),
2094 (FcConfigPatternsMatch), (FcConfigAcceptFont):
2095 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
2096 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
2097 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
2098 Add support for selectfont
2100 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
2101 (FcStringInPatternElement), (FcFreeTypeQuery):
2102 Add multi-lingual family/style/fullname support
2104 * src/fclist.c: (FcListPatternMatchAny):
2105 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
2107 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
2108 (FcObjectStaticName):
2109 Add new FcPatternRemove/FcPatternAppend.
2110 FcObjectStaticName stores computed pattern element names which
2111 are required to be static.
2113 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
2118 Remove spurious / after $(DESTDIR)
2120 2004-06-30 Keith Packard <keithp@keithp.com>
2124 * fontconfig/fontconfig.h:
2127 2004-06-30 Keith Packard <keithp@keithp.com>
2129 Provided by: Lubos Lunak <l.lunak@suse.cz>
2131 * src/fccfg.c: (FcConfigUptoDate):
2132 However FcConfigUptoDate() doesn't seem to work. See the attached
2133 patch. First there's an obvious misplaced parenthesis making it
2134 return always false, and second, even this call fails to detect font
2135 changes (e.g. adding a new font to
2136 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
2137 well. The problem seems to be triggered by my fonts.conf specifying
2138 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
2139 doesn't include subdirs, unlike config->fontDirs.
2141 2004-06-03 Keith Packard <keithp@keithp.com>
2143 * fontconfig/fontconfig.h:
2144 Remove comma at end of FcResult enum definition.
2146 2004-05-29 Keith Packard <keithp@keithp.com>
2149 Add steps to md5sum release
2151 2004-05-29 Keith Packard <keithp@keithp.com>
2155 * fontconfig/fontconfig.h:
2158 2004-05-29 Keith Packard <keithp@keithp.com>
2160 * fontconfig/fontconfig.h:
2161 * src/fcmatch.c: (FcFontSetMatch):
2162 Add FcResultOutOfMemory to provide an accurate error when
2163 FcFontSetMatch fails in this way
2166 Make #warning about lacking various FreeType features indicate
2167 which version those features appeared so users know how to
2168 fix the problem (Thanks to Anton Tropashko)
2170 2004-05-05 Keith Packard <keithp@keithp.com>
2172 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
2173 Replace MIN/MAX/ABS macros which happen to have come
2174 from FreeType with fontconfig-specific ones (FC_*)
2176 2004-04-23 Keith Packard <keithp@keithp.com>
2179 Extend release preparation instructions to include
2180 notification and distribution steps
2182 2004-04-23 Keith Packard <keithp@keithp.com>
2186 * fontconfig/fontconfig.h:
2187 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
2189 2004-04-23 Keith Packard <keithp@keithp.com>
2192 Ignore a few more autotool files
2194 2004-04-14 Keith Packard <keithp@keithp.com>
2197 Add instructions for doing a release
2199 * fontconfig.spec.in:
2200 clean up .spec file; perhaps this will be useful to somebody...
2204 * fontconfig/fontconfig.h:
2207 * fc-lang/fc-lang.c:
2208 Make 'scanopen' static so GCC doesn't whine about lacking prototype
2210 * fc-glyphname/Makefile.am:
2211 * fc-lang/Makefile.am:
2212 * fc-list/Makefile.am:
2213 * fc-match/Makefile.am:
2215 Add WARN_CFLAGS to pass -W flags for GCC systems
2217 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
2218 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
2219 Change various char types around to match across
2221 Fixed bug in using available_sizes[i].height which
2222 is in pixels, not 64ths of a pixel.
2224 2004-03-06 Keith Packard <keithp@keithp.com>
2226 * src/fcfreetype.c: (FcFreeTypeQuery):
2227 Force FC_FOUNDRY and FC_WIDTH to always be set so that
2228 matches looking for explicit values prefer exact matches
2230 2004-03-02 Keith Packard <keithp@keithp.com>
2232 Supplied by: mfabian@suse.de (Mike FABIAN)
2234 * src/fcfreetype.c: (FcFreeTypeQuery):
2235 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
2236 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
2238 2004-02-21 Manish Singh <yosh@gimp.org>
2240 * fc-glyphname/fc-glyphname.c: (main):
2241 Cast strlen to int for printf, so we're 64-bit clean.
2243 2004-02-11 Keith Packard <keithp@keithp.com>
2246 * src/fcfreetype.c: (FcGetPixelSize):
2247 Ok, so I messed up the test for y_ppem. Let's see if I
2248 got it right this time.
2250 2004-02-10 Keith Packard <keithp@keithp.com>
2253 * src/fcfreetype.c: (FcGetPixelSize):
2254 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
2255 FT_Bitmap_Size record. Add a configure.in test for this
2256 and change the code accordingly (using height instead).
2258 2004-02-06 Keith Packard <keithp@keithp.com>
2261 Add Low Saxon orthography
2262 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
2264 * src/fccfg.c: (FcConfigNewestFile):
2265 Oops. Left 'newest.set' unset, which would miscompute
2268 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
2269 (FcFreeTypeCheckGlyph):
2270 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
2271 font properties (which report the wrong value in current FreeType)
2273 Don't attempt to check for empty glyphs in non-scalable fonts; they
2276 2004-02-01 Tor Lillqvist <tml@iki.fi>
2278 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
2279 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
2280 cache if config->cache is NULL, which happens if FcConfigHome() is
2281 NULL. Guard against that by using the temp folder in that case.
2283 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
2285 * fc-lang/az_ir.orth:
2286 * fc-lang/ku_ir.orth:
2287 * fc-lang/ps_af.orth:
2288 * fc-lang/ps_pk.orth:
2289 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
2290 (Afghan and Pakistani).
2292 Updated Urdu orthography with real data.
2294 2003-12-11 Carl Worth <cworth@east.isi.edu>
2296 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
2299 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
2301 (all-local): Remove excessive whitespace.
2303 * autogen.sh: Add 'set -e' to abort when any program fails,
2304 (avoids printing of 'now type make' after configure aborts).
2306 2003-11-17 Eric Christopherson <rakko@charter.net>
2308 reviewed by: Keith Packard <keithp@keithp.com>
2311 * fontconfig/fcfreetype.h:
2313 Switch to FreeType 2.1.7 style includes. Bug #150.
2315 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
2317 * fc-list/fc-list.sgml: Add some example usages.
2319 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
2322 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
2325 2003-10-27 Keith Packard <keith@keithp.com>
2328 * fontconfig/fontconfig.h:
2329 Update to version 2.2.92
2331 2003-10-27 Keith Packard <keithp@keithp.com>
2336 * fc-cache/Makefile.am:
2337 * fc-glyphname/Makefile.am:
2338 * fc-lang/Makefile.am:
2339 * fc-list/Makefile.am:
2340 * fc-match/Makefile.am:
2343 Yet more cleanups to finish getting 'make distcheck' working
2344 This has been tested to ensure that it even works from a _build
2347 2003-10-26 Keith Packard <keithp@keithp.com>
2351 * fc-cache/Makefile.am:
2352 * fc-glyphname/Makefile.am:
2353 * fc-lang/Makefile.am:
2354 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
2355 * fc-list/Makefile.am:
2356 * fc-match/Makefile.am:
2357 Attempts to fix 'make distcheck' work. Things are
2358 progressing pretty well, but there are still failures
2359 long into the process dealing with docs (as always).
2361 The big changes here are mostly to make $(srcdir) != "."
2362 work correctly, fixing the docbook related sections and
2363 fc-lang were particularily tricky. Docbook refuses to load
2364 system entities from anywhere other than where the original .sgml
2365 file was located, so no luck looking in "." for the
2366 configure-generated version.sgml and confdir.sgml files.
2368 fc-lang needed help finding .orth files; added a -d option
2369 to set the directory as the least evil of many options.
2371 Now to go use a faster machine and try and wring out the last
2374 2003-10-26 Keith Packard <keithp@keithp.com>
2378 2003-10-26 Keith Packard <keithp@keithp.com>
2381 Include confdir.sgml.in in EXTRA_DIST
2383 2003-10-09 Josselin Mouette <joss@debian.org>
2385 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
2386 * fc-list/fc-list.sgml fc-list/Makefile.am:
2387 Replace fc-cache and fc-list manpages with more detailed, SGML
2390 2003-09-23 Owen Taylor <otaylor@redhat.com>
2392 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
2393 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
2394 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
2397 2003-09-23 Owen Taylor <otaylor@redhat.com>
2399 * fc-lang/ka.orth: Remove Georgian capitals, they
2400 aren't used for normal writing. (Bug #116)
2402 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
2404 * doc/fontconfig-devel.sgml:
2405 * doc/fontconfig-user.sgml:
2406 * fontconfig/fontconfig.h:
2408 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
2409 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
2411 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
2412 monospace and dual-width fonts, allow roughly a 3% variance in the
2415 2003-08-31 Manish Singh <yosh@gimp.org>
2417 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
2420 2003-08-15 Carl Worth <cworth@isi.edu>
2422 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
2423 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
2425 * src/fcpat.c (FcValueListEntDestroy): New function to support
2426 FcFini memory cleanup. Some statistics are not kept in
2428 (FcValueListFreeze): Move hashTable outside this function so it
2429 can be accessed by FcValueListThawAll.
2430 (FcValueListThawAll): New function complements FcValueListFreeze.
2431 (FcPatternBaseFreeze): Move hashTable outside this function so it
2432 can be accessed by FcPatternBaseThawAll.
2433 (FcPatternBaseThawAll): New function complements
2434 FcPatternBaseFreeze.
2435 (FcPatternThawAll): New function complements FcPatternFreeze.
2437 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
2439 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
2440 allocated FcCharLeafEnt "blocks" so they can be freed later.
2441 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
2442 can be accessed by FcCharSetThawAllLeaf.
2443 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2444 (FcCharSetFreezeBase): Move hashTable outside this function so it
2445 can be accessed by FcCharSetThawAll.
2446 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2448 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2449 (FcConfigDestroy): Fic leak of FcBlanks.
2451 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2452 (main): Add call to FcFini when finished.
2454 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2455 static. Add prototypes.
2457 * doc/fcinit.fncs: Add documentation for FcFini function.
2459 * doc/edit-sgml.c: Mark several local functions as static. Add
2462 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2464 2003-06-15 Tor Lillqvist <tml@iki.fi>
2466 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2467 before comparing (needed on Windows).
2469 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2471 2003-06-13 Tor Lillqvist <tml@iki.fi>
2473 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2476 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2477 WINDOWSFONTDIR token.
2479 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2480 end, not to confuse libtool, which expects the EXPORTS line to be
2481 the first. Add FcConfigEnableHome.
2483 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2484 built as a DLL on Win32.
2486 2003-06-09 Keith Packard <keithp@keithp.com>
2488 * Tag version 2.2.90
2490 2003-06-09 Keith Packard <keithp@keithp.com>
2492 * Optimization in FcLangSetIndex was broken, occasionally
2493 returning a pointer to the wrong location on miss
2495 * Add fc-match to test font matching from the command line.
2497 2003-05-31 Keith Packard <keithp@keithp.com>
2499 * (Bug 85) add support for culmus fonts
2500 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2501 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2503 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2505 * Fix "contains" op for strings and langsets.
2507 2003-05-17 Keith Packard <keithp@keithp.com>
2509 * Fix build error with BDF prop local. Free langset after query
2511 2003-05-14 Keith Packard <keithp@keithp.com>
2513 * Extract spacing from XLFD atom
2515 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2517 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2518 disappeared in 1.30.
2520 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2522 2003-05-12 Keith Packard <keithp@keithp.com>
2524 * Use FcIsWidth to share code
2526 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2527 misclassifying some Han fonts as monospaced.
2529 2003-05-07 Keith Packard <keithp@keithp.com>
2531 * Add filename-based accept/reject to ammend available fonts.
2533 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2534 older FreeType releases.
2536 2003-05-06 Keith Packard <keithp@keithp.com>
2538 * Remove 0b82 and Tamil numbers from tamil
2539 orthography (Jungshik Shin <jshin@mailaps.org>)
2541 2003-05-04 Keith Packard <keithp@keithp.com>
2543 + Map glyph names in fonts with adobe custom encoding to unicode
2545 2003-05-02 Keith Packard <keithp@keithp.com>
2547 * Add FC_WEIGHT_BOOK as weight 75
2549 2003-04-30 Keith Packard <keithp@keithp.com>
2551 * Typo in bitstream foundry name
2553 2003-04-24 Keith Packard <keithp@keithp.com>
2555 * Eliminate italic_angle check for PS fonts
2557 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2559 * Getting closer to fixing /etc/fonts hard-coding.
2561 2003-04-22 Keith Packard <keithp@keithp.com>
2563 * Update autogen.sh to work with newer automake versions
2564 * Handle pattern elements moving during multiple edits
2566 2003-04-23 James Henstridge <james@daa.com.au>
2568 * doc/fontconfig-devel.sgml: close the <para> element.
2570 * doc/fcpattern.fncs: close the <para> element.
2572 * doc/func.sgml: close the <refsynopsisdiv> element.
2574 2003-04-22 Keith Packard <keithp@keithp.com
2576 * Update autogen.sh to work with newer automake versions
2577 * Handle pattern elements moving during multiple edits
2579 2003-04-17 Colin Walters <walters@debian.org>
2581 + Remove some unused variables, and initialize some other ones so
2582 gcc doesn't warn us.
2584 2003-04-16 Keith Packard <keithp@keithp.com>
2586 + tag version 2.1.94
2588 2003-04-16 Keith Packard <keithp@keithp.com>
2590 + add BDF property fetching support for foundry
2591 (from Juliusz Chroboczek)
2592 + add BDF property fetching support for width
2594 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2596 + Implemented foundry generation for Type 1 and TrueType
2598 2003-04-11 Gerard Escalante <g2@magestudios.net>
2600 + Retrieve information from Type1 FontInfo dictionaries
2602 2003-04-07 Colin Walters <walters@verbum.org>
2604 + src/Makefile.am: Fix dummy makefile target names when
2605 MS_LIB_AVAILABLE isn't set.
2607 2003-03-22 Tor Lillqvist <tml@iki.fi>
2609 Changes for Windows:
2611 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2613 + We don't want to hardcode the fonts.conf file location in the
2614 DLL, so we look up the DLL location at run-time in a DllMain()
2615 function. The fonts.conf location is deduced from that.
2617 + The colon can't be used as path separator on Windows,
2618 semicolon is used instead. File path components can be separated
2619 with either slash or backslash. Absolute paths can also begin
2620 with a drive letter.
2622 + Add internal function FcStrLastSlash that strrchr's the last
2623 slash, or backslash on Windows.
2625 + There is no link() on Windows. For atomicity checks, mkdir a
2626 lock directory instead.
2628 + In addition to HOME, also look for USERPROFILE.
2630 + Recognize the special font directory token WINDOWSFONTDIR, to
2631 use the system's font directory.
2633 + Remove the fontconfig-def.cpp that was obsolete. Add
2634 fontconfig.def(.in), without internal functions.
2636 + Add a fontconfig-zip(.in) script, used to build a binary
2639 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2640 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2641 to main package and man3/* to devel package
2643 + Added missing defattr(-, root, root) to main RPM package
2645 + Added HTML and text development documentation to -devel subpackage
2647 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2648 + Added back the configure macro options --disable-docs, otherwise
2649 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2650 version number) unconditionally, causing RPM to fail the build due
2651 to _unpackaged_files_terminate_build. We pick up the pregenerated
2652 docs with %doc already.
2654 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2655 + Removed commented out rpm macro define at top of spec file,
2656 replacing it with a simple explanation, since rpm macros are
2657 expanded by rpm even in comments.
2659 + Changed /usr/bin to _bindir in BuildRequires lines
2661 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2663 + Reorganized file manifest lists
2665 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2667 + fontconfig.spec.in: Improvements from Red Hat spec file.
2669 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2671 + docs/*.sgml: SGML fixes.
2673 Sat Mar 1 17:28:53 PST 2003 keithp
2674 + Ok, so the ChangeLog is a bit out of date
2676 + Lots of bugs fixed; most are in bugzilla, the
2677 biggest problems were in cache management where
2678 Owen discovered the library would lose badly when
2679 combining fonts-cache and ~/.fonts-cache data
2681 + Converted from autoconf to automake. This after
2682 getting patches accepted into libtool to allow
2683 the '-version-number' argument which lets
2684 packages set version numbers explicitly rather
2685 than the roundabout libtool way
2687 + Converted documentation to SGML using the docbook
2688 DTD. Now .txt and .html documents are installed
2689 in /usr/share/doc/fontconfig and there's no
2690 man page. Perhaps a man version can be written
2693 Sat Aug 31 15:21:22 PDT 2002 keithp
2694 + Xrender and Xft had several bugs related to
2695 rendering manually placed or poly-face text
2697 + Added more complete memory tracing in fontconfig
2698 Checked with (patched) mozilla and found no leaks
2700 + Updated Latin orthographies by comparing those from
2701 evertype.com with those from eki.ee. Tried to make
2702 sensible choices, including chars that occured in both
2703 and leaving some optional chars out that occured only
2706 Mon Aug 26 16:33:04 PDT 2002 keithp
2707 + Owen discovered that FcLangSetHasLang wasn't actually
2708 checking the language set.
2710 Mon Aug 26 13:37:23 PDT 2002 keithp
2711 + Append a version number to cache filenames
2713 Thu Aug 22 11:36:18 PDT 2002 keithp
2715 + Add "contains" and "not_contains" operators and elements to
2718 + Changed semantics of eq operator for LangSets to check for
2719 FcLangEqual so that any match will do
2721 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2722 of FcValueEqual to check for identical values when inserting into
2723 the results. This broke when the above semantic change was made,
2724 now it uses FcValueEqual which is "more correct" in any case.
2726 Thu Aug 22 00:32:29 PDT 2002 keithp
2728 + Reimplement FC_LANG as new datatype. Lists of strings
2729 was consuming over a megabyte of memory for 401 fonts.
2731 + Freeze patterns loaded from cache files. This shares
2732 common value lists and common patterns which saves
2733 considerable memory.
2735 + Change the denotation of 'constant' charsets to use special
2736 ref value instead of separate boolean.
2738 + Clean up leak tracing stuff, found several unannoted alloc/free
2741 Tue Aug 20 16:17:37 PDT 2002 keithp
2743 + Fix memory leak when parsing matrices from XML
2745 Mon Aug 19 11:57:27 PDT 2002 keithp
2747 + Fix autoconf files to pass FONTCONFIG_PATH on
2748 compile line so that ${prefix} gets substituted
2751 + Use getc_unlocked/putc_unlocked on systems that
2752 provide them to avoid damage done to stdio by posix
2754 + Eliminate FC_PATTERN and FcTypePattern in favor of
2755 an extended api for FcConfigSubstitute which takes
2756 both the font and the pattern.
2758 + Add 'sans serif' alias for 'sans-serif' as some apps
2759 can't handle hyphens in family names
2761 + Eliminate pretense of support for libxml2
2763 + Comment origins of Han orthographies
2765 Tue Jul 30 18:37:09 PDT 2002 keithp
2767 + Add binding property to edit element so that strong
2768 binding values may be inserted by the config file.
2769 The default remains weak.
2771 Sun 28 Jul 04:16:55 PDT 2002 keithp
2773 + Tagged release candidate 1 in the CVS tree and
2774 placed fcpackage.rc1.tar.gz for distribution
2776 Thu Aug 1 08:55:08 PDT 2002 keithp
2778 + Fixed autoconf builds to always specify install
2779 target files (for BSD). Also fixed to
2780 define FONTCONFIG_PATH in config.h so that
2781 nonstandard installs will actually work.