openbsd-ports/print/fontforge/patches/patch-fontforge_savefontdlg_c
steven 8a35478042 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@
2006-06-18 13:33:25 +00:00

32 lines
1.2 KiB
Plaintext

$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);