1 2005-12-09 Patrick Lam <plam@mit.edu>
4 * fc-cache/Makefile.am:
7 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, FcCacheFileRead):
8 * fontconfig/fontconfig.h (FC_CACHE_SUFFIX):
9 * src/fccache.c (FcCacheSkipString, FcGlobalCacheLoad,
10 FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheValid,
11 FcDirCacheHasCurrentArch, FcDirCacheHashName,
12 FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
14 Migrate cache files from fonts directories to
15 /var/cache/fontconfig. This helps make fontconfig FHS-compliant,
16 but requires that all caches get rebuilt.
18 Also, autogen.sh now needs the additional parameter
21 2005-12-07 Patrick Lam <plam@mit.edu>
22 * src/fcpat.c (FcPatternAddString):
24 Because we've changed FcPatternAddString to use FcStrStaticName
25 and not FcValueSave, explicitly handle the case of a null string.
27 2005-12-06 Patrick Lam <plam@mit.edu>
28 * fc-cat/fc-cat.c (FcCachePrintSet, FcCacheGlobalFileReadAndPrint):
32 2005-12-05 Patrick Lam <plam@mit.edu>
33 * src/fcname.c (FcNameGetObjectType):
35 Don't assign types to user object names.
37 2005-12-05 Patrick Lam <plam@mit.edu>
38 * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed):
40 Don't free strings that have been returned from FcStrStaticName.
42 2005-12-01 Patrick Lam <plam@mit.edu>
43 * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main):
45 Add codepath for reading global cache files as well.
47 2005-12-01 Behdad Esfahbod <behdad@cs.toronto.edu>
50 * conf.d/10-fonts.persian.conf:
53 Add config file for Persian fonts from Sharif FarsiWeb, Inc.
55 2005-11-30 Behdad Esfahbod <behdad@cs.toronto.edu>
58 * src/fcxml.c (FcConfigParseAndLoad):
60 Only add a config file to the set of config files once.
62 2005-11-29 Patrick Lam <plam@mit.edu>
63 * src/fcint.h (FcCacheBankToIndex);
65 Fix segfault by guarding array dereference.
67 2005-11-29 Dirk Mueller <dmueller@suse.de>
71 * src/fccache.c (FcDirCacheConsume, FcCacheHaveBank,
72 FcCacheBankToIndex, FcCacheBankToIndexMTF,
76 Refactor FcCacheBankToIndex into an inlineable part
77 (in fcint.h) which checks the front of the list and a
78 non-inlineable part which finds and moves the appropriate element
79 to the front of the list.
81 2005-11-29 Patrick Lam <plam@mit.edu>
82 * src/fccfg.c (FcConfigBuildFonts):
83 * src/fccache.c (FcCacheReadDirs):
85 Make the perf guys hate me a bit less: hoist the directory-name
86 FcConfigAcceptFont check for cached fonts up to directory cache
87 read time, rather than running it for each font.
89 2005-11-29 Patrick Lam <plam@mit.edu>
90 * src/fccfg.c (FcConfigBuildFonts):
92 * src/fcpat.c (FcPatternFindFullFname):
94 Don't make FcPatternFindFullFname available to fccfg, it's not
95 really safe. Instead go through FcPatternGetString (sorry,
96 perf guys.) Also, use globs for dirs as well.
98 2005-11-28 Patrick Lam <plam@mit.edu>
99 * src/fccfg.c (FcConfigBuildFonts):
103 2005-11-28 Patrick Lam <plam@mit.edu>
105 * src/fcpat.c (FcPatternFindFullFname):
106 * src/fccfg.c (FcConfigBuildFonts):
108 Fix problem dating back at least to 2.3.2 where globs weren't
109 being applied to patterns loaded from a cache.
111 2005-11-28 Patrick Lam <plam@mit.edu>
112 * doc/fontconfig-user.sgml:
114 Fix some obvious spelling mistakes.
116 2005-11-28 Dirk Mueller <dmueller@suse.com>
117 Stephan Kulow <coolo@suse.de>
120 * src/fcmatch.c (FcFontSetMatch):
122 Don't kill all fonts during match (oops!)
125 2005-11-25 Dirk Mueller <dmueller@suse.com>
126 Stephan Kulow <coolo@suse.de>
127 Michael Matz <matz@suse.de>
130 * src/fcmatch.c (FcObjectPtrToMatcher, FcCompareValueList,
133 Rewrite FcFontSetMatch to a path-finding based algorithm, i.e.
134 inline FcCompare into FcFontSetMatch and reorder the
135 loops, adding a boolean array which blocks patterns from future
136 consideration if they're known to not be best on some past
139 2005-11-26 Dirk Mueller <dmueller@suse.com>
142 * src/fcmatch.c (FcCompareValueList):
146 2005-11-25 Patrick Lam <plam@mit.edu>
147 * src/fcmatch.c (FcMatchObjectPtrsInit, FcCompareValueList):
149 Don't do random matching when bad objects are passed into
152 2005-11-25 Patrick Lam <plam@mit.edu>
154 * src/fcpat.c (FcPatternEnsureBank, FcPatternDistributeBytes,
155 FcPatternSerialize, FcPatternUnserialize,
156 FcValueListEnsureBank, FcValueListDistributeBytes,
157 FcValueListUnserialize):
159 Rename fcpatterns, fcpatternelts, fcvaluelists to _fcPatterns,
160 _fcPatternElts, _fcValueLists for consistency.
162 2005-11-25 Dirk Mueller <dmueller@suse.com>
167 Pass the FcObjectPtr to FcCompareValueList, not the char * (perf).
169 2005-11-25 Patrick Lam <plam@mit.edu>
171 * src/fccache.c (FcDirCacheConsume):
172 * src/fccharset.c (FcCharSetUnserialize):
173 * src/fcfs.c (FcFontSetUnserialize):
174 * src/fclang.c (FcLangSetUnserialize):
175 * src/fcname.c (FcObjectUnserialize):
176 * src/fcpat.c (FcStrUnserialize, FcValueListUnserialize,
177 FcPatternUnserialize):
179 Pass around FcCache *s to the Unserialize functions for extra
180 consistency (and less overhead, for what that's worth).
182 2005-11-24 Dirk Mueller <dmueller@suse.com>
186 * src/fcmatch.c (FcCompare*, FcFontSetSort):
187 * src/fcname.c (FcNameUnparseValue):
189 Inline the *PtrU functions to gain perf.
190 Remove unneeded params for the FcCompare* functions.
192 2005-11-24 Dirk Mueller <dmueller@suse.com>
195 * src/fcint.h, fontconfig/fontconfig.h:
197 Move FC_BANK_DYNAMIC, FC_BANK_FIRST to internal header.
199 * src/fcpat.c, src/fcint.h, src/fcname.c:
201 Check for type validity during FcPatternAddWithBinding, don't
202 verify type in FcFontMatch, don't call FcCanonicalize here
203 (which always does a deep copy).
205 2005-11-24 Dirk Mueller <dmueller@suse.com>
208 * src/fcmatch.c (FcCompareNumber, FcCompareString, FcCompareFamily):
209 * src/fcpat.c (FcPatternAddWithBinding):
211 Make FcCompareString and FcCompareFamily less expensive.
212 Only add a value for FC_FAMILY if the proposed value is a string.
214 2005-11-24 Dirk Mueller <dmueller@suse.com>
217 * src/fcdbg.c (FcDebug, FcDebugInit, FcPatternPrint):
218 * src/fcinit.c (FcInitLoadConfig, FcInitLoadConfigAndFonts):
219 * src/fcint.h (FcDebug):
221 Inline FcDebug invocations and only initialize once, in FcInit*.
222 Improve debug msg in FcPatternPrint.
224 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
227 * fontconfig/fontconfig.h:
230 Minor code warning cleanups.
232 2005-11-23 Frederic Crozat <fcrozat@mandriva.com>:
235 * fc-match/fc-match.c (main):
237 Make getopt_long accept -s parameter to fc-match as well.
239 2005-11-21 Dirk Mueller <dmueller@suse.com>
242 * src/fcmatch.c (FcCompareValueList):
244 Manually perform inlining & partial redundancy elimination to
245 reduce calls to FcValueListPtrU.
247 2005-11-21 Dirk Mueller <dmueller@suse.com>
250 * src/fcstr.c (FcStrFree, FcStrCaseWalkerInit, FcStrCaseWalkerLong,
251 FcStrCaseWalkerNext, FcStrCaseWalkerNextIgnoreBlanks):
253 Only invoke strlen() when really necessary.
255 2005-11-19 Matthias Clasen <mclasen@redhat.com>
259 * src/fcfreetype.c (FcGetPixelSize, FcFreeTypeQuery, GetScriptTags,
264 Get rid of the use of freetype internal headers in fcfreetype.c,
265 since those headers will go away with freetype 2.2. Replace with
266 public domain ftglue code from pango. Note that the patch removes
267 some extra error checking in FT_Get_BDF_Property() and comments
268 out the skipping of empty pcf fonts.
270 2005-11-19 Jinghua Luo <sunmoon1997@gmail.com>
273 * fc-lang/fc-lang.c (main):
275 Further fix of patch from 2005-11-04: miscounted numbers count
276 (numbers_count); didn't strip duplicate numbers (langBankNumbers);
277 and leafidx_offset and numbers_offset in fcLangCharSets are wrong.
279 Removed leafidx_count and numbers_count since they are the same
280 and replaced them with offset_count.
282 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
285 * fc-cat/fc-cat.c (main):
287 Don't crash when fc-cat invoked with no arguments.
289 2005-11-18 Frederic Crozat <fcrozat@mandriva.com>
292 * src/fcxml.c (FcConfigSaveAttr, FcConfigParseAndLoad):
294 Fix invalid read access caused by premature free and
295 GCC4 warnings in libxml2 codepath.
297 2005-11-17 Jinghua Luo <sunmoon1997@gmail.com>
300 * src/fccfg.c (FcConfigValues):
302 List iteration not needed in FcConfigValues, since it's building
303 up the list itself; we can just strip FcVoid elements during
306 2005-11-17 Patrick Lam <plam@mit.edu>
307 * src/fccfg.c (FcConfigValues):
309 Fix crash on invalid constants in config files (forgot to update
310 a pointer upon list iteration.)
312 2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
315 * src/fcxml.c (FcTypecheckExpr):
317 Complain about invalid constants in config files.
319 2005-11-17 Andreas Schwab <schwab@suse.de>
322 * src/fccache.c (FcGlobalCacheSave):
324 Don't add current_arch_start more than once.
326 2005-11-16 Patrick Lam <plam@mit.edu>
327 * src/fccharset.c (FcCharSetDistributeBytes, FcCharSetUnserialize):
328 * src/fcfs.c (FcFontSetUnserialize):
329 * src/fcname.c (FcObjectDistributeBytes, FcObjectUnserialize):
330 * src/fcpat.c (FcStrUnserialize):
332 Fix ordering of ALIGN with respect to saving block_ptr; add
333 another ALIGN to fcfs.c.
335 2005-11-16 Patrick Lam <plam@mit.edu>
336 * src/fccache.c (FcDirCacheProduce)
338 Fix case where alignment bytes bumped up metadata->count
339 causing unwarranted failures to write cache files.
340 (Reported by Stephan Kulow).
342 2005-11-16 Patrick Lam <plam@mit.edu>
343 * src/fccache.c (FcDirCacheProduce):
344 * src/fccharset.c (FcCharSetDistributeBytes):
345 * src/fcfs.c (FcFontSetDistributeBytes):
347 * src/fclang.c (FcLangSetDistributeBytes):
348 * src/fcname.c (FcObjectDistributeBytes):
349 * src/fcpat.c (FcPatternNeededBytes, FcValueListNeededBytes,
352 Add *NeededBytesAlign(), which overestimates the padding which is
353 later added by the new ALIGN macro. Fix alignment problems on
354 ia64 and s390 by bumping up block_ptr appropriately. (Earlier
355 version by Andreas Schwab).
357 2005-11-16 Stephan Kulow <coolo@kde.org>
362 Use sysconf to determine proper PAGESIZE value; this
363 appears to be POSIX-compliant. (reported by Andreas Schwab)
365 2005-11-04 Patrick Lam <plam@mit.edu>
371 Fix bug 2878 (excessive relocations at startup for charsets,
372 reported by Ross Burton): fc-lang/fc-lang now creates the
373 static form of the langset, not the dynamic form, so that
374 the charsets should now be in .rodata.
376 2005-11-04 Patrick Lam <plam@mit.edu>
377 * src/fcdir.c (FcDirScanConfig):
379 Add test for validity of directory caches that
380 somehow got lost (reported by make distcheck).
382 2005-11-04 Patrick Lam <plam@mit.edu>
386 * fontconfig/fontconfig.h:
388 Bump version to 2.3.92.
390 2005-11-02 Patrick Lam <plam@mit.edu>
391 * src/fcpat.c (FcPatternDuplicate):
393 Fix argument ordering problem in call to FcPatternTransferFullFname.
395 2005-11-02 Patrick Lam <plam@mit.edu>
396 * src/fcfreetype.c (FcFreetypeQuery):
397 * src/fcpat.c (FcPatternDestroy, FcPatternDuplicate,
398 FcPatternTransferFullFname):
400 Fix warnings and embarrassing double-free error.
402 2005-11-02 Zhe Su <zsu@novell.com>
407 Change the rule for artificial emboldening in fonts.conf.in. This
408 enables the support for artificial emboldening included in cairo.
410 2005-11-02 Patrick Lam <plam@mit.edu>
411 * src/fcpat.c (FcPatternDestroy, FcPatternTransferFullName):
413 Don't zero out full names for FC_REF_CONSTANT fonts;
414 also, duplicate full names when transferring, and free
415 full names when freeing the associated font.
416 Reported by Jinghua Luo.
418 2005-11-02 Patrick Lam <plam@mit.edu>
419 * fc-cache/fc-cache.c (scanDirs):
420 * src/fcpat.c (FcValueListSerialize):
422 Revert the previous patch and commit the correct patch:
423 I forgot a canonicalization in FcValueListSerialize, so
424 that it would choke on already-serialized input files. Duh!
426 2005-11-02 Patrick Lam <plam@mit.edu>
427 * fc-cache/fc-cache.c (scanDirs):
429 Forcibly rescan a directory before writing a fresh local
430 cache file for that directory, fixing the losing-fonts
431 problem reported by Mike Fabian and also apparently the
432 font cache file corruption.
434 2005-11-02 Patrick Lam <plam@mit.edu>
435 * src/fccache.c (FcGlobalCacheLoad):
437 Fix thinko: actually, the whole global cache is stale
438 if the global cache is older than the (newest) config file.
440 2005-11-02 Patrick Lam <plam@mit.edu>
441 * src/fccache.c (FcGlobalCacheLoad):
442 * src/fccfg.c (FcConfigModifiedTime, FcConfigBuildFonts):
445 Declare the global cache of a directory's contents to be stale if
446 the directory is newer than the (newest) configuration file.
448 2005-10-31 Patrick Lam <plam@mit.edu>
450 * src/fclist.c (FcListAppend):
451 * src/fcmatch.c (FcFontRenderPrepare):
452 * src/fcpat.c (FcPatternTransferFullFname, FcPatternDuplicate,
453 FcPatternFreeze, FcPatternBaseFreeze):
455 Copy the full pathname whenever duplicating an FcPattern; otherwise,
456 applications continue breaking.
458 2005-10-31 Patrick Lam <plam@mit.edu>
459 * fc-cat/fc-cat.c (FcCacheFileRead, main):
460 * src/fcfreetype.c (FcFreeTypeQuery):
462 Fix small memory error (tried to free argv); use basename and
463 dirname correctly (they can modify their arguments).
465 2005-10-31 Patrick Lam <plam@mit.edu>
473 Reinstate basename patch, but keep a hash table linking FcPatterns
474 to their fully-qualified font names for clients' benefit. Clients
475 only pay for the font names once they request the FC_FILE property
476 from an FcPattern, but the font name is malloc'd at that point (i.e.
477 not mmapped: that's impossible, since it may vary between machines.)
478 Clients do have to pay for a copy of the path name per cache file.
480 Note that FcPatternGetString now does some rewriting if you ask
481 for an FC_FILE, appending the pathname as appropriate.
483 2005-10-31 Patrick Lam <plam@mit.edu>
484 * src/fcfreetype.c (FcFreeTypeQuery):
486 Revert basename patch, which breaks fontconfig clients on my system.
488 2005-10-25 Jinghua Luo <sunmoon1997@gmail.com>
491 * fontconfig/fonts.conf.in:
492 * fontconfig/fontconfig.h:
496 Add FC_EMBEDDED_BITMAP object type to tell Xft/Cairo whether
497 to load embedded bitmaps or not.
499 2005-10-25 Patrick Lam <plam@mit.edu>
500 * src/fcfreetype.c (FcFreeTypeQuery):
502 Only add basename to patterns' FC_FILE element, not any part of
505 2005-10-22 Patrick Lam <plam@mit.edu>
508 Add some more consts, fixing more GCC4 warnings.
510 2005-10-22 Zhe Su <zsu@novell.com>
513 Support localized font family and style names.
514 This has been reported to break old apps like xfd, but modern
515 (gtk+/qt/mozilla) apps work fine.
517 2005-10-21 Patrick Lam <plam@mit.edu>
518 * src/fccache.c (FcGlobalCacheLoad):
520 Destroy the global cache file if it's terminally broken. (reported by
523 2005-10-21 Patrick Lam <plam@mit.edu>
524 * fc-list/fc-list.c (main):
525 * src/fcname.c (FcNameUnparse, FcNameUnparseEscaped):
526 * fontconfig/fontconfig.h:
528 Prevent fc-list from escaping strings when printing them (reported by
531 2005-10-20 Marcus Meissner <meissner@suse.de>
534 * fontconfig/fontconfig.h:
536 Add valist sentinel markup for FcObjectSetBuild and FcPatternBuild.
538 2005-10-14 Ross Burton <ross@burtonini.com>
541 * fc-glyphname/fc-glyphname.c:
544 Add consts to variables so as to move arrays into .rodata.
546 2005-10-14 Mike Fabian <mfabian@suse.de>
549 * src/fccache.c (FcDirCacheUnlink):
551 Check existence of directory cache file before attempting to unlink.
553 2005-10-13 Patrick Lam <plam@mit.edu>
554 * src/fccache.c (FcDirCacheUnlink):
556 Fix flipped return value on unlink. (Reported by Mike Fabian)
558 2005-10-12 Patrick Lam <plam@mit.edu>
561 * src/fcdir.c (FcDirScanConfig):
564 When fc-cache is run without --force, use directory cache files
565 to speed up fc-cache run time. (Reported by Mike Fabian)
567 2005-10-06 Patrick Lam <plam@mit.edu>
569 * src/fcname.c (FcObjectToPtr):
570 * src/fcpat.c (FcStrStaticName):
572 Add padding to make valgrind and glibc not hate each other
573 when calling strlen().
575 2005-10-05 Simos Xenitellis <simos74@gmx.net>
576 reviewed by: plam & keithp
580 Modify config file to use Greek fonts before Asian fonts with
583 2005-10-05 Christian Biesinger <cbiesinger@web.de>
584 reviewed by: plam & keithp
588 Use libtool -no-undefined flag on all platforms.
590 2005-10-05 Patrick Lam <plam@mit.edu>
591 * src/fccache.c (FcCacheHaveBank):
593 Implement move-to-front array for banks (perf regression
594 reported by Ronny V. Vindenes).
596 2005-10-04 Patrick Lam <plam@mit.edu>
597 * src/fccache.c (FcDirCacheValid, FcDirCacheUnlink,
598 FcDirCacheHasCurrentArch):
599 * fc-cache/fc-cache.c (scanDirs):
600 * fontconfig/fontconfig.h:
602 Add new API which unlinks directory caches and checks dir caches
603 for existence of appropriate sections. Fix fc-cache to unlink
604 stale cache files and save directory caches that lack relevant
607 2005-10-03 Patrick Lam <plam@mit.edu>
608 * src/fccache.c (FcDirCacheValid):
610 Ensure that a directory cache has the appropriate section
611 before reporting that it is valid (reported by Matthias Clasen).
613 2005-09-29 Mathias Hasselmann <mathias.hasselmann@gmx.de>
621 Use libxml2 if requested (with --enable-libxml2) or if
622 expat is not available.
624 2005-09-29 Patrick Lam <plam@mit.edu>
625 * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
627 Fix multi-arch cache files: compute the position for the
628 block to be added using info from OrigFile, not NewFile.
630 2005-09-28 Patrick Lam <plam@mit.edu>
631 * src/fccache.c (FcCacheMachineSignature):
633 Cast results of sizeof() to unsigned int to get rid of
634 warnings on x86_64 (thanks Matthias Clasen).
636 2005-09-27 Patrick Lam <plam@mit.edu>
637 * src/fccache.c (FcGlobalCacheSave, FcCacheCopyOld,
640 Use FcAtomic to rewrite cache files.
642 2005-09-27 Patrick Lam <plam@mit.edu>
644 * src/fccache.c (FcDirCacheWrite):
646 Don't unlink the fonts.cache-2 file even if there's no data
647 to write; just write an empty cache file. (thanks Lubos Lunak)
649 2005-09-27 Patrick Lam <plam@mit.edu>
651 * src/fccache.c (FcDirCacheWrite):
653 Allocate room for the subdirectory names in each
654 directory cache. Thanks to James Cloos for finding
655 and diagnosing this bug!
657 2005-09-22 Patrick Lam <plam@mit.edu>
659 * fc-cache/fc-cache.sgml:
660 * src/fccache.c (FcDirCacheWrite):
661 * src/fccache.h (struct FcCache):
663 Update documentation -- fc-cache's man page now says that you
664 need to run fc-cache once per cached architecture; add some
665 documentation to the FcCache structure.
667 Make fc-cache write out fonts.cache-2 files for directories with
668 no fonts (i.e. only subdirectories).
670 2005-09-22 Patrick Lam <plam@mit.edu>
672 * fc-cache/fc-cache.sgml:
674 * fc-glyphname/fc-glyphname.c:
680 More GCC 4 cleanups, due to Behhad Esfahbod <behdad@beddad.org>.
685 * fontconfig/fcprivate.h:
686 * fontconfig/fontconfig.h:
700 Implement new mmaped cache for font information.
701 Bump so revision to 2.3.90.
703 2005-07-25 Keith Packard <keithp@keithp.com>
705 * doc/fontconfig-user.sgml:
706 * fc-glyphname/fc-glyphname.c: (scan), (main):
707 * fc-lang/fc-lang.c: (FcConfigHome):
708 * fc-match/fc-match.c: (main):
709 * src/fccfg.c: (FcConfigHome):
710 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
711 (FcVendorMatch), (FcFreeTypeQuery), (FcFreeTypeCharSetAndSpacing),
712 (addtag), (FcFontCapabilities):
713 * src/fcpat.c: (FcValueListEntCreate):
714 * src/fcstr.c: (FcStrCaseWalkerInit):
715 * src/fcxml.c: (FcParsePatelt), (FcConfigParseAndLoadDir):
717 Various GCC 4 cleanups for signed vs unsigned char
719 Match only [0-9]*.conf files in <include>{directory}</include>
720 elements to avoid loading *.rpmsave or .dpkg-old files. (otaylor)
722 2005-07-15 Carl Worth <cworth@cworth.org>
725 * src/fcinit.c: (FcFini):
726 * src/fcpat.c: (FcPatternFini): Rename FcPatternThawAll to
729 * src/fcpat.c: (FcObjectStaticName), (FcObjectStaticNameFini):
730 Pull the FcObjectStateName hash table out to file scope, and add
731 FcObjectStaticNameFini so that FcFini will cleanup this hash table
734 * src/fcxml.c: (FcConfigParseAndLoad): Clear FILE* to NULL after
737 2005-06-16 Patrick Lam <plam@MIT.EDU>
741 * src/fccfg.c: (FcConfigCompareValue):
742 Make FcOpNotContains use FcStrStr for strings so that
743 it matches semantics for !FcOpContains.
745 2005-05-20 Keith Packard <keithp@keithp.com>
749 Move fontconfig source package to libs as per override
751 2005-05-20 Aiet Kolkhi <aietkolkhi@gmail.com>
753 reviewed by: Mike Fabian
756 The ka.orth file requires several characters which are not
757 used anymore in modern Georgian and which are missing in the free
758 Georgian TrueType fonts downloadable at:
760 http://aiet.qartuli.net/docs/georgian_on_linux_en.php
762 2005-04-27 Keith Packard <keithp@keithp.com>
766 Update date to real 2.3.2 release date.
767 Fix change attributions
769 2005-04-27 Keith Packard <keithp@keithp.com>
772 Bump so revision for 2.3.2
773 * fc-cache/fc-cache.c: (scanDirs):
774 Fix a few minor leaks in error cases.
776 2005-04-23 Keith Packard <keithp@keithp.com>
781 * fontconfig/fontconfig.h:
782 Update for version 2.3.2
784 2005-04-21 Keith Packard <keithp@keithp.com>
786 * debian/fontconfig.postinst:
787 Don't force bitmap font enable in default
788 configuration; allows users to override this in
798 * debian/po/pt_BR.po:
799 * debian/po/templates.pot:
801 * debian/po/zh_CN.po:
804 * fc-cache/fc-cache.c: (main):
805 Destroy font configuration on exit to help valgrind
808 * src/fcfreetype.c: (FcSfntNameTranscode), (FcFreeTypeCharIndex),
809 (FcFreeTypeCheckGlyph):
810 Use own transcoding routines in preference to iconv
811 which appears to have leaks in some translators.
812 Call iconv_close after using iconv (oops).
814 Prefer unicode encoding of Euro char as some
815 fonts mis-encode Euro in other ones.
817 Must fetch bitmap glyphs to get width values
818 to check for monospace/dual-width fonts.
820 2005-04-13 Ross Burton <ross@burtonini.com>
823 Check that a pattern isn't already frozen in FcPatternFreeze.
825 2005-03-31 Ross Burton <ross@burtonini.com>
830 Run all FcPattern objects through FcObjectStaticName, so that
831 compares can be done on pointers instead of strings (#2659)
833 2005-03-17 Tor Lillqvist <tml@novell.com>
835 * src/fontconfig.def.in: Add the .dll to the dll name.
837 2005-03-10 Keith Packard <keithp@keithp.com>
839 * debian/README.Debian:
840 Update to reflect configuration changes
842 * debian/fontconfig.postinst:
843 Fix Autohint vs Autohinter mistake
844 * debian/fontconfig.templates:
845 Adopt changes from Josselin Mouette for configuration descriptions
846 Update debian to version 2.3.1-2
848 2005-03-08 Keith Packard <keithp@keithp.com>
852 Update debian for 2.3.1
854 2005-03-09 Tor Lillqvist <tml@novell.com>
856 * fontconfig-zip.in: Get the DLL from "bin" where modern libtools
859 * src/fccfg.c (FcConfigFileExists): Check also drive letter
862 2005-03-08 Keith Packard <keithp@keithp.com>
866 * fontconfig/fontconfig.h:
869 2005-03-05 Keith Packard <keithp@keithp.com>
871 * src/fcfreetype.c: (addtag), (FcFontCapabilities):
872 Include space and remove numbers from valid script tags.
873 This ensures that tags like 'lao ' work while rejecting
874 those which have any digits.
875 Eliminate a spurious debugging variable (len)
877 2005-03-05 Keith Packard <keithp@keithp.com>
879 * src/fcfreetype.c: (addtag), (GetScriptTags),
880 (FcFontCapabilities):
881 Rework GSUB/GPOS script parsing to survive broken fonts.
882 Thanks for the broken font go to Manish Singh
884 2005-03-05 Keith Packard <keithp@keithp.com>
889 * debian/fontconfig.config:
890 * debian/fontconfig.templates:
892 Include 2.3 release information in changelog
893 Add Josselin Mouette as an Uploader
894 Set hinting_type to low priority configuration option
897 * debian/fontconfig.postinst:
898 yes_bitmaps.conf -> yes-bitmaps.conf
904 2005-03-02 Keith Packard <keithp@keithp.com>
907 * conf.d/Makefile.am:
908 * conf.d/autohint.conf:
909 * conf.d/no-sub-pixel.conf:
910 * conf.d/sub-pixel.conf:
911 * conf.d/unhinted.conf:
912 * debian/autohint.conf:
913 * debian/fontconfig.install:
914 * debian/fontconfig.postinst:
915 * debian/fontconfig.templates:
916 * debian/no-sub-pixel.conf:
917 * debian/unhinted.conf:
918 Move debian-specific conf file examples upstream.
920 Sub-pixel configuration examples must smash subpixel value
921 as Xft always sets it from X.
923 Change sub-pixel rendering debconf descriptions from
924 Enable/Disable to Always/Never.
926 2005-03-02 Keith Packard <keithp@keithp.com>
931 Ignore more build detritus
934 Add debian package construction stuff.
936 * config/config.guess:
938 Update to newer versions of these tools
941 Get library manuals to build again (we love automake).
943 * debian/README.Debian:
944 * debian/autohint.conf:
949 * debian/fontconfig-udeb.install:
950 * debian/fontconfig.config:
951 * debian/fontconfig.defoma:
952 * debian/fontconfig.dirs:
953 * debian/fontconfig.install:
954 * debian/fontconfig.postinst:
955 * debian/fontconfig.postrm:
956 * debian/fontconfig.templates:
957 * debian/libfontconfig1-dev.install:
958 * debian/libfontconfig1.install:
959 * debian/local.conf.md5sum:
960 * debian/no-sub-pixel.conf:
961 * debian/po/POTFILES.in:
970 * debian/po/pt_BR.po:
971 * debian/po/templates.pot:
973 * debian/po/zh_CN.po:
975 * debian/unhinted.conf:
976 Update debian build system to switch maintainers and
977 deal with 2.3 functionality
979 2005-03-01 Keith Packard <keithp@keithp.com>
983 * fontconfig/fontconfig.h:
986 2005-03-01 Keith Packard <keithp@keithp.com>
989 Generate and install PDF versions of the manuals
991 * doc/fcpattern.fncs:
995 Add missing exported functions, fix data types
997 * doc/fontconfig-devel.sgml:
998 Add missing pattern elements.
1000 * doc/fontconfig-user.sgml:
1001 Add missing pattern elements. Document conf.d usage,
1002 clarify available orthography list. Fix some config file
1003 attributes. Complete list of constants.
1005 * fontconfig/fontconfig.h:
1006 Mark FC_SOURCE deprecated.
1008 * src/fcfreetype.c: (FcFreeTypeQuery):
1009 Don't set FC_SOURCE any longer.
1011 2005-02-28 Keith Packard <keithp@keithp.com>
1014 * conf.d/Makefile.am:
1016 * conf.d/no-bitmaps.conf:
1017 * conf.d/sub-pixel.conf:
1018 * conf.d/yes-bitmaps.conf:
1020 Create prototype /etc/fonts/conf.d directory with a few
1021 sample configuration files.
1022 Deprecate use of local.conf for local customizations in favor of
1023 this directory based scheme which is more easily integrated into
1024 installation systems.
1027 Tag FC_EMBOLDEN as a boolean variable
1029 2005-02-10 Keith Packard <keithp@keithp.com>
1031 reviewed by: pborelli@katamail.com
1033 * src/fcdir.c: (FcFileScanConfig):
1034 Free patterns from fonts which are rejected by configuration
1037 2005-01-28 Keith Packard <keithp@keithp.com>
1041 * fontconfig/fontconfig.h:
1042 Update for version 2.2.99
1044 2005-01-28 Keith Packard <keithp@keithp.com>
1047 Add a few pointers (#2284, #2285)
1049 2005-01-28 Keith Packard <keithp@keithp.com>
1052 * src/fcname.c: (FcNameBool):
1053 * src/fcxml.c: (FcTypeName), (FcTypecheckValue), (FcTypecheckExpr),
1054 (FcTestCreate), (FcEditCreate), (FcConfigLexBool), (FcParseBool),
1055 (FcParseAlias), (FcParseInclude), (FcParseTest), (FcParseEdit):
1056 Polite typechecking for test and edit expressions. Helps
1057 catch errors in the font configuration. (bug 229)
1059 2005-01-15 Alan Coopersmith <alan.coopersmith@sun.com>
1061 reviewed by: Keith Packard <keithp@keithp.com>
1064 Have --with-expat set EXPAT_CFLAGS (bug 2278)
1066 2005-01-13 Keith Packard <keithp@keithp.com>
1068 * doc/fontconfig-user.sgml:
1069 Add SEE ALSO section (bug 2085)
1071 2005-01-13 J. Ali Harlow <ali@juiblex.co.uk>
1073 reviewed by: Keith Packard <keithp@keithp.com>
1078 * fc-case/Makefile.am:
1079 * fc-glyphname/Makefile.am:
1080 * fc-lang/Makefile.am:
1081 * src/fontconfig.def.in:
1082 Cross compiling fixes (bug 280)
1084 2005-01-13 Keith Packard <keithp@keithp.com>
1087 Update blanks list (Closes bug 86)
1089 2005-01-04 Keith Packard <keithp@keithp.com>
1091 * src/fccache.c: (FcCacheFontSetAdd):
1092 Verify that every font pattern loaded from cache has
1093 both FC_FILE and FC_FAMILY entries.
1094 Attempt to fix bug #2219.
1096 2004-12-29 Keith Packard <keithp@keithp.com>
1100 * fontconfig/fontconfig.h:
1101 Update for version 2.2.98
1103 2004-12-29 Keith Packard <keithp@keithp.com>
1105 * fontconfig/fontconfig.h:
1106 Document ASCII limitations of Fc character conversion macros
1107 * src/fcstr.c: (FcStrCaseWalkerLong), (FcStrDowncase):
1108 Fix off-by-one error in utf-8 case walking code.
1109 Add FcStrDowncase (useful for testing case conversion functions)
1111 2004-12-29 Keith Packard <keithp@keithp.com>
1114 * fc-case/.cvsignore:
1115 clean up CVS ignore lists
1116 * fc-lang/iso-3166.txt:
1117 Add territory database
1119 2004-12-29 Tor Andersson <tor.andersson@gmail.com>
1121 Reviewed by: Keith Packard
1124 Remove Han characters from Korean orthography
1126 2004-12-29 Keith Packard <keithp@keithp.com>
1129 Reorder utility programs to make sure fc-case is run before fc-lang
1130 as fc-lang uses fcstr.c which uses fccase.h
1134 2004-12-29 Keith Packard <keithp@keithp.com>
1137 Adopt some RedHat suggestions for standard font configuration.
1141 * fc-case/CaseFolding.txt:
1142 * fc-case/Makefile.am:
1143 * fc-case/fc-case.c: (panic), (addFold), (ucs4_to_utf8),
1144 (utf8_size), (addChar), (foldExtends), (case_fold_method_name),
1145 (dump), (parseRaw), (caseFoldReadRaw), (main):
1146 * fc-case/fccase.tmpl.h:
1147 Add new helper program 'fc-case' to construct case folding
1148 tables from standard Unicode CaseFolding.txt file
1151 * src/fclist.c: (FcListValueHash):
1152 * src/fcstr.c: (FcStrCaseWalkerInit), (FcStrCaseWalkerLong),
1153 (FcStrCaseWalkerNext), (FcStrCaseWalkerNextIgnoreBlanks),
1154 (FcStrCmpIgnoreCase), (FcStrCmpIgnoreBlanksAndCase),
1155 (FcStrHashIgnoreCase), (FcStrIsAtIgnoreBlanksAndCase),
1156 (FcStrIsAtIgnoreCase), (FcStrStrIgnoreCase):
1157 Re-implement case insensitive functions with Unicode
1158 aware versions (including full case folding mappings)
1160 2004-12-13 Keith Packard <keithp@keithp.com>
1162 reviewed by: Owen Taylor <otaylor@redhat.com>
1164 * src/fcmatch.c: (FcFontSetSort):
1165 I changed FcFontSetSort to respect the generic aliases better
1166 in the face of language matching.
1168 What I did was to ammend the strict sort order used by FcFontSort so
1169 that it 'satisfies' the language specified in the pattern by locating
1170 the best matching font supporting each pattern language and then
1171 ignores language in the remaining fonts for purposes of matching.
1173 So, when asking for 'sans:lang=en', you'll get an English font first,
1174 and then the remaining fonts sorted with respect to the 'sans' alias
1175 alone -- pushing Kochi fonts ahead of other English-supporting Han fonts.
1177 2004-12-10 Jakub Pavelek <jakub.pavelek@nokia.com>
1179 reviewed by: Keith Packard <keithp@keithp.com>
1181 * fontconfig/fontconfig.h:
1184 Configuration changes to request synthetic emboldening of
1185 fonts. The actual emboldening code will live in Xft.
1187 2004-12-09 John Thacker <thacker@math.cornell.edu>
1189 reviewed by: Keith Packard <keithp@keithp.com>
1193 Currently Russian (ru) requires 0406 and 0456 (І and і), but these
1194 were eliminated in Russian in 1918 in favor of 0418 and 0438 (И and
1195 и), and don't even appear in KOI8-R. (The hypothesis that they
1196 don't appear in KOI8-R due to their similarity with Latin I and i is
1197 eliminated by their presence in KOI8-U.) I have a couple of fonts
1198 with Russian support that don't have the letter.
1200 Therefore, 0406 and 0456 should be removed from or commented out of
1203 2004-12-06 michael meeks <mmeeks@novell.com>
1205 Reviewed by: Keith Packard <keithp@keithp.com>
1207 * src/fcinit.c: (FcMemReport):
1209 * src/fclist.c: (FcObjectSetAdd):
1210 * src/fcpat.c: (FcValueListEntCreate), (FcPatternBaseFreeze),
1211 (FcPatternInsertElt), (FcPatternEqual), (FcObjectStaticName):
1212 * src/fcxml.c: (FcParsePatelt):
1213 memoize strings and share a single copy for all uses. Note that
1214 this could be improved further by using statically allocated blocks
1215 and gluing multiple strings together, but I'm basically lazy.
1216 In my environment with 800 font files, I get a savings of about 90KB.
1218 2004-12-06 Keith Packard <keithp@keithp.com>
1222 * config/Makedefs.in:
1225 * doc/fcatomic.fncs:
1226 * doc/fcblanks.fncs:
1227 * doc/fccharset.fncs:
1228 * doc/fcconfig.fncs:
1229 * doc/fcconstant.fncs:
1231 * doc/fcfontset.fncs:
1232 * doc/fcfreetype.fncs:
1234 * doc/fcmatrix.fncs:
1235 * doc/fcobjectset.fncs:
1236 * doc/fcobjecttype.fncs:
1237 * doc/fcpattern.fncs:
1238 * doc/fcstring.fncs:
1239 * doc/fcstrset.fncs:
1241 * doc/fontconfig-devel.sgml:
1242 * doc/fontconfig-user.sgml:
1244 * doc/version.sgml.in:
1245 * fc-cache/Makefile.am:
1246 * fc-cache/fc-cache.c:
1247 * fc-glyphname/Makefile.am:
1248 * fc-glyphname/fc-glyphname.c:
1249 * fc-glyphname/fcglyphname.tmpl.h:
1250 * fc-lang/Makefile.am:
1260 * fc-lang/az_ir.orth:
1294 * fc-lang/fc-lang.c:
1295 * fc-lang/fc-lang.man:
1296 * fc-lang/fclang.tmpl.h:
1341 * fc-lang/ku_ir.orth:
1374 * fc-lang/ps_af.orth:
1375 * fc-lang/ps_pk.orth:
1404 * fc-lang/ti_er.orth:
1405 * fc-lang/ti_et.orth:
1431 * fc-lang/zh_cn.orth:
1432 * fc-lang/zh_hk.orth:
1433 * fc-lang/zh_mo.orth:
1434 * fc-lang/zh_sg.orth:
1435 * fc-lang/zh_tw.orth:
1437 * fc-list/Makefile.am:
1438 * fc-list/fc-list.c:
1439 * fc-match/Makefile.am:
1440 * fc-match/fc-match.1:
1441 * fc-match/fc-match.c:
1442 * fontconfig/fcfreetype.h:
1443 * fontconfig/fcprivate.h:
1444 * fontconfig/fontconfig.h:
1465 Change files from ISO-Latin-1 to UTF-8
1467 2004-12-04 Keith Packard <keithp@keithp.com>
1470 Update links to new freedesktop.org locations
1472 Add uninstall-local to get rid of fonts.conf and local.conf if they
1473 match the distributed versions. Fixes 'make distcheck'
1475 2004-12-04 Keith Packard <keithp@keithp.com>
1479 * fontconfig/fontconfig.h:
1480 Updates for version 2.2.97
1482 2004-12-04 Owen Taylor <otaylor@redhat.com>
1484 reviewed by: Keith Packard <keithp@keithp.com>
1486 * fc-cache/fc-cache.c: (main):
1487 Sleep for two seconds before exiting to make sure timestamps
1488 for future changes have distinct mod times in the file system.
1491 Add Punjabi orthography. Bug #1671.
1493 2004-12-04 Keith Packard <keithp@keithp.com>
1496 Just remove the FC_FONTDATE -- it has locale issues and
1497 annoys redhat multi-arch installs. Now that all X fonts are
1498 included without prejudice, the chances of the date being at
1499 all interesting are rather limited. Bug #505.
1501 Add copyright and license
1503 2004-12-04 Keith Packard <keithp@keithp.com>
1506 Change default set of fonts to include all of
1507 /usr/X11R6/lib/X11/fonts (or wherever the X fonts are located).
1508 * doc/fontconfig-user.sgml:
1509 Document new <include>directory-name</include> semantics
1511 add <include ignore_missing="yes">conf.d</include>
1513 Add selectfont to ignore bitmap fonts, add comment for
1514 selectfont which accepts bitmap fonts.
1517 * src/fcxml.c: (FcConfigParseAndLoadDir), (FcConfigParseAndLoad):
1518 Allow <include> configuration elements to reference directories.
1519 Parse and load all files of the form [0-9]* in sorted order.
1521 2004-12-04 Keith Packard <keithp@keithp.com>
1524 Report command line for $srcdir/configure accurately.
1527 2004-12-04 Keith Packard <keithp@keithp.com>
1529 * src/fcfreetype.c: (FcFreeTypeQuery):
1530 Check for non-empty face->family_name and face->style_name
1531 before using those for the font. Empty names match everything.
1534 2004-12-04 Keith Packard <keithp@keithp.com>
1537 * fontconfig/fontconfig.h:
1538 * src/fcfreetype.c: (FcFreeTypeQuery):
1540 Create FC_FONTFORMAT from FT_Get_X11_Font_Format function where
1541 available. This provides font file format information (BDF, Type 1,
1542 PCF, TrueType) for each font. Closes #109.
1544 2004-12-04 Daniel Glassey <danglassey@ntlworld.com>
1546 reviewed by: Keith Packard <keithp@keithp.com>
1548 * doc/fontconfig-user.sgml:
1551 * fontconfig/fontconfig.h:
1552 * src/fcfreetype.c: (FcFreeTypeQuery), (addtag), (compareulong),
1553 (GetScriptTags), (FcFontCapabilities):
1555 Add detection for font capabilities (bug #105)
1557 2004-12-04 Keith Packard <keithp@keithp.com>
1560 Move existing fonts.conf to fonts.conf.bak
1563 Add detection of iconv
1565 * doc/fcpattern.fncs:
1566 * doc/fontconfig-devel.sgml:
1567 * doc/fontconfig-user.sgml:
1569 Document new selectfont elements
1572 Switch to UTF-8 in comment
1574 * fontconfig/fontconfig.h:
1576 Add fullname, and family/style/fullname language entries
1578 * src/fccache.c: (FcCacheFontSetAdd):
1579 * src/fcdir.c: (FcFileScanConfig):
1580 Respect selectfont/*/glob
1583 * src/fccfg.c: (FcConfigCreate), (FcConfigDestroy),
1584 (FcConfigCompareValue), (FcConfigPatternsAdd),
1585 (FcConfigPatternsMatch), (FcConfigAcceptFont):
1586 * src/fcxml.c: (FcElementMap), (FcVStackDestroy),
1587 (FcVStackPushPattern), (FcPopExpr), (FcParseAcceptRejectFont),
1588 (FcPopValue), (FcParsePatelt), (FcParsePattern), (FcEndElement):
1589 Add support for selectfont
1591 * src/fcfreetype.c: (FcSfntNameTranscode), (FcSfntNameLanguage),
1592 (FcStringInPatternElement), (FcFreeTypeQuery):
1593 Add multi-lingual family/style/fullname support
1595 * src/fclist.c: (FcListPatternMatchAny):
1596 Expose FcListPatternMatchAny (which selectfont/*/pattern uses)
1598 * src/fcpat.c: (FcPatternRemove), (FcPatternAppend),
1599 (FcObjectStaticName):
1600 Add new FcPatternRemove/FcPatternAppend.
1601 FcObjectStaticName stores computed pattern element names which
1602 are required to be static.
1604 2004-09-09 "NAKAMURA Ken'ichi" <nakamura@sbp.fp.a.u-tokyo.ac.jp>
1609 Remove spurious / after $(DESTDIR)
1611 2004-06-30 Keith Packard <keithp@keithp.com>
1615 * fontconfig/fontconfig.h:
1618 2004-06-30 Keith Packard <keithp@keithp.com>
1620 Provided by: Lubos Lunak <l.lunak@suse.cz>
1622 * src/fccfg.c: (FcConfigUptoDate):
1623 However FcConfigUptoDate() doesn't seem to work. See the attached
1624 patch. First there's an obvious misplaced parenthesis making it
1625 return always false, and second, even this call fails to detect font
1626 changes (e.g. adding a new font to
1627 /usr/X11R6/lib/X11/fonts/truetype). The patch should fix that as
1628 well. The problem seems to be triggered by my fonts.conf specifying
1629 only /usr/X11R6/lib/X11/fonts , and therefore config->configDirs
1630 doesn't include subdirs, unlike config->fontDirs.
1632 2004-06-03 Keith Packard <keithp@keithp.com>
1634 * fontconfig/fontconfig.h:
1635 Remove comma at end of FcResult enum definition.
1637 2004-05-29 Keith Packard <keithp@keithp.com>
1640 Add steps to md5sum release
1642 2004-05-29 Keith Packard <keithp@keithp.com>
1646 * fontconfig/fontconfig.h:
1649 2004-05-29 Keith Packard <keithp@keithp.com>
1651 * fontconfig/fontconfig.h:
1652 * src/fcmatch.c: (FcFontSetMatch):
1653 Add FcResultOutOfMemory to provide an accurate error when
1654 FcFontSetMatch fails in this way
1657 Make #warning about lacking various FreeType features indicate
1658 which version those features appeared so users know how to
1659 fix the problem (Thanks to Anton Tropashko)
1661 2004-05-05 Keith Packard <keithp@keithp.com>
1663 * src/fcfreetype.c: (FcFreeTypeCharSetAndSpacing):
1664 Replace MIN/MAX/ABS macros which happen to have come
1665 from FreeType with fontconfig-specific ones (FC_*)
1667 2004-04-23 Keith Packard <keithp@keithp.com>
1670 Extend release preparation instructions to include
1671 notification and distribution steps
1673 2004-04-23 Keith Packard <keithp@keithp.com>
1677 * fontconfig/fontconfig.h:
1678 Update to 2.2.94 (2.2.93 shipped with broken libtool bits)
1680 2004-04-23 Keith Packard <keithp@keithp.com>
1683 Ignore a few more autotool files
1685 2004-04-14 Keith Packard <keithp@keithp.com>
1688 Add instructions for doing a release
1690 * fontconfig.spec.in:
1691 clean up .spec file; perhaps this will be useful to somebody...
1695 * fontconfig/fontconfig.h:
1698 * fc-lang/fc-lang.c:
1699 Make 'scanopen' static so GCC doesn't whine about lacking prototype
1701 * fc-glyphname/Makefile.am:
1702 * fc-lang/Makefile.am:
1703 * fc-list/Makefile.am:
1704 * fc-match/Makefile.am:
1706 Add WARN_CFLAGS to pass -W flags for GCC systems
1708 * src/fcfreetype.c: (FcNoticeFoundry), (FcVendorMatch),
1709 (FcVendorFoundry), (FcGetPixelSize), (FcFreeTypeQuery):
1710 Change various char types around to match across
1712 Fixed bug in using available_sizes[i].height which
1713 is in pixels, not 64ths of a pixel.
1715 2004-03-06 Keith Packard <keithp@keithp.com>
1717 * src/fcfreetype.c: (FcFreeTypeQuery):
1718 Force FC_FOUNDRY and FC_WIDTH to always be set so that
1719 matches looking for explicit values prefer exact matches
1721 2004-03-02 Keith Packard <keithp@keithp.com>
1723 Supplied by: mfabian@suse.de (Mike FABIAN)
1725 * src/fcfreetype.c: (FcFreeTypeQuery):
1726 Bug #260 fc-cache generates wrong spacing values for bitmap fonts
1727 Was using (strcmp (a,b)) instead of (!strcmp(a,b)).
1729 2004-02-21 Manish Singh <yosh@gimp.org>
1731 * fc-glyphname/fc-glyphname.c: (main):
1732 Cast strlen to int for printf, so we're 64-bit clean.
1734 2004-02-11 Keith Packard <keithp@keithp.com>
1737 * src/fcfreetype.c: (FcGetPixelSize):
1738 Ok, so I messed up the test for y_ppem. Let's see if I
1739 got it right this time.
1741 2004-02-10 Keith Packard <keithp@keithp.com>
1744 * src/fcfreetype.c: (FcGetPixelSize):
1745 Pre-2.1.5 versions of FreeType didn't include y_ppem in the
1746 FT_Bitmap_Size record. Add a configure.in test for this
1747 and change the code accordingly (using height instead).
1749 2004-02-06 Keith Packard <keithp@keithp.com>
1752 Add Low Saxon orthography
1753 (Kenneth Rohde Christiansen <kenneth@gnu.org>)
1755 * src/fccfg.c: (FcConfigNewestFile):
1756 Oops. Left 'newest.set' unset, which would miscompute
1759 * src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery),
1760 (FcFreeTypeCheckGlyph):
1761 Add FcGetPixelSize to extract correct pixel size from bdf/pcf
1762 font properties (which report the wrong value in current FreeType)
1764 Don't attempt to check for empty glyphs in non-scalable fonts; they
1767 2004-02-01 Tor Lillqvist <tml@iki.fi>
1769 * src/fccfg.c (FcConfigCreate): fontconfig, at least as used by
1770 GIMP and/or PangoFT2 on Windows, crashes when trying to save the
1771 cache if config->cache is NULL, which happens if FcConfigHome() is
1772 NULL. Guard against that by using the temp folder in that case.
1774 2004-01-03 Roozbeh Pournader <roozbeh@sharif.edu>
1776 * fc-lang/az_ir.orth:
1777 * fc-lang/ku_ir.orth:
1778 * fc-lang/ps_af.orth:
1779 * fc-lang/ps_pk.orth:
1780 Added orthographies for Iranian Azerbaijani and Kurdish, and Pashto
1781 (Afghan and Pakistani).
1783 Updated Urdu orthography with real data.
1785 2003-12-11 Carl Worth <cworth@east.isi.edu>
1787 * fc-list/Makefile.am (man_MANS): Move man_MANS into the 'if
1790 * fc-cache/Makefile.am (man_MANS): Move man_MANS into the 'if
1792 (all-local): Remove excessive whitespace.
1794 * autogen.sh: Add 'set -e' to abort when any program fails,
1795 (avoids printing of 'now type make' after configure aborts).
1797 2003-11-17 Eric Christopherson <rakko@charter.net>
1799 reviewed by: Keith Packard <keithp@keithp.com>
1802 * fontconfig/fcfreetype.h:
1804 Switch to FreeType 2.1.7 style includes. Bug #150.
1806 2003-11-16 Noah Levitt <nlevitt@columbia.edu>
1808 * fc-list/fc-list.sgml: Add some example usages.
1810 2003-11-10 Roozbeh Pournader <roozbeh@sharif.edu>
1813 Fixed a bug "FcStrtod" in handling some cases with two-byte decimal
1816 2003-10-27 Keith Packard <keith@keithp.com>
1819 * fontconfig/fontconfig.h:
1820 Update to version 2.2.92
1822 2003-10-27 Keith Packard <keithp@keithp.com>
1827 * fc-cache/Makefile.am:
1828 * fc-glyphname/Makefile.am:
1829 * fc-lang/Makefile.am:
1830 * fc-list/Makefile.am:
1831 * fc-match/Makefile.am:
1834 Yet more cleanups to finish getting 'make distcheck' working
1835 This has been tested to ensure that it even works from a _build
1838 2003-10-26 Keith Packard <keithp@keithp.com>
1842 * fc-cache/Makefile.am:
1843 * fc-glyphname/Makefile.am:
1844 * fc-lang/Makefile.am:
1845 * fc-lang/fc-lang.c: (scanopen), (scan), (main):
1846 * fc-list/Makefile.am:
1847 * fc-match/Makefile.am:
1848 Attempts to fix 'make distcheck' work. Things are
1849 progressing pretty well, but there are still failures
1850 long into the process dealing with docs (as always).
1852 The big changes here are mostly to make $(srcdir) != "."
1853 work correctly, fixing the docbook related sections and
1854 fc-lang were particularily tricky. Docbook refuses to load
1855 system entities from anywhere other than where the original .sgml
1856 file was located, so no luck looking in "." for the
1857 configure-generated version.sgml and confdir.sgml files.
1859 fc-lang needed help finding .orth files; added a -d option
1860 to set the directory as the least evil of many options.
1862 Now to go use a faster machine and try and wring out the last
1865 2003-10-26 Keith Packard <keithp@keithp.com>
1869 2003-10-26 Keith Packard <keithp@keithp.com>
1872 Include confdir.sgml.in in EXTRA_DIST
1874 2003-10-09 Josselin Mouette <joss@debian.org>
1876 * fc-cache/fc-cache.sgml fc-cache/Makefile.am:
1877 * fc-list/fc-list.sgml fc-list/Makefile.am:
1878 Replace fc-cache and fc-list manpages with more detailed, SGML
1881 2003-09-23 Owen Taylor <otaylor@redhat.com>
1883 * fontconfig/fontconfig.h src/fcdefault.c (FcDefaultSubstitute)
1884 src/fcname.c: Add a FC_HINT_STYLE key for patterns, with
1885 possible values HINT_NONE/HINT_SLIGHT/HINT_MEDIUM/HINT_FULL.
1888 2003-09-23 Owen Taylor <otaylor@redhat.com>
1890 * fc-lang/ka.orth: Remove Georgian capitals, they
1891 aren't used for normal writing. (Bug #116)
1893 2003-09-06 Noah Levitt <nlevitt@columbia.edu>
1895 * doc/fontconfig-devel.sgml:
1896 * doc/fontconfig-user.sgml:
1897 * fontconfig/fontconfig.h:
1899 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): Add new spacing
1900 value FC_DUAL (dual-width, as some CJK fonts). (bug #111)
1902 * src/fcfreetype.c (FcFreeTypeCharSetAndSpacing): When checking for
1903 monospace and dual-width fonts, allow roughly a 3% variance in the
1906 2003-08-31 Manish Singh <yosh@gimp.org>
1908 * src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
1911 2003-08-15 Carl Worth <cworth@isi.edu>
1913 * src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
1914 (FcPopExpr): Add comment about unhandled FcVStackGlob case.
1916 * src/fcpat.c (FcValueListEntDestroy): New function to support
1917 FcFini memory cleanup. Some statistics are not kept in
1919 (FcValueListFreeze): Move hashTable outside this function so it
1920 can be accessed by FcValueListThawAll.
1921 (FcValueListThawAll): New function complements FcValueListFreeze.
1922 (FcPatternBaseFreeze): Move hashTable outside this function so it
1923 can be accessed by FcPatternBaseThawAll.
1924 (FcPatternBaseThawAll): New function complements
1925 FcPatternBaseFreeze.
1926 (FcPatternThawAll): New function complements FcPatternFreeze.
1928 * src/fcinit.c (FcFini): Add new FcFini to cleanup everything.
1930 * src/fccharset.c (FcCharLeafEntCreate): Save pointers to all
1931 allocated FcCharLeafEnt "blocks" so they can be freed later.
1932 (FcCharSetFreezeLeaf): Move hashTable outside this function so it
1933 can be accessed by FcCharSetThawAllLeaf.
1934 (FcCharSetThawAllLeaf): New function complements FcCharSetFreezeLeaf.
1935 (FcCharSetFreezeBase): Move hashTable outside this function so it
1936 can be accessed by FcCharSetThawAll.
1937 (FcCharSetThawAll): New function complements FcCharSetFreeze.
1939 * src/fccfg.c (FcSubstDestroy): Fix leak of outer FcSubst.
1940 (FcConfigDestroy): Fic leak of FcBlanks.
1942 * fc-list/fc-list.c (main): Fix leak of FcObjectSet.
1943 (main): Add call to FcFini when finished.
1945 * fc-glyphname/fc-glyphname.c: Mark several local functions as
1946 static. Add prototypes.
1948 * doc/fcinit.fncs: Add documentation for FcFini function.
1950 * doc/edit-sgml.c: Mark several local functions as static. Add
1953 * doc/Makefile.am (DOC_MODULE): Fix "suspicious" lines.
1955 2003-06-15 Tor Lillqvist <tml@iki.fi>
1957 * test/run-test.sh (FONTCONFIG_FILE): Remove CRs from the out file
1958 before comparing (needed on Windows).
1960 * src/Makefile.am (install-libtool-import-lib): Fix cut&paste error.
1962 2003-06-13 Tor Lillqvist <tml@iki.fi>
1964 * fontconfig-zip.in (DEVZIP): Add share/doc directory. Add Fc*.3
1967 * configure.in: Set FC_DEFAULT_FONTS on Win32 to the
1968 WINDOWSFONTDIR token.
1970 * src/fontconfig.def.in: Move the LIBRARY and VERSION lines to the
1971 end, not to confuse libtool, which expects the EXPORTS line to be
1972 the first. Add FcConfigEnableHome.
1974 * src/fccfg.c: Check also for DLL_EXPORT as indication of being
1975 built as a DLL on Win32.
1977 2003-06-09 Keith Packard <keithp@keithp.com>
1979 * Tag version 2.2.90
1981 2003-06-09 Keith Packard <keithp@keithp.com>
1983 * Optimization in FcLangSetIndex was broken, occasionally
1984 returning a pointer to the wrong location on miss
1986 * Add fc-match to test font matching from the command line.
1988 2003-05-31 Keith Packard <keithp@keithp.com>
1990 * (Bug 85) add support for culmus fonts
1991 * (Bug 87) Automake 1.4 doesn't do man_MAN1 correctly
1992 * (Bug 88) Fix usage info on non-long option systems (Tim Mooney)
1994 2003-05-28 James Su <suzhe@turbolinux.com.cn>
1996 * Fix "contains" op for strings and langsets.
1998 2003-05-17 Keith Packard <keithp@keithp.com>
2000 * Fix build error with BDF prop local. Free langset after query
2002 2003-05-14 Keith Packard <keithp@keithp.com>
2004 * Extract spacing from XLFD atom
2006 2003-05-12 Juliusz Chroboczek <jch@pps.jussieu.fr>
2008 * Reinstate SETWIDTH_NAME parsing for legacy fonts,
2009 disappeared in 1.30.
2011 * Generate FC_SIZE and FC_DPI for legacy bitmap fonts
2013 2003-05-12 Keith Packard <keithp@keithp.com>
2015 * Use FcIsWidth to share code
2017 * Set FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH when scanning fonts to avoid
2018 misclassifying some Han fonts as monospaced.
2020 2003-05-07 Keith Packard <keithp@keithp.com>
2022 * Add filename-based accept/reject to ammend available fonts.
2024 * Change FT_ENCODING_ADOBE_CUSTOM to ft_encoding_adobe_custom for
2025 older FreeType releases.
2027 2003-05-06 Keith Packard <keithp@keithp.com>
2029 * Remove 0b82 and Tamil numbers from tamil
2030 orthography (Jungshik Shin <jshin@mailaps.org>)
2032 2003-05-04 Keith Packard <keithp@keithp.com>
2034 + Map glyph names in fonts with adobe custom encoding to unicode
2036 2003-05-02 Keith Packard <keithp@keithp.com>
2038 * Add FC_WEIGHT_BOOK as weight 75
2040 2003-04-30 Keith Packard <keithp@keithp.com>
2042 * Typo in bitstream foundry name
2044 2003-04-24 Keith Packard <keithp@keithp.com>
2046 * Eliminate italic_angle check for PS fonts
2048 2003-04-23 Noah Levitt <nlevitt@columbia.edu>
2050 * Getting closer to fixing /etc/fonts hard-coding.
2052 2003-04-22 Keith Packard <keithp@keithp.com>
2054 * Update autogen.sh to work with newer automake versions
2055 * Handle pattern elements moving during multiple edits
2057 2003-04-23 James Henstridge <james@daa.com.au>
2059 * doc/fontconfig-devel.sgml: close the <para> element.
2061 * doc/fcpattern.fncs: close the <para> element.
2063 * doc/func.sgml: close the <refsynopsisdiv> element.
2065 2003-04-22 Keith Packard <keithp@keithp.com
2067 * Update autogen.sh to work with newer automake versions
2068 * Handle pattern elements moving during multiple edits
2070 2003-04-17 Colin Walters <walters@debian.org>
2072 + Remove some unused variables, and initialize some other ones so
2073 gcc doesn't warn us.
2075 2003-04-16 Keith Packard <keithp@keithp.com>
2077 + tag version 2.1.94
2079 2003-04-16 Keith Packard <keithp@keithp.com>
2081 + add BDF property fetching support for foundry
2082 (from Juliusz Chroboczek)
2083 + add BDF property fetching support for width
2085 2003-04-11 Juliusz Chroboczek <jch@pps.jussieu.fr>
2087 + Implemented foundry generation for Type 1 and TrueType
2089 2003-04-11 Gerard Escalante <g2@magestudios.net>
2091 + Retrieve information from Type1 FontInfo dictionaries
2093 2003-04-07 Colin Walters <walters@verbum.org>
2095 + src/Makefile.am: Fix dummy makefile target names when
2096 MS_LIB_AVAILABLE isn't set.
2098 2003-03-22 Tor Lillqvist <tml@iki.fi>
2100 Changes for Windows:
2102 + On Windows with gcc (a.k.a. mingw) build as a DLL.
2104 + We don't want to hardcode the fonts.conf file location in the
2105 DLL, so we look up the DLL location at run-time in a DllMain()
2106 function. The fonts.conf location is deduced from that.
2108 + The colon can't be used as path separator on Windows,
2109 semicolon is used instead. File path components can be separated
2110 with either slash or backslash. Absolute paths can also begin
2111 with a drive letter.
2113 + Add internal function FcStrLastSlash that strrchr's the last
2114 slash, or backslash on Windows.
2116 + There is no link() on Windows. For atomicity checks, mkdir a
2117 lock directory instead.
2119 + In addition to HOME, also look for USERPROFILE.
2121 + Recognize the special font directory token WINDOWSFONTDIR, to
2122 use the system's font directory.
2124 + Remove the fontconfig-def.cpp that was obsolete. Add
2125 fontconfig.def(.in), without internal functions.
2127 + Add a fontconfig-zip(.in) script, used to build a binary
2130 Fri Mar 7 07:55:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2131 + RPM specfile cleanups for 2.1.92: Removed man1/* and added man5/*
2132 to main package and man3/* to devel package
2134 + Added missing defattr(-, root, root) to main RPM package
2136 + Added HTML and text development documentation to -devel subpackage
2138 Wed Mar 5 05:08:00 EST 2003 Mike A. Harris <mharris@redhat.com>
2139 + Added back the configure macro options --disable-docs, otherwise
2140 fontconfig installs docs into /usr/share/doc/fontconfig (with no
2141 version number) unconditionally, causing RPM to fail the build due
2142 to _unpackaged_files_terminate_build. We pick up the pregenerated
2143 docs with %doc already.
2145 Wed Mar 5 04:26:20 EST 2003 Mike A. Harris <mharris@redhat.com>
2146 + Removed commented out rpm macro define at top of spec file,
2147 replacing it with a simple explanation, since rpm macros are
2148 expanded by rpm even in comments.
2150 + Changed /usr/bin to _bindir in BuildRequires lines
2152 + Cleaned up rpm postinstall script, and made fc-cache use _bindir
2154 + Reorganized file manifest lists
2156 Sun Mar 2 14:16:17 EST 2003 Owen Taylor <otaylor@redhat.com>
2158 + fontconfig.spec.in: Improvements from Red Hat spec file.
2160 + {fc-lang,fc-cache,fc-list}/Makefile.am: Add man pages.
2162 + docs/*.sgml: SGML fixes.
2164 Sat Mar 1 17:28:53 PST 2003 keithp
2165 + Ok, so the ChangeLog is a bit out of date
2167 + Lots of bugs fixed; most are in bugzilla, the
2168 biggest problems were in cache management where
2169 Owen discovered the library would lose badly when
2170 combining fonts-cache and ~/.fonts-cache data
2172 + Converted from autoconf to automake. This after
2173 getting patches accepted into libtool to allow
2174 the '-version-number' argument which lets
2175 packages set version numbers explicitly rather
2176 than the roundabout libtool way
2178 + Converted documentation to SGML using the docbook
2179 DTD. Now .txt and .html documents are installed
2180 in /usr/share/doc/fontconfig and there's no
2181 man page. Perhaps a man version can be written
2184 Sat Aug 31 15:21:22 PDT 2002 keithp
2185 + Xrender and Xft had several bugs related to
2186 rendering manually placed or poly-face text
2188 + Added more complete memory tracing in fontconfig
2189 Checked with (patched) mozilla and found no leaks
2191 + Updated Latin orthographies by comparing those from
2192 evertype.com with those from eki.ee. Tried to make
2193 sensible choices, including chars that occured in both
2194 and leaving some optional chars out that occured only
2197 Mon Aug 26 16:33:04 PDT 2002 keithp
2198 + Owen discovered that FcLangSetHasLang wasn't actually
2199 checking the language set.
2201 Mon Aug 26 13:37:23 PDT 2002 keithp
2202 + Append a version number to cache filenames
2204 Thu Aug 22 11:36:18 PDT 2002 keithp
2206 + Add "contains" and "not_contains" operators and elements to
2209 + Changed semantics of eq operator for LangSets to check for
2210 FcLangEqual so that any match will do
2212 + FcFontList was using FcConfigCompareValue (...FcOpEqual) instead
2213 of FcValueEqual to check for identical values when inserting into
2214 the results. This broke when the above semantic change was made,
2215 now it uses FcValueEqual which is "more correct" in any case.
2217 Thu Aug 22 00:32:29 PDT 2002 keithp
2219 + Reimplement FC_LANG as new datatype. Lists of strings
2220 was consuming over a megabyte of memory for 401 fonts.
2222 + Freeze patterns loaded from cache files. This shares
2223 common value lists and common patterns which saves
2224 considerable memory.
2226 + Change the denotation of 'constant' charsets to use special
2227 ref value instead of separate boolean.
2229 + Clean up leak tracing stuff, found several unannoted alloc/free
2232 Tue Aug 20 16:17:37 PDT 2002 keithp
2234 + Fix memory leak when parsing matrices from XML
2236 Mon Aug 19 11:57:27 PDT 2002 keithp
2238 + Fix autoconf files to pass FONTCONFIG_PATH on
2239 compile line so that ${prefix} gets substituted
2242 + Use getc_unlocked/putc_unlocked on systems that
2243 provide them to avoid damage done to stdio by posix
2245 + Eliminate FC_PATTERN and FcTypePattern in favor of
2246 an extended api for FcConfigSubstitute which takes
2247 both the font and the pattern.
2249 + Add 'sans serif' alias for 'sans-serif' as some apps
2250 can't handle hyphens in family names
2252 + Eliminate pretense of support for libxml2
2254 + Comment origins of Han orthographies
2256 Tue Jul 30 18:37:09 PDT 2002 keithp
2258 + Add binding property to edit element so that strong
2259 binding values may be inserted by the config file.
2260 The default remains weak.
2262 Sun 28 Jul 04:16:55 PDT 2002 keithp
2264 + Tagged release candidate 1 in the CVS tree and
2265 placed fcpackage.rc1.tar.gz for distribution
2267 Thu Aug 1 08:55:08 PDT 2002 keithp
2269 + Fixed autoconf builds to always specify install
2270 target files (for BSD). Also fixed to
2271 define FONTCONFIG_PATH in config.h so that
2272 nonstandard installs will actually work.