[Fedora-i18n-bugs] [nafees-tehreer-naskh-fonts] initial import
Pravin Satpute
pravins at fedoraproject.org
Wed Aug 24 07:16:23 UTC 2011
commit ffadb126ece620da0329ca174ff24dbafddbb1bd
Author: प्रविण सातपुते <psatpute at redhat.com>
Date: Wed Aug 24 12:45:56 2011 +0530
initial import
.gitignore | 1 +
67-nafees-tehreer-naskh.conf | 22 ++++++++
nafees-tehreer-naskh-fonts.spec | 65 +++++++++++++++++++++++
nafees-tehreer-naskh-update-preferred-family.pe | 11 ++++
sources | 1 +
5 files changed, 100 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bbb3719 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Nafees_Tahreer_Naskh_v1.0.zip
diff --git a/67-nafees-tehreer-naskh.conf b/67-nafees-tehreer-naskh.conf
new file mode 100644
index 0000000..121a43f
--- /dev/null
+++ b/67-nafees-tehreer-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>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Nafees Tehreer Naskh</string>
+ </edit>
+</match>
+<alias>
+ <family>Nafees Tehreer Naskh</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+</alias>
+</fontconfig>
+
diff --git a/nafees-tehreer-naskh-fonts.spec b/nafees-tehreer-naskh-fonts.spec
new file mode 100644
index 0000000..ef2bd8c
--- /dev/null
+++ b/nafees-tehreer-naskh-fonts.spec
@@ -0,0 +1,65 @@
+%global fontname nafees-tehreer-naskh
+%global fontconf 67-%{fontname}.conf
+%global archivename Nafees_Tahreer_Naskh_v1.0
+
+Name: %{fontname}-fonts
+Version: 1.0
+Release: 2%{?dist}
+Summary: Nafees tehreer naskh font for writing Urdu in the Naskh script
+
+Group: User Interface/X
+License: Bitstream Vera
+URL: http://www.crulp.org/index.htm
+
+Source0: http://www.crulp.org/Downloads/localization/fonts/NafeesTahreerNaskh/%{archivename}.zip
+
+Source1: %{fontname}-update-preferred-family.pe
+Source2: %{fontconf}
+
+BuildArch: noarch
+Requires: fontpackages-filesystem
+BuildRequires: fontpackages-devel
+BuildRequires: fontforge
+
+%description
+
+Nafees tehreer naskh Open Type Font for writing Urdu in Naskh\
+script. This font is a text font and specially designed for better\
+on screen readability at small point sizes.
+
+
+%prep
+%setup -q -c
+
+%build
+# Fix RHBZ#490830 while not fixed upstream
+%{_bindir}/fontforge %{SOURCE1} Nafees\ Tahreer\ Naskh\ v1.01.ttf
+rm Nafees\ Tahreer\ Naskh\ v1.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_Tahree_Naskh_v1.0.pdf
+
+
+%changelog
+* Wed Aug 24 2011 Pravin Satpute <psatpute at redhat.com> 1.0-2
+- Updated as per Review comments
+
+* Wed Aug 10 2011 Pravin Satpute <psatpute at redhat.com> 1.0-1
+- Initial packaging
diff --git a/nafees-tehreer-naskh-update-preferred-family.pe b/nafees-tehreer-naskh-update-preferred-family.pe
new file mode 100644
index 0000000..f95a00b
--- /dev/null
+++ b/nafees-tehreer-naskh-update-preferred-family.pe
@@ -0,0 +1,11 @@
+#!/usr/bin/fontforge
+
+
+fontfile = $1
+Open(fontfile)
+
+SetTTFName(0x409, 16, 'Nafees Tehreer Naskh')
+
+Generate('NafeesTehreerNaskh.ttf')
+Close()
+
diff --git a/sources b/sources
index e69de29..9397db8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dfc4a1112cf1463cd90e525175146ccc Nafees_Tahreer_Naskh_v1.0.zip
More information about the i18n-bugs
mailing list