rpms/fontforge/devel fontforge-20061025-fsSel.patch, NONE, 1.1 fontforge.spec, 1.22, 1.23

Roozbeh Pournader (roozbeh) fedora-extras-commits at redhat.com
Sat Dec 9 18:24:52 UTC 2006


Author: roozbeh

Update of /cvs/extras/rpms/fontforge/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6628

Modified Files:
	fontforge.spec 
Added Files:
	fontforge-20061025-fsSel.patch 
Log Message:
* Sat Dec 09 2006 Roozbeh Pournader <roozbeh at farsiweb.info> - 20061025-2
- Add patch to fix fsSelection problem with DejaVu ExtraLight


fontforge-20061025-fsSel.patch:

--- NEW FILE fontforge-20061025-fsSel.patch ---
--- 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 */


Index: fontforge.spec
===================================================================
RCS file: /cvs/extras/rpms/fontforge/devel/fontforge.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- fontforge.spec	25 Nov 2006 10:54:38 -0000	1.22
+++ fontforge.spec	9 Dec 2006 18:24:22 -0000	1.23
@@ -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 @@
 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 @@
 %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 @@
 
 
 %changelog
+* Sat Dec 09 2006 Roozbeh Pournader <roozbeh at farsiweb.info> - 20061025-2
+- Add patch to fix fsSelection problem with DejaVu ExtraLight
+
 * Sat Nov 25 2006 Roozbeh Pournader <roozbeh at farsiweb.info> - 20061025-1
 - Update to 20061025
 - Patch to correct usFirstCharIndex (George Williams)




More information about the fedora-extras-commits mailing list