import fontforge-20060413

An outline font editor that lets you create your own PostScript, TrueType,
OpenType, CID-keyed, Multi-Master, CFF, SVG and bitmap (BDF) fonts, or
edit existing ones. It also lets you convert one format to another.
FontForge has support for many Macintosh font formats.

joint work with Matthias Kilian <kili at outback.escape.de>

ok bernd@
This commit is contained in:
steven 2006-06-18 13:33:25 +00:00
parent 5cd579951f
commit 8a35478042
16 changed files with 309 additions and 0 deletions

52
print/fontforge/Makefile Normal file
View File

@ -0,0 +1,52 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
SHARED_ONLY= Yes
COMMENT= "vector font editor/converter"
DISTNAME= fontforge_full-20060413
PKGNAME= ${DISTNAME:S,_full,,}
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS= gdraw 1.9 \
gunicode 2.2
CATEGORIES= print
HOMEPAGE= http://fontforge.sourceforge.net/
MAINTAINER= Matt Jibson <dolmant@gmail.com>
# GPL
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=fontforge/}
WANTLIB= ICE SM X11 Xi c freetype m xkbui z
MODULES= devel/gettext
LIB_DEPENDS= png.5::graphics/png \
tiff.38::graphics/tiff \
ungif.5::graphics/libungif \
jpeg.62::graphics/jpeg \
xml2.9::textproc/libxml
WRKDIST= ${WRKDIR}/${DISTNAME:S,_full,,}
AUTOCONF_VERSION= 2.59
CONFIGURE_STYLE= gnu autoconf no-autoheader dest
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib -lintl -liconv"
CONFIGURE_ARGS= --with-regular-link
USE_GMAKE= Yes
USE_LIBTOOL= Yes
NO_REGRESS= Yes
post-extract:
find ${WRKSRC} -name \*.orig | xargs rm
.include <bsd.port.mk>

4
print/fontforge/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (fontforge_full-20060413.tar.bz2) = 5058e33dbbd5c0ca344dc73c6ff7a428
RMD160 (fontforge_full-20060413.tar.bz2) = f9d098e9135f0074beac2ea919177f1dbb985d0e
SHA1 (fontforge_full-20060413.tar.bz2) = b99341f2f1f02dbfd9182bd38afb805125e36ea2
SIZE (fontforge_full-20060413.tar.bz2) = 3226436

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-Makefile_dynamic_in,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- Makefile.dynamic.in.orig Sat Apr 8 21:24:14 2006
+++ Makefile.dynamic.in Sun Jun 11 13:21:21 2006
@@ -53,7 +53,6 @@ install_libs: libs
$(LIBTOOL) --mode=install $(INSTALL) -c libgdraw.la $(libdir)/libgdraw.la
$(LIBTOOL) --mode=install $(INSTALL) -c libgunicode.la $(libdir)/libgunicode.la
#cp .libs/*.so.*.* $(libdir)
- $(LIBTOOL) --mode=finish $(libdir)
mkdir -p $(libdir)/pkgconfig
$(LIBTOOL) --mode=install $(INSTALL) -c fontforge.pc $(libdir)/pkgconfig

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Unicode_Makefile_dynamic_in,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- Unicode/Makefile.dynamic.in.orig Fri Sep 30 15:10:58 2005
+++ Unicode/Makefile.dynamic.in Mon Jun 12 20:56:00 2006
@@ -16,7 +16,7 @@ libgunicode_OBJECTS = ArabicForms.lo al
cjk.lo memory.lo ucharmap.lo unialt.lo ustring.lo utype.lo \
usprintf.lo gwwiconv.lo
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
+Incs = -I$(top_srcdir)/inc
CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ @DEFS@
../libgunicode.la: $(libgunicode_OBJECTS)

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-configure_in,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- configure.in.orig Sun Apr 9 18:30:21 2006
+++ configure.in Wed Jun 14 21:52:36 2006
@@ -163,22 +163,15 @@ AC_CHECK_FILE(/usr/include/libxml2/libxm
AC_CHECK_FILE(/usr/local/include/libxml2/libxml,[CFLAGS="$CFLAGS -I/usr/local/include -I/usr/local/include/libxml2/"],
AC_DEFINE(_NO_LIBXML))])
-dnl Some old versions of lib(un)gif don't work for us, they've got the
+dnl Some old versions of libungif don't work for us, they've got the
dnl Function argument in the wrong place. So check the header files.
-dnl check for both libgif and libungif, I think they use the same args.
-AC_CHECK_LIB(gif, DGifOpenFileName, [
+AC_CHECK_LIB(ungif, DGifOpenFileName, [
echo -n checking for ExtensionBlock.Function in gif_lib.h...
AC_TRY_COMPILE([#include <gif_lib.h>], [ ExtensionBlock foo; foo.Function=3; ], echo " " yes , [echo " " no
ac_cv_lib_ungif_DGifOpenFileName=no
AC_DEFINE(_NO_LIBUNGIF)])
-] , [
- AC_CHECK_LIB(ungif, DGifOpenFileName, [
- echo -n checking for ExtensionBlock.Function in gif_lib.h...
- AC_TRY_COMPILE([#include <gif_lib.h>], [ ExtensionBlock foo; foo.Function=3; ], echo " " yes , [echo " " no
- ac_cv_lib_ungif_DGifOpenFileName=no
- AC_DEFINE(_NO_LIBUNGIF)])
- ] , AC_DEFINE(_NO_LIBUNGIF))])
+] , AC_DEFINE(_NO_LIBUNGIF))
dnl some people have installed libraries without include files.
dnl bloody useless thing to do, but check for both (don't need to check for

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-fontforge_charinfo_c,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- fontforge/charinfo.c.orig Mon Jun 12 16:14:30 2006
+++ fontforge/charinfo.c Mon Jun 12 16:14:53 2006
@@ -4288,13 +4288,13 @@ return( true );
static int CI_NameCheck(const unichar_t *name) {
int bad, questionable;
+ extern int allow_utf8_glyphnames;
#if defined(FONTFORGE_CONFIG_GDRAW)
char *buts[3];
buts[0] = _("_Yes"); buts[1]=_("_No"); buts[2] = NULL;
#elif defined(FONTFORGE_CONFIG_GTK)
static char *buts[] = { GTK_STOCK_YES, GTK_STOCK_CANCEL, NULL };
#endif
- extern int allow_utf8_glyphnames;
if ( uc_strcmp(name,".notdef")==0 ) /* This name is a special case and doesn't follow conventions */
return( true );

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-fontforge_fontinfo_c,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- fontforge/fontinfo.c.orig Mon Jun 12 12:49:10 2006
+++ fontforge/fontinfo.c Mon Jun 12 12:49:42 2006
@@ -5361,6 +5361,7 @@ return(true);
(sf->xuid!=NULL && uc_strcmp(txt,sf->xuid)==0) ||
ttfuniqueidmatch(sf,d)) ) {
char *buts[4];
+ int ans;
buts[0] = _("Change");
buts[1] = _("Retain");
#if defined(FONTFORGE_CONFIG_GDRAW)
@@ -5369,7 +5370,7 @@ return(true);
buts[2] = GTK_STOCK_CANCEL;
#endif
buts[3] = NULL;
- int ans = gwwv_ask(_("Change UniqueID?"),(const char **) buts,0,2,_("You have changed this font's name without changing the UniqueID (or XUID).\nThis is probably not a good idea, would you like me to\ngenerate a random new value?"));
+ ans = gwwv_ask(_("Change UniqueID?"),(const char **) buts,0,2,_("You have changed this font's name without changing the UniqueID (or XUID).\nThis is probably not a good idea, would you like me to\ngenerate a random new value?"));
if ( ans==2 ) {
GDrawSetCursor(gw,ct_pointer);
return(true);

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-fontforge_openfontdlg_c,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- fontforge/openfontdlg.c.orig Mon Jun 12 15:48:06 2006
+++ fontforge/openfontdlg.c Mon Jun 12 15:49:26 2006
@@ -158,7 +158,7 @@ return( false );
struct gfc_data *d = GDrawGetUserData(gw);
return( GGadgetDispatchEvent((GGadget *) (d->gfc),event));
} else if ( event->type == et_resize ) {
- GRect r, size;;
+ GRect r, size;
struct gfc_data *d = GDrawGetUserData(gw);
GDrawGetSize(gw,&size);
GGadgetGetSize(d->gfc,&r);

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-fontforge_parsettf_c,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- fontforge/parsettf.c.orig Mon Jun 12 13:48:01 2006
+++ fontforge/parsettf.c Mon Jun 12 13:48:16 2006
@@ -4277,12 +4277,13 @@ return( 0 );
info->glyphlocations_start!=0 && info->glyph_start!=0 &&
info->cff_start!=0 ) {
char *buts[4];
+ int choice;
buts[0] = _("TTF 'glyf'");
buts[1] = _("OTF 'CFF '");
buts[3] = NULL;
#if defined(FONTFORGE_CONFIG_GDRAW)
buts[2] = _("_Cancel");
- int choice = gwwv_ask(_("Pick a font, any font..."),(const char **) buts,0,2,_("This font contains both a TrueType 'glyf' table and an OpenType 'CFF ' table. FontForge can only deal with one at a time, please pick which one you want to use"));
+ choice = gwwv_ask(_("Pick a font, any font..."),(const char **) buts,0,2,_("This font contains both a TrueType 'glyf' table and an OpenType 'CFF ' table. FontForge can only deal with one at a time, please pick which one you want to use"));
#elif defined(FONTFORGE_CONFIG_GTK)
buts[2] = GTK_STOCK_CANCEL;
int choice = gwwv_ask(_("Pick a font, any font..."),(const char **) buts,0,2,_("This font contains both a TrueType 'glyf' table and an OpenType 'CFF ' table. FontForge can only deal with one at a time, please pick which one you want to use"));

View File

@ -0,0 +1,31 @@
$OpenBSD: patch-fontforge_savefontdlg_c,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- fontforge/savefontdlg.c.orig Mon Jun 12 14:34:42 2006
+++ fontforge/savefontdlg.c Mon Jun 12 14:40:59 2006
@@ -2218,6 +2218,13 @@ static void DoSave(struct gfc_data *d,un
struct sflist *sfs=NULL, *cur, *last=NULL;
static int psscalewarned=0, ttfscalewarned=0, psfnlenwarned=0;
int flags;
+ struct sflist *sfl;
+ char **former;
+ NameList *rename_to;
+ GTextInfo *ti = GGadgetGetListItemSelected(d->rename);
+ char *nlname = u2utf8_copy(ti->text);
+ extern NameList *force_names_when_saving;
+ int notdef_pos = SFFindNotdef(d->sf,-1);
#if defined(FONTFORGE_CONFIG_GDRAW)
char *buts[3];
buts[0] = _("_Yes");
@@ -2226,13 +2233,6 @@ static void DoSave(struct gfc_data *d,un
#elif defined(FONTFORGE_CONFIG_GTK)
static char *buts[] = { GTK_STOCK_YES, GTK_STOCK_NO, NULL };
#endif
- struct sflist *sfl;
- char **former;
- NameList *rename_to;
- GTextInfo *ti = GGadgetGetListItemSelected(d->rename);
- char *nlname = u2utf8_copy(ti->text);
- extern NameList *force_names_when_saving;
- int notdef_pos = SFFindNotdef(d->sf,-1);
rename_to = NameListByName(nlname);
free(nlname);

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-fontforge_splinesaveafm_c,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- fontforge/splinesaveafm.c.orig Mon Jun 12 18:44:10 2006
+++ fontforge/splinesaveafm.c Mon Jun 12 18:44:46 2006
@@ -190,7 +190,7 @@ static void CheckMMAfmFile(SplineFont *s
int LoadKerningDataFromAmfm(SplineFont *sf, char *filename,EncMap *map) {
FILE *file=NULL;
- char buffer[280], *pt, lastname[256];
+ char buffer[280], *pt, lastname[257];
int index, i;
MMSet *mm = sf->mm;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-gdraw_Makefile_dynamic_in,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- gdraw/Makefile.dynamic.in.orig Fri Sep 30 15:06:22 2005
+++ gdraw/Makefile.dynamic.in Mon Jun 12 20:30:20 2006
@@ -31,7 +31,7 @@ libgdraw_OBJECTS = choosericons.lo divi
gresourceimage.lo gsavefiledlg.lo gscrollbar.lo gtabset.lo \
gtextfield.lo gtextinfo.lo gwidgets.lo gxdraw.lo dynamic.lo
-Incs = -I$(top_srcdir)/inc -I/usr/pkg/include -I/usr/pkg/include/giflib
+Incs = -I$(top_srcdir)/inc
CFLAGS = @CFLAGS@ @CPPFLAGS@ $(Incs) @WFLAGS@ $(X_CFLAGS) -DNOTHREADS @DEFS@ -DLIBDIR='"$(libdir)"'
../libgdraw.la: $(libgdraw_OBJECTS)

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-gdraw_gpstxtinit_c,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- gdraw/gpstxtinit.c.orig Mon Jun 12 18:37:39 2006
+++ gdraw/gpstxtinit.c Mon Jun 12 18:37:47 2006
@@ -132,7 +132,7 @@ return( ch );
static void parse_CharMetric_line(struct temp_font *tf, char *line) {
int ch, ch2, wid; float a1, a2, a3, a4;
- char name[200], *pt;
+ char name[201], *pt;
while ( isspace(*line)) ++line;
if ( *line=='\0' )

View File

@ -0,0 +1,44 @@
$OpenBSD: patch-inc_basics_h,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
--- inc/basics.h.orig Mon Jun 12 19:02:02 2006
+++ inc/basics.h Mon Jun 12 19:09:28 2006
@@ -32,6 +32,7 @@
#endif
#include <stdio.h> /* for NULL */
+#include <stdint.h>
#include <stdlib.h> /* for free */
#include <limits.h>
@@ -40,25 +41,15 @@
#define forever for (;;)
-#if INT_MAX==2147483647
-typedef int int32;
-typedef unsigned int uint32;
-#else
-typedef long int32;
-typedef unsigned long uint32;
-#endif
- /* I don't know of any systems where the following are not true */
-typedef short int16;
-typedef unsigned short uint16;
-typedef signed char int8;
-typedef unsigned char uint8;
+typedef int32_t int32;
+typedef uint32_t uint32;
+typedef int16_t int16;
+typedef uint16_t uint16;
+typedef int8_t int8;
+typedef uint8_t uint8;
/* An integral type which can hold a pointer */
-#if defined(__WORDSIZE) && __WORDSIZE==64
-typedef long intpt;
-#else
-typedef int intpt;
-#endif
+typedef intptr_t intpt;
typedef uint16 unichar_t;

View File

@ -0,0 +1,4 @@
An outline font editor that lets you create your own PostScript, TrueType,
OpenType, CID-keyed, Multi-Master, CFF, SVG and bitmap (BDF) fonts, or
edit existing ones. It also lets you convert one format to another.
FontForge has support for many Macintosh font formats.

18
print/fontforge/pkg/PLIST Normal file
View File

@ -0,0 +1,18 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/06/18 13:33:25 steven Exp $
bin/fontforge
bin/sfddiff
lib/libgdraw.a
lib/libgdraw.la
@lib lib/libgdraw.so.${LIBgdraw_VERSION}
lib/libgunicode.a
lib/libgunicode.la
@lib lib/libgunicode.so.${LIBgunicode_VERSION}
lib/pkgconfig/fontforge.pc
@man man/man1/fontforge.1
@man man/man1/sfddiff.1
share/fontforge/
share/locale/es/LC_MESSAGES/FontForge.mo
share/locale/fr/LC_MESSAGES/FontForge.mo
share/locale/it/LC_MESSAGES/FontForge.mo
share/locale/ja/LC_MESSAGES/FontForge.mo
share/locale/ru/LC_MESSAGES/FontForge.mo