1 Propagate source font modification time to svg during conversion. Similar to
2 what upstream commit 95a470e941d9a20fbdaca51334e8b6b9d93cfae4 did for TTF
5 Submitted upstream at http://github.com/fontforge/fontforge/pull/2696
10 #include "fontforgevw.h"
17 @@ -62,7 +61,6 @@ static int svg_outfontheader(FILE *file, SplineFont *sf,int layer) {
19 char *hash, *hasv, ch;
22 const char *author = GetAuthor();
24 memset(&info,0,sizeof(info));
25 @@ -78,9 +76,8 @@ static int svg_outfontheader(FILE *file, SplineFont *sf,int layer) {
26 fprintf( file, "\n-->\n" );
28 fprintf( file, "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\">\n" );
30 fprintf( file, "<metadata>\nCreated by FontForge %d at %s",
31 - FONTFORGE_VERSIONDATE_RAW, ctime(&now) );
32 + FONTFORGE_VERSIONDATE_RAW, ctime((time_t*)&sf->modificationtime) );
34 fprintf(file," By %s\n", author);