add fontconfig rules

This commit is contained in:
nim 2007-11-01 17:53:36 +00:00
parent a913e81afb
commit 5c49de24f1
6 changed files with 138 additions and 1 deletions

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/61-stix.conf
Define aliasing and other fontconfig settings for
STIX base fonts
© 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<alias>
<family xml:space="preserve">STIXGeneral</family>
<default>
<family xml:space="preserve">serif</family>
</default>
</alias>
<alias>
<family xml:space="preserve">serif</family>
<prefer>
<family xml:space="preserve">STIXGeneral</family>
</prefer>
</alias>
</fontconfig>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/61-stix-integrals.conf
Define aliasing and other fontconfig settings for
STIX PUA fonts
© 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<alias binding="same">
<family xml:space="preserve">STIXIntegrals</family>
<accept>
<family xml:space="preserve">STIXGeneral</family>
</accept>
</alias>
</fontconfig>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/61-stix-pua.conf
Define aliasing and other fontconfig settings for
STIX PUA fonts
© 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<alias binding="same">
<family xml:space="preserve">STIXNonUnicode</family>
<accept>
<family xml:space="preserve">STIXGeneral</family>
</accept>
</alias>
</fontconfig>

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/61-stix-sizes.conf
Define aliasing and other fontconfig settings for
STIX size fonts
© 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<alias binding="same">
<family xml:space="preserve">STIXSize1</family>
<accept>
<family xml:space="preserve">STIXGeneral</family>
</accept>
</alias>
<alias binding="same">
<family xml:space="preserve">STIXSize2</family>
<accept>
<family xml:space="preserve">STIXGeneral</family>
</accept>
</alias>
<alias binding="same">
<family xml:space="preserve">STIXSize3</family>
<accept>
<family xml:space="preserve">STIXGeneral</family>
</accept>
</alias>
<alias binding="same">
<family xml:space="preserve">STIXSize4</family>
<accept>
<family xml:space="preserve">STIXGeneral</family>
</accept>
</alias>
<alias binding="same">
<family xml:space="preserve">STIXSize5</family>
<accept>
<family xml:space="preserve">STIXGeneral</family>
</accept>
</alias>
</fontconfig>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<!-- /etc/fonts/conf.d/61-stix-variants.conf
Define aliasing and other fontconfig settings for
STIX variants fonts
© 2007 Nicolas Mailhot <nicolas.mailhot at laposte.net>
-->
<fontconfig>
<alias binding="same">
<family xml:space="preserve">STIXVariants</family>
<accept>
<family xml:space="preserve">STIXGeneral</family>
</accept>
</alias>
</fontconfig>

View File

@ -1,10 +1,11 @@
%define fontname stix %define fontname stix
%define fontdir %{_datadir}/fonts/%{fontname} %define fontdir %{_datadir}/fonts/%{fontname}
%define fontconfdir %{_sysconfdir}/fonts/conf.d
%define archivename STIXBeta %define archivename STIXBeta
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 0.9 Version: 0.9
Release: 4%{?dist} Release: 5%{?dist}
Summary: STIX scientific and engineering fonts Summary: STIX scientific and engineering fonts
Group: User Interface/X Group: User Interface/X
@ -12,6 +13,12 @@ License: STIX
URL: http://www.stixfonts.org/ URL: http://www.stixfonts.org/
Source0: %{archivename}.zip Source0: %{archivename}.zip
Source1: %{name}-License.txt Source1: %{name}-License.txt
Source2: stix-fonts-fontconfig.conf
Source3: stix-fonts-pua-fontconfig.conf
Source4: stix-fonts-integrals-fontconfig.conf
Source5: stix-fonts-sizes-fontconfig.conf
Source6: stix-fonts-variants-fontconfig.conf
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch BuildArch: noarch
@ -114,9 +121,17 @@ done
%install %install
rm -fr %{buildroot} rm -fr %{buildroot}
install -m 0755 -d %{buildroot}%{fontdir} install -m 0755 -d %{buildroot}%{fontdir}
install -m 0644 -p *.otf %{buildroot}%{fontdir} install -m 0644 -p *.otf %{buildroot}%{fontdir}
install -m 0755 -d %{buildroot}%{fontconfdir}
install -m 0644 -p %{SOURCE2} %{buildroot}%{fontconfdir}/61-%{fontname}.conf
install -m 0644 -p %{SOURCE3} %{buildroot}%{fontconfdir}/61-%{fontname}-pua.conf
install -m 0644 -p %{SOURCE4} %{buildroot}%{fontconfdir}/61-%{fontname}-integrals.conf
install -m 0644 -p %{SOURCE5} %{buildroot}%{fontconfdir}/61-%{fontname}-sizes.conf
install -m 0644 -p %{SOURCE6} %{buildroot}%{fontconfdir}/61-%{fontname}-variants.conf
%clean %clean
rm -fr %{buildroot} rm -fr %{buildroot}
@ -195,6 +210,7 @@ fi
%files %files
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%doc *.txt %doc *.txt
%config(noreplace) %{fontconfdir}/61-%{fontname}.conf
%dir %{fontdir} %dir %{fontdir}
%{fontdir}/STIXGeneral*otf %{fontdir}/STIXGeneral*otf
@ -202,25 +218,31 @@ fi
%files pua %files pua
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%config(noreplace) %{fontconfdir}/61-%{fontname}-pua.conf
%{fontdir}/STIXNonUni*otf %{fontdir}/STIXNonUni*otf
%files integrals %files integrals
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%config(noreplace) %{fontconfdir}/61-%{fontname}-integrals.conf
%{fontdir}/STIXInt*.otf %{fontdir}/STIXInt*.otf
%files sizes %files sizes
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%config(noreplace) %{fontconfdir}/61-%{fontname}-sizes.conf
%{fontdir}/STIXSiz*.otf %{fontdir}/STIXSiz*.otf
%files variants %files variants
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%config(noreplace) %{fontconfdir}/61-%{fontname}-variants.conf
%{fontdir}/STIXVar*otf %{fontdir}/STIXVar*otf
%changelog %changelog
* Thu Nov 1 2007 <nicolas.mailhot at laposte.net> * Thu Nov 1 2007 <nicolas.mailhot at laposte.net>
0.9-5
Add some fontconfig aliasing rules
0.9-4 0.9-4
Initial experimental packaging Initial experimental packaging