- Update to 2.4.92.

- Mark /etc/fonts/conf.d/* as config(noreplace).
- Remove most of our conf file, all upstreamed except for
75-blacklist-fedora.conf that I'm happily dropping. Who has Hershey fonts
    these days...
- ln upstream'ed 25-unhint-nonlatin.conf from conf.avail in conf.d
- Add 25-no-bitmap-fedora.conf which is the tiny remaining bit of conf that
    didn't end up upstream. Can get rid of it in the future, but not just
    yet.
This commit is contained in:
Behdad Esfahbod 2007-11-06 01:14:00 +00:00
parent 92197b9005
commit b127d80138
9 changed files with 62 additions and 593 deletions

View File

@ -1 +1 @@
fontconfig-2.4.91.tar.gz
fontconfig-2.4.92.tar.gz

44
25-no-bitmap-fedora.conf Normal file
View File

@ -0,0 +1,44 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test name="family" compare="eq">
<string>Kochi Mincho</string>
</test>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Kochi Gothic</string>
</test>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Sazanami Mincho</string>
</test>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Sazanami Gothic</string>
</test>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>AR PL ShanHeiSun Uni</string>
</test>
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
</fontconfig>

View File

@ -1,243 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- We can't hint CJK fonts well, so turn off hinting for CJK fonts. -->
<match target="font">
<test name="family" compare="eq">
<string>Kochi Mincho</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Kochi Gothic</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Sazanami Mincho</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Sazanami Gothic</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Baekmuk Batang</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Baekmuk Dotum</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Baekmuk Gulim</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Baekmuk Headline</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>AR PL Mingti2L Big5</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>AR PL ShanHeiSun Uni</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>AR PL KaitiM Big5</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>AR PL ZenKai Uni</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>AR PL SungtiL GB</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>AR PL KaitiM GB</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>ZYSong18030</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<!--
We also need to turn off hinting for Indic fonts with a joined baseline.
-->
<match target="font">
<test name="family" compare="eq">
<string>Mukti Narrow</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Lohit Hindi</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Lohit Bengali</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Lohit Punjabi</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<!--
Gujarti fonts are distorted when hinting is enabled. Turn it off.
-->
<match target="font">
<test name="family" compare="eq">
<string>Lohit Gujarati</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<!--
Disabling hinting for newly added Indic fonts (kn/or/ml/te)
-->
<match target="font">
<test name="family" compare="eq">
<string>Lohit Kannada</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Lohit Oriya</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Lohit Malayalam</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>Lohit Telugu</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<!--
And Sinhala
-->
<match target="font">
<test name="family" compare="eq">
<string>LKLUG</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View File

@ -1,180 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- conf.d/sub-pixel.conf -->
<fontconfig>
<!-- Alias similar families from 5 sources:
PostScript fonts:
Helvetica
Times
Courier
Microsoft fonts:
Arial
Times New Roman
Courier New
URW fonts:
Nimbus Sans L
Nimbus Roman No9 L
Nimbus Mono L
StarOffice fonts:
Albany
Thorndale
Cumberland
AMT fonts:
Albany AMT
Thorndale AMT
Cumberland AMT
Of these, URW fonts are metric compatible with PostScrict fonts
and the Liberation, StarOffice, and AMT ones are compatible with
Microsoft fonts. We want for each of them to fallback to any of
these available, but in an order preferring the metric-compatible
ones first. As an exception, we assume that URW fonts are always
available and do not alias them.
It seems to be really hard to do this with fontconfig. The
easiest way seems to be to list them all for each one.
-->
<!-- PostScript -->
<alias>
<family>Helvetica</family>
<accept>
<family>Nimbus Sans L</family>
<family>Liberation Sans</family>
<family>Arial</family>
<family>Albany</family>
<family>Albany AMT</family>
</accept>
</alias>
<alias>
<family>Times</family>
<accept>
<family>Nimbus Roman No9 L</family>
<family>Liberation Serif</family>
<family>Times New Roman</family>
<family>Thorndale</family>
<family>Thorndale AMT</family>
</accept>
</alias>
<alias>
<family>Courier</family>
<accept>
<family>Nimbus Mono L</family>
<family>Liberation Mono</family>
<family>Courier New</family>
<family>Cumberland</family>
<family>Cumberland AMT</family>
</accept>
</alias>
<!-- Microsoft -->
<alias>
<family>Arial</family>
<accept>
<family>Liberation Sans</family>
<family>Albany</family>
<family>Albany AMT</family>
<family>Helvetica</family>
<family>Nimbus Sans L</family>
</accept>
</alias>
<alias>
<family>Times New Roman</family>
<accept>
<family>Liberation Serif</family>
<family>Thorndale</family>
<family>Thorndale AMT</family>
<family>Times</family>
<family>Nimbus Roman No9 L</family>
</accept>
</alias>
<alias>
<family>Courier New</family>
<accept>
<family>Liberation Mono</family>
<family>Cumberland</family>
<family>Cumberland AMT</family>
<family>Courier</family>
<family>Nimbus Mono L</family>
</accept>
</alias>
<!-- StarOffice -->
<alias>
<family>Albany</family>
<accept>
<family>Liberation Sans</family>
<family>Arial</family>
<family>Albany AMT</family>
<family>Helvetica</family>
<family>Nimbus Sans L</family>
</accept>
</alias>
<alias>
<family>Thorndale</family>
<accept>
<family>Liberation Serif</family>
<family>Times New Roman</family>
<family>Thorndale AMT</family>
<family>Times</family>
<family>Nimbus Roman No9 L</family>
</accept>
</alias>
<alias>
<family>Cumberland</family>
<accept>
<family>Liberation Mono</family>
<family>Courier New</family>
<family>Cumberland AMT</family>
<family>Courier</family>
<family>Nimbus Mono L</family>
</accept>
</alias>
<!-- AMT -->
<alias>
<family>Albany AMT</family>
<accept>
<family>Liberation Sans</family>
<family>Arial</family>
<family>Albany</family>
<family>Helvetica</family>
<family>Nimbus Sans L</family>
</accept>
</alias>
<alias>
<family>Thorndale AMT</family>
<accept>
<family>Liberation Serif</family>
<family>Times New Roman</family>
<family>Thorndale</family>
<family>Times</family>
<family>Nimbus Roman No9 L</family>
</accept>
</alias>
<alias>
<family>Cumberland AMT</family>
<accept>
<family>Liberation Mono</family>
<family>Courier New</family>
<family>Cumberland</family>
<family>Courier</family>
<family>Nimbus Mono L</family>
</accept>
</alias>
</fontconfig>

View File

@ -1,35 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Mark families with their generics so we'll get
something reasonable
-->
<!--
Serif faces
-->
<alias>
<family>Sazanami Mincho</family>
<family>AR PL ZenKai Uni</family>
<family>ZYSong18030</family>
<default><family>serif</family></default>
</alias>
<!--
Sans-serif faces
-->
<alias>
<family>Sazanami Gothic</family>
<family>AR PL ShanHeiSun Uni</family>
<family>ZYSong18030</family>
<default><family>sans-serif</family></default>
</alias>
<!--
Monospace faces
-->
<alias>
<family>Cumberland</family>
<family>ZYSong18030</family>
<default><family>monospace</family></default>
</alias>
</fontconfig>

View File

@ -1,67 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>KacstQura</family>
<family>Frank Ruehl CLM</family>
<family>Lohit Bengali</family>
<family>Lohit Gujarati</family>
<family>Lohit Hindi</family>
<family>Lohit Punjabi</family>
<family>Lohit Tamil</family>
<family>Lohit Malayalam</family>
<family>Lohit Kannada</family>
<family>Lohit Telugu</family>
<family>Lohit Oriya</family>
<family>LKLUG</family>
<family>Sazanami Mincho</family>
<family>AR PL Zenkai Uni</family>
<family>ZYSong18030</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>KacstQura</family>
<family>Lohit Bengali</family>
<family>Lohit Gujarati</family>
<family>Lohit Hindi</family>
<family>Lohit Punjabi</family>
<family>Lohit Tamil</family>
<family>Lohit Malayalam</family>
<family>Lohit Kannada</family>
<family>Lohit Telugu</family>
<family>Lohit Oriya</family>
<family>LKLUG</family>
<family>Sazanami Gothic</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>ZYSong18030</family>
<family>Baekmuk Gulim</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Lohit Bengali</family>
<family>Lohit Gujarati</family>
<family>Lohit Hindi</family>
<family>Lohit Punjabi</family>
<family>Lohit Tamil</family>
<family>Lohit Malayalam</family>
<family>Lohit Kannada</family>
<family>Lohit Telugu</family>
<family>Lohit Oriya</family>
<family>LKLUG</family>
<family>Sazanami Gothic</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>ZYSong18030</family>
<family>Baekmuk Gulim</family>
</prefer>
</alias>
</fontconfig>

View File

@ -1,54 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- Blacklist certain fonts that freetype can't handle -->
<fontconfig>
<selectfont>
<rejectfont>
<pattern>
<patelt name="family"><string>Hershey-Gothic-English</string></patelt>
</pattern>
</rejectfont>
<rejectfont>
<pattern>
<patelt name="family"><string>Hershey-Plain-Duplex-Italic</string></patelt>
</pattern>
</rejectfont>
<rejectfont>
<pattern>
<patelt name="family"><string>Hershey-Plain-Duplex</string></patelt>
</pattern>
</rejectfont>
<rejectfont>
<pattern>
<patelt name="family"><string>Hershey-Script-Simplex</string></patelt>
</pattern>
</rejectfont>
<rejectfont>
<pattern>
<patelt name="family"><string>Hershey-Plain-Triplex</string></patelt>
</pattern>
</rejectfont>
<rejectfont>
<pattern>
<patelt name="family"><string>Hershey-Plain-Triplex-Italic</string></patelt>
</pattern>
</rejectfont>
<rejectfont>
<pattern>
<patelt name="family"><string>Hershey-Script-Complex</string></patelt>
</pattern>
</rejectfont>
<rejectfont>
<pattern>
<patelt name="family"><string>Hershey-Gothic-Italian</string></patelt>
</pattern>
</rejectfont>
<rejectfont>
<pattern>
<patelt name="family"><string>Hershey-Gothic-German</string></patelt>
</pattern>
</rejectfont>
</selectfont>
</fontconfig>

View File

@ -2,18 +2,14 @@
Summary: Font configuration and customization library
Name: fontconfig
Version: 2.4.91
Version: 2.4.92
Release: 1%{?dist}
License: MIT
Group: System Environment/Libraries
Source: http://fontconfig.org/release/fontconfig-%{version}.tar.gz
URL: http://fontconfig.org
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source1: 25-no-hint-fedora.conf
Source2: 30-aliases-fedora.conf
Source3: 40-generic-fedora.conf
Source4: 64-nonlatin-fedora.conf
Source5: 75-blacklist-fedora.conf
Source1: 25-no-bitmap-fedora.conf
BuildRequires: gawk
BuildRequires: expat-devel
@ -54,7 +50,7 @@ will use fontconfig.
# We don't want to rebuild the docs, but we want to install the included ones.
export HASDOCBOOK=no
%configure %--with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
%configure --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
make
make check
@ -65,10 +61,7 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
install -m 0644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
install -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
ln -s ../conf.avail/25-unhint-nonlatin.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
# move installed doc files back to build directory to package themm
# in the right place
@ -121,7 +114,7 @@ fi
%config %{_sysconfdir}/fonts/fonts.conf
%doc %{_sysconfdir}/fonts/conf.avail/README
%config %{_sysconfdir}/fonts/conf.avail/*.conf
%config %{_sysconfdir}/fonts/conf.d/*.conf
%config(noreplace) %{_sysconfdir}/fonts/conf.d/*.conf
%dir %{_localstatedir}/cache/fontconfig
%{_mandir}/man1/*
@ -136,6 +129,17 @@ fi
%{_mandir}/man3/*
%changelog
* Thu Oct 25 2007 Behdad Esfahbod <besfahbo@redhat.com> - 2.4.92-1
- Update to 2.4.92.
- Mark /etc/fonts/conf.d/* as config(noreplace).
- Remove most of our conf file, all upstreamed except for
75-blacklist-fedora.conf that I'm happily dropping. Who has
Hershey fonts these days...
- ln upstream'ed 25-unhint-nonlatin.conf from conf.avail in conf.d
- Add 25-no-bitmap-fedora.conf which is the tiny remaining bit
of conf that didn't end up upstream. Can get rid of it in the
future, but not just yet.
* Thu Oct 25 2007 Behdad Esfahbod <besfahbo@redhat.com> - 2.4.91-1
- Update to 2.4.91.
- Add /usr/local/share/fonts to default config. (#147004)

View File

@ -1 +1 @@
126f59b34499c70aaef2803f7fdd3ad3 fontconfig-2.4.91.tar.gz
92018e32c8b5d4b7edc2f8e9f8e15d08 fontconfig-2.4.92.tar.gz