View | Details | Raw Unified | Return to bug 240680
Collapse All | Expand All

(-)print/fontforge/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	fontforge
4
PORTNAME=	fontforge
5
PORTVERSION=	20190801
5
PORTVERSION=	20190801
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	print
7
CATEGORIES=	print
8
8
9
MAINTAINER=	cyberbotx@cyberbotx.com
9
MAINTAINER=	cyberbotx@cyberbotx.com
(-)print/fontforge/files/patch-fontforgeexe_startui.c (+25 lines)
Line 0 Link Here
1
--- fontforgeexe/startui.c.orig	2019-08-01 08:28:36 UTC
2
+++ fontforgeexe/startui.c
3
@@ -1099,10 +1099,6 @@ int fontforge_main( int argc, char **argv ) {
4
     CheckIsScript(argc,argv); /* Will run the script and exit if it is a script */
5
 					/* If there is no UI, there is always a script */
6
 			                /*  and we will never return from the above */
7
-#ifdef FONTFORGE_CAN_USE_GDK
8
-    gdk_init(&argc, &argv);
9
-    gdk_set_allowed_backends("win32,quartz,x11");
10
-#endif
11
     if ( load_prefs==NULL ||
12
 	    (strcasecmp(load_prefs,"Always")!=0 &&	/* Already loaded */
13
 	     strcasecmp(load_prefs,"Never")!=0 ))
14
@@ -1185,7 +1181,10 @@ int fontforge_main( int argc, char **argv ) {
15
 	}
16
 #endif
17
     }
18
-
19
+#ifdef FONTFORGE_CAN_USE_GDK
20
+    gdk_init(&argc, &argv);
21
+    gdk_set_allowed_backends("win32,quartz,x11");
22
+#endif
23
     ensureDotFontForgeIsSetup();
24
 #if defined(__MINGW32__) && !defined(_NO_LIBCAIRO)
25
     //Load any custom fonts for the user interface

Return to bug 240680