[liberation-narrow-fonts] initial build after split from liberation-fonts package

Pravin Satpute pravins at fedoraproject.org
Thu Jul 26 16:15:15 UTC 2012


commit e3323b06b95e91c6cf66ff83f44c9b81e5a0a58b
Author: प्रविण सातपुते <psatpute at redhat.com>
Date:   Thu Jul 26 21:44:44 2012 +0530

    initial build after split from liberation-fonts package

 .gitignore                   |    1 +
 59-liberation-narrow.conf    |   16 +++
 generate.pe                  |   19 ++++
 liberation-narrow-fonts.spec |   78 ++++++++++++++++
 narrow-bug-835182.patch      |  211 ++++++++++++++++++++++++++++++++++++++++++
 sources                      |    1 +
 6 files changed, 326 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bae4ffd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/liberation-fonts-1.07.2.tar.gz
diff --git a/59-liberation-narrow.conf b/59-liberation-narrow.conf
new file mode 100644
index 0000000..fdbe20d
--- /dev/null
+++ b/59-liberation-narrow.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+  <alias>
+    <family>sans-serif</family>
+    <prefer>
+      <family>Liberation Sans Narrow</family>
+    </prefer>
+  </alias>
+  <alias>
+    <family>Liberation Sans Narrow</family>
+    <default>
+      <family>sans-serif</family>
+    </default>
+  </alias>
+</fontconfig>
diff --git a/generate.pe b/generate.pe
new file mode 100644
index 0000000..bf9bcb2
--- /dev/null
+++ b/generate.pe
@@ -0,0 +1,19 @@
+#!/usr/bin/env fontforge
+
+# script file for FontForge for TTF generation
+# usage:
+#   mkdir TTFfiles
+#   chmod +x generate.pe
+#   ./generate.pe *.sfd
+
+if ($version < "20061220")
+  Error("Your version of FontForge is too old - 20061220 or newer is required");
+endif
+i = 1
+while ( i < $argc )
+  Open($argv[i], 1)
+  #Use gen_flags=Defualt fmflags value as -1  
+  gen_flags = -1 
+  Generate("" + $fontname + ".ttf", "", gen_flags)
+  i++
+endloop
diff --git a/liberation-narrow-fonts.spec b/liberation-narrow-fonts.spec
new file mode 100644
index 0000000..ef75b07
--- /dev/null
+++ b/liberation-narrow-fonts.spec
@@ -0,0 +1,78 @@
+%global fontname liberation-narrow
+%global archivename liberation-fonts-%{version}
+%global fontconf 59-%{fontname}.conf
+
+%define catalogue %{_sysconfdir}/X11/fontpath.d
+
+Name:             %{fontname}-fonts
+Summary:          Sans-serif Narrow fonts to replace commonly used Microsoft Arial Narrow
+Version:          1.07.2
+Release:          8%{?dist}
+# The license of the Liberation Fonts is a EULA that contains GPLv2 and two
+# exceptions:
+# The first exception is the standard FSF font exception.
+# The second exception is an anti-lockdown clause somewhat like the one in
+# GPLv3. This license is Free, but GPLv2 and GPLv3 incompatible.
+License:          Liberation
+Group:            User Interface/X
+URL:              http://fedorahosted.org/liberation-fonts/
+Source0:          https://fedorahosted.org/releases/l/i/liberation-fonts/%{archivename}.tar.gz
+Source1:          generate.pe
+Source2:          %{fontconf}
+BuildArch:        noarch
+BuildRequires:    fontpackages-devel, xorg-x11-font-utils
+BuildRequires:    fontforge
+Patch1: narrow-bug-835182.patch
+
+%description
+The Liberation Sans Narrow Fonts are intended to be replacements for \
+the Arial Narrow.
+
+%prep
+%setup -q -n %{archivename}
+rm -rf scripts
+mv src/LiberationSansNarrow* .
+rm -rf src
+cp -p %{SOURCE1} .
+cp -p %{SOURCE2} .
+chmod 755 generate.pe
+%patch1 -p1 -b .1-updated-patch-for-fix-u040D
+
+
+%build
+./generate.pe *.sfd
+
+
+%install
+# fonts .ttf
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
+# catalogue
+install -m 0755 -d %{buildroot}%{catalogue}
+ln -s %{_fontdir} %{buildroot}%{catalogue}/%{name}
+# fonts.{dir,scale}
+mkfontscale %{buildroot}%{_fontdir}
+mkfontdir %{buildroot}%{_fontdir}
+
+install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
+                   %{buildroot}%{_fontconfig_confdir}
+
+install -m 0644 -p %{fontconf} \
+        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
+ln -s %{_fontconfig_templatedir}/%{fontconf} \
+      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
+
+
+%_font_pkg -f %{fontconf} *.ttf
+
+%doc AUTHORS ChangeLog COPYING License.txt README TODO
+%verify(not md5 size mtime) %{_fontdir}/fonts.dir
+%verify(not md5 size mtime) %{_fontdir}/fonts.scale
+%{catalogue}/%{name}
+
+%changelog
+* Thu Jul 26 2012 Pravin Satpute <psatpute at redhat.com> - 1.07.2-8
+- updated as per pkg review comments #840878
+
+* Tue Jul 17 2012 Pravin Satpute <psatpute at redhat.com> - 1.07.2-7
+- Initial release after splitting it from liberation-fonts tarball due to license incompatibility.
diff --git a/narrow-bug-835182.patch b/narrow-bug-835182.patch
new file mode 100644
index 0000000..45b7eaa
--- /dev/null
+++ b/narrow-bug-835182.patch
@@ -0,0 +1,211 @@
+diff -rup liberation-fonts-1.07.2/LiberationSansNarrow-BoldItalic.sfd liberation-fonts-1.07.2_mod/LiberationSansNarrow-BoldItalic.sfd
+--- liberation-fonts-1.07.2/LiberationSansNarrow-BoldItalic.sfd	2012-02-09 13:35:55.000000000 +0530
++++ liberation-fonts-1.07.2_mod/LiberationSansNarrow-BoldItalic.sfd	2012-07-17 18:19:35.173173894 +0530
+@@ -19,7 +19,7 @@ OS2Version: 1
+ OS2_WeightWidthSlopeOnly: 0
+ OS2_UseTypoMetrics: 1
+ CreationTime: 1123372800
+-ModificationTime: 1328009085
++ModificationTime: 1331118589
+ PfmFamily: 17
+ TTFWeight: 700
+ TTFWidth: 3
+@@ -805,7 +805,7 @@ NameList: Adobe Glyph List
+ DisplaySize: -36
+ AntiAlias: 1
+ FitToEm: 1
+-WinInfo: 65252 22 14
++WinInfo: 660 44 17
+ BeginPrivate: 0
+ EndPrivate
+ BeginChars: 65558 682
+@@ -75122,12 +75122,12 @@ EndChar
+ 
+ StartChar: uni040D
+ Encoding: 1037 1037 675
+-Width: 1212
+-Flags: W
++Width: 1208
++Flags: HW
+ LayerCount: 2
+ Fore
++Refer: 430 1048 N 1 0 0 1 0 0 2
+ Refer: 67 96 N 1 0 0 1 244 303 2
+-Refer: 49 78 N 1 0 0 1 0 0 2
+ EndChar
+ 
+ StartChar: uni045D
+@@ -75193,7 +75193,7 @@ EndChar
+ StartChar: S_BE
+ Encoding: 65556 -1 680
+ Width: 1018
+-Flags: HW
++Flags: W
+ LayerCount: 2
+ Fore
+ SplineSet
+@@ -75249,7 +75249,7 @@ EndChar
+ StartChar: S_TE
+ Encoding: 65557 -1 681
+ Width: 1487
+-Flags: HW
++Flags: W
+ LayerCount: 2
+ Fore
+ Refer: 329 713 N 1 0 0 1 170 0 2
+diff -rup liberation-fonts-1.07.2/LiberationSansNarrow-Bold.sfd liberation-fonts-1.07.2_mod/LiberationSansNarrow-Bold.sfd
+--- liberation-fonts-1.07.2/LiberationSansNarrow-Bold.sfd	2012-02-09 13:35:55.000000000 +0530
++++ liberation-fonts-1.07.2_mod/LiberationSansNarrow-Bold.sfd	2012-07-17 18:19:19.237163370 +0530
+@@ -19,7 +19,7 @@ OS2Version: 1
+ OS2_WeightWidthSlopeOnly: 0
+ OS2_UseTypoMetrics: 1
+ CreationTime: 1123372800
+-ModificationTime: 1328007340
++ModificationTime: 1331118512
+ PfmFamily: 17
+ TTFWeight: 700
+ TTFWidth: 3
+@@ -800,7 +800,7 @@ NameList: Adobe Glyph List
+ DisplaySize: -36
+ AntiAlias: 1
+ FitToEm: 1
+-WinInfo: 924 22 14
++WinInfo: 880 44 17
+ BeginPrivate: 0
+ EndPrivate
+ BeginChars: 65556 681
+@@ -59702,12 +59702,12 @@ EndChar
+ 
+ StartChar: uni040D
+ Encoding: 1037 1037 675
+-Width: 1212
+-Flags: W
++Width: 1208
++Flags: HW
+ LayerCount: 2
+ Fore
++Refer: 430 1048 N 1 0 0 1 0 0 2
+ Refer: 67 96 N 1 0 0 1 317 316 2
+-Refer: 49 78 N 1 0 0 1 0 0 2
+ EndChar
+ 
+ StartChar: uni0450
+@@ -59773,7 +59773,7 @@ EndChar
+ StartChar: S_BE
+ Encoding: 65522 -1 680
+ Width: 1018
+-Flags: HW
++Flags: W
+ LayerCount: 2
+ Fore
+ SplineSet
+diff -rup liberation-fonts-1.07.2/LiberationSansNarrow-Italic.sfd liberation-fonts-1.07.2_mod/LiberationSansNarrow-Italic.sfd
+--- liberation-fonts-1.07.2/LiberationSansNarrow-Italic.sfd	2012-02-09 13:35:55.000000000 +0530
++++ liberation-fonts-1.07.2_mod/LiberationSansNarrow-Italic.sfd	2012-07-17 18:19:27.189168607 +0530
+@@ -19,7 +19,7 @@ OS2Version: 1
+ OS2_WeightWidthSlopeOnly: 0
+ OS2_UseTypoMetrics: 1
+ CreationTime: 1123372800
+-ModificationTime: 1328010105
++ModificationTime: 1331118431
+ PfmFamily: 17
+ TTFWeight: 400
+ TTFWidth: 3
+@@ -790,7 +790,7 @@ NameList: Adobe Glyph List
+ DisplaySize: -36
+ AntiAlias: 1
+ FitToEm: 1
+-WinInfo: 65280 20 14
++WinInfo: 616 44 17
+ BeginPrivate: 0
+ EndPrivate
+ BeginChars: 65558 682
+@@ -78424,12 +78424,12 @@ EndChar
+ 
+ StartChar: uni040D
+ Encoding: 1037 1037 675
+-Width: 1212
+-Flags: W
++Width: 1202
++Flags: HW
+ LayerCount: 2
+ Fore
++Refer: 430 1048 N 1 0 0 1 0 0 2
+ Refer: 67 96 N 1 0 0 1 474 270 2
+-Refer: 49 78 N 1 0 0 1 0 0 2
+ EndChar
+ 
+ StartChar: uni0450
+@@ -78495,7 +78495,7 @@ EndChar
+ StartChar: S_BE
+ Encoding: 65556 -1 680
+ Width: 936
+-Flags: HW
++Flags: W
+ LayerCount: 2
+ Fore
+ SplineSet
+@@ -78546,7 +78546,7 @@ EndChar
+ StartChar: S_TE
+ Encoding: 65557 -1 681
+ Width: 1395
+-Flags: HW
++Flags: W
+ LayerCount: 2
+ Fore
+ Refer: 329 713 S 1 0 0 1 220 0 2
+diff -rup liberation-fonts-1.07.2/LiberationSansNarrow-Regular.sfd liberation-fonts-1.07.2_mod/LiberationSansNarrow-Regular.sfd
+--- liberation-fonts-1.07.2/LiberationSansNarrow-Regular.sfd	2012-02-09 13:35:55.000000000 +0530
++++ liberation-fonts-1.07.2_mod/LiberationSansNarrow-Regular.sfd	2012-07-17 18:19:10.242157460 +0530
+@@ -19,7 +19,7 @@ OS2Version: 1
+ OS2_WeightWidthSlopeOnly: 0
+ OS2_UseTypoMetrics: 1
+ CreationTime: 1123372800
+-ModificationTime: 1328004541
++ModificationTime: 1331118372
+ PfmFamily: 17
+ TTFWeight: 400
+ TTFWidth: 3
+@@ -785,7 +785,7 @@ NameList: Adobe Glyph List
+ DisplaySize: -36
+ AntiAlias: 1
+ FitToEm: 1
+-WinInfo: 0 44 17
++WinInfo: 528 44 17
+ BeginPrivate: 0
+ EndPrivate
+ BeginChars: 65556 681
+@@ -35767,7 +35767,7 @@ StartChar: afii10026
+ Encoding: 1048 1048 430
+ Width: 1207
+ GlyphClass: 2
+-Flags: W
++Flags: WO
+ TtInstrs:
+ SVTCA[y-axis]
+ PUSHB_3
+@@ -61982,12 +61982,12 @@ EndChar
+ 
+ StartChar: uni040D
+ Encoding: 1037 1037 675
+-Width: 1212
+-Flags: W
++Width: 1207
++Flags: HWO
+ LayerCount: 2
+ Fore
++Refer: 430 1048 N 1 0 0 1 0 0 2
+ Refer: 67 96 N 1 0 0 1 317 264 2
+-Refer: 49 78 N 1 0 0 1 0 0 2
+ EndChar
+ 
+ StartChar: uni0450
+@@ -62053,7 +62053,7 @@ EndChar
+ StartChar: S_BE
+ Encoding: 65522 -1 680
+ Width: 934
+-Flags: HW
++Flags: W
+ LayerCount: 2
+ Fore
+ SplineSet
diff --git a/sources b/sources
index e69de29..e1b5f2e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+293b364f3de019f0b19ddd54d36737e6  liberation-fonts-1.07.2.tar.gz


More information about the scm-commits mailing list