From 08beb4651364af84c6e0dc310ad2cb58ec949fd5 Mon Sep 17 00:00:00 2001 From: Roozbeh Pournader Date: Sat, 9 Dec 2006 18:24:22 +0000 Subject: [PATCH] - Add patch to fix fsSelection problem with DejaVu ExtraLight --- fontforge-20061025-fsSel.patch | 11 +++++++++++ fontforge.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 fontforge-20061025-fsSel.patch diff --git a/fontforge-20061025-fsSel.patch b/fontforge-20061025-fsSel.patch new file mode 100644 index 0000000..90c0961 --- /dev/null +++ b/fontforge-20061025-fsSel.patch @@ -0,0 +1,11 @@ +--- fontforge-20061025/fontforge/tottf.c.fsSel 2006-12-09 21:36:24.000000000 +0330 ++++ fontforge-20061025/fontforge/tottf.c 2006-12-09 21:41:45.000000000 +0330 +@@ -3090,7 +3090,7 @@ + os2->fsSel = (at->head.macstyle&1?32:0)|(at->head.macstyle&2?1:0); + if ( sf->fullname!=NULL && strstrmatch(sf->fullname,"outline")!=NULL ) + os2->fsSel |= 8; +- if ( os2->fsSel==0 ) os2->fsSel = 64; /* Regular */ ++ if ( os2->fsSel==0 && sf->pfminfo.weight == 400) os2->fsSel = 64; /* Regular */ + if ( os2->version>=4 ) { + if ( strstrmatch(sf->fontname,"Obli")==0 ) { + os2->fsSel &= ~1; /* Turn off Italic */ diff --git a/fontforge.spec b/fontforge.spec index 8f36540..947aa92 100644 --- a/fontforge.spec +++ b/fontforge.spec @@ -3,7 +3,7 @@ Name: fontforge Version: 20061025 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Outline and bitmap font editor Group: Applications/Publishing @@ -13,6 +13,7 @@ Source0: http://dl.sf.net/fontforge/fontforge_full-%{version}.tar.bz2 Source1: fontforge.desktop Source2: http://dl.sf.net/fontforge/fontforge_htdocs-%{docs_version}.tar.bz2 Patch1: fontforge-20061025-usFirstCharIndex.patch +Patch2: fontforge-20061025-fsSel.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: htmlview @@ -41,6 +42,7 @@ fonts. It supports a range of font formats, including PostScript %prep %setup -q -n %{name}-%{version} %patch1 -p1 -b .usFirstCharIndex +%patch2 -p1 -b .fsSel mkdir htdocs tar xjf %{SOURCE2} -C htdocs @@ -114,6 +116,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sat Dec 09 2006 Roozbeh Pournader - 20061025-2 +- Add patch to fix fsSelection problem with DejaVu ExtraLight + * Sat Nov 25 2006 Roozbeh Pournader - 20061025-1 - Update to 20061025 - Patch to correct usFirstCharIndex (George Williams)