File fontconfig.spec of Package fontconfig

# spec file for package fontconfig (Version 2.6.0)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           fontconfig
%define build_docs 0
BuildRequires:  freetype2-devel libexpat-devel pkgconfig
%if %{build_docs}
BuildRequires:  docbook-dsssl-stylesheets docbook-utils docbook_3 docbook_4 iso_ent jadetex libpng libxml2 libxml2-devel lynx openjade opensp perl-SGMLS sgml-skel tetex
License:        Public Domain, Freeware; X11/MIT
Provides:       XFree86:/etc/fonts/fonts.dtd
Group:          System/Libraries
AutoReqProv:    on
# bug437293
%ifarch ppc64
Obsoletes:      fontconfig-64bit
%ifarch  ppc
Obsoletes:      fontconfig-32bit
Requires:       bash
Version:        2.6.0
Release:        8
Summary:        Library for Font Configuration
# CVS can be found here: (CVS is gone, fontconfig uses git now).
# $ cvs -d login
# CVS password: <hit return>
# $ cvs -d co fontconfig
# oldneededforbuild  expat freetype2 freetype2-devel pkgconfig
# After building with "build_docs" defined to "1" generate the doc tarball with:
# tar jcf fontconfig-doc.tar.bz2 fc-*/*.[0-9] doc/*.[0-9] doc/*.html doc/*/*.html doc/*.txt 
Source1:        %name-doc.tar.bz2
Source2:        iso639-1
Source3:        iso639-2
Source10:       suse-generic-names.conf
Source11:       suse-pre-user.conf
Source12:       suse-post-user.conf
Source13:       suse-hinting.conf
Source14:       suse-bitmaps.conf
Source15:       suse-font-dirs.conf
Source20:       local.conf.instsys
Source30:       29-liberation-aliases.conf
Patch4:         fc-match.patch
Patch5:         AppleRoman-DynaFont.patch
Patch6:         fontconfig-minmaxabs.patch
Patch10:        conf.patch
Patch12:        bugzilla-128937-turn-off-embedded-bitmaps-by-default.patch
Patch13:        bugzilla-160226-multiarch-cache-file-problem.patch
Patch15:        fc-cache.patch
Patch16:        make-check.patch
Patch17:        change-magic.patch
Patch18:        fc-validatecache-option.diff
Patch22:        fc-verbose.diff
Patch27:        fc-app-dir-fix-new-new.diff
Patch28:        bugzilla-158573-turn-off-hinting-when-embolden.patch
Patch29:        fix-build-for-10.0.patch
Patch30:        bugzilla-179457-fix-font-file-names-for-wine.patch
Patch31:        bugzilla-246783-do-not-crash-when-config-files-contain-broken-stuff.patch
Patch32:        usr-share-doc-packages.patch
Patch33:        bnc438855-make-FcInitReinitialize-work-again.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Fontconfig is a library for configuring and customizing font access. It
contains two essential modules: the configuration module, which builds
an internal configuration from XML files, and the matching module,
which accepts font patterns and returns the nearest matching font.

    Keith Packard <>

%package devel
License:        X11/MIT
Requires:       %{name} = %version
Requires:       freetype2-devel glibc-devel
Provides:       XFree86-devel:%_libdir/pkgconfig/fontconfig.pc
Group:          Development/Libraries/C and C++
Summary:        Include Files and Libraries mandatory for Development.
# bug437293
%ifarch ppc64
Obsoletes:      fontconfig-devel-64bit
%ifarch  ppc
Obsoletes:      fontconfig-devel-32bit

%description devel
This package countains all include files, libraries, configuration
files needed for compiling applications which use the fontconfig

In addition, it contains extensive documentation and manual pages for
developers using the library.

Fontconfig is a library for configuring and customizing font access. It
contains two essential modules, the configuration module which builds
an internal configuration from XML files and the matching module which
accepts font patterns and returns the nearest matching font.

    Keith Packard <>

%setup -q
%if %{build_docs} < 1
   tar xvf $RPM_SOURCE_DIR/%name-doc.tar.bz2
#%patch4  -p0 -b .fc-match
%patch5 -p0 -b .dynafont
%patch6 -p0 -b .minmaxabs
%patch10 -p1 -b .fonts.conf
#%patch12 -p1
#%patch13 -p1
#%patch15 -p1
%patch16 -p1
%patch17 -p1
#%patch18 -p0
#%patch22 -p1
#%patch27 -p1
%patch28 -p1
#%patch29 -p1
#%patch30 -p1
%patch31 -p1
%patch32 -p1
%patch33 -p1

%configure --with-pic  \
%if %suse_version > 1100
        --disable-static \
	--with-freetype-lib=%_libdir \
  	--with-x \
  	--enable-libxml2=no \
  	--with-confdir=/etc/fonts \
  	--with-docdir=%{_defaultdocdir}/%{name} \
  	--with-add-fonts=/usr/X11R6/lib/X11/fonts,/opt/kde3/share/fonts,/usr/local/share/fonts \
	%if %{build_docs} < 1
make %{?jobs:-j %jobs}

export MALLOC_CHECK_=2
make %{?jobs:-j %jobs} check

make DESTDIR=$RPM_BUILD_ROOT pkgconfigdir=%{_libdir}/pkgconfig install
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/fontconfig
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/fontconfig-devel
install -m 644 AUTHORS COPYING ChangeLog README $RPM_SOURCE_DIR/iso639-? \
#install -m 644 fc-lang/iso639-{1,2} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
install -m 644 doc/*.html $RPM_BUILD_ROOT/%{_defaultdocdir}/fontconfig
install -m 644 doc/fontconfig-user.txt $RPM_BUILD_ROOT/%{_defaultdocdir}/fontconfig
install -m 644 doc/fontconfig-devel/*  $RPM_BUILD_ROOT/%{_defaultdocdir}/fontconfig-devel
install -m 644 doc/fontconfig-devel.txt  $RPM_BUILD_ROOT/%{_defaultdocdir}/fontconfig-devel
for i in 1 3 5
    mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man${i}/
    for j in fc-*/*.${i} doc/*.${i} doc/*/*.${i}
        test -f ${j} && install -m 644 ${j} $RPM_BUILD_ROOT/%{_mandir}/man${i}/
    gzip --best $RPM_BUILD_ROOT/%{_mandir}/man${i}/*.${i}
# install the conf.d README as well, I think it's helpful:
install -m 644 conf.d/README $RPM_BUILD_ROOT/etc/fonts/conf.d
install -m 644 $RPM_SOURCE_DIR/suse*.conf $RPM_BUILD_ROOT/etc/fonts/
install -m 644 $RPM_SOURCE_DIR/local.conf.instsys $RPM_BUILD_ROOT/etc/fonts/
install -m 644 $RPM_SOURCE_DIR/29-liberation-aliases.conf $RPM_BUILD_ROOT/etc/fonts/conf.avail
# tune links in conf.d:
pushd $RPM_BUILD_ROOT/etc/fonts/conf.d
    ln -s ../suse-font-dirs.conf 05-suse-font-dirs.conf
    ln -s ../conf.avail/29-liberation-aliases.conf 29-liberation-aliases.conf 
    rm -f 50-user.conf
    rm -f 51-local.conf
    ln -s ../suse-pre-user.conf 50-suse-pre-user.conf
    ln -s ../conf.avail/51-local.conf 55-local.conf
    ln -s ../conf.avail/50-user.conf 56-user.conf
    ln -s ../suse-post-user.conf 58-suse-post-user.conf
# don't package any files in the cache directory, only the directory itself:
rm -f $RPM_BUILD_ROOT/var/cache/fontconfig/*
%if %suse_version > 1100
rm -f %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%doc %{_defaultdocdir}/%{name}
%dir /etc/fonts
%config /etc/fonts/fonts.dtd
%config /etc/fonts/fonts.conf
%config /etc/fonts/suse-generic-names.conf
%config /etc/fonts/suse-font-dirs.conf
%config /etc/fonts/suse-pre-user.conf
%config /etc/fonts/suse-post-user.conf
%config %verify(not md5 size mtime) /etc/fonts/suse-hinting.conf
%config %verify(not md5 size mtime) /etc/fonts/suse-bitmaps.conf
%dir /etc/fonts/conf.avail/
%dir /etc/fonts/conf.d/
%config(noreplace) /etc/fonts/conf.d/*.conf
%config /etc/fonts/local.conf.instsys
%doc %{_mandir}/man5/fonts-conf.5.gz
%doc %{_mandir}/man1/*
%dir /var/cache/fontconfig/

%files devel
%doc %{_defaultdocdir}/%{name}-devel
%if %suse_version <= 1100
%doc %{_mandir}/man3/Fc*

* Tue Dec 09 2008
- remove ix86 from ifarch statement obsoleting 32bit package
* Mon Nov 24 2008
- obsolete old -XXbit packages (bnc#437293, bnc#439840)
* Fri Nov 07 2008
- bnc#438855: make FcInitReinitialize() work again. This function
  is important to make it possible for YaST2 to load new fonts
  which are copied into instsys after YaST2 is already running.
* Wed Oct 29 2008
- bnc#433591: make "Lohit Oriya" the default font for Oriya. See
- change /usr/share/doc/fontconfig to /usr/share/doc/packages/fontconfig
  in the documentation (man-pages and sgml).
* Tue Sep 23 2008
- kill "la" files and static libraries *only* for versions >
  openSUSE 11.0.
* Wed Sep 10 2008
- update to 2.6.0. Some changes from the ChangeLog:
  • new configurables for sub-pixel filter configuration.
  • Don't check cache file time stamps when cleaning cache dir.
  Cache file mtime is meaningless now that the directory time is
  encoded in
  the cache.
  • Also check configDirs mtimes in FcConfigUptoDate
  Checking only config files and font directories can miss
  changes which affect only a configuration directory. Check
  those to catch any changes.
  • Update CaseFolding.txt to Unicode 5.1.0
- remove fix-pattern-duplicate.diff (included upstream).
* Tue Aug 26 2008
- kill "la" files and static libraries
* Mon May 26 2008
- bnc#246804: remove workaround to force the detection of FreeMono
  as monospace, freefont >= 0.20080323 has the spacing problem
* Wed May 21 2008
- bnc#378463:
  • accept "Liberation Serif", "Liberation Sans", and
  "Liberation Mono" as fallbacks for "Times New Roman", "Arial",
  and "Courier New" respectively.
  • Mark the "Liberation" fonts with their generics to get
  reasonable fallbacks if they are not installed.
  • Add these fonts to the preference lists (below DejaVu).
* Thu Apr 10 2008
- added baselibs.conf file to build xxbit packages
  for multilib support
* Tue Dec 18 2007
- add "Lucida Sans Typewriter", "Lucida Sans", and "Lucida Bright"
  to the list of fonts which should always use the byte code
  interpreter if anti-aliasing is off. Suggested by
  Bernhard Walle <>.
* Tue Oct 16 2007
- Bugzilla #334154: make "Lohit Punjabi" the default font for
  Punjabi (move ugly FreeSans, FreeSerif, FreeMono down in
  the preference lists to make this possible).
* Tue Oct 16 2007
- Bugzilla #308961 comment #24: give "AR PL ShanHeiSun Uni" higher
  priority than FZMingTi because the latter one doesn’t have
  embedded bitmaps.
* Mon Oct 15 2007
- Bugzilla #308961: make "AR PL ShanHeiSun Uni" the default font
  for traditional and simplified Chinese (unless the commercial
  fonts FZ* or CMEX* are installed which still have higher
* Fri Apr 27 2007
- Add libexpat-devel to BuildRequires.
* Fri Mar 23 2007
- Bugzilla #118131 comment #93: set the autohinter default
  matching on "font" instead of on "pattern".
  If an autohint value is set in pattern, OpenOffice 2.1 will use
  that even if there are fontconfig rules matching on "font" which
  should override it again). This doesn't cause any problems for
  Cairo/Gnome (see bug #104365) because Cairo/Gnome don't try to
  change the autohint value anyway.
* Mon Mar 12 2007
- duplicate patterns correctly (fixes some parts of bug #244579
  for Qt4).
  fix-pattern-duplicate.diff (by Stephan Kulow <>).
* Wed Feb 21 2007
- Bugzilla #246783: avoid crashes when config files contain
  some incorrect expressions.
* Tue Feb 20 2007
- Bugzilla #246804: force detection of FreeMono as monospace as
  well, recent versions of this font are broken and have glyphs
  with wrong width.
* Tue Feb 20 2007
- update to 2.4.2.
  + remove do-not-clean-cache-files-for-different-architectures.patch
  (included upstream).
  + remove improve-monospace-detection.patch and fix this in
  the setup instead of in the c-code using the feature
  match target="scan" (see bugzilla #246804).
* Tue Feb 06 2007
- fix order of changelog entries.
* Wed Jan 24 2007
- Bugzilla #237347: make Pothana2000 the default font for Telugu.
* Mon Nov 20 2006
- Meiryo is not good for monospace.
* Wed Nov 15 2006
- sync hinting and bitmap setup with fonts-config:
  + Bugzilla #215602:  don't use the embedded bitmaps in the IPA
  fonts because they are only available in 12, 14, and 16 pixels.
  + Bugzilla #215602: Don't use the autohinter for fonts where it
  it distorts the metrics so badly that even the digits which
  should be monospaced are not monospaced at all anymore.
  + Don't use the autohinter for good quality TrueType fonts.
- add some new fonts to the prefer lists.
* Fri Nov 10 2006
- choose nicer default fonts for sans-serif, serif, and monospace.
  It is not necessary anymore to choose fonts which are metric
  compatible to the Adobe fonts as the default, the bug in kpdf
  is apparently fixed (see Bugzilla #129081). The default fonts
  for all three styles are now Déjà Vu on openSUSE.
* Fri Oct 27 2006
- make last patch a little bit nicer to get it included upstream.
* Tue Oct 24 2006
- do not delete cache files for different architectures.
* Fri Oct 20 2006
- Bugzilla #213616: make suse-font-dirs.conf work again
  by symlinking it into /etc/fonts/conf.d.
* Wed Oct 18 2006
- Bugzilla #213190, Fate #300430: "Use CMEXSong font as the
  default font for zh_TW locale"
* Mon Oct 16 2006
- update to 2.4.1.
  + cache files for different architectures are in different
  files now
  + the user specific cache has been split from a single file
  in to seperate files for each font directory which are now
  stored in ~/.fontconfig/.
* Thu Jun 22 2006
- Bugzilla #185864: add "Requires: bash" to make the postun
  and preun scripts of the SLES9 fontconfig package work.
* Fri Jun 02 2006
- Bugzilla #179457: fix font handling for wine (from upstream CVS):
  wine uses FcPatternGet instead of FcPatternGetString to find the
  full path name of a font file. This used to work but has been
  broken recently in the fontconfig 2.4 branch.
* Fri Apr 28 2006
- Bugzilla #104365: match on "pattern" instead on "font" to edit
  the default hinting settings to make it easier to override
  the defaults with applications using FcPatternDel() and
* Wed Apr 19 2006
- Bugzilla #166260 and bugzilla #162064:
  add "Khmer OS System" to the prefer lists of fontconfig.
* Tue Apr 11 2006
- Bugzilla #59409: don't set a default value for rgba at all,
  rely on the auto-detection instead. Previously it was impossible
  to switch subpixelhinting off in the KDE control centre if
  it had been switched on by the auto-detection. But in the
  meantime this has been fixed in KDE, therefore we don't have
  a reason anymore to override the auto-detection.
* Tue Apr 04 2006
- use "OpenSymbol" as another fallback for "Symbol" in addition
  to "Standard Symbols L".
* Mon Apr 03 2006
- Bugzilla #158573: CID keyed fonts should be blacklisted in the
  fontconfig setup because they don't (yet) work with
* Fri Mar 31 2006
- Bugzilla #158573:  Hinting will be done before Embolden in
  freetype2, but in such case, Embolden will get wrong result
  on some glyph contours after applying hinting.
  Actually, hinting should be done after embolden, but we can't
  fix it in current freetype2. So as a workaround, just turn off
  hinting if we want to do embolden.
* Fri Mar 24 2006
- Bugzilla #160226: When alternately starting a 32 bit and 64 bit
  application on a 64 bit system, ~/.fonts.cache-2 was always
  deleted and generated again, which caused a big performance
  issue. ~/.fonts.cache-2 is intended to be multi-arch, but this
  didn't work right.
* Thu Mar 16 2006
- Bugzilla #130350: I forgot to add the agfa-fonts "Andale Sans",
  "Andy MT", "Bell MT", and "Monotype Sorts" to the list of fonts
  which should always use the byte code interpreter if
  anti-aliasing is off.
* Fri Mar 10 2006
- update to 2.3.94 (no significant changes, just a nicer
  version number).
- don't apply fc-verbose.diff anymore, the warnings cause
  too much confusion (see for example bug #156405).
* Fri Feb 24 2006
- update to fix for Bugzilla #153402 included
* Fri Feb 24 2006
- fix Bugzilla #153402: "fc-cache crashes on some .ttc fonts".
* Wed Feb 22 2006
- update to
  + Strip \r and whitespace from input; fixes bug 3454.
  + make fontconfig not crash on pango badness.
  + Remove one more archaic character in ka.orth
  + Freeze patterns created by configuration file for tiny
  memory savings (every little bit helps).
- fix for bugzilla #152453 now included upstream.
* Tue Feb 21 2006
- Bugzilla #152453: fix crash in fc-cat, see also:
* Mon Feb 20 2006
- add Korean fonts "UnBatang" and "UnDotum" to the prefer lists
  above the Baekmuk fonts.
* Fri Feb 17 2006
- update to
  + Don't bail if fontconfig can't remove a dir cache file.
  + Skip the ID of a cache file when copying.
  + Eliminate 'source file too small' bug in FcDirCacheWrite.
  + Add -r --really-force option which blows away cache files and
  then regenerates them.
  + Deal correctly with changing FC_CACHE_MAGIC.
  + Enable fc-cat to print out old-style cache info when given a
  directory name.
  + Bump up magic version; we changed the binary format.
  + Fix triggering of segfault caused by misreading cache files
  (reported by fcrozat).
  + Fix the underlying cause of the below segfault (must usually
  call FcDirCacheHasCurrentArch after FcDirCacheValid).
- Dirk Mueller's make_fccache_f_work.diff is obsolete because of
  the --really-force option.
* Tue Feb 14 2006
- update to
- patch to ignore broken bitmap fonts included upstream.
- memory leaks in error conditon code fixed.
* Mon Feb 13 2006
- Bugzilla #150552: ignore broken bitmap fonts which don't even
  have a BDF property FAMILY_NAME.
* Mon Feb 13 2006
- Bugzilla #132577: add the DejaVu fonts to the prefer lists.
- add suse-font-dirs.conf to make sure a basic list of font
  dirs exists even if "SuSEconfig --module fonts" didn't run yet.
* Mon Feb 13 2006
- update to
- Takashi IWAI's fc-prefer-var-cache.diff, and
  fc-fcmatch-pattern-fix.diff included upstream.
* Fri Feb 10 2006
- update to
- Dirk Mueller's value_hash_speedup.diff included upstream.
- Dirk Mueller's fc-verbose.diff slightly adapted to current CVS.
- Takashi IWAI's fc-lang-idx-fixes.diff included upstream.
- Takashi IWAI's fc-app-dir-fix.diff only partly included upstream,
  the missing parts are still necessary to make it work.
- add fc-prefer-var-cache.diff (by Takashi IWAI <>
  to prefer cache files in /var/cache/fontconfig over cache files
  in the font directories.
- Bugzilla #148361, comment #20: add fc-validatecache-option.diff
  to improve performance if a validate option is set to false in
- Bugzilla #132577: add rules to /etc/fonts to use the DejaVu
  fonts if the user requests the SUSE fonts and these are not
  available anymore.
- fix by Takashi for segfault in fc-cache with non-existing
  directory as argument.
- add fc-fcmatch-pattern-fix.diff (by Takashi IWAI <>
  to fix the problem reported in:
* Tue Feb 07 2006
- add value_hash_speedup.diff by Dirk Mueller <>
  see also
* Tue Feb 07 2006
- Bugzilla #148693: add fc-app-dir-fix-new.diff
  (by Takashi IWAI <>).
- update to
- euro.patch included upstream.
- Takashi IWAI's patches fontconfig-fontsubdir-parse-fix.diff,
  fccache-update-check.diff, fc-loop-scan-fix.diff,
  fc-cache-loop-fix.diff included upstream.
- Takashi IWAI's fc-lang-idx-fixes.diff partly included upstream.
* Tue Feb 07 2006
- Bugzilla #148361: avoid stat () on all files in all
  sub-directories of font-directories by including a list
  of all font-directores including the sub-directories generated
  by SuSEconfig.fonts (/usr/sbin/fonts-config).
* Mon Feb 06 2006
- update to
  improved version of seife-crash.diff now included upstream.
* Mon Feb 06 2006
- fc-loop-scan-fix.diff (by Takashi IWAI <>):
  the endless loop in fc-cache if a subdirectory was a symlink
  pointing to a directory higher up was already fixed but
  there was still an endless loop when using fontconfig
  (e.g. when using "fc-match").
* Mon Feb 06 2006
- update to
- fontconfig-misc-warning-fixes.diff, fontconfig-memleak-fix.diff
  included upstream.
- Dirk Mueller's seife-crash.diff partly included upstream.
* Sun Feb 05 2006
- Fix typo in suse-post-user.conf [#148268].
* Fri Feb 03 2006
- fc-cache-loop-fix.diff (by Takashi IWAI <>):
  fc-cache did loop endless if a subdirectory was a symlink
  pointing to a directory higher up, e.g.
  ln -s /usr/share/fonts /usr/share/fonts/ttt
* Fri Feb 03 2006
- bugzilla #147994:
  include IPAGothic as a fallback for IPAPGothic in the prefer
  list for sans (and some more fixes in the same spirit).
* Thu Feb 02 2006
- Fixed language detections.  Now :lang=xxx should work.
* Thu Feb 02 2006
- add patch to never open or validate font caches
  when fc-cache -f is used.
* Wed Feb 01 2006
- Fixes by Dirk Mueller <>:
  fc-verbose.diff, seife-crash.diff
- print out a warning if the global cache expired
- fix crashes on malformed fonts.cache
* Tue Jan 31 2006
- two more patches by Takashi Iwai <>:
  fontconfig-memleak-fix.diff, fccache-update-check.diff
* Tue Jan 31 2006
- Patches by Takashi Iwai <>:
-  fontconfig-misc-warning-fixes.diff (mainly to check return values
  of read (), write (), and seek ()).
- fontconfig-fontsubdir-parse-fix.diff:
  if FcConfigNormalizeFontDir () was called with a directory
  which is not a subdirectory of a directory from a .conf file,
  the list of all subdirectories was added to the list of known
  directories. When doing this again, the list of subdirectories
  was added again. Takashi's patch fixes this.
* Tue Jan 31 2006
- update to
- fc-cache-should-not-stop-at-the-first-non-existing-directory.patch,
  included upstream
- add "make check" to .spec file and fix expected output.
* Mon Jan 30 2006
- fc-cache-should-not-stop-at-the-first-non-existing-directory.patch
* Mon Jan 30 2006
- destroy-completely-broken-cache-files-in-home-directory.patch:
  when no string at all can be read from a ~/.fonts.cache-2 file
  or if such a file does not start with FC_GLOBAL_MAGIC_COOKIE,
  something is badly wrong and the file should be destroyed.
* Mon Jan 30 2006
- update to
- full-path-problem.patch included upstream now.
- check return values of read(), write(), and lseek() and give
  error message if something goes wrong.
- endless-loop.patch included upstream
* Fri Jan 27 2006
- check return values of FcCacheReadString () to fix endless loop.
* Fri Jan 27 2006
- update to
- blacklist the Hershey-fonts, the *.fon fonts from the "wine"
  package and all *.bdf fonts because these do not work with
  fontconfig/Xft2 (at least not now).
* Fri Jan 27 2006
- converted neededforbuild to BuildRequires
* Thu Jan 26 2006
- update to
  is now included upstream.
* Thu Jan 26 2006
- do-not-crash-if-non-existing-directories-are-referenced-from-local-cache-file.patch
  to fix the problem reported in:
* Wed Jan 25 2006
- update to
  (memory leaks fixed, zhe-su-fix-zh-hk-support.patch included
- don't package /var/cache/fontconfig/stamp, only
  package the directory.
- improve-normalization-of-font-path-add-subdirs.patch:
  add an cheap method to add subdirectories to the list of
  font directories to avoid having to call the expensive
  FcInitLoadConfigAndFonts () function.
* Fri Jan 20 2006
- add improve-normalization-of-font-path.patch.
* Fri Jan 20 2006
- update to
- bugzilla #142215: unaligned-access.patch by
  Andreas Schwab <> now included upstream.
* Thu Jan 19 2006
- Fix stupid misaligned accesses.
* Thu Jan 19 2006
- update to
- add-dir-early-in-FcDirScanConfig.patch now included upstream.
- fix-inode-compare.diff (by Dirk Mueller <>) is
  also included upstream.
* Wed Jan 18 2006
- add add-dir-early-in-FcDirScanConfig.patch to fix the problem
  reported in
* Mon Jan 16 2006
- update to
- remove fc-cat-crash.patch (included upstream).
* Thu Jan 12 2006
- add zhe-su-fix-zh-hk-support.patch (by Zhe Su <>,
  see also:
* Thu Jan 12 2006
- add normalize-path-in-fc-cache.patch to fix the problem reported
  claims that this problem was fixed, part of the problem still
  remained. "fc-cache /foo/bar" and "fc-cache /foo/bar/" generate
  files with the same name (md5sum) now, the command using the
  final '/' always rewrote the cache even if it was already
* Wed Jan 11 2006
- update to
- add full-path-problem.patch to fix the problem that all
  full path names reported by "fc-match -v" and "fc-list : file"
  omit the last directory component which caused all applications
  using fontconfig to crash.
* Mon Jan 09 2006
- update to
- remove Zhe Su's patch fcmatch-2.3.93-take2.patch (has been
  included upstream).
- remove my dummy-crash.patch (included upstream).
- add fc-cat-crash.patch to fix the problem reported in
- sync /etc/fonts/suse-hinting.conf with the template in
  the fonts-config package.
* Thu Jan 05 2006
- update to (fixes the problem reported in
- add new java-1_4_2 font directory. Being able to use
  wildcards in directories would be helpful ...
* Wed Jan 04 2006
- add dummy-crash.patch o avoid the crash when calling
  'fc-match "foo:\\_\\_DUMMY\\_\\_=1"'.
- sync /etc/fonts/suse-hinting.conf with the template in
  the fonts-config package.
* Tue Jan 03 2006
- update to (fixes Bugzilla #141217).
* Fri Dec 30 2005
- apply fcmatch-2.3.93-take2.patch (by Zhe Su <>)
  to fix the problem that fonts sometimes could not be matched by
  their localized names anymore. See also
  and the other mails in that thread.
* Wed Dec 21 2005
- update to
* Tue Dec 13 2005
- Bugzilla #118720: add Hebrew fonts from the culmus package to
  the prefer lists: "Frank Ruehl CLM" (serif),
  "Nachlieli CLM" (sans-serif), "Miriam Mono CLM" (monospace).
* Thu Dec 08 2005
- bitmap-encoding-problem.patch: PCF fonts that have no encoded
  characters must be skipped, they are usually just Unicode fonts
  transcoded to some legacy encoding. Only Unicode and Latin1
  are supported by fontconfig, if such fonts are not skipped they
  can be accidentally matched by fontconfig and used by
  applications. But they don't work, most applications only
  display replacement characters when such fonts are used, some
  even crash (urxvt). Probably fonts that have no encoded
  characters in other formats than PCF are also useless and
  can be skipped as well.
* Wed Dec 07 2005
- update to
* Wed Nov 30 2005
- update once more to CVS as more patches of us went in
* Thu Nov 24 2005
- update to CVS to include even more performance patches
* Tue Nov 22 2005
- update to CVS to include performance patches by Dirk Mueller and
  some crash fixes by others
* Thu Nov 17 2005
- update to CVS to include several fixes by Andreas Schwab, Michael Matz
  and me (generic architecture support)
* Thu Nov 03 2005
- update to with an extra patch to avoid creating
  invalid cashes (#128080 seems fixed)
* Thu Oct 27 2005
- Bugzilla #128937: use FcFalse as the default value for
  FC_EMBEDDED_BITMAP (requested by Zhe Su).
- Bugzilla #130350: add agfa-fonts "Andale Sans", "Andy MT",
  "Bell MT", and "Monotype Sorts" to the list of fonts which
  are rendered with the byte code interpreter and without
  anti-aliasing up to the pixellimit specified in
* Wed Oct 26 2005
- update to
* Mon Oct 24 2005
- update to
  + remove bugzilla-102328.patch (included upstream).
  + remove fontconfig-sentinel.patch (included upstream).
  + remove Zhe Su's
  (included upstream)
* Thu Oct 20 2005
- Bugzilla #129081: move fonts which are metric compatible to
  Helvetica to the top of the prefer list for sans-serif, fonts
  which are metric compatible to Times to the top of the prefer
  list for serif, and fonts which are metric compatible to courier
  to the top of the prefer list for monospace.
  This is needed for example to display pdf documents better in
- Bugzilla #128930: use newer version of Zhe Su's patch to solve
  the problem mentioned in comment #8.
* Wed Oct 19 2005
- update to
  + remove fix-return-code.patch (included upstream).
- Bugzilla #128930: add patch by Zhe Su <> to
  improve support of localized font family and style names by
  sorting them according to the current locale settings.
  With this change, applications which use fontconfig will
  automatically get the localized font family and style names.
* Fri Oct 14 2005
- the return value of fc-cache in directories where
  fonts.cache-2 doesn't exist was 1. Fix this.
* Thu Oct 13 2005
- update to
  current head of fontconfig 2.4 branch).
  Fixes problem that fc-cache returns 1 (failed) when updating
  an already existing fonts.cache-2 file.
* Wed Oct 12 2005
- update to
  (current head of fontconfig 2.4 branch).
  Solves the performance regression problem that fc-cache
  did take a lot of time even when nothing was changed in the
  font directories.
* Fri Oct 07 2005
- update to
  (current head of fontconfig 2.4 branch).
* Tue Sep 27 2005
- Bugzilla #118727: fix artificial bold for applications using
  cairo. Thanks to Zhe Su <>.
* Fri Sep 09 2005
- Bugzilla #114949 comment #20 - #21: add a rule to
  suse-post-user.conf to switch off the autohinter for the webfonts
  and the agfa-fonts if anti-aliasing is already off.
  This nice idea came from Sven Burmeister.
* Thu Sep 08 2005
- Bugzilla #114949: remove stuff from /etc/fonts/*.conf which
  has become obsolete. Rules to replace outline fonts with
  bitmap fonts are not necessary anymore if fonts are available
  which can achieve rendering quality equal to hand tuned
  bitmaps when the byte code interpreter is used.
* Fri Sep 02 2005
- Bugzilla #114949: move the rules to setup the hinting and
  anti-aliasing and the rules to enable embedded bitmaps from
  suse-pre-user.conf into seperate files and include these
  from suse-pre-user.conf. This makes it easier to edit or replace
  these rules with SuSEconfig.fonts according to values of
  variables in /etc/sysconfig.
* Sat Aug 20 2005
- Bugzilla #105990: switch on embedded bitmaps again during
  the installation.
* Fri Aug 19 2005
- Bugzilla #105626: work around the loss of rendering quality
  for the IPA fonts caused by the update to freetype 2.1.10 by
  switching off the hinting for the IPA fonts.
* Tue Aug 16 2005
- Bugzilla #102328: use Keith Packard's fix for the problem in
  the last changelog.
* Tue Aug 16 2005
- Bugzilla #102328: fall back to POSIX if the effective value
  of LC_CTYPE is the empty string "". By falling back to POSIX
  here we make sure that even in this case fontconfig matches
  something readable. Without that it apparently matches completely
  random and might match a font which doesn't even have ASCII
  glyphs. As a result, nothing at all may be displayed.
* Fri Jul 29 2005
- Revert the defaults in /etc/fonts/suse-pre-user.conf to use
  the autohinter and anti-aliasing by default always. Most users
  apparently do not like the bitmap look and feel caused by the
  last change. As this seems to be a matter of taste, I leave the
  rule to achieve that bitmap look and feel in
  /etc/fonts/suse-pre-user.conf as an example but disable it by
  default. Users who want a bitmap look and feel have to copy
  that rule to their personal ~/.fonts.conf file and enable it
  by choosing a non-zero pixelsize limit as explained in
  the comments in /etc/fonts/suse-pre-user.conf.
* Fri Jul 22 2005
- Bugzilla #64424: "Bytecodeinterpreter in freetype2 - wieso
  The byte code interpreter is enabled now at build time in our
  freetype2 package. Setup the defaults in /etc/fonts to use
  black and white rendering (antialias=false) and the byte code
  interpreter (autohint=false) for a few fonts which are known to
  have high quality byte code instructions. Set antialias=true
  and autohint=true as the default for all other fonts.
* Thu Jul 21 2005
- update to
- Bugzilla #52167: "fc-list reports inconsistent spacing values
  for some fonts": add a patch to improve the detection of
  monospaced fonts: ignore glyphs with advance=0 when detecting
  monospaced fonts and add a special exception for "Luxi Mono"
  and "Nimbus Mono L".
* Wed Jul 20 2005
- Bugzilla #94110: add more directories to the default font path.
* Tue Jul 12 2005
- update to
  + remove ka.orth.patch, now included.
* Wed Jun 29 2005
- Added expat to fontconfig-devel to make the .la checker easier.
* Fri May 20 2005
- Fix ka.orth (Georgian), it apparently requires too many
  characters which are not really used for Georgian.
- Add BPG fonts (for Georgian) to the preference lists.
* Thu Mar 17 2005
- add Sazanami and IPA fonts to suse-generic-names.conf.
* Fri Mar 11 2005
- Bugzilla #66498 again: the last change wasn't a good idea after
  all. The design of the embedded bitmaps is quite bad in some
  sizes, especially the Japanese katakana look extremely ugly.
  Therefore it is better not to use the embedded bitmaps during
  the installation. I added a special /etc/fonts/local.conf.instsys
  file which should be copied to /etc/fonts/local.conf only for
  the installation and which is not used in the installed system.
* Thu Mar 03 2005
- Bugzilla #66498: use embedded bitmaps for Korean and Japanese
  as well, not only for Chinese as before to get readable Japanese
  and Chinese during the installation. The Latin fonts we currently
  use during the installation are smaller as before. With the
  Gnu Unifont currently used for CJK, this leads to clipping
  problems because this bitmap font cannot scale to a smaller size.
  When using TrueType fonts like FZSongTi for CJK, the clipping
  problems disappear because the font can scale down. But in such
  a tiny size, Japanese or Chinese is almost unreadable with
  Anti-Aliasing. It's better readable with the embedded bitmaps.
* Mon Feb 21 2005
- re-enable bitmap fonts.
* Fri Feb 18 2005
- update to
* Tue Feb 01 2005
- package now adds -fno-strict-aliasing by itself.
- added sentinel valist markup for 2 functions.
* Thu Jan 13 2005
- add entries for preferred fonts for Farsi (Persian):
  Terafik -> sans-serif, monospaced, Nazil -> serif.
* Wed Oct 06 2004
- Bugzilla #46852: add /usr/lib/ooo-1.1/share/fonts to the default
  directories searched for fonts.
* Fri Sep 17 2004
- add "Georgia", "Trebuchet", "Segoe", "Bell MT", and "Andale Sans"
  to the generic lists.
* Tue Sep 14 2004
- add FZMingTiB to the "monospace" prefer list (thanks to Zhe Su
  for noticing). Remove all "Kai" fonts from the "sans-serif"
  prefer list.
* Tue Sep 14 2004
- Bugzilla #45160, Comment #6:
  prefer FZSongTi and FZMingTiB also for sans-serif instead of
  the "Kai" fonts.
* Tue Sep 14 2004
- Bugzilla #44409: set the default value for rgba to "unknown"
  instead of "none".
* Mon Sep 06 2004
- add Japanese IPA fonts to prefer lists.
- add FZMingTiB to prefer list for "serif" below "FZSongTi"
  (if we don't install the Arphic fonts by default, there is
  no traditional Chinese font left in the list otherwise).
* Wed Aug 25 2004
- Avoid /bin/sh in PreRequires
* Tue Aug 10 2004
- for some Bengali fonts (e.g. "Mukti Narrow"), the autohinter
  works well with the patch from
  applied. But for "Likhan" it still doesn't work that well
  (look how the "matra" lines at the top line up). Therefore,
  switch off the autohinter for the "Likhan" font.
* Mon Aug 09 2004
- add Bengali fonts "Likhan" (serif) and "Mukti Narrow"
  (sans-serif) to the prefer lists.
* Wed Aug 04 2004
- add sazanami fonts to the prefer lists.
* Wed Jul 28 2004
- update to remove fontconfig.patch, this is
  included upstream now. This update also includes a patch by
  Lubos Lunak <> which helps to improve the
  performance of fontconfig with KDE.
* Fri Jun 04 2004
- prefer the proportinal "HGPMinchoL" instead of the monospaced
  "HGMinchoL" for serif. Same with "HGPGothicB" instead of
  "HGGothicB" for sans-serif.
- add all Mincho and Gothic faces of the commercial Ricoh fonts
  to the list of generic names in suse-generic-names.conf to get
  reasonable fallbacks if those fonts are not installed.
* Fri May 28 2004
- add the Japanese fonts "HGMinchoL" and "HGGothicB" made by Ricoh
  to the prefer lists and generics lists. These are the fonts which
  Novell Japan has licensed, they should be preferred if they are
* Wed May 26 2004
- fix build by defining MIN,MAX and ABS where needed
* Fri Apr 23 2004
- Bugzilla #38243: fix the characters set handling for the
  Japanese Dynafonts.
* Tue Apr 20 2004
- Bugzilla #38244:
  remove rules to force use of embedded bitmaps by switching
  off anti-aliasing. This is not needed anymore because libXft
  in our XFree86 package is patched to make use of the embedded
  bitmaps anyway if the embeddedbitmap=true parameter is set.
* Fri Apr 16 2004
- Bugzilla #38244: use embedded bitmaps by default for Chinese
  (requested by Zhe Su).
* Fri Apr 16 2004
- Bugzilla #38205: make hintstyle=hintfull the default again
  for CJK fonts. Our freetype package now has a patch applied to
  improve the hinting for CJK fonts, with that patch the results
  are much better with hintstyle=hintfull than with
- fix from upstream CVS: (src/fcfreetype.c):
  * Fixed bug in using available_sizes[i].height which
  is in pixels, not 64ths of a pixel.
* Sat Apr 03 2004
- Bugzilla #38204 comment #5:
  "Fix some issue in the default alias list": SimSun is a serif
  font, it should not ge in the generics sans-serif list.
- Bugzilla #38204 comment #9:
  add rule to get artificial bold for fonts without a bold version.
  Until Bugzilla #38202 is fixed, this rule does nothing, but it
  does no harm either.
- also specify the foundry when trying to prefer bitmap fonts,
  without that the prefer_bitmap rules won't work with Qt
* Fri Apr 02 2004
- Bugzilla #37540: rework rules for use of bitmap fonts to make
  it easier to get at clearly readable results for CJK if by using
  embedded bitmaps are used:
  * improve rules for the case "prefer_bitmap=true" (not default)
  for Latin fonts: replace all "Helvetica" clones with
  the bitmap font "Adobe Helvetica", all "Times" clones with
  "Adobe Times", and all "Courier" clones with "Adobe Courier".
  For hardcore bitmap addicts.
  * use embedded bitmaps only for complete ranges, i.e. never
  use bitmaps from size a-b, scalable fonts from b-c, and bitmaps
  again from size c-d.
  * don't match pixelsizes with compare="eq" when trying to use
  embedded bitmaps. This won't work if non-integer pixelsizes are
  requested. Use compare="more_eq" and compare="less_eq" to check
  for a range instead. Then the embedded bitmaps will be used
  for the whole range, even if non-integer pixelsizes are
  *  use embedded bitmaps for "FZSongTi" only up to 18 pixel.
- change prefer lists for Chinese:
  * make "FZSongTi" the highest priority "serif" and "monospace"
  font for Chinese
  * make "FZKaiTi" the highest priority "sans-serif" font for
  * remove "SimSun", "FZSongTi", "HanyiSong", and "ZYSong18030"
  from the prefer list for "sans-serif" because these are really
  serif fonts.
  * remove "AR PL KaitiM GB" and "AR PL KaitiM Big5" from the prefer
  list for monospace. All other Chinese fonts in this list are
  "ming" or "song" style, it is weird to have fonts of the
  completely different "kai" style in the same list.
* Thu Apr 01 2004
- Bugzilla #37114 and 37540: use hintstyle=hintnone for
  CJK fonts to improve rendering.
- Bugzilla #37820: handle dual-width fonts as proportional fonts
  to avoid extra wide spacing.
- Bugzilla #34400: CID-keyed fonts work for SuSE 9.1 remove
  the directory /usr/share/ghostscript/Resource/CIDFont/ from
  the default font directory list again.
* Mon Mar 29 2004
- Bugzilla #37310: fix location of fontconfig-user.html in
* Wed Mar 24 2004
- Bugzilla #36879: don't match fonts without foundries if
  a specific foundry is requested (fix from upstream CVS).
- remove bitmap-spacing.patch (included upstream).
- install iso639-{1,2} as documentation
* Fri Mar 19 2004
- Bugzilla 36561#:
  require the Euro sign for languages fr,nl,de,el,es,it,pt,fi,
  and en.
* Thu Mar 11 2004
- use -fPIC for static libraries too.
* Tue Mar 02 2004
- update to
- add bitmap-spacing.patch to fix Bugzilla #34677
* Mon Mar 01 2004
- add entries for Adrian's new "SUSE Sans", "SUSE Serif",
  "SUSE Sans Mono" fonts. Prefer over Nimbus and Luxi.
* Mon Feb 09 2004
- update to
- remove fontconfig-ta.orth-cvs.patch and freetype-2.1.7.patch
  (included now).
- add /usr/local/share/fonts/ as a default directory (see
- add /usr/share/ghostscript/Resource/CIDFont/ as a default
  font directory.
- add rule to use the URW font "Standard Symbols L" as a
  replacement if the original Adobe "Symbol" font is not available.
  (see Bugzilla #34324)
- move SuSE specific fontconfig rules into included files.
* Sat Jan 10 2004
- build as user
* Tue Dec 23 2003
- make it build with freetype 2.1.7 again.
- Bugzilla Bug 32080: turn off subpixel hinting by default.
* Thu Oct 02 2003
- remove "ed" from "# neededforbuild".
* Thu Aug 28 2003
- add "FreeSans", "FreeSerif", "FreeMono" to fonts.conf
  (priority below Nimbus, Bitstream and Luxi).
- move priority of "Bitstream Vera" fonts below Nimbus.
- move fontconfig-devel documentation to
* Sun Aug 24 2003
- add freetype2-devel and glibc-devel to the -devel Requires
* Sat Aug 23 2003
- udpate to version 2.2.1
- add %%run_ldconfig
* Tue Jul 15 2003
- add rules to use embedded bitmaps in FZSongTi if desired.
- use binding="same" instead of binding="strong" when adding
  bitmap fonts to the pattern. This is necessary to keep the
  generic aliases "sans-serif" etc. working as usual even
  if "prefer_bitmap" is set to "true". With binding="strong",
  "sans-serif" always expands to "Adobe Helvetica" if
  "prefer_bitmap" is set to "true" which is not useful for
  many languages.
* Wed Jul 09 2003
- added FZSongTi to serif, sans-serif and monospace family aliases
* Wed May 28 2003
- install fc-list and fc-cache man pages.
* Sun May 18 2003
- fontconfig-ta.orth-cvs.patch: Remove 0b82 and Tamil numbers from
  tamil orthography (from upstream cvs)
- add Tamil fonts to "prefer" aliases
- remove duplicate entries of the Bitstream fonts from fonts.conf
- set globaladvance=false for Y.OzFont because it is a dual-width
- change .spec file to make it possible to build with /usr/X11R6
  prefix (to make updates for SuSE Linux 8.2 easy).
* Wed Apr 23 2003
- created package