add fontconfig rules
This commit is contained in:
parent
a913e81afb
commit
5c49de24f1
23
stix-fonts-fontconfig.conf
Normal file
23
stix-fonts-fontconfig.conf
Normal 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>
|
17
stix-fonts-integrals-fontconfig.conf
Normal file
17
stix-fonts-integrals-fontconfig.conf
Normal 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>
|
17
stix-fonts-pua-fontconfig.conf
Normal file
17
stix-fonts-pua-fontconfig.conf
Normal 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>
|
41
stix-fonts-sizes-fontconfig.conf
Normal file
41
stix-fonts-sizes-fontconfig.conf
Normal 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>
|
17
stix-fonts-variants-fontconfig.conf
Normal file
17
stix-fonts-variants-fontconfig.conf
Normal 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>
|
@ -1,10 +1,11 @@
|
||||
%define fontname stix
|
||||
%define fontdir %{_datadir}/fonts/%{fontname}
|
||||
%define fontconfdir %{_sysconfdir}/fonts/conf.d
|
||||
%define archivename STIXBeta
|
||||
|
||||
Name: %{fontname}-fonts
|
||||
Version: 0.9
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: STIX scientific and engineering fonts
|
||||
|
||||
Group: User Interface/X
|
||||
@ -12,6 +13,12 @@ License: STIX
|
||||
URL: http://www.stixfonts.org/
|
||||
Source0: %{archivename}.zip
|
||||
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)
|
||||
BuildArch: noarch
|
||||
@ -114,9 +121,17 @@ done
|
||||
|
||||
%install
|
||||
rm -fr %{buildroot}
|
||||
|
||||
install -m 0755 -d %{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
|
||||
rm -fr %{buildroot}
|
||||
@ -195,6 +210,7 @@ fi
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc *.txt
|
||||
%config(noreplace) %{fontconfdir}/61-%{fontname}.conf
|
||||
|
||||
%dir %{fontdir}
|
||||
%{fontdir}/STIXGeneral*otf
|
||||
@ -202,25 +218,31 @@ fi
|
||||
|
||||
%files pua
|
||||
%defattr(0644,root,root,0755)
|
||||
%config(noreplace) %{fontconfdir}/61-%{fontname}-pua.conf
|
||||
%{fontdir}/STIXNonUni*otf
|
||||
|
||||
|
||||
%files integrals
|
||||
%defattr(0644,root,root,0755)
|
||||
%config(noreplace) %{fontconfdir}/61-%{fontname}-integrals.conf
|
||||
%{fontdir}/STIXInt*.otf
|
||||
|
||||
|
||||
%files sizes
|
||||
%defattr(0644,root,root,0755)
|
||||
%config(noreplace) %{fontconfdir}/61-%{fontname}-sizes.conf
|
||||
%{fontdir}/STIXSiz*.otf
|
||||
|
||||
|
||||
%files variants
|
||||
%defattr(0644,root,root,0755)
|
||||
%config(noreplace) %{fontconfdir}/61-%{fontname}-variants.conf
|
||||
%{fontdir}/STIXVar*otf
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Nov 1 2007 <nicolas.mailhot at laposte.net>
|
||||
☺ 0.9-5
|
||||
✓ Add some fontconfig aliasing rules
|
||||
☢ 0.9-4
|
||||
⚠ Initial experimental packaging
|
||||
|
Loading…
Reference in New Issue
Block a user