You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
3.0 KiB
97 lines
3.0 KiB
Index: fontforge/cvexport.c |
|
--- fontforge/cvexport.c.orig 2018-12-29 22:57:54.000000000 +0100 |
|
+++ fontforge/cvexport.c 2019-04-22 13:03:07.522747000 +0200 |
|
@@ -232,7 +232,7 @@ |
|
fprintf( pdf, " /CreationDate (D:%04d%02d%02d%02d%02d%02d", |
|
1900+tm->tm_year, tm->tm_mon+1, tm->tm_mday, |
|
tm->tm_hour, tm->tm_min, tm->tm_sec ); |
|
-#ifdef _NO_TZSET |
|
+#if 1 |
|
fprintf( pdf, "Z)\n" ); |
|
#else |
|
tzset(); |
|
Index: fontforge/parsettf.c |
|
--- fontforge/parsettf.c.orig 2019-04-22 13:00:47.000000000 +0200 |
|
+++ fontforge/parsettf.c 2019-04-22 13:03:07.523413000 +0200 |
|
@@ -58,6 +58,8 @@ |
|
#include "ttf.h" |
|
#include "scripting.h" |
|
|
|
+#define getsid fontforge_getsid |
|
+ |
|
char *SaveTablesPref; |
|
int ask_user_for_cmap = false; |
|
|
|
Index: fontforge/print.c |
|
--- fontforge/print.c.orig 2019-04-22 13:00:47.000000000 +0200 |
|
+++ fontforge/print.c 2019-04-22 13:03:07.523782000 +0200 |
|
@@ -1165,7 +1165,7 @@ |
|
} |
|
fprintf( pi->out, " /CreationDate (D:%04d%02d%02d%02d%02d%02d", |
|
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec ); |
|
-#ifdef _NO_TZSET |
|
+#if 1 |
|
fprintf( pi->out, "Z)\n" ); |
|
#else |
|
if ( timezone==0 || getenv("SOURCE_DATE_EPOCH") ) |
|
Index: fontforge/splinechar.c |
|
--- fontforge/splinechar.c.orig 2019-04-22 13:00:47.000000000 +0200 |
|
+++ fontforge/splinechar.c 2019-04-22 13:03:07.524125000 +0200 |
|
@@ -264,6 +264,7 @@ |
|
if ( sp->next==NULL || rsp->next==NULL ) |
|
break; |
|
sp = sp->next->to; |
|
+ if (rsp->next != NULL) |
|
rsp = rsp->next->to; |
|
} |
|
} |
|
Index: fontforge/splinesaveafm.c |
|
--- fontforge/splinesaveafm.c.orig 2018-01-02 10:22:09.000000000 +0100 |
|
+++ fontforge/splinesaveafm.c 2019-04-22 13:03:07.524487000 +0200 |
|
@@ -487,6 +487,7 @@ |
|
(*gvbase)->part_cnt = cnt; |
|
(*gvbase)->parts = calloc(cnt,sizeof(struct gv_part)); |
|
for ( j=0; j<cnt; ++j ) { |
|
+ if ( bats[j]!=NULL ) { |
|
DBounds b; |
|
bigreal len; |
|
SplineCharFindBounds(bats[j],&b); |
|
@@ -500,6 +501,7 @@ |
|
(*gvbase)->parts[j].endConnectorLength = len/4; |
|
(*gvbase)->parts[j].fullAdvance = len; |
|
} |
|
+ } |
|
} |
|
|
|
#define BigEndianWord(pt) ((((uint8 *) pt)[0]<<24) | (((uint8 *) pt)[1]<<16) | (((uint8 *) pt)[2]<<8) | (((uint8 *) pt)[3])) |
|
Index: fontforge/ufo.c |
|
--- fontforge/ufo.c.orig 2019-04-22 13:00:47.000000000 +0200 |
|
+++ fontforge/ufo.c 2019-04-22 13:03:07.525037000 +0200 |
|
@@ -797,6 +797,7 @@ |
|
// dict is the Python dictionary from which to extract data. |
|
// target is the xml node to which to add the contents of that dict. |
|
// exclusions is a NULL-terminated array of strings naming keys to exclude. |
|
+#ifndef _NO_PYTHON |
|
PyObject *items, *key, *value; |
|
int i, len; |
|
char *str; |
|
@@ -823,6 +824,7 @@ |
|
// "<...>...</...>" |
|
Py_DECREF(item); item = NULL; |
|
} |
|
+#endif |
|
return target; |
|
} |
|
#endif |
|
Index: inc/gfile.h |
|
--- inc/gfile.h.orig 2019-04-22 13:00:47.000000000 +0200 |
|
+++ inc/gfile.h 2019-04-22 13:03:07.803429000 +0200 |
|
@@ -32,6 +32,8 @@ |
|
/* For mode_t */ |
|
#include <sys/types.h> |
|
|
|
+#include <fcntl.h> |
|
+ |
|
/* home directories for fontforge */ |
|
enum { Cache, Config, Data }; |
|
|
|
|