- Add patch to fix fsSelection problem with DejaVu ExtraLight
This commit is contained in:
parent
d6c0d0aa4b
commit
08beb46513
11
fontforge-20061025-fsSel.patch
Normal file
11
fontforge-20061025-fsSel.patch
Normal file
@ -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 */
|
@ -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 <roozbeh@farsiweb.info> - 20061025-2
|
||||
- Add patch to fix fsSelection problem with DejaVu ExtraLight
|
||||
|
||||
* Sat Nov 25 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 20061025-1
|
||||
- Update to 20061025
|
||||
- Patch to correct usFirstCharIndex (George Williams)
|
||||
|
Loading…
Reference in New Issue
Block a user