From 5c49de24f17b685c5f873c1edb67c5f6921e965f Mon Sep 17 00:00:00 2001 From: nim Date: Thu, 1 Nov 2007 17:53:36 +0000 Subject: [PATCH] add fontconfig rules --- stix-fonts-fontconfig.conf | 23 ++++++++++++++++ stix-fonts-integrals-fontconfig.conf | 17 ++++++++++++ stix-fonts-pua-fontconfig.conf | 17 ++++++++++++ stix-fonts-sizes-fontconfig.conf | 41 ++++++++++++++++++++++++++++ stix-fonts-variants-fontconfig.conf | 17 ++++++++++++ stix-fonts.spec | 24 +++++++++++++++- 6 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 stix-fonts-fontconfig.conf create mode 100644 stix-fonts-integrals-fontconfig.conf create mode 100644 stix-fonts-pua-fontconfig.conf create mode 100644 stix-fonts-sizes-fontconfig.conf create mode 100644 stix-fonts-variants-fontconfig.conf diff --git a/stix-fonts-fontconfig.conf b/stix-fonts-fontconfig.conf new file mode 100644 index 0000000..73fbd96 --- /dev/null +++ b/stix-fonts-fontconfig.conf @@ -0,0 +1,23 @@ + + + + + + STIXGeneral + + serif + + + + serif + + STIXGeneral + + + diff --git a/stix-fonts-integrals-fontconfig.conf b/stix-fonts-integrals-fontconfig.conf new file mode 100644 index 0000000..e2b500b --- /dev/null +++ b/stix-fonts-integrals-fontconfig.conf @@ -0,0 +1,17 @@ + + + + + + STIXIntegrals + + STIXGeneral + + + diff --git a/stix-fonts-pua-fontconfig.conf b/stix-fonts-pua-fontconfig.conf new file mode 100644 index 0000000..cfe67ad --- /dev/null +++ b/stix-fonts-pua-fontconfig.conf @@ -0,0 +1,17 @@ + + + + + + STIXNonUnicode + + STIXGeneral + + + diff --git a/stix-fonts-sizes-fontconfig.conf b/stix-fonts-sizes-fontconfig.conf new file mode 100644 index 0000000..e1ce2dd --- /dev/null +++ b/stix-fonts-sizes-fontconfig.conf @@ -0,0 +1,41 @@ + + + + + + STIXSize1 + + STIXGeneral + + + + STIXSize2 + + STIXGeneral + + + + STIXSize3 + + STIXGeneral + + + + STIXSize4 + + STIXGeneral + + + + STIXSize5 + + STIXGeneral + + + diff --git a/stix-fonts-variants-fontconfig.conf b/stix-fonts-variants-fontconfig.conf new file mode 100644 index 0000000..afca987 --- /dev/null +++ b/stix-fonts-variants-fontconfig.conf @@ -0,0 +1,17 @@ + + + + + + STIXVariants + + STIXGeneral + + + diff --git a/stix-fonts.spec b/stix-fonts.spec index 54cdd2f..2e54e02 100644 --- a/stix-fonts.spec +++ b/stix-fonts.spec @@ -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 +☺ 0.9-5 + ✓ Add some fontconfig aliasing rules ☢ 0.9-4 ⚠ Initial experimental packaging