1 2005-12-21 Jinghua Luo <sunmoon1997@gmail.com>
4 * src/fcpat.c (FcPatternAddFullFname, FcPatternFindFullFname):
6 Shut up GCC warnings on amd.
8 2005-12-20 Patrick Lam <plam@mit.edu>
12 * fontconfig/fontconfig.h:
14 Bump version to 2.3.93.
16 2005-12-20 Patrick Lam <plam@mit.edu>
17 * src/fccharset.c (FcLangCharSetPopulate):
18 * src/fcint.h (FcCacheBankToIndex):
20 Avoid check on _fcBankId nullness and fix case where it used to
23 2005-12-20 Patrick Lam <plam@mit.edu>
24 * src/fcxml.c (FcConfigParseAndLoad):
26 Use open instead of fopen (requested by Phil Race for Sun).
28 2005-12-20 Patrick Lam <plam@mit.edu>
29 * src/fccache.c (FcDirCacheWrite);
30 * fc-cache/Makefile.am:
32 Fix GCC4 warning and Makefile brokenness for /var/cache/fontconfig
35 2005-12-20 Patrick Lam <plam@mit.edu>
36 * src/fcfreetype.c (FcFreeTypeQuery):
38 Restore code to skip over PCF fonts that have no encoded
40 (We guess that a font is PCF by presence of the PIXEL_SIZE
43 2005-12-12 Patrick Lam <plam@mit.edu>
44 * src/fccache.c (FcDirCacheOpen, FcDirCacheWrite):
46 Read and write the original location as a fallback for the
47 hashed cache file locations. This is mostly for users to be
48 able to have per-directory cache files.
50 2005-12-12 Patrick Lam <plam@mit.edu>
51 * fc-cache/fc-cache.c (scanDirs):
52 * fc-cache/Makefile.am:
53 * src/fccache.c (FcDirCacheHashName):
55 Improve error message when fc-cache can't write the cache. Add
56 missing slash. Reported by Behdad. Incorporate Behdad's patch to
57 create /var/cache/fontconfig when appropriate.
59 2005-12-12 Behdad Esfahbod <behdad@cs.toronto.edu>
62 * src/fcxml.c (FcConfigGetAttribute):
64 Fix crash reported by Frederic Crozat when using libxml2.
66 2005-12-09 Patrick Lam <plam@mit.edu>
69 * fc-cache/Makefile.am:
72 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
73 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
74 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
75 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
76 FcDirCacheHasCurrentArch, FcDirCacheHashName,
77 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
79 Migrate cache files from fonts directories to
80 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
81 but requires that all caches get rebuilt.
83 Also, autogen.sh now needs the additional parameter
86 2005-12-07 Patrick Lam <plam@mit.edu>
87 * src/fcpat.c (FcPatternAddString):
89 Because we've changed FcPatternAddString to use FcStrStaticName
90 and not FcValueSave, explicitly handle the case of a null string.
92 2005-12-06 Patrick Lam <plam@mit.edu>
93 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
97 2005-12-05 Patrick Lam <plam@mit.edu>
98 * src/fcname.c (FcNameGetObjectType):
100 Don't assign types to user object names.
102 2005-12-05 Patrick Lam <plam@mit.edu>
103 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
105 Don't free strings that have been returned from FcStrStaticName.
107 2005-12-01 Patrick Lam <plam@mit.edu>
108 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
110 Add codepath for reading global cache files as well.
112 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
115 * conf.d/10-fonts.persian.conf:
116 * conf.d/Makefile.am:
118 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
120 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
123 * src/fcxml.c (FcConfigParseAndLoad):
125 Only add a config file to the set of config files once.
127 2005-11-29 Patrick Lam <plam@mit.edu>
128 * src/fcint.h (FcCacheBankToIndex);
130 Fix segfault by guarding array dereference.
132 2005-11-29 Dirk Mueller <dmueller@suse.de>
136 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
137 FcCacheBankToIndex, FcCacheBankToIndexMTF,
141 Refactor FcCacheBankToIndex into an inlineable part
142 (in fcint.h) which checks the front of the list and a
143 non-inlineable part which finds and moves the appropriate element
144 to the front of the list.
146 2005-11-29 Patrick Lam <plam@mit.edu>
147 * src/fccfg.c (FcConfigBuildFonts):
148 * src/fccache.c (FcCacheReadDirs):
150 Make the perf guys hate me a bit less: hoist the directory-name
151 FcConfigAcceptFont check for cached fonts up to directory cache
152 read time, rather than running it for each font.
154 2005-11-29 Patrick Lam <plam@mit.edu>
155 * src/fccfg.c (FcConfigBuildFonts):
157 * src/fcpat.c (FcPatternFindFullFname):
159 Don't make FcPatternFindFullFname available to fccfg, it's not
160 really safe. Instead go through FcPatternGetString (sorry,
161 perf guys.) Also, use globs for dirs as well.
163 2005-11-28 Patrick Lam <plam@mit.edu>
164 * src/fccfg.c (FcConfigBuildFonts):
168 2005-11-28 Patrick Lam <plam@mit.edu>
170 * src/fcpat.c (FcPatternFindFullFname):
171 * src/fccfg.c (FcConfigBuildFonts):
173 Fix problem dating back at least to 2.3.2 where globs weren't
174 being applied to patterns loaded from a cache.
176 2005-11-28 Patrick Lam <plam@mit.edu>
177 * doc/fontconfig-user.sgml:
179 Fix some obvious spelling mistakes.
181 2005-11-28 Dirk Mueller <dmueller@suse.com>
182 Stephan Kulow <coolo@suse.de>
185 * src/fcmatch.c (FcFontSetMatch):
187 Don't kill all fonts during match (oops!)
190 2005-11-25 Dirk Mueller <dmueller@suse.com>
191 Stephan Kulow <coolo@suse.de>
192 Michael Matz <matz@suse.de>
195 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
198 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
199 inline FcCompare into FcFontSetMatch and reorder the
200 loops, adding a boolean array which blocks patterns from future
201 consideration if they're known to not be best on some past
204 2005-11-26 Dirk Mueller <dmueller@suse.com>
207 * src/fcmatch.c (FcCompareValueList):
211 2005-11-25 Patrick Lam <plam@mit.edu>
212 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
214 Don't do random matching when bad objects are passed into
217 2005-11-25 Patrick Lam <plam@mit.edu>
219 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
220 FcPatternSerialize, FcPatternUnserialize,
221 FcValueListEnsureBank, FcValueListDistributeBytes,
222 FcValueListUnserialize):
224 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
225 _fcPatternElts, _fcValueLists for consistency.
227 2005-11-25 Dirk Mueller <dmueller@suse.com>
232 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
234 2005-11-25 Patrick Lam <plam@mit.edu>
236 * src/fccache.c (FcDirCacheConsume):
237 * src/fccharset.c (FcCharSetUnserialize):
238 * src/fcfs.c (FcFontSetUnserialize):
239 * src/fclang.c (FcLangSetUnserialize):
240 * src/fcname.c (FcObjectUnserialize):
241 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
242 FcPatternUnserialize):
244 Pass around FcCache *s to the Unserialize functions for extra
245 consistency (and less overhead, for what that's worth).
247 2005-11-24 Dirk Mueller <dmueller@suse.com>
251 * src/fcmatch.c (FcCompare*, FcFontSetSort):
252 * src/fcname.c (FcNameUnparseValue):
254 Inline the *PtrU functions to gain perf.
255 Remove unneeded params for the FcCompare* functions.
257 2005-11-24 Dirk Mueller <dmueller@suse.com>
260 * src/fcint.h, fontconfig/fontconfig.h:
262 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
264 * src/fcpat.c, src/fcint.h, src/fcname.c:
266 Check for type validity during FcPatternAddWithBinding, don't
267 verify type in FcFontMatch, don't call FcCanonicalize here
268 (which always does a deep copy).
270 2005-11-24 Dirk Mueller <dmueller@suse.com>
273 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
274 * src/fcpat.c (FcPatternAddWithBinding):
276 Make FcCompareString and FcCompareFamily less expensive.
277 Only add a value for FC_FAMILY if the proposed value is a string.
279 2005-11-24 Dirk Mueller <dmueller@suse.com>
282 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
283 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
284 * src/fcint.h (FcDebug):
286 Inline FcDebug invocations and only initialize once, in FcInit*.
287 Improve debug msg in FcPatternPrint.
289 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
292 * fontconfig/fontconfig.h:
295 Minor code warning cleanups.
297 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
300 * fc-match/fc-match.c (main):
302 Make getopt_long accept -s parameter to fc-match as well.
304 2005-11-21 Dirk Mueller <dmueller@suse.com>
307 * src/fcmatch.c (FcCompareValueList):
309 Manually perform inlining & partial redundancy elimination to
310 reduce calls to FcValueListPtrU.
312 2005-11-21 Dirk Mueller <dmueller@suse.com>
315 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
316 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
318 Only invoke strlen() when really necessary.
320 2005-11-19 Matthias Clasen <mclasen@redhat.com>
324 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
329 Get rid of the use of freetype internal headers in fcfreetype.c,
330 since those headers will go away with freetype 2.2. Replace with
331 public domain ftglue code from pango. Note that the patch removes
332 some extra error checking in FT_Get_BDF_Property() and comments
333 out the skipping of empty pcf fonts.
335 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
338 * fc-lang/fc-lang.c (main):
340 Further fix of patch from 2005-11-04: miscounted numbers count
341 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
342 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
344 Removed leafidx_count and numbers_count since they are the same
345 and replaced them with offset_count.
347 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
350 * fc-cat/fc-cat.c (main):
352 Don't crash when fc-cat invoked with no arguments.
354 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
357 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
359 Fix invalid read access caused by premature free and
360 GCC4 warnings in libxml2 codepath.
362 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
365 * src/fccfg.c (FcConfigValues):
367 List iteration not needed in FcConfigValues, since it's building
368 up the list itself; we can just strip FcVoid elements during
371 2005-11-17 Patrick Lam <plam@mit.edu>
372 * src/fccfg.c (FcConfigValues):
374 Fix crash on invalid constants in config files (forgot to update
375 a pointer upon list iteration.)
377 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
380 * src/fcxml.c (FcTypecheckExpr):
382 Complain about invalid constants in config files.
384 2005-11-17 Andreas Schwab <schwab@suse.de>
387 * src/fccache.c (FcGlobalCacheSave):
389 Don't add current_arch_start more than once.
391 2005-11-16 Patrick Lam <plam@mit.edu>
392 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
393 * src/fcfs.c (FcFontSetUnserialize):
394 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
395 * src/fcpat.c (FcStrUnserialize):
397 Fix ordering of ALIGN with respect to saving block_ptr; add
398 another ALIGN to fcfs.c.
400 2005-11-16 Patrick Lam <plam@mit.edu>
401 * src/fccache.c (FcDirCacheProduce)
403 Fix case where alignment bytes bumped up metadata->count
404 causing unwarranted failures to write cache files.
405 (Reported by Stephan Kulow).
407 2005-11-16 Patrick Lam <plam@mit.edu>
408 * src/fccache.c (FcDirCacheProduce):
409 * src/fccharset.c (FcCharSetDistributeBytes):
410 * src/fcfs.c (FcFontSetDistributeBytes):
412 * src/fclang.c (FcLangSetDistributeBytes):
413 * src/fcname.c (FcObjectDistributeBytes):
414 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
417 Add *NeededBytesAlign(), which overestimates the padding which is
418 later added by the new ALIGN macro. Fix alignment problems on
419 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
420 version by Andreas Schwab).
422 2005-11-16 Stephan Kulow <coolo@kde.org>
427 Use sysconf to determine proper PAGESIZE value; this
428 appears to be POSIX-compliant. (reported by Andreas Schwab)
430 2005-11-04 Patrick Lam <plam@mit.edu>
436 Fix bug 2878 (excessive relocations at startup for charsets,
437 reported by Ross Burton): fc-lang/fc-lang now creates the
438 static form of the langset, not the dynamic form, so that
439 the charsets should now be in .rodata.
441 2005-11-04 Patrick Lam <plam@mit.edu>
442 * src/fcdir.c (FcDirScanConfig):
444 Add test for validity of directory caches that
445 somehow got lost (reported by make distcheck).
447 2005-11-04 Patrick Lam <plam@mit.edu>
451 * fontconfig/fontconfig.h:
453 Bump version to 2.3.92.
455 2005-11-02 Patrick Lam <plam@mit.edu>
456 * src/fcpat.c (FcPatternDuplicate):
458 Fix argument ordering problem in call to FcPatternTransferFullFname.
460 2005-11-02 Patrick Lam <plam@mit.edu>
461 * src/fcfreetype.c (FcFreetypeQuery):
462 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
463 FcPatternTransferFullFname):
465 Fix warnings and embarrassing double-free error.
467 2005-11-02 Zhe Su <zsu@novell.com>
472 Change the rule for artificial emboldening in fonts.conf.in. This
473 enables the support for artificial emboldening included in cairo.
475 2005-11-02 Patrick Lam <plam@mit.edu>
476 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
478 Don't zero out full names for FC_REF_CONSTANT fonts;
479 also, duplicate full names when transferring, and free
480 full names when freeing the associated font.
481 Reported by Jinghua Luo.
483 2005-11-02 Patrick Lam <plam@mit.edu>
484 * fc-cache/fc-cache.c (scanDirs):
485 * src/fcpat.c (FcValueListSerialize):
487 Revert the previous patch and commit the correct patch:
488 I forgot a canonicalization in FcValueListSerialize, so
489 that it would choke on already-serialized input files. Duh!
491 2005-11-02 Patrick Lam <plam@mit.edu>
492 * fc-cache/fc-cache.c (scanDirs):
494 Forcibly rescan a directory before writing a fresh local
495 cache file for that directory, fixing the losing-fonts
496 problem reported by Mike Fabian and also apparently the
497 font cache file corruption.
499 2005-11-02 Patrick Lam <plam@mit.edu>
500 * src/fccache.c (FcGlobalCacheLoad):
502 Fix thinko: actually, the whole global cache is stale
503 if the global cache is older than the (newest) config file.
505 2005-11-02 Patrick Lam <plam@mit.edu>
506 * src/fccache.c (FcGlobalCacheLoad):
507 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
510 Declare the global cache of a directory's contents to be stale if
511 the directory is newer than the (newest) configuration file.
513 2005-10-31 Patrick Lam <plam@mit.edu>
515 * src/fclist.c (FcListAppend):
516 * src/fcmatch.c (FcFontRenderPrepare):
517 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
518 FcPatternFreeze, FcPatternBaseFreeze):
520 Copy the full pathname whenever duplicating an FcPattern; otherwise,
521 applications continue breaking.
523 2005-10-31 Patrick Lam <plam@mit.edu>
524 * fc-cat/fc-cat.c (FcCacheFileRead, main):
525 * src/fcfreetype.c (FcFreeTypeQuery):
527 Fix small memory error (tried to free argv); use basename and
528 dirname correctly (they can modify their arguments).
530 2005-10-31 Patrick Lam <plam@mit.edu>
538 Reinstate basename patch, but keep a hash table linking FcPatterns
539 to their fully-qualified font names for clients' benefit. Clients
540 only pay for the font names once they request the FC_FILE property
541 from an FcPattern, but the font name is malloc'd at that point (i.e.
542 not mmapped: that's impossible, since it may vary between machines.)
543 Clients do have to pay for a copy of the path name per cache file.
545 Note that FcPatternGetString now does some rewriting if you ask
546 for an FC_FILE, appending the pathname as appropriate.
548 2005-10-31 Patrick Lam <plam@mit.edu>
549 * src/fcfreetype.c (FcFreeTypeQuery):
551 Revert basename patch, which breaks fontconfig clients on my system.
553 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
556 * fontconfig/fonts.conf.in:
557 * fontconfig/fontconfig.h:
561 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
562 to load embedded bitmaps or not.
564 2005-10-25 Patrick Lam <plam@mit.edu>
565 * src/fcfreetype.c (FcFreeTypeQuery):
567 Only add basename to patterns' FC_FILE element, not any part of
570 2005-10-22 Patrick Lam <plam@mit.edu>
573 Add some more consts, fixing more GCC4 warnings.
575 2005-10-22 Zhe Su <zsu@novell.com>
578 Support localized font family and style names.
579 This has been reported to break old apps like xfd, but modern
580 (gtk+/qt/mozilla) apps work fine.
582 2005-10-21 Patrick Lam <plam@mit.edu>
583 * src/fccache.c (FcGlobalCacheLoad):
585 Destroy the global cache file if it's terminally broken. (reported by
588 2005-10-21 Patrick Lam <plam@mit.edu>
589 * fc-list/fc-list.c (main):
590 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
591 * fontconfig/fontconfig.h:
593 Prevent fc-list from escaping strings when printing them (reported by
596 2005-10-20 Marcus Meissner <meissner@suse.de>
599 * fontconfig/fontconfig.h:
601 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
603 2005-10-14 Ross Burton <ross@burtonini.com>
606 * fc-glyphname/fc-glyphname.c:
609 Add consts to variables so as to move arrays into .rodata.
611 2005-10-14 Mike Fabian <mfabian@suse.de>
614 * src/fccache.c (FcDirCacheUnlink):
616 Check existence of directory cache file before attempting to unlink.
618 2005-10-13 Patrick Lam <plam@mit.edu>
619 * src/fccache.c (FcDirCacheUnlink):
621 Fix flipped return value on unlink. (Reported by Mike Fabian)
623 2005-10-12 Patrick Lam <plam@mit.edu>
626 * src/fcdir.c (FcDirScanConfig):
629 When fc-cache is run without --force, use directory cache files
630 to speed up fc-cache run time. (Reported by Mike Fabian)
632 2005-10-06 Patrick Lam <plam@mit.edu>
634 * src/fcname.c (FcObjectToPtr):
635 * src/fcpat.c (FcStrStaticName):
637 Add padding to make valgrind and glibc not hate each other
638 when calling strlen().
640 2005-10-05 Simos Xenitellis <simos74@gmx.net>
641 reviewed by: plam & keithp
645 Modify config file to use Greek fonts before Asian fonts with
648 2005-10-05 Christian Biesinger <cbiesinger@web.de>
649 reviewed by: plam & keithp
653 Use libtool -no-undefined flag on all platforms.
655 2005-10-05 Patrick Lam <plam@mit.edu>
656 * src/fccache.c (FcCacheHaveBank):
658 Implement move-to-front array for banks (perf regression
659 reported by Ronny V. Vindenes).
661 2005-10-04 Patrick Lam <plam@mit.edu>
662 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
663 FcDirCacheHasCurrentArch):
664 * fc-cache/fc-cache.c (scanDirs):
665 * fontconfig/fontconfig.h:
667 Add new API which unlinks directory caches and checks dir caches
668 for existence of appropriate sections. Fix fc-cache to unlink
669 stale cache files and save directory caches that lack relevant
672 2005-10-03 Patrick Lam <plam@mit.edu>
673 * src/fccache.c (FcDirCacheValid):
675 Ensure that a directory cache has the appropriate section
676 before reporting that it is valid (reported by Matthias Clasen).
678 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
686 Use libxml2 if requested (with --enable-libxml2) or if
687 expat is not available.
689 2005-09-29 Patrick Lam <plam@mit.edu>
690 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
692 Fix multi-arch cache files: compute the position for the
693 block to be added using info from OrigFile, not NewFile.
695 2005-09-28 Patrick Lam <plam@mit.edu>
696 * src/fccache.c (FcCacheMachineSignature):
698 Cast results of sizeof() to unsigned int to get rid of
699 warnings on x86_64 (thanks Matthias Clasen).
701 2005-09-27 Patrick Lam <plam@mit.edu>
702 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
705 Use FcAtomic to rewrite cache files.
707 2005-09-27 Patrick Lam <plam@mit.edu>
709 * src/fccache.c (FcDirCacheWrite):
711 Don't unlink the fonts.cache-2 file even if there's no data
712 to write; just write an empty cache file. (thanks Lubos Lunak)
714 2005-09-27 Patrick Lam <plam@mit.edu>
716 * src/fccache.c (FcDirCacheWrite):
718 Allocate room for the subdirectory names in each
719 directory cache. Thanks to James Cloos for finding
720 and diagnosing this bug!
722 2005-09-22 Patrick Lam <plam@mit.edu>
724 * fc-cache/fc-cache.sgml:
725 * src/fccache.c (FcDirCacheWrite):
726 * src/fccache.h (struct FcCache):
728 Update documentation -- fc-cache's man page now says that you
729 need to run fc-cache once per cached architecture; add some
730 documentation to the FcCache structure.
732 Make fc-cache write out fonts.cache-2 files for directories with
733 no fonts (i.e. only subdirectories).
735 2005-09-22 Patrick Lam <plam@mit.edu>
737 * fc-cache/fc-cache.sgml:
739 * fc-glyphname/fc-glyphname.c:
745 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
750 * fontconfig/fcprivate.h:
751 * fontconfig/fontconfig.h:
765 Implement new mmaped cache for font information.
766 Bump so revision to 2.3.90.
768 2005-07-25 Keith Packard <keithp@keithp.com>
770 * doc/fontconfig-user.sgml:
771 * fc-glyphname/fc-glyphname.c: (scan), (main):
772 * fc-lang/fc-lang.c: (FcConfigHome):
773 * fc-match/fc-match.c: (main):
774 * src/fccfg.c: (FcConfigHome):
775 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
776 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
777 (addtag), (FcFontCapabilities):
778 * src/fcpat.c: (FcValueListEntCreate):
779 * src/fcstr.c: (FcStrCaseWalkerInit):
780 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
782 Various GCC 4 cleanups for signed vs unsigned char
784 Match only [0-9]*.conf files in <include>{directory}</include>
785 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
787 2005-07-15 Carl Worth <cworth@cworth.org>
790 * src/fcinit.c: (FcFini):
791 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
794 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
795 Pull the FcObjectStateName hash table out to file scope, and add
796 FcObjectStaticNameFini so that FcFini will cleanup this hash table
799 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
802 2005-06-16 Patrick Lam <plam@MIT.EDU>
806 * src/fccfg.c: (FcConfigCompareValue):
807 Make FcOpNotContains use FcStrStr for strings so that
808 it matches semantics for !FcOpContains.
810 2005-05-20 Keith Packard <keithp@keithp.com>
814 Move fontconfig source package to libs as per override
816 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
818 reviewed by: Mike Fabian
821 The ka.orth file requires several characters which are not
822 used anymore in modern Georgian and which are missing in the free
823 Georgian TrueType fonts downloadable at:
825 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
827 2005-04-27 Keith Packard <keithp@keithp.com>
831 Update date to real 2.3.2 release date.
832 Fix change attributions
834 2005-04-27 Keith Packard <keithp@keithp.com>
837 Bump so revision for 2.3.2
838 * fc-cache/fc-cache.c: (scanDirs):
839 Fix a few minor leaks in error cases.
841 2005-04-23 Keith Packard <keithp@keithp.com>
846 * fontconfig/fontconfig.h:
847 Update for version 2.3.2
849 2005-04-21 Keith Packard <keithp@keithp.com>
851 * debian/fontconfig.postinst:
852 Don't force bitmap font enable in default
853 configuration; allows users to override this in
863 * debian/po/pt_BR.po:
864 * debian/po/templates.pot:
866 * debian/po/zh_CN.po:
869 * fc-cache/fc-cache.c: (main):
870 Destroy font configuration on exit to help valgrind
873 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
874 (FcFreeTypeCheckGlyph):
875 Use own transcoding routines in preference to iconv
876 which appears to have leaks in some translators.
877 Call iconv_close after using iconv (oops).
879 Prefer unicode encoding of Euro char as some
880 fonts mis-encode Euro in other ones.
882 Must fetch bitmap glyphs to get width values
883 to check for monospace/dual-width fonts.
885 2005-04-13 Ross Burton <ross@burtonini.com>
888 Check that a pattern isn't already frozen in FcPatternFreeze.
890 2005-03-31 Ross Burton <ross@burtonini.com>
895 Run all FcPattern objects through FcObjectStaticName, so that
896 compares can be done on pointers instead of strings (#2659)
898 2005-03-17 Tor Lillqvist <tml@novell.com>
900 * src/fontconfig.def.in: Add the .dll to the dll name.
902 2005-03-10 Keith Packard <keithp@keithp.com>
904 * debian/README.Debian:
905 Update to reflect configuration changes
907 * debian/fontconfig.postinst:
908 Fix Autohint vs Autohinter mistake
909 * debian/fontconfig.templates:
910 Adopt changes from Josselin Mouette for configuration descriptions
911 Update debian to version 2.3.1-2
913 2005-03-08 Keith Packard <keithp@keithp.com>
917 Update debian for 2.3.1
919 2005-03-09 Tor Lillqvist <tml@novell.com>
921 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
924 * src/fccfg.c (FcConfigFileExists): Check also drive letter
927 2005-03-08 Keith Packard <keithp@keithp.com>
931 * fontconfig/fontconfig.h:
934 2005-03-05 Keith Packard <keithp@keithp.com>
936 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
937 Include space and remove numbers from valid script tags.
938 This ensures that tags like 'lao ' work while rejecting
939 those which have any digits.
940 Eliminate a spurious debugging variable (len)
942 2005-03-05 Keith Packard <keithp@keithp.com>
944 * src/fcfreetype.c: (addtag), (GetScriptTags),
945 (FcFontCapabilities):
946 Rework GSUB/GPOS script parsing to survive broken fonts.
947 Thanks for the broken font go to Manish Singh
949 2005-03-05 Keith Packard <keithp@keithp.com>
954 * debian/fontconfig.config:
955 * debian/fontconfig.templates:
957 Include 2.3 release information in changelog
958 Add Josselin Mouette as an Uploader
959 Set hinting_type to low priority configuration option
962 * debian/fontconfig.postinst:
963 yes_bitmaps.conf -> yes-bitmaps.conf
969 2005-03-02 Keith Packard <keithp@keithp.com>
972 * conf.d/Makefile.am:
973 * conf.d/autohint.conf:
974 * conf.d/no-sub-pixel.conf:
975 * conf.d/sub-pixel.conf:
976 * conf.d/unhinted.conf:
977 * debian/autohint.conf:
978 * debian/fontconfig.install:
979 * debian/fontconfig.postinst:
980 * debian/fontconfig.templates:
981 * debian/no-sub-pixel.conf:
982 * debian/unhinted.conf:
983 Move debian-specific conf file examples upstream.
985 Sub-pixel configuration examples must smash subpixel value
986 as Xft always sets it from X.
988 Change sub-pixel rendering debconf descriptions from
989 Enable/Disable to Always/Never.
991 2005-03-02 Keith Packard <keithp@keithp.com>
996 Ignore more build detritus
999 Add debian package construction stuff.
1001 * config/config.guess:
1002 * config/config.sub:
1003 Update to newer versions of these tools
1006 Get library manuals to build again (we love automake).
1008 * debian/README.Debian:
1009 * debian/autohint.conf:
1014 * debian/fontconfig-udeb.install:
1015 * debian/fontconfig.config:
1016 * debian/fontconfig.defoma:
1017 * debian/fontconfig.dirs:
1018 * debian/fontconfig.install:
1019 * debian/fontconfig.postinst:
1020 * debian/fontconfig.postrm:
1021 * debian/fontconfig.templates:
1022 * debian/libfontconfig1-dev.install:
1023 * debian/libfontconfig1.install:
1024 * debian/local.conf.md5sum:
1025 * debian/no-sub-pixel.conf:
1026 * debian/po/POTFILES.in:
1035 * debian/po/pt_BR.po:
1036 * debian/po/templates.pot:
1038 * debian/po/zh_CN.po:
1040 * debian/unhinted.conf:
1041 Update debian build system to switch maintainers and
1042 deal with 2.3 functionality
1044 2005-03-01 Keith Packard <keithp@keithp.com>
1048 * fontconfig/fontconfig.h:
1051 2005-03-01 Keith Packard <keithp@keithp.com>
1054 Generate and install PDF versions of the manuals
1056 * doc/fcpattern.fncs:
1059 * doc/fcstring.fncs:
1060 Add missing exported functions, fix data types
1062 * doc/fontconfig-devel.sgml:
1063 Add missing pattern elements.
1065 * doc/fontconfig-user.sgml:
1066 Add missing pattern elements. Document conf.d usage,
1067 clarify available orthography list. Fix some config file
1068 attributes. Complete list of constants.
1070 * fontconfig/fontconfig.h:
1071 Mark FC_SOURCE deprecated.
1073 * src/fcfreetype.c: (FcFreeTypeQuery):
1074 Don't set FC_SOURCE any longer.
1076 2005-02-28 Keith Packard <keithp@keithp.com>
1079 * conf.d/Makefile.am:
1081 * conf.d/no-bitmaps.conf:
1082 * conf.d/sub-pixel.conf:
1083 * conf.d/yes-bitmaps.conf:
1085 Create prototype /etc/fonts/conf.d directory with a few
1086 sample configuration files.
1087 Deprecate use of local.conf for local customizations in favor of
1088 this directory based scheme which is more easily integrated into
1089 installation systems.
1092 Tag FC_EMBOLDEN as a boolean variable
1094 2005-02-10 Keith Packard <keithp@keithp.com>
1096 reviewed by: pborelli@katamail.com
1098 * src/fcdir.c: (FcFileScanConfig):
1099 Free patterns from fonts which are rejected by configuration
1102 2005-01-28 Keith Packard <keithp@keithp.com>
1106 * fontconfig/fontconfig.h:
1107 Update for version 2.2.99
1109 2005-01-28 Keith Packard <keithp@keithp.com>
1112 Add a few pointers (#2284, #2285)
1114 2005-01-28 Keith Packard <keithp@keithp.com>
1117 * src/fcname.c: (FcNameBool):
1118 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1119 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1120 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1121 Polite typechecking for test and edit expressions. Helps
1122 catch errors in the font configuration. (bug 229)
1124 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1126 reviewed by: Keith Packard <keithp@keithp.com>
1129 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1131 2005-01-13 Keith Packard <keithp@keithp.com>
1133 * doc/fontconfig-user.sgml:
1134 Add SEE ALSO section (bug 2085)
1136 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1138 reviewed by: Keith Packard <keithp@keithp.com>
1143 * fc-case/Makefile.am:
1144 * fc-glyphname/Makefile.am:
1145 * fc-lang/Makefile.am:
1146 * src/fontconfig.def.in:
1147 Cross compiling fixes (bug 280)
1149 2005-01-13 Keith Packard <keithp@keithp.com>
1152 Update blanks list (Closes bug 86)
1154 2005-01-04 Keith Packard <keithp@keithp.com>
1156 * src/fccache.c: (FcCacheFontSetAdd):
1157 Verify that every font pattern loaded from cache has
1158 both FC_FILE and FC_FAMILY entries.
1159 Attempt to fix bug #2219.
1161 2004-12-29 Keith Packard <keithp@keithp.com>
1165 * fontconfig/fontconfig.h:
1166 Update for version 2.2.98
1168 2004-12-29 Keith Packard <keithp@keithp.com>
1170 * fontconfig/fontconfig.h:
1171 Document ASCII limitations of Fc character conversion macros
1172 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1173 Fix off-by-one error in utf-8 case walking code.
1174 Add FcStrDowncase (useful for testing case conversion functions)
1176 2004-12-29 Keith Packard <keithp@keithp.com>
1179 * fc-case/.cvsignore:
1180 clean up CVS ignore lists
1181 * fc-lang/iso-3166.txt:
1182 Add territory database
1184 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1186 Reviewed by: Keith Packard
1189 Remove Han characters from Korean orthography
1191 2004-12-29 Keith Packard <keithp@keithp.com>
1194 Reorder utility programs to make sure fc-case is run before fc-lang
1195 as fc-lang uses fcstr.c which uses fccase.h
1199 2004-12-29 Keith Packard <keithp@keithp.com>
1202 Adopt some RedHat suggestions for standard font configuration.
1206 * fc-case/CaseFolding.txt:
1207 * fc-case/Makefile.am:
1208 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1209 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1210 (dump), (parseRaw), (caseFoldReadRaw), (main):
1211 * fc-case/fccase.tmpl.h:
1212 Add new helper program 'fc-case' to construct case folding
1213 tables from standard Unicode CaseFolding.txt file
1216 * src/fclist.c: (FcListValueHash):
1217 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1218 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1219 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1220 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1221 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1222 Re-implement case insensitive functions with Unicode
1223 aware versions (including full case folding mappings)
1225 2004-12-13 Keith Packard <keithp@keithp.com>
1227 reviewed by: Owen Taylor <otaylor@redhat.com>
1229 * src/fcmatch.c: (FcFontSetSort):
1230 I changed FcFontSetSort to respect the generic aliases better
1231 in the face of language matching.
1233 What I did was to ammend the strict sort order used by FcFontSort so
1234 that it 'satisfies' the language specified in the pattern by locating
1235 the best matching font supporting each pattern language and then
1236 ignores language in the remaining fonts for purposes of matching.
1238 So, when asking for 'sans:lang=en', you'll get an English font first,
1239 and then the remaining fonts sorted with respect to the 'sans' alias
1240 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1242 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1244 reviewed by: Keith Packard <keithp@keithp.com>
1246 * fontconfig/fontconfig.h:
1249 Configuration changes to request synthetic emboldening of
1250 fonts. The actual emboldening code will live in Xft.
1252 2004-12-09 John Thacker <thacker@math.cornell.edu>
1254 reviewed by: Keith Packard <keithp@keithp.com>
1258 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1259 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1260 и), and don't even appear in KOI8-R. (The hypothesis that they
1261 don't appear in KOI8-R due to their similarity with Latin I and i is
1262 eliminated by their presence in KOI8-U.) I have a couple of fonts
1263 with Russian support that don't have the letter.
1265 Therefore, 0406 and 0456 should be removed from or commented out of
1268 2004-12-06 michael meeks <mmeeks@novell.com>
1270 Reviewed by: Keith Packard <keithp@keithp.com>
1272 * src/fcinit.c: (FcMemReport):
1274 * src/fclist.c: (FcObjectSetAdd):
1275 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1276 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1277 * src/fcxml.c: (FcParsePatelt):
1278 memoize strings and share a single copy for all uses. Note that
1279 this could be improved further by using statically allocated blocks
1280 and gluing multiple strings together, but I'm basically lazy.
1281 In my environment with 800 font files, I get a savings of about 90KB.
1283 2004-12-06 Keith Packard <keithp@keithp.com>
1287 * config/Makedefs.in:
1290 * doc/fcatomic.fncs:
1291 * doc/fcblanks.fncs:
1292 * doc/fccharset.fncs:
1293 * doc/fcconfig.fncs:
1294 * doc/fcconstant.fncs:
1296 * doc/fcfontset.fncs:
1297 * doc/fcfreetype.fncs:
1299 * doc/fcmatrix.fncs:
1300 * doc/fcobjectset.fncs:
1301 * doc/fcobjecttype.fncs:
1302 * doc/fcpattern.fncs:
1303 * doc/fcstring.fncs:
1304 * doc/fcstrset.fncs:
1306 * doc/fontconfig-devel.sgml:
1307 * doc/fontconfig-user.sgml:
1309 * doc/version.sgml.in:
1310 * fc-cache/Makefile.am:
1311 * fc-cache/fc-cache.c:
1312 * fc-glyphname/Makefile.am:
1313 * fc-glyphname/fc-glyphname.c:
1314 * fc-glyphname/fcglyphname.tmpl.h:
1315 * fc-lang/Makefile.am:
1325 * fc-lang/az_ir.orth:
1359 * fc-lang/fc-lang.c:
1360 * fc-lang/fc-lang.man:
1361 * fc-lang/fclang.tmpl.h:
1406 * fc-lang/ku_ir.orth:
1439 * fc-lang/ps_af.orth:
1440 * fc-lang/ps_pk.orth:
1469 * fc-lang/ti_er.orth:
1470 * fc-lang/ti_et.orth:
1496 * fc-lang/zh_cn.orth:
1497 * fc-lang/zh_hk.orth:
1498 * fc-lang/zh_mo.orth:
1499 * fc-lang/zh_sg.orth:
1500 * fc-lang/zh_tw.orth:
1502 * fc-list/Makefile.am:
1503 * fc-list/fc-list.c:
1504 * fc-match/Makefile.am:
1505 * fc-match/fc-match.1:
1506 * fc-match/fc-match.c:
1507 * fontconfig/fcfreetype.h:
1508 * fontconfig/fcprivate.h:
1509 * fontconfig/fontconfig.h:
1530 Change files from ISO-Latin-1 to UTF-8
1532 2004-12-04 Keith Packard <keithp@keithp.com>
1535 Update links to new freedesktop.org locations
1537 Add uninstall-local to get rid of fonts.conf and local.conf if they
1538 match the distributed versions. Fixes 'make distcheck'
1540 2004-12-04 Keith Packard <keithp@keithp.com>
1544 * fontconfig/fontconfig.h:
1545 Updates for version 2.2.97
1547 2004-12-04 Owen Taylor <otaylor@redhat.com>
1549 reviewed by: Keith Packard <keithp@keithp.com>
1551 * fc-cache/fc-cache.c: (main):
1552 Sleep for two seconds before exiting to make sure timestamps
1553 for future changes have distinct mod times in the file system.
1556 Add Punjabi orthography. Bug #1671.
1558 2004-12-04 Keith Packard <keithp@keithp.com>
1561 Just remove the FC_FONTDATE -- it has locale issues and
1562 annoys redhat multi-arch installs. Now that all X fonts are
1563 included without prejudice, the chances of the date being at
1564 all interesting are rather limited. Bug #505.
1566 Add copyright and license
1568 2004-12-04 Keith Packard <keithp@keithp.com>
1571 Change default set of fonts to include all of
1572 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
1573 * doc/fontconfig-user.sgml:
1574 Document new <include>directory-name</include> semantics
1576 add <include ignore_missing="yes">conf.d</include>
1578 Add selectfont to ignore bitmap fonts, add comment for
1579 selectfont which accepts bitmap fonts.
1582 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
1583 Allow <include> configuration elements to reference directories.
1584 Parse and load all files of the form [0-9]* in sorted order.
1586 2004-12-04 Keith Packard <keithp@keithp.com>
1589 Report command line for $srcdir/configure accurately.
1592 2004-12-04 Keith Packard <keithp@keithp.com>
1594 * src/fcfreetype.c: (FcFreeTypeQuery):
1595 Check for non-empty face->family_name and face->style_name
1596 before using those for the font. Empty names match everything.
1599 2004-12-04 Keith Packard <keithp@keithp.com>
1602 * fontconfig/fontconfig.h:
1603 * src/fcfreetype.c: (FcFreeTypeQuery):
1605 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
1606 available. This provides font file format information (BDF, Type 1,
1607 PCF, TrueType) for each font. Closes #109.
1609 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
1611 reviewed by: Keith Packard <keithp@keithp.com>
1613 * doc/fontconfig-user.sgml:
1616 * fontconfig/fontconfig.h:
1617 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
1618 (GetScriptTags), (FcFontCapabilities):
1620 Add detection for font capabilities (bug #105)
1622 2004-12-04 Keith Packard <keithp@keithp.com>
1625 Move existing fonts.conf to fonts.conf.bak
1628 Add detection of iconv
1630 * doc/fcpattern.fncs:
1631 * doc/fontconfig-devel.sgml:
1632 * doc/fontconfig-user.sgml:
1634 Document new selectfont elements
1637 Switch to UTF-8 in comment
1639 * fontconfig/fontconfig.h:
1641 Add fullname, and family/style/fullname language entries
1643 * src/fccache.c: (FcCacheFontSetAdd):
1644 * src/fcdir.c: (FcFileScanConfig):
1645 Respect selectfont/*/glob
1648 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
1649 (FcConfigCompareValue), (FcConfigPatternsAdd),
1650 (FcConfigPatternsMatch), (FcConfigAcceptFont):
1651 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
1652 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
1653 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
1654 Add support for selectfont
1656 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1657 (FcStringInPatternElement), (FcFreeTypeQuery):
1658 Add multi-lingual family/style/fullname support
1660 * src/fclist.c: (FcListPatternMatchAny):
1661 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
1663 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
1664 (FcObjectStaticName):
1665 Add new FcPatternRemove/FcPatternAppend.
1666 FcObjectStaticName stores computed pattern element names which
1667 are required to be static.
1669 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
1674 Remove spurious / after $(DESTDIR)
1676 2004-06-30 Keith Packard <keithp@keithp.com>
1680 * fontconfig/fontconfig.h:
1683 2004-06-30 Keith Packard <keithp@keithp.com>
1685 Provided by: Lubos Lunak <l.lunak@suse.cz>
1687 * src/fccfg.c: (FcConfigUptoDate):
1688 However FcConfigUptoDate() doesn't seem to work. See the attached
1689 patch. First there's an obvious misplaced parenthesis making it
1690 return always false, and second, even this call fails to detect font
1691 changes (e.g. adding a new font to
1692 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
1693 well. The problem seems to be triggered by my fonts.conf specifying
1694 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
1695 doesn't include subdirs, unlike config->fontDirs.
1697 2004-06-03 Keith Packard <keithp@keithp.com>
1699 * fontconfig/fontconfig.h:
1700 Remove comma at end of FcResult enum definition.
1702 2004-05-29 Keith Packard <keithp@keithp.com>
1705 Add steps to md5sum release
1707 2004-05-29 Keith Packard <keithp@keithp.com>
1711 * fontconfig/fontconfig.h:
1714 2004-05-29 Keith Packard <keithp@keithp.com>
1716 * fontconfig/fontconfig.h:
1717 * src/fcmatch.c: (FcFontSetMatch):
1718 Add FcResultOutOfMemory to provide an accurate error when
1719 FcFontSetMatch fails in this way
1722 Make #warning about lacking various FreeType features indicate
1723 which version those features appeared so users know how to
1724 fix the problem (Thanks to Anton Tropashko)
1726 2004-05-05 Keith Packard <keithp@keithp.com>
1728 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
1729 Replace MIN/MAX/ABS macros which happen to have come
1730 from FreeType with fontconfig-specific ones (FC_*)
1732 2004-04-23 Keith Packard <keithp@keithp.com>
1735 Extend release preparation instructions to include
1736 notification and distribution steps
1738 2004-04-23 Keith Packard <keithp@keithp.com>
1742 * fontconfig/fontconfig.h:
1743 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
1745 2004-04-23 Keith Packard <keithp@keithp.com>
1748 Ignore a few more autotool files
1750 2004-04-14 Keith Packard <keithp@keithp.com>
1753 Add instructions for doing a release
1755 * fontconfig.spec.in:
1756 clean up .spec file; perhaps this will be useful to somebody...
1760 * fontconfig/fontconfig.h:
1763 * fc-lang/fc-lang.c:
1764 Make 'scanopen' static so GCC doesn't whine about lacking prototype
1766 * fc-glyphname/Makefile.am:
1767 * fc-lang/Makefile.am:
1768 * fc-list/Makefile.am:
1769 * fc-match/Makefile.am:
1771 Add WARN_CFLAGS to pass -W flags for GCC systems
1773 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
1774 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
1775 Change various char types around to match across
1777 Fixed bug in using available_sizes[i].height which
1778 is in pixels, not 64ths of a pixel.
1780 2004-03-06 Keith Packard <keithp@keithp.com>
1782 * src/fcfreetype.c: (FcFreeTypeQuery):
1783 Force FC_FOUNDRY and FC_WIDTH to always be set so that
1784 matches looking for explicit values prefer exact matches
1786 2004-03-02 Keith Packard <keithp@keithp.com>
1788 Supplied by: mfabian@suse.de (Mike FABIAN)
1790 * src/fcfreetype.c: (FcFreeTypeQuery):
1791 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
1792 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
1794 2004-02-21 Manish Singh <yosh@gimp.org>
1796 * fc-glyphname/fc-glyphname.c: (main):
1797 Cast strlen to int for printf, so we're 64-bit clean.
1799 2004-02-11 Keith Packard <keithp@keithp.com>
1802 * src/fcfreetype.c: (FcGetPixelSize):
1803 Ok, so I messed up the test for y_ppem. Let's see if I
1804 got it right this time.
1806 2004-02-10 Keith Packard <keithp@keithp.com>
1809 * src/fcfreetype.c: (FcGetPixelSize):
1810 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
1811 FT_Bitmap_Size record. Add a configure.in test for this
1812 and change the code accordingly (using height instead).
1814 2004-02-06 Keith Packard <keithp@keithp.com>
1817 Add Low Saxon orthography
1818 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
1820 * src/fccfg.c: (FcConfigNewestFile):
1821 Oops. Left 'newest.set' unset, which would miscompute
1824 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
1825 (FcFreeTypeCheckGlyph):
1826 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
1827 font properties (which report the wrong value in current FreeType)
1829 Don't attempt to check for empty glyphs in non-scalable fonts; they
1832 2004-02-01 Tor Lillqvist <tml@iki.fi>
1834 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
1835 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
1836 cache if config->cache is NULL, which happens if FcConfigHome() is
1837 NULL. Guard against that by using the temp folder in that case.
1839 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
1841 * fc-lang/az_ir.orth:
1842 * fc-lang/ku_ir.orth:
1843 * fc-lang/ps_af.orth:
1844 * fc-lang/ps_pk.orth:
1845 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
1846 (Afghan and Pakistani).
1848 Updated Urdu orthography with real data.
1850 2003-12-11 Carl Worth <cworth@east.isi.edu>
1852 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
1855 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
1857 (all-local): Remove excessive whitespace.
1859 * autogen.sh: Add 'set -e' to abort when any program fails,
1860 (avoids printing of 'now type make' after configure aborts).
1862 2003-11-17 Eric Christopherson <rakko@charter.net>
1864 reviewed by: Keith Packard <keithp@keithp.com>
1867 * fontconfig/fcfreetype.h:
1869 Switch to FreeType 2.1.7 style includes. Bug #150.
1871 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
1873 * fc-list/fc-list.sgml: Add some example usages.
1875 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
1878 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
1881 2003-10-27 Keith Packard <keith@keithp.com>
1884 * fontconfig/fontconfig.h:
1885 Update to version 2.2.92
1887 2003-10-27 Keith Packard <keithp@keithp.com>
1892 * fc-cache/Makefile.am:
1893 * fc-glyphname/Makefile.am:
1894 * fc-lang/Makefile.am:
1895 * fc-list/Makefile.am:
1896 * fc-match/Makefile.am:
1899 Yet more cleanups to finish getting 'make distcheck' working
1900 This has been tested to ensure that it even works from a _build
1903 2003-10-26 Keith Packard <keithp@keithp.com>
1907 * fc-cache/Makefile.am:
1908 * fc-glyphname/Makefile.am:
1909 * fc-lang/Makefile.am:
1910 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
1911 * fc-list/Makefile.am:
1912 * fc-match/Makefile.am:
1913 Attempts to fix 'make distcheck' work. Things are
1914 progressing pretty well, but there are still failures
1915 long into the process dealing with docs (as always).
1917 The big changes here are mostly to make $(srcdir) != "."
1918 work correctly, fixing the docbook related sections and
1919 fc-lang were particularily tricky. Docbook refuses to load
1920 system entities from anywhere other than where the original .sgml
1921 file was located, so no luck looking in "." for the
1922 configure-generated version.sgml and confdir.sgml files.
1924 fc-lang needed help finding .orth files; added a -d option
1925 to set the directory as the least evil of many options.
1927 Now to go use a faster machine and try and wring out the last
1930 2003-10-26 Keith Packard <keithp@keithp.com>
1934 2003-10-26 Keith Packard <keithp@keithp.com>
1937 Include confdir.sgml.in in EXTRA_DIST
1939 2003-10-09 Josselin Mouette <joss@debian.org>
1941 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
1942 * fc-list/fc-list.sgml fc-list/Makefile.am:
1943 Replace fc-cache and fc-list manpages with more detailed, SGML
1946 2003-09-23 Owen Taylor <otaylor@redhat.com>
1948 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
1949 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
1950 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
1953 2003-09-23 Owen Taylor <otaylor@redhat.com>
1955 * fc-lang/ka.orth: Remove Georgian capitals, they
1956 aren't used for normal writing. (Bug #116)
1958 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
1960 * doc/fontconfig-devel.sgml:
1961 * doc/fontconfig-user.sgml:
1962 * fontconfig/fontconfig.h:
1964 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
1965 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
1967 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
1968 monospace and dual-width fonts, allow roughly a 3% variance in the
1971 2003-08-31 Manish Singh <yosh@gimp.org>
1973 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
1976 2003-08-15 Carl Worth <cworth@isi.edu>
1978 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
1979 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
1981 * src/fcpat.c (FcValueListEntDestroy): New function to support
1982 FcFini memory cleanup. Some statistics are not kept in
1984 (FcValueListFreeze): Move hashTable outside this function so it
1985 can be accessed by FcValueListThawAll.
1986 (FcValueListThawAll): New function complements FcValueListFreeze.
1987 (FcPatternBaseFreeze): Move hashTable outside this function so it
1988 can be accessed by FcPatternBaseThawAll.
1989 (FcPatternBaseThawAll): New function complements
1990 FcPatternBaseFreeze.
1991 (FcPatternThawAll): New function complements FcPatternFreeze.
1993 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
1995 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
1996 allocated FcCharLeafEnt "blocks" so they can be freed later.
1997 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
1998 can be accessed by FcCharSetThawAllLeaf.
1999 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
2000 (FcCharSetFreezeBase): Move hashTable outside this function so it
2001 can be accessed by FcCharSetThawAll.
2002 (FcCharSetThawAll): New function complements FcCharSetFreeze.
2004 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
2005 (FcConfigDestroy): Fic leak of FcBlanks.
2007 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
2008 (main): Add call to FcFini when finished.
2010 * fc-glyphname/fc-glyphname.c: Mark several local functions as
2011 static. Add prototypes.
2013 * doc/fcinit.fncs: Add documentation for FcFini function.
2015 * doc/edit-sgml.c: Mark several local functions as static. Add
2018 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
2020 2003-06-15 Tor Lillqvist <tml@iki.fi>
2022 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
2023 before comparing (needed on Windows).
2025 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
2027 2003-06-13 Tor Lillqvist <tml@iki.fi>
2029 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
2032 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
2033 WINDOWSFONTDIR token.
2035 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
2036 end, not to confuse libtool, which expects the EXPORTS line to be
2037 the first. Add FcConfigEnableHome.
2039 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
2040 built as a DLL on Win32.
2042 2003-06-09 Keith Packard <keithp@keithp.com>
2044 * Tag version 2.2.90
2046 2003-06-09 Keith Packard <keithp@keithp.com>
2048 * Optimization in FcLangSetIndex was broken, occasionally
2049 returning a pointer to the wrong location on miss
2051 * Add fc-match to test font matching from the command line.
2053 2003-05-31 Keith Packard <keithp@keithp.com>
2055 * (Bug 85) add support for culmus fonts
2056 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
2057 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
2059 2003-05-28 James Su <suzhe@turbolinux.com.cn>
2061 * Fix "contains" op for strings and langsets.
2063 2003-05-17 Keith Packard <keithp@keithp.com>
2065 * Fix build error with BDF prop local. Free langset after query
2067 2003-05-14 Keith Packard <keithp@keithp.com>
2069 * Extract spacing from XLFD atom
2071 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2073 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2074 disappeared in 1.30.
2076 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2078 2003-05-12 Keith Packard <keithp@keithp.com>
2080 * Use FcIsWidth to share code
2082 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2083 misclassifying some Han fonts as monospaced.
2085 2003-05-07 Keith Packard <keithp@keithp.com>
2087 * Add filename-based accept/reject to ammend available fonts.
2089 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2090 older FreeType releases.
2092 2003-05-06 Keith Packard <keithp@keithp.com>
2094 * Remove 0b82 and Tamil numbers from tamil
2095 orthography (Jungshik Shin <jshin@mailaps.org>)
2097 2003-05-04 Keith Packard <keithp@keithp.com>
2099 + Map glyph names in fonts with adobe custom encoding to unicode
2101 2003-05-02 Keith Packard <keithp@keithp.com>
2103 * Add FC_WEIGHT_BOOK as weight 75
2105 2003-04-30 Keith Packard <keithp@keithp.com>
2107 * Typo in bitstream foundry name
2109 2003-04-24 Keith Packard <keithp@keithp.com>
2111 * Eliminate italic_angle check for PS fonts
2113 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2115 * Getting closer to fixing /etc/fonts hard-coding.
2117 2003-04-22 Keith Packard <keithp@keithp.com>
2119 * Update autogen.sh to work with newer automake versions
2120 * Handle pattern elements moving during multiple edits
2122 2003-04-23 James Henstridge <james@daa.com.au>
2124 * doc/fontconfig-devel.sgml: close the <para> element.
2126 * doc/fcpattern.fncs: close the <para> element.
2128 * doc/func.sgml: close the <refsynopsisdiv> element.
2130 2003-04-22 Keith Packard <keithp@keithp.com
2132 * Update autogen.sh to work with newer automake versions
2133 * Handle pattern elements moving during multiple edits
2135 2003-04-17 Colin Walters <walters@debian.org>
2137 + Remove some unused variables, and initialize some other ones so
2138 gcc doesn't warn us.
2140 2003-04-16 Keith Packard <keithp@keithp.com>
2142 + tag version 2.1.94
2144 2003-04-16 Keith Packard <keithp@keithp.com>
2146 + add BDF property fetching support for foundry
2147 (from Juliusz Chroboczek)
2148 + add BDF property fetching support for width
2150 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2152 + Implemented foundry generation for Type 1 and TrueType
2154 2003-04-11 Gerard Escalante <g2@magestudios.net>
2156 + Retrieve information from Type1 FontInfo dictionaries
2158 2003-04-07 Colin Walters <walters@verbum.org>
2160 + src/Makefile.am: Fix dummy makefile target names when
2161 MS_LIB_AVAILABLE isn't set.
2163 2003-03-22 Tor Lillqvist <tml@iki.fi>
2165 Changes for Windows:
2167 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2169 + We don't want to hardcode the fonts.conf file location in the
2170 DLL, so we look up the DLL location at run-time in a DllMain()
2171 function. The fonts.conf location is deduced from that.
2173 + The colon can't be used as path separator on Windows,
2174 semicolon is used instead. File path components can be separated
2175 with either slash or backslash. Absolute paths can also begin
2176 with a drive letter.
2178 + Add internal function FcStrLastSlash that strrchr's the last
2179 slash, or backslash on Windows.
2181 + There is no link() on Windows. For atomicity checks, mkdir a
2182 lock directory instead.
2184 + In addition to HOME, also look for USERPROFILE.
2186 + Recognize the special font directory token WINDOWSFONTDIR, to
2187 use the system's font directory.
2189 + Remove the fontconfig-def.cpp that was obsolete. Add
2190 fontconfig.def(.in), without internal functions.
2192 + Add a fontconfig-zip(.in) script, used to build a binary
2195 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2196 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2197 to main package and man3/* to devel package
2199 + Added missing defattr(-, root, root) to main RPM package
2201 + Added HTML and text development documentation to -devel subpackage
2203 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2204 + Added back the configure macro options --disable-docs, otherwise
2205 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2206 version number) unconditionally, causing RPM to fail the build due
2207 to _unpackaged_files_terminate_build. We pick up the pregenerated
2208 docs with %doc already.
2210 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2211 + Removed commented out rpm macro define at top of spec file,
2212 replacing it with a simple explanation, since rpm macros are
2213 expanded by rpm even in comments.
2215 + Changed /usr/bin to _bindir in BuildRequires lines
2217 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2219 + Reorganized file manifest lists
2221 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2223 + fontconfig.spec.in: Improvements from Red Hat spec file.
2225 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2227 + docs/*.sgml: SGML fixes.
2229 Sat Mar 1 17:28:53 PST 2003 keithp
2230 + Ok, so the ChangeLog is a bit out of date
2232 + Lots of bugs fixed; most are in bugzilla, the
2233 biggest problems were in cache management where
2234 Owen discovered the library would lose badly when
2235 combining fonts-cache and ~/.fonts-cache data
2237 + Converted from autoconf to automake. This after
2238 getting patches accepted into libtool to allow
2239 the '-version-number' argument which lets
2240 packages set version numbers explicitly rather
2241 than the roundabout libtool way
2243 + Converted documentation to SGML using the docbook
2244 DTD. Now .txt and .html documents are installed
2245 in /usr/share/doc/fontconfig and there's no
2246 man page. Perhaps a man version can be written
2249 Sat Aug 31 15:21:22 PDT 2002 keithp
2250 + Xrender and Xft had several bugs related to
2251 rendering manually placed or poly-face text
2253 + Added more complete memory tracing in fontconfig
2254 Checked with (patched) mozilla and found no leaks
2256 + Updated Latin orthographies by comparing those from
2257 evertype.com with those from eki.ee. Tried to make
2258 sensible choices, including chars that occured in both
2259 and leaving some optional chars out that occured only
2262 Mon Aug 26 16:33:04 PDT 2002 keithp
2263 + Owen discovered that FcLangSetHasLang wasn't actually
2264 checking the language set.
2266 Mon Aug 26 13:37:23 PDT 2002 keithp
2267 + Append a version number to cache filenames
2269 Thu Aug 22 11:36:18 PDT 2002 keithp
2271 + Add "contains" and "not_contains" operators and elements to
2274 + Changed semantics of eq operator for LangSets to check for
2275 FcLangEqual so that any match will do
2277 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2278 of FcValueEqual to check for identical values when inserting into
2279 the results. This broke when the above semantic change was made,
2280 now it uses FcValueEqual which is "more correct" in any case.
2282 Thu Aug 22 00:32:29 PDT 2002 keithp
2284 + Reimplement FC_LANG as new datatype. Lists of strings
2285 was consuming over a megabyte of memory for 401 fonts.
2287 + Freeze patterns loaded from cache files. This shares
2288 common value lists and common patterns which saves
2289 considerable memory.
2291 + Change the denotation of 'constant' charsets to use special
2292 ref value instead of separate boolean.
2294 + Clean up leak tracing stuff, found several unannoted alloc/free
2297 Tue Aug 20 16:17:37 PDT 2002 keithp
2299 + Fix memory leak when parsing matrices from XML
2301 Mon Aug 19 11:57:27 PDT 2002 keithp
2303 + Fix autoconf files to pass FONTCONFIG_PATH on
2304 compile line so that ${prefix} gets substituted
2307 + Use getc_unlocked/putc_unlocked on systems that
2308 provide them to avoid damage done to stdio by posix
2310 + Eliminate FC_PATTERN and FcTypePattern in favor of
2311 an extended api for FcConfigSubstitute which takes
2312 both the font and the pattern.
2314 + Add 'sans serif' alias for 'sans-serif' as some apps
2315 can't handle hyphens in family names
2317 + Eliminate pretense of support for libxml2
2319 + Comment origins of Han orthographies
2321 Tue Jul 30 18:37:09 PDT 2002 keithp
2323 + Add binding property to edit element so that strong
2324 binding values may be inserted by the config file.
2325 The default remains weak.
2327 Sun 28 Jul 04:16:55 PDT 2002 keithp
2329 + Tagged release candidate 1 in the CVS tree and
2330 placed fcpackage.rc1.tar.gz for distribution
2332 Thu Aug 1 08:55:08 PDT 2002 keithp
2334 + Fixed autoconf builds to always specify install
2335 target files (for BSD). Also fixed to
2336 define FONTCONFIG_PATH in config.h so that
2337 nonstandard installs will actually work.