[scholarsfonts-cardo-fonts] Patch metrics for regular and bold so they work in LibreOffice and others

Parag Nemade pnemade at fedoraproject.org
Wed Jan 14 08:52:22 UTC 2015


commit 563739910283eebc74ce8eab41d3e839923c9e8c
Author: Parag Nemade <pnemade at redhat.com>
Date:   Wed Jan 14 14:22:37 2015 +0530

    Patch metrics for regular and bold so they work in LibreOffice and others

 cardo104-metrics.patch         |   25 +++++++++++++++++++++++++
 scholarsfonts-cardo-fonts.spec |   13 +++++++++++--
 2 files changed, 36 insertions(+), 2 deletions(-)
---
diff --git a/cardo104-metrics.patch b/cardo104-metrics.patch
new file mode 100644
index 0000000..34cb838
--- /dev/null
+++ b/cardo104-metrics.patch
@@ -0,0 +1,25 @@
+--- a/Cardo104s.ttx
++++ Cardo104s.ttx
+@@ -3875,8 +3875,8 @@
+   <hhea>
+     <tableVersion value="1.0"/>
+     <ascent value="1645"/>
+-    <descent value="620"/>
+-    <lineGap value="-399"/>
++    <descent value="-640"/>
++    <lineGap value="399"/>
+     <advanceWidthMax value="9778"/>
+     <minLeftSideBearing value="-1876"/>
+     <minRightSideBearing value="-1927"/>
+@@ -3949,9 +3949,9 @@
+     <fsFirstCharIndex value="32"/>
+     <fsLastCharIndex value="65533"/>
+     <sTypoAscender value="1645"/>
+-    <sTypoDescender value="-620"/>
++    <sTypoDescender value="-640"/>
+     <sTypoLineGap value="399"/>
+-    <usWinAscent value="2024"/>
++    <usWinAscent value="1645"/>
+     <usWinDescent value="640"/>
+     <ulCodePageRange1 value="00100000 00000000 00000000 10111011"/>
+     <ulCodePageRange2 value="01001101 00000000 00000000 00000000"/>
diff --git a/scholarsfonts-cardo-fonts.spec b/scholarsfonts-cardo-fonts.spec
index c4746b5..8c8f534 100644
--- a/scholarsfonts-cardo-fonts.spec
+++ b/scholarsfonts-cardo-fonts.spec
@@ -3,7 +3,7 @@
 
 Name:           %{fontname}-fonts
 Version:        1.045 
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        A font for scholarly use in classical and medieval languages
 
 License:        OFL
@@ -11,9 +11,11 @@ URL:            http://scholarsfonts.net/cardofnt.html
 Source0:        http://scholarsfonts.net/cardo104.zip
 Source1:        %{name}-fontconfig.conf
 Source2:        %{fontname}.metainfo.xml
+# Emailed to creator, 2015-01-13
+Patch1:         cardo104-metrics.patch
 
 BuildArch:      noarch
-BuildRequires:  fontpackages-devel
+BuildRequires:  fontpackages-devel, fonttools
 Requires:       fontpackages-filesystem
 Obsoletes:      cardo-fonts < 0.099-1
 
@@ -31,6 +33,10 @@ Aldine 401).
 
 %prep
 %setup -q -c
+ttx Cardo104s.ttf
+rm Cardo104s.ttf
+%patch1
+ttx Cardo104s.ttx
 
 %build
 
@@ -55,6 +61,9 @@ install -Dm 0644 -p %{SOURCE2} \
 %{_datadir}/appdata/%{fontname}.metainfo.xml
 
 %changelog
+* Tue Jan 13 2015 Paul Flo Williams <paul at frixxon.co.uk> - 1.045-9
+- Patch metrics for regular and bold so they work in LibreOffice and others
+
 * Thu Oct 16 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.045-8
 - Add metainfo file to show this font in gnome-software
 


More information about the scm-commits mailing list