commit 2373f904265a05761039cfc5fe305bf588e831c5 Author: Keith Packard Date: Sat Dec 2 16:09:47 2006 -0800 Update for version 2.4.2 INSTALL | 2 +- README | 36 ++++++++++++++++++++++++++++++++++-- configure.in | 2 +- fontconfig/fontconfig.h | 2 +- 4 files changed, 37 insertions(+), 5 deletions(-) commit e3b65ee06808cda296215b88111a259a200cc37c Author: Peter Breitenlohner Date: Sat Dec 2 15:09:57 2006 -0800 Fix fc-cat documentation (bug 8935). Adapt documentation to reality. (1) The fc-cat usage message should reflect the options accepted by the program. (2) The fc-cat.1 manpage was fairly broken (unreadable). fc-cat/fc-cat.c | 9 +++++++-- fc-cat/fc-cat.sgml | 26 +++++++++++++++++++++++--- 2 files changed, 30 insertions(+), 5 deletions(-) commit 61895ed16c0c06e4d6b2abeb8ff292d53b4ea499 Author: Keith Packard Date: Sat Dec 2 15:06:13 2006 -0800 Add space between type and formal in devel man pages (bug 8935) Most parameters are pointers and have '*' in the type; for those which do not, use '%' to mark where a space needs to be inserted. doc/edit-sgml.c | 5 +++++ doc/fcblanks.fncs | 4 ++-- doc/fccharset.fncs | 8 ++++---- doc/fcconfig.fncs | 12 ++++++------ doc/fcconstant.fncs | 4 ++-- doc/fcfile.fncs | 4 ++-- doc/fcfreetype.fncs | 12 ++++++------ doc/fcmatrix.fncs | 12 ++++++------ doc/fcobjectset.fncs | 2 +- doc/fcobjecttype.fncs | 4 ++-- doc/fcpattern.fncs | 32 ++++++++++++++++---------------- doc/fcstring.fncs | 16 ++++++++-------- doc/fcvalue.fncs | 4 ++-- 13 files changed, 62 insertions(+), 57 deletions(-) commit b1aa20098f641a16d02e70a161450e6b85afe410 Author: Peter Breitenlohner Date: Sat Dec 2 14:28:03 2006 -0800 Use instead of when documenting fonts.conf. Bug 8935. doc/fontconfig-user.sgml | 87 +++++++++++++++++++++++----------------------- 1 files changed, 43 insertions(+), 44 deletions(-) commit 2cae0512cdf3544ff78b04f6c05a4cb585e50bb8 Author: Peter Breitenlohner Date: Sat Dec 2 14:18:11 2006 -0800 A VPATH build of fontconfig-2.4.1 fails for various reasons. Bug 8933. VPATH builds without doctools breaks as it cannot find the distributed pre-formatted documentation. configure.in | 2 +- doc/Makefile.am | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) commit 0f963b0d3ec417a39f6aa2ba22ba56c2a79d05aa Author: Keith Packard Date: Sat Dec 2 13:57:45 2006 -0800 Segfault scanning non-font files. Disallow scan edit of user vars. (#8767) Missing NULL font check before attempting to edit scanned pattern. Also, rules are now checked to ensure all edited variables are in the predefined set; otherwise, the resulting cache files will not be stable. src/fcdir.c | 2 +- src/fcint.h | 1 + src/fcxml.c | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletions(-) commit c9c6875014661d4326100bae0464279d76bd657f Author: Kean Johnston Date: Sat Dec 2 13:36:56 2006 -0800 Don't use varargs CPP macros in fccache.c. (bug 8733) src/fccache.c uses a trick to try and use a function name that is also a macro name. It does this using the varargs args() macro. Replace that with separate macros for each number of formals. src/fccache.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) commit 72ffe6536a6825a32095c8185aff836a12326ac5 Author: Keith Packard Date: Sat Dec 2 13:22:27 2006 -0800 Add FcFreeTypeQueryFace external API. Bug #7311. Expose ability to build an FcPattern directly from an FT_Face object. configure.in | 4 ++-- doc/fcfreetype.fncs | 17 +++++++++++++++- fontconfig/fcfreetype.h | 6 ++++++ src/fcfreetype.c | 50 ++++++++++++++++++++++++++--------------------- 4 files changed, 52 insertions(+), 25 deletions(-) commit 5e234d9e764d8c52d93b918a5c92b7956c95882b Author: Keith Packard Date: Sat Dec 2 13:14:23 2006 -0800 Fix grep pattern in makealias to work on non-Gnu grep (bug 8368). grep -l -w '^foo' doesn't work on Solaris. Replace with grep -l '^foo\>' instead which does. Also, grep -l will report the filename more than once (!), so add | head -1 to pick just the first one. src/makealias | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2b77216ee21de95ec352672aa025195a83925b32 Author: Keith Packard Date: Sat Dec 2 13:04:05 2006 -0800 Avoid writing uninitialized structure pad bytes to cache files. The union inside the FcValue structure contains pad bytes. Instead of copying the whole structure to the cache block, copy only the initialized fields to avoid writing whichever bytes serve as padding within the structure. src/fcpat.c | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) commit 64d7e303df441f274ee194a401dcd14dfb58af7e Author: Keith Packard Date: Sat Dec 2 12:14:49 2006 -0800 Warn (and recover) from config file without elements. When updating from older fontconfig versions, if the config file is not replaced, it will not contain elements. Lacking these, fontconfig has no place to store cached font information and cannot operate reasonably. Add code to check and see if the loaded configuration has no cache directories, and if so, warn the user and add both the default system cache directory and the normal per-user cache directory. src/fcinit.c | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) commit 253ec7609c13b46c717c801206ebb1a6c7f06e27 Author: Keith Packard Date: Sat Dec 2 11:47:07 2006 -0800 Use explicit platform/nameid order when scanning ttf files. Instead of accepting whatever order names appear in the font file, use an explicit ordering for both platform and nameid. Platforms are high precedence than nameids. The platform order is: microsoft, apple unicode, macintosh, (other) The family nameid order is: preferred family, font family The fullname nameid order is: mac full name, full name The style nameid order is preferred subfamily, font subfamily This will change the names visible to users in various application UIs, but should not change how existing font names are matched as all names remain present in the resulting database. The hope is that family names will, in general, be less ambiguous. Testing here shows that commercial fonts have longer names now while DejaVu has a shorter family name, and moves more of the font description to the style name. src/fcfreetype.c | 237 ++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 149 insertions(+), 88 deletions(-) commit b5803016d74856eb44b05876f0d7178bfec0df47 Author: Keith Packard Date: Sun Nov 12 17:15:55 2006 -0800 FcStrCanonAbsoluteFilename should be static. src/fcstr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit bae5db78ddab473695a7efee374a75d6fe02426f Author: Keith Packard Date: Sun Nov 12 17:15:24 2006 -0800 Add sparc64 architecture string. fc-arch/fcarch.tmpl.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 0334e5a294dd6a36c94936f6c9c709e86773cf64 Author: Mike FABIAN Date: Fri Oct 27 10:26:50 2006 -0700 Do not clean cache files for different architectures Use filenames to clean cache files for current architecture only. This is sufficient as cache files live in their own directory where filenames are under fontconfig control. fc-cache/fc-cache.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) commit 0596d7296c94b2bb9817338b8c1a76da91673fb9 Author: Han-Wen Nienhuys Date: Sun Sep 17 17:03:33 2006 -0700 More fixes for Win32 building (bug 8311) Our build system barfs on autogen.sh, which ignores --noconfigure. Configure needs a host of options to make the cross compile work in our case. Fix typo in fccache.c autogen.sh | 7 +++++++ src/fccache.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletions(-) commit 1de7a4cc09172bbc99912e1410f46fc16c1a05ec Author: Han-Wen Nienhuys Date: Sun Sep 17 14:34:46 2006 -0700 FcStrCanonFileName buggy for mingw. (bug 8311) FcStrCanonFileName checks whether s[0] == '/', and recurses if not. This only works on POSIX. On dos, this crashes with a stack overflow. The patch attached splits this functionality in two functions (FcStrCanonAbsoluteFilename) and uses GetFullPathName on windows to get an absolute path. It also fixes a number of other issues. With this patch, LilyPond actually produces output on Windows. src/fccache.c | 5 +++ src/fcstr.c | 88 +++++++++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 78 insertions(+), 15 deletions(-) commit cc104e6a910427db009be36ec34125962889ecb8 Author: Keith Packard Date: Sun Sep 17 14:20:18 2006 -0700 Detect and use available random number generator (bug 8308) Prefer random over lrand48 over rand configure.in | 2 +- src/fccache.c | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) commit 706a1b367abc4589c7eccfd7cea3af1029bc2d8c Author: Keith Packard Date: Sun Sep 17 14:09:12 2006 -0700 Build fontconfig.def from header files when needed. Instead of attempting to track exported symbols manually in fontconfig.def.in, build it directly from the public fontconfig header files to ensure it exports the public API. configure.in | 1 src/Makefile.am | 18 +++ src/fontconfig.def.in | 303 ------------------------------------------------- 3 files changed, 17 insertions(+), 305 deletions(-) commit 6262fefe54823476070053d53eb3f52fd516ebfe Author: Keith Packard Date: Sun Sep 17 13:50:31 2006 -0700 Remove documentation for non-existant FcConfigNormalizeFontDir. FcConfigNormalizeFontDir was present in some of the 2.3.9x release but not in the final 2.4 release. However, the documentation persisted. doc/fcconfig.fncs | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-)