2006-04-25 Patrick Lam * ChangeLog: * README: * configure.in: * fontconfig/fontconfig.h: Bump version to 2.3.95. 2006-04-25 Behdad Esfahbod reviewed by: plam * configure.in: * src/Makefile.am: * src/fcfreetype.c: Fix the issues with GNU libiconv vs. libc iconv (which especially appear on Solarii). Approach suggested by Tim Mooney. 2006-04-24 Dominic Lachowicz reviewed by: plam * src/Makefile.am: Include $(top_srcdir), $(top_srcdir)/src before anything else. * fc-cache/fc-cache.c, fc-cat/fc-cat.c, fc-match/fc-match.c: * src/fccache.c, src/fccfg.c, src/fccharset.c, src/fcdbg.c: * src/fcfreetype.c, src/fcfs.c, src/fcinit.c, src/fclist.c: * src/fcmatch.c, src/fcmatrix.c, src/fcname.c, src/fcpat.c: * src/fcstr.c, src/fcxml.c: Shuffle order of includes for building out of srcdir on win32. 2006-04-20 Patrick Lam * src/fcmatch.c (FcSortWalk): Prevent terrible perf regression by getting the if-condition right (reported by Wouter Bolsterlee). 2006-04-19 Patrick Lam Dominic Lachowicz * src/fccache.c (FcDirCacheConsume): Implement mmap-like code for Windows using MapViewOfFile. 2006-04-19 Patrick Lam * src/fccache.c (FcDirCacheConsume, FcCacheNextOffset): Bail gracefully if the cache file does not contain enough data. 2006-04-14 Patrick Lam * fonts.conf.in: Give the 'Standard Symbols L' match a strong (vs. weak) binding. 2006-04-14 Patrick Lam * src/fcname.c (FcObjectToPtrLookup): Fix Gecko-exposed segfault from my last hack to FcObjectToPtrLookup. Simplify code and get things straight. 2006-04-14 Patrick Lam * fonts.conf.in: Actually, just add URW fonts as aliases for all of the PostScript fonts. (reported by Miguel Rodriguez). 2006-04-13 Patrick Lam * fonts.conf.in: Add an alias 'Standard Symbols L' for 'Symbol'. 2006-04-12 Frederic Crozat reviewed by: plam * src/fcpat.c: (FcPatternFreeze): Fix memory leak (Coverity defect #2089). * src/fcfreetype.c: (GetScriptTags): Ignore script if subtable is missing (Coverity defect #2088). 2006-04-12 Patrick Lam * src/fccfg.c (FcConfigSubstituteWithPat): Fix possible null pointer dereference (Coverity defect #784) and memory leak (Coverity defects #785, #786). 2006-04-12 Patrick Lam * src/fcmatch.c (FcSortWalk, FcFontSetSort): Don't copy FcCharSet if we're going to throw it away anyway. (Reported by Kenichi Handa). 2006-04-11 Ming Zhao reviewed by: plam * src/fcname.c (FcObjectToPtrLookup): Fix bad behaviour on realloc resulting in crash. 2006-04-11 Patrick Lam * src/fccache.c (FcGlobalCacheReadDir): Don't crash if config is null (Coverity defect #984). 2006-04-11 Frederic Crozat reviewed by: plam * src/fccharset.c (FcCharSetPutLeaf): * src/fclang.c (FcNameUnparseLangSet): Missing bits from previous patches. * src/fccharset.c (FcCharSetSubtractCount): Remove extra semi-colon. * src/fccfg.c (FcConfigBuildFonts): Fix memory leak in error case (Coverity defects #776, #985). * src/fcxml.c (FcPopBinary, FcParsePatelt, FcParsePattern): Fix memory leaks (Coverity defects #779, #781) and memory use after free (Coverity defect #780). 2006-04-11 Patrick Lam * src/fccharset.c (FcCharSetPutLeaf): Properly convert static charsets to dynamic charsets. 2006-04-11 Frederic Crozat reviewed by: plam * src/fcpat.c: (FcValueListEntCreate, FcPatternBaseFreeze, FcPatternFreeze): Fix memory leak in error case (Coverity defects #1820, #1821, #1822). * src/fclang.c: (FcNameUnparseLangSet): Fix memory leak (Coverity defect #1819). * fc-lang/fc-lang.c: (scan): prevent crash when invalid include line is parsed (Coverity defect #763). * fc-cat/fc-cat.c: (FcCacheFileRead): Fix potential null pointer access (Coverity defect #1804). * src/fcname.c: (FcObjectUnserialize): Remove dead code (Coverity defect #1194). * src/fcfreetype.c: (GetScriptTags): Prevent potential null pointer access (Coverity defect #767), ensure error value is read (Coverity defect #1195). 2006-04-11 Behdad Esfahbod reviewed by: plam * doc/Makefile.am: Survive missing docbook2pdf. 2006-04-10 Patrick Lam * fc-case/fc-case.c: * fc-glyphname/fc-glyphname.c: * fc-lang/fc-lang.c: Include more stub definitions to make HP-UX's C compiler happy. 2006-04-10 Patrick Lam * src/fcname.c (FcObjectUnserialize): Swap typo in order of ALIGN and dereferencing, fixing bug 6529. 2006-04-10 Frederic Crozat reviewed by: plam * src/fccfg.c: (FcConfigEvaluate): Fix string memory leak (Coverity defect #1823). * src/fccache.c: (FcDirCacheUnlink): Fix memory leak with hash collision (Coverity defect #1824). 2006-04-10 Frederic Crozat reviewed by: plam * src/fccache.c: (FcGlobalCacheSave): Don't leak header in non-error case (Coverity defect #1825). 2006-04-10 Frederic Crozat reviewed by: plam * src/fcdir.c (FcDirScanConfig) Don't leak in error cases (Coverity defects #777, #1826) 2006-04-10 Frederic Crozat reviewed by: plam * src/fccache.c: (FcDirCacheWrite): Fix double free (spotted by Coverity, CID #1965). * fc-match/fc-match.c: (main): Check if pattern is not null before using it (Coverity defect #1883). * src/fccache.c: (FcDirCacheWrite): Fix memory leak with hash collision (Coverity defect #1829). * src/fccfg.c: (FcConfigBuildFonts): Fix memory leak when bail cases (Coverity defect #1828). * src/fccache.c: (FcGlobalCacheLoad): Don't leak directory name (Coverity defect #1827). 2006-04-07 Dominic Lachowicz reviewed by: plam * fc-cache/Makefile.am: * fc-cat/Makefile.am: * fc-list/Makefile.am: * fc-match/Makefile.am: LD_ADD missing dependencies for binaries. Reported by Edson Alves Pereira. 2006-04-07 Patrick Lam * src/fcint.h: * fc-lang/fc-lang.c (main): SGI compilation fixes (reported by Christoph Bauer): 1) reorder union definition of _FcChar; 2) omit .stats =. 2006-04-07 Dominic Lachowicz reviewed by: plam * configure.in: * src/fccharset.c (FcCharSetNeededBytes): * src/fcfs.c (FcFontSetNeededBytes): * src/fcint.h: * src/fclang.c (FcLangSetNeededBytesAlign): * src/fcname.c (FcObjectNeededBytesAlign): * src/fcpat.c (FcPatternNeededBytesAlign, FcValueListNeededBytesAlign, FcStrNeededBytesAlign): Portability fixes for HP-UX (reported by Christoph Bauer). Replace '__inline__' by AC_C_INLINE and 'inline'. Replace '__alignof__' by 'fc_alignof'. 2006-04-07 Dominic Lachowicz reviewed by: plam * src/fcint.h: Move up #include of config.h. Fail if neither inttypes.h nor stdint.h is available. Fixes bug 6171. 2006-04-07 Dominic Lachowicz Patrick Lam * configure.in: * fc-cache/fc-cache.c: * fc-cat/fc-cat.c: * src/fccache.c (FcGlobalCacheSave, FcCacheNextOffset, FcDirCacheConsume, FcDirCacheProduce, FcDirCacheWrite, FcCacheMachineSignature): * src/fcfreetype.c (FcFreeTypeQuery): * src/fontconfig.def.in: Make fontconfig compile under MinGW: 1) remove unneeded #includes; 2) make use of mmap and sysconf conditional; 3) replace rand_r by srand/rand if needed; 4) use chsize instead of ftruncate; and 5) update libtool exports file 2006-04-07 Patrick Lam * src/fcdir.c (FcDirScanConfig): Eliminate warning. 2006-04-06 Patrick Lam * fc-match/.cvsignore: * fc-match/Makefile.am: * fc-match/fc-match.sgml: Update documentation for fc-match (SGML-ize it). (reported by Ilya Konstantinov) 2006-04-06 Diego Pettenò reviewed by: plam * src/fcdefault.c: * src/fcpat.c: * src/fcxml.c: Reduce amount of dirty rss by const'ing some data structures. 2006-04-06 Patrick Lam * fc-cache/Makefile.am: Don't fail if we can't create or remove $(pkgcachedir) i.e. /var/cache/fontconfig. (reported by Quanah Gibson-Mount). 2006-04-06 Kjartan Maraas reviewed by: plam * fc-case/fc-case.c: * fc-glyphname/fc-glyphname.c: * fc-lang/fc-lang.c (main): * fc-match/fc-match.c: * src/fccache.c (FcGlobalCacheSave, FcCacheSkipToArch, FcDirCacheWrite): * src/fcfreetype.c (FcFreeTypeQuery): * src/fclang.c (FcFreeTypeLangSet): * src/fcxml.c: Fix intel compiler warnings: make many variables static, eliminate duplicate names, reduce variable scopes, unsigned/signed printf formatting. 2006-03-24 Mike Fabian reviewed by: plam * src/fccache.c (FcGlobalCacheLoad, FcCacheSkipToArch): Fix multiarch support (don't destroy multiarch files!) 2006-03-24 Patrick Lam * configure.in: Require pkg-config. (Thanks Behdad; better solution wanted for libxml2 detection!) 2006-03-22 Patrick Lam * src/fcatomic.c: On Windows, unlink before rename. Reported by Tim Evans. 2006-03-15 Patrick Lam * fc-lang/ab.orth: * fc-lang/ibo.orth: Fix typos in orth files. Reported by Denis Jacquerye. 2006-03-08 Patrick Lam * Makefile.am: * config/config.guess: * config/config.sub: Fix Makefile.am for removal of debian/ directory. 2006-03-08 Patrick Lam * .cvsignore Ignore debian/ directory for CVS. 2006-03-08 Patrick Lam * debian/* Now remove debian/ directory. 2006-03-08 Patrick Lam * debian/po/* Remove debian/ directory from sources. See Debian's subversion server at svn://svn.debian.org/pkg-freedesktop/trunk/fontconfig instead. 2006-03-08 Denis Jacquerye reviewed by: plam * fc-lang/ln.orth: * fc-lang/iso639-1, fc-lang/iso639-2: Add orthography for Lingala. 2006-03-08 Carl Worth reviewed by: keithp * conf.d/Makefile.am: * conf.d/10LohitGujarati.conf: Add a configuration file that disables hinting for the Lohit Gujarati font (since the hinting distort some glyphs quite badly). 2006-03-08 Egmont Koblinger reviewed by: plam * src/fcdir.c (FcDirScanConfig): Sort directory entries while scanning them from disk; prevents Heisenbugs due to file ordering in a directory. 2006-03-07 Behdad Esfahbod reviewed by: plam * src/fcfreetype.c (GetScriptTags): * src/ftglue.c, src/ftglue.h: Remove stuff we don't use, make get_{char,short,long} functions of ftglue macros to be inlined. * src/fcint.h: * src/fcname.c (FcObjectSerialize): Code cleanups (excess prototype, old-style function definition). 2006-03-05 Patrick Lam * src/fcpat.c (FcPatternGetString): Because we hacked FcPatternGet, we don't really need to expand the filename again in FcPatternGetString. 2006-03-05 Patrick Lam * src/fcpat.c (FcPatternGetString, FcPatternGet): Ok, so some people (wine!) use FcPatternGet to fetch FC_FILE. Make that work. Reported by Bernhard Rosenkraenzer. 2006-03-03 Patrick Lam * src/fcint.h: Include inttypes.h instead of stdint.h if appropriate. 2006-03-03 Patrick Lam * fc-cat/fc-cat.c (FcFileIsDir): * fc-glyphname/fc-flyphname.c: More stub definitions and remove FcFileIsDir from fc-cat. 2006-03-03 Patrick Lam * fc-case/fc-case.c: Fix compilation on AIX with stub definitions (bug 6097). 2006-03-03 Patrick Lam * src/fccache.c (FcCacheSkipToArch, FcDirCacheProduce): * src/fcfreetype.c (GetScriptTags): * src/fcfs.c (FcFontSetDistributeBytes): * src/fcpat.c (FcValueListEntCreate, FcValueListNeededBytes): Get rid of C++-style comments. 2006-03-03 Patrick Lam * debian/changelog Enable creation of 2.3.94 Debian packages. 2006-03-02 Egmont Koblinger reviewed by: plam * src/fclang.c (FcCharSetForLang): Fix suspicious return expression which causes junk to be returned.