commit 33ebd1c68723d0dfd4ef31958aaba70b4250383f
Author: प्रविण सातपुते <psatpute(a)redhat.com>
Date: Wed Aug 24 12:10:39 2011 +0530
initial import
.gitignore | 1 +
67-nafees-nastaleeq.conf | 22 +++++++++
nafees-nastaleeq-fonts.spec | 65 +++++++++++++++++++++++++++
nafees-nastaleeq-update-preferred-family.pe | 11 +++++
sources | 1 +
5 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..de9726b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Nafees_Nastaleeq_v1.02.zip
diff --git a/67-nafees-nastaleeq.conf b/67-nafees-nastaleeq.conf
new file mode 100644
index 0000000..61cad75
--- /dev/null
+++ b/67-nafees-nastaleeq.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 Nastaleeq</string>
+ </edit>
+</match>
+<alias>
+ <family>Nafees Nastaleeq</family>
+ <default>
+ <family>serif</family>
+ </default>
+</alias>
+</fontconfig>
+
diff --git a/nafees-nastaleeq-fonts.spec b/nafees-nastaleeq-fonts.spec
new file mode 100644
index 0000000..f894cda
--- /dev/null
+++ b/nafees-nastaleeq-fonts.spec
@@ -0,0 +1,65 @@
+%global fontname nafees-nastaleeq
+%global fontconf 67-%{fontname}.conf
+%global archivename Nafees_Nastaleeq_v1.02
+
+Name: %{fontname}-fonts
+Version: 1.02
+Release: 2%{?dist}
+Summary: Nafees nastaleeq font for writing Urdu in the Nastaleeq script
+
+Group: User Interface/X
+License: Bitstream Vera
+URL:
http://www.crulp.org/index.htm
+
+Source0:
http://www.crulp.org/Downloads/localization/fonts/NafeesNastaleeq/%{archi...
+
+Source1: %{fontname}-update-preferred-family.pe
+Source2: %{fontconf}
+
+BuildArch: noarch
+Requires: fontpackages-filesystem
+BuildRequires: fontpackages-devel
+BuildRequires: fontforge
+
+%description
+
+Nafees Nastaleeq is developed according to calligraphic rules,\
+following the style of Syed Nafees Al-Hussaini (Nafees Raqam)\
+one of the finest calligraphers of Pakistan. Nafees Nasta’leeq\
+OTF contains approximately 1,000 glyphs, including about 26 ligatures.
+
+%prep
+%setup -q -c
+
+%build
+#Fix RHBZ#490830 while not fixed upstream
+%{_bindir}/fontforge %{SOURCE1} Nafees\ Nastaleeq\ v1.02.ttf
+rm Nafees\ Nastaleeq\ v1.02.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_Nastaleeq_v1.02.pdf
+
+
+%changelog
+* Wed Aug 24 2011 Pravin Satpute <psatpute(a)redhat.com> 1.02-2
+- Updated as per review comments
+
+* Wed Aug 10 2011 Pravin Satpute <psatpute(a)redhat.com> 1.02-1
+- Initial packaging
diff --git a/nafees-nastaleeq-update-preferred-family.pe
b/nafees-nastaleeq-update-preferred-family.pe
new file mode 100644
index 0000000..dede11a
--- /dev/null
+++ b/nafees-nastaleeq-update-preferred-family.pe
@@ -0,0 +1,11 @@
+#!/usr/bin/fontforge
+
+
+fontfile = $1
+Open(fontfile)
+
+SetTTFName(0x409, 16, 'Nafees Nastaleeq')
+
+Generate('NafeesNastaleeq.ttf')
+Close()
+
diff --git a/sources b/sources
index e69de29..c89aeeb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+34ca164ce011b682522431fc332c0cb6 Nafees_Nastaleeq_v1.02.zip