SHA256
1
0
forked from pool/fontforge
OBS User unknown 2006-12-19 21:57:31 +00:00 committed by Git OBS Bridge
commit d89b8d33e5
15 changed files with 533 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,13 @@
diff -ru fontforge-20061014.orig/fontforge/freetype.c fontforge-20061014/fontforge/freetype.c
--- fontforge-20061014.orig/fontforge/freetype.c 2006-09-29 05:21:35.000000000 +0200
+++ fontforge-20061014/fontforge/freetype.c 2006-11-17 19:52:36.000000000 +0100
@@ -1098,8 +1098,8 @@
bitmap.pixel_mode = ft_pixel_mode_grays;
}
bitmap.buffer = gcalloc(bitmap.pitch*bitmap.rows,sizeof(uint8));
-#ifdef FONTFORGE_CONFIG_TYPE3
memset(&temp,0,sizeof(temp));
+#ifdef FONTFORGE_CONFIG_TYPE3
if ( sc->parent->multilayer && !(sc->layer_cnt==1 &&
!sc->layers[ly_fore].dostroke &&
sc->layers[ly_fore].dofill &&

View File

@ -0,0 +1,12 @@
diff -ru fontforge-20061025/fontforge/parsepfa.c fontforge-20061025.new/fontforge/parsepfa.c
--- fontforge-20061025/fontforge/parsepfa.c 2006-08-27 06:44:49.000000000 +0200
+++ fontforge-20061025.new/fontforge/parsepfa.c 2006-12-19 19:53:06.000000000 +0100
@@ -1327,7 +1327,7 @@
char *pt;
int instring = false, firstnibble=true, sofar=0, nibble;
int complained = false;
- int ch;
+ int ch = 0;
fp->sfnts = tmpfile();

11
docdir.patch Normal file
View File

@ -0,0 +1,11 @@
diff -ru fontforge-20040808.orig/fontforge/uiutil.c fontforge-20040808/fontforge/uiutil.c
--- fontforge-20040808.orig/fontforge/uiutil.c 2004-08-02 05:30:07.000000000 +0200
+++ fontforge-20040808/fontforge/uiutil.c 2004-08-18 15:00:47.125256325 +0200
@@ -307,6 +307,7 @@
fullspec[0] = 0;
if ( *file!='/' ) {
if ( helpdir==NULL || *helpdir=='\0' ) {
+#define DOCDIR "/usr/share/doc/packages/fontforge/docs"
#ifdef DOCDIR
strcpy(fullspec,DOCDIR "/");
#elif defined(SHAREDIR)

11
fontforge-strncat.patch Normal file
View File

@ -0,0 +1,11 @@
--- fontforge/combinations.c
+++ fontforge/combinations.c
@@ -642,7 +642,7 @@
else
sprintf( buffer, "%d,%d ", kern->newoff, kern->newyoff );
if ( kern->ac!=NULL )
- strncat(buffer,kern->ac->name,sizeof(buffer));
+ strncat(buffer,kern->ac->name,sizeof(buffer)-strlen(buffer)-1);
GDrawDrawText8(pixmap,15,subclip.y+kpd->uh-kpd->fh+kpd->as,buffer,-1,NULL,
kern->kp!=NULL && kern->newoff!=kern->kp->off ? 0xff0000 : 0x000000 );
if ( i+kpd->off_top==kpd->selected ) {

213
fontforge.changes Normal file
View File

@ -0,0 +1,213 @@
-------------------------------------------------------------------
Tue Dec 19 18:40:01 CET 2006 - mfabian@suse.de
- update to 20061025.
• fontimage program has been added.
- fix bugzilla #225616 ("local variable used before set").
-------------------------------------------------------------------
Fri Nov 17 19:54:59 CET 2006 - mfabian@suse.de
- Bugzilla #221210: "local variable used before set"
-------------------------------------------------------------------
Mon Nov 6 00:28:15 CET 2006 - ro@suse.de
- fix permissions on icon file
- fix gcc warning for strncat
-------------------------------------------------------------------
Tue Oct 17 14:25:48 CEST 2006 - mfabian@suse.de
- update to 20061014.
remove bugzilla-203490-local-variable-used-before-set.patch
(included upstream).
- Fix Bugzilla #211543 ("array subscript out of range).
- Fix invalid operation (like x = x++;)
-------------------------------------------------------------------
Thu Sep 07 12:12:47 CEST 2006 - mfabian@suse.de
- fix bugzilla #203490: "local variable used before set".
- add Japanese documentation.
-------------------------------------------------------------------
Wed Sep 06 17:26:27 CEST 2006 - mfabian@suse.de
- update to 20060822.
remove bugzilla-197499-local-variable-used-before-set.patch
(included upstream).
-------------------------------------------------------------------
Thu Aug 10 16:29:49 CEST 2006 - mfabian@suse.de
- Bugzilla 197499: "local variable used before set".
-------------------------------------------------------------------
Tue Jul 18 12:55:55 CEST 2006 - mfabian@suse.de
- update to 20060715.
fixes a crash when building freefont.
-------------------------------------------------------------------
Fri Mar 17 15:46:54 CET 2006 - mfabian@suse.de
- Bugzilla #158759: "locale variable used before set".
(already fixed in latest upstream version).
-------------------------------------------------------------------
Thu Mar 09 17:02:39 CET 2006 - mfabian@suse.de
- Bugzilla #153958: "array subscript out of range".
(already fixed in latest upstream version).
-------------------------------------------------------------------
Wed Jan 25 21:35:58 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Sun Oct 2 15:06:38 CEST 2005 - stbinner@suse.de
- fix capitalization of .desktop GenericName entry
-------------------------------------------------------------------
Thu Aug 04 17:31:55 CEST 2005 - mfabian@suse.de
- update to 20050803.
cannot update documentation because the download link for the
documentation is currently dead.
-------------------------------------------------------------------
Wed May 11 12:31:06 CEST 2005 - mfabian@suse.de
- update to 20050502.
- all .html and .png files should have mode 644.
- fix fontforge.desktop file (thanks to
Thomas Schraitle<thomas.schraitle@suse.de>).
-------------------------------------------------------------------
Tue Dec 14 21:27:40 CET 2004 - hvogel@suse.de
- install icon
-------------------------------------------------------------------
Thu Nov 11 12:48:59 CET 2004 - ro@suse.de
- fixed file list
-------------------------------------------------------------------
Wed Aug 18 18:30:54 CEST 2004 - mfabian@suse.de
- rename: PfaEdit -> fontforge (has been renamed upstream).
- update to 20040808.
-------------------------------------------------------------------
Mon Apr 26 00:16:16 CEST 2004 - ro@suse.de
- use no-strict-aliasing
-------------------------------------------------------------------
Thu Feb 26 15:27:52 CET 2004 - mfabian@suse.de
- update to 040224.
-------------------------------------------------------------------
Sat Jan 10 15:11:21 CET 2004 - adrian@suse.de
- build as user
-------------------------------------------------------------------
Sat Aug 23 17:12:17 CEST 2003 - mfabian@suse.de
- make it build on older distributions.
-------------------------------------------------------------------
Mon Aug 18 12:17:35 CEST 2003 - mfabian@suse.de
- update to 030817.
- add desktop file.
-------------------------------------------------------------------
Fri May 16 15:53:29 CEST 2003 - mfabian@suse.de
- update binaries and documentation to 030512
- add .so and .la file to file list
- add "freetype2 freetype2-devel" to neededforbuild
-------------------------------------------------------------------
Wed Feb 12 11:31:46 CET 2003 - mfabian@suse.de
- update binaries and documentation to 030211
-------------------------------------------------------------------
Wed Nov 13 18:12:20 CET 2002 - mfabian@suse.de
- update to 021105
- use x-devel-packages instead of xf86 in # neededforbuild
- use dynamic linking
-------------------------------------------------------------------
Tue Oct 22 21:49:47 CEST 2002 - mfabian@suse.de
- update to 021021 and update documentation to 020910.
-------------------------------------------------------------------
Fri Jul 26 18:12:53 CEST 2002 - mfabian@suse.de
- update to version 020724
- include documentation, remove cidmaps.tar.bz2 and use updated
cidmaps.tgz from the documentation tar ball
-------------------------------------------------------------------
Fri Feb 1 00:26:11 CET 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
-------------------------------------------------------------------
Tue Jan 22 14:47:41 CET 2002 - mfabian@suse.de
- update to version 020121.
- updated cidmaps.tar.bz2
-------------------------------------------------------------------
Wed Sep 5 19:24:25 CEST 2001 - mfabian@suse.de
- adapted for SuSE, version 010905
-------------------------------------------------------------------
Thu May 10 2001 - George Williams <gww@silcom.com>
- My first attempt at rpm, updated to 10 May sources
-------------------------------------------------------------------
Tue May 01 2001 - Scott Pakin <pakin@uiuc.edu>
- Removed (unused) dynamic library files
-------------------------------------------------------------------
Sun Apr 29 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 220401 to 280401.
-------------------------------------------------------------------
Tue Apr 24 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 190401 to 220401.
-------------------------------------------------------------------
Fri Apr 20 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 020401 to 190401.
-------------------------------------------------------------------
Tue Apr 10 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 210301 to 020401.
-------------------------------------------------------------------
Thu Mar 22 2001 Scott Pakin <pakin@uiuc.edu>
- Initial release

8
fontforge.desktop Normal file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Exec=fontforge
Name=FontForge
GenericName=Font Editor
Icon=fontforge
GenericName[de]= Schrifteditor
GenericName[ja]=

3
fontforge.png Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:303f17aef16d9193b209403eb0fb9eaa0bcdbe63600a48885db867bea7827e2d
size 14309

217
fontforge.spec Normal file
View File

@ -0,0 +1,217 @@
#
# spec file for package fontforge (Version 20061025)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: fontforge
%if %{suse_version} > 910
BuildRequires: freetype2-devel giflib-devel libpng-devel libtiff-devel update-desktop-files xorg-x11-devel
%else
BuildRequires: XFree86-devel freetype2-devel libpng-devel libtiff-devel libungif update-desktop-files
%endif
License: BSD License and BSD-like
Group: Productivity/Graphics/Vector Editors
Autoreqprov: on
Obsoletes: PfaEdit
Provides: PfaEdit
Version: 20061025
Release: 1
URL: http://fontforge.sourceforge.net/
Source0: http://ovh.dl.sourceforge.net/sourceforge/fontforge/fontforge_full-20061025.tar.bz2
Source1: http://belnet.dl.sourceforge.net/sourceforge/fontforge/fontforge_htdocs-20061014.tar.bz2
Source2: http://belnet.dl.sourceforge.net/sourceforge/fontforge/fontforge_ja_htdocs-20060822.tar.bz2
Source10: %{name}.desktop
Source11: %name.png
Patch0: docdir.patch
Patch2: invalid-operation-same-variable-used-twice.patch
Patch3: fontforge-strncat.patch
Patch4: bugzilla-221210-locale-variable-used-before-set.patch
Patch5: bugzilla-225616-local-variable-used-before-set.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildPreReq: libjpeg libtiff libpng libungif
Summary: A Font Editor
%description
FontForge allows editing of outline and bitmap fonts. With it, you can
create new fonts or modify old ones. It also converts font formats and
can convert among PostScript (ASCII & binary Type 1, some Type 3s, and
some Type 0s), TrueType, OpenType (Type2), and CID-keyed fonts.
Authors:
--------
George Williams <gww@silcom.com>
Scott Pakin <pakin@uiuc.edu>
%prep
%setup -q -T -n fontforge-%{version} -b 0
%patch0 -p 1 -b .docdir
%patch2 -p 1
%patch3
%patch4 -p 1
%patch5 -p 1
mkdir docs
tar jxvf $RPM_SOURCE_DIR/fontforge_htdocs-20061014.tar.bz2 -C docs
tar jxvf $RPM_SOURCE_DIR/fontforge_ja_htdocs-20060822.tar.bz2 -C docs
tar zxvf docs/cidmaps.tgz
find . -name "*.html" -o -name "*.png" | xargs chmod 644
%build
%{?suse_update_config}
#libtoolize --force
#autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
./configure --prefix=/usr \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
%{_target_cpu}-suse-linux-gnu
make
%install
mkdir -p ${RPM_BUILD_ROOT}{%{_bindir},%{_libdir},%{_mandir}/man1,/usr/share/fontforge}
make -e bindir=$RPM_BUILD_ROOT/usr/bin \
sharedir=$RPM_BUILD_ROOT/usr/share/fontforge \
libdir=$RPM_BUILD_ROOT%{_libdir} \
mandir=$RPM_BUILD_ROOT%{_mandir} \
localedir=$RPM_BUILD_ROOT/usr/share/locale \
install
pushd $RPM_BUILD_ROOT/usr/bin
ln -s fontforge pfaedit
popd
# install CMaps to be able to edit CID-keyed fonts:
install -m 644 Adobe* $RPM_BUILD_ROOT/usr/share/fontforge
%if %suse_version > 820
install -d $RPM_BUILD_ROOT%_datadir/pixmaps
install -m644 $RPM_SOURCE_DIR/%name.png $RPM_BUILD_ROOT%_datadir/pixmaps/%name.png
%find_lang FontForge
%suse_update_desktop_file -i %{name} VectorGraphics
%endif
%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files -f FontForge.lang
%defattr(-,root,root)
%doc AUTHORS VERSION INSTALL LICENSE README* docs
%{_bindir}/*
%{_libdir}/lib*
%{_libdir}/pkgconfig/*
/usr/share/fontforge/
%doc %{_mandir}/man1/*.1*
%if %suse_version > 820
/usr/share/applications/%{name}.desktop
%_datadir/pixmaps/%name.png
%endif
%changelog -n fontforge
* Tue Dec 19 2006 - mfabian@suse.de
- update to 20061025.
fontimage program has been added.
- fix bugzilla #225616 ("local variable used before set").
* Fri Nov 17 2006 - mfabian@suse.de
- Bugzilla #221210: "local variable used before set"
* Mon Nov 06 2006 - ro@suse.de
- fix permissions on icon file
- fix gcc warning for strncat
* Tue Oct 17 2006 - mfabian@suse.de
- update to 20061014.
remove bugzilla-203490-local-variable-used-before-set.patch
(included upstream).
- Fix Bugzilla #211543 ("array subscript out of range).
- Fix invalid operation (like x = x++;)
* Thu Sep 07 2006 - mfabian@suse.de
- fix bugzilla #203490: "local variable used before set".
- add Japanese documentation.
* Wed Sep 06 2006 - mfabian@suse.de
- update to 20060822.
remove bugzilla-197499-local-variable-used-before-set.patch
(included upstream).
* Thu Aug 10 2006 - mfabian@suse.de
- Bugzilla 197499: "local variable used before set".
* Tue Jul 18 2006 - mfabian@suse.de
- update to 20060715.
fixes a crash when building freefont.
* Fri Mar 17 2006 - mfabian@suse.de
- Bugzilla #158759: "locale variable used before set".
(already fixed in latest upstream version).
* Thu Mar 09 2006 - mfabian@suse.de
- Bugzilla #153958: "array subscript out of range".
(already fixed in latest upstream version).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Oct 02 2005 - stbinner@suse.de
- fix capitalization of .desktop GenericName entry
* Thu Aug 04 2005 - mfabian@suse.de
- update to 20050803.
cannot update documentation because the download link for the
documentation is currently dead.
* Wed May 11 2005 - mfabian@suse.de
- update to 20050502.
- all .html and .png files should have mode 644.
- fix fontforge.desktop file (thanks to
Thomas Schraitle<thomas.schraitle@suse.de>).
* Tue Dec 14 2004 - hvogel@suse.de
- install icon
* Thu Nov 11 2004 - ro@suse.de
- fixed file list
* Wed Aug 18 2004 - mfabian@suse.de
- rename: PfaEdit -> fontforge (has been renamed upstream).
- update to 20040808.
* Mon Apr 26 2004 - ro@suse.de
- use no-strict-aliasing
* Thu Feb 26 2004 - mfabian@suse.de
- update to 040224.
* Sat Jan 10 2004 - adrian@suse.de
- build as user
* Sat Aug 23 2003 - mfabian@suse.de
- make it build on older distributions.
* Mon Aug 18 2003 - mfabian@suse.de
- update to 030817.
- add desktop file.
* Fri May 16 2003 - mfabian@suse.de
- update binaries and documentation to 030512
- add .so and .la file to file list
- add "freetype2 freetype2-devel" to neededforbuild
* Wed Feb 12 2003 - mfabian@suse.de
- update binaries and documentation to 030211
* Wed Nov 13 2002 - mfabian@suse.de
- update to 021105
- use x-devel-packages instead of xf86 in # neededforbuild
- use dynamic linking
* Tue Oct 22 2002 - mfabian@suse.de
- update to 021021 and update documentation to 020910.
* Fri Jul 26 2002 - mfabian@suse.de
- update to version 020724
- include documentation, remove cidmaps.tar.bz2 and use updated
cidmaps.tgz from the documentation tar ball
* Fri Feb 01 2002 - ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Tue Jan 22 2002 - mfabian@suse.de
- update to version 020121.
- updated cidmaps.tar.bz2
* Wed Sep 05 2001 - mfabian@suse.de
- adapted for SuSE, version 010905
* Thu May 10 2001 - George Williams <gww@silcom.com>
- My first attempt at rpm, updated to 10 May sources
* Tue May 01 2001 - Scott Pakin <pakin@uiuc.edu>
- Removed (unused) dynamic library files
* Sun Apr 29 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 220401 to 280401.
* Tue Apr 24 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 190401 to 220401.
* Fri Apr 20 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 020401 to 190401.
* Tue Apr 10 2001 - Scott Pakin <pakin@uiuc.edu>
- Upgraded from 210301 to 020401.
Thu Mar 22 2001 Scott Pakin <pakin@uiuc.edu>
- Initial release

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c7c7aab8d5c21876eb2e3eff88428b47642ad99b87f5d6583c1d05a316a5f993
size 3599810

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed0dc2a3373aad43bd4e9930cf7afaa3efd66166e2dcf2ddaf99727988d384f4
size 2211882

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7fab073647edd096aaff93c114f9a4385dc16dec0903c0a92735d531d4d4a49d
size 3200612

View File

@ -0,0 +1,12 @@
diff -ru fontforge-20061014.orig/fontforge/metricsview.c fontforge-20061014/fontforge/metricsview.c
--- fontforge-20061014.orig/fontforge/metricsview.c 2006-09-17 21:58:28.000000000 +0200
+++ fontforge-20061014/fontforge/metricsview.c 2006-10-17 15:27:55.000000000 +0200
@@ -1487,7 +1487,7 @@
break;
}
if ( i!=0 ) {
- for ( kp=kp=mv->vertical ? mv->perchar[i-1].sc->vkerns:mv->perchar[i-1].sc->kerns; kp!=NULL; kp=kp->next ) {
+ for ( kp = mv->vertical ? mv->perchar[i-1].sc->vkerns:mv->perchar[i-1].sc->kerns; kp!=NULL; kp=kp->next ) {
if ( kp->sc==mv->perchar[i].sc ) {
kp->sli = mv->cur_sli;
break;

0
ready Normal file
View File