[Fedora-i18n-bugs] [nafees-naskh-fonts/f15] initial import

Pravin Satpute pravins at fedoraproject.org
Tue Aug 23 14:53:53 UTC 2011


commit f61b13601acf98c10014cebf8dfe8b662d68f750
Author: प्रविण सातपुते <psatpute at redhat.com>
Date:   Tue Aug 23 20:23:29 2011 +0530

    initial import

 .gitignore                              |    1 +
 67-nafees-naskh.conf                    |   22 +++++++++++
 nafees-naskh-fonts.spec                 |   64 +++++++++++++++++++++++++++++++
 nafees-naskh-update-preferred-family.pe |   11 +++++
 sources                                 |    1 +
 5 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..514e2b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Nafees_Naskh_v2.01.zip
diff --git a/67-nafees-naskh.conf b/67-nafees-naskh.conf
new file mode 100644
index 0000000..d1a0954
--- /dev/null
+++ b/67-nafees-naskh.conf
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<match>
+  <test name="lang" compare="contains">
+    <string>ur</string>
+  </test>
+  <test name="family">
+    <string>serif</string>
+  </test>
+  <edit name="family" mode="prepend">
+    <string>Nafees Naskh</string>
+  </edit>
+</match>
+<alias>
+  <family>Nafees Naskh</family>
+  <default>
+    <family>serif</family>
+  </default>
+</alias>
+</fontconfig>
+
diff --git a/nafees-naskh-fonts.spec b/nafees-naskh-fonts.spec
new file mode 100644
index 0000000..54b3bb6
--- /dev/null
+++ b/nafees-naskh-fonts.spec
@@ -0,0 +1,64 @@
+%global fontname        nafees-naskh
+%global fontconf        67-%{fontname}.conf
+%global archivename     Nafees_Naskh_v2.01
+
+Name:           %{fontname}-fonts
+Version:        2.01
+Release:        2%{?dist}
+Summary:        Nafees naskh font for writing Urdu in the Naskh script with full aerab support
+
+Group:          User Interface/X
+License:        Bitstream Vera
+URL:            http://www.crulp.org/index.htm
+
+Source0:        http://www.crulp.org/Downloads/localization/fonts/NafeesNaskh/%{archivename}.zip
+
+Source1:        %{fontname}-update-preferred-family.pe
+Source2:        %{fontconf}
+
+BuildArch:      noarch
+Requires:       fontpackages-filesystem
+BuildRequires:  fontpackages-devel
+BuildRequires:  fontforge
+
+%description
+
+Character based Nafees Naskh Open Type Font for writing Urdu in Naskh\
+script with full aerab support based on Unicode standard.
+
+
+%prep
+%setup -q -c
+
+%build
+# Fix RHBZ#490830 while not fixed upstream
+#%{_bindir}/fontforge %{SOURCE1} Nafees\ Naskh\ v2.01.ttf
+#rm  Nafees\ Naskh\ v2.01.ttf
+
+%install
+
+#fonts
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
+
+install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
+                %{buildroot}%{_fontconfig_confdir}
+
+install -m 0644 -p %{SOURCE2} \
+                %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
+
+ln -s %{_fontconfig_templatedir}/%{fontconf} \
+        %{buildroot}%{_fontconfig_confdir}/%{fontconf}
+
+
+%_font_pkg -f %{fontconf} *.ttf
+
+%doc  Nafees\ Naskh\ v2.01.pdf
+
+
+%changelog
+* Wed Aug 10 2011 Pravin Satpute <psatpute at redhat.com> 2.01-2
+- updated specs as per package-review suggestios
+
+* Wed Aug 10 2011 Pravin Satpute <psatpute at redhat.com> 2.01-1
+- Initial packaging
diff --git a/nafees-naskh-update-preferred-family.pe b/nafees-naskh-update-preferred-family.pe
new file mode 100644
index 0000000..6ebdf94
--- /dev/null
+++ b/nafees-naskh-update-preferred-family.pe
@@ -0,0 +1,11 @@
+#!/usr/bin/fontforge 
+
+
+fontfile = $1
+Open(fontfile)
+
+SetTTFName(0x409, 16, 'Nafees Naskh')
+
+Generate('NafeesNaskh.ttf')
+Close()
+
diff --git a/sources b/sources
index e69de29..cc334ee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+66d0e0d5a3bf1ed9c1fe300abc3ef832  Nafees_Naskh_v2.01.zip


More information about the i18n-bugs mailing list