openbsd-ports/print/fontforge/patches/patch-fontforge_print_c
kili 7f3711b0ff Update to fontforge-20110222.
Let it build with png-1.5 (from naddy@, who surely went blind on it).

While here, patch away some weird attempts to get something meaningful
out of code like this (yes, I show it to you all, you have to share
the pain):

    if ( timezone==0 )
        fprintf( pi->out, "Z)\n" );
    else
        fprintf( pi->out, "%+02d')\n", (int) timezone/3600 );   /* doesn't handle half-hour zones */

That's the address of timezone(3), divided by 3600 m(

ok naddy@
2011-07-08 19:04:05 +00:00

16 lines
701 B
Plaintext

$OpenBSD: patch-fontforge_print_c,v 1.1 2011/07/08 19:04:05 kili Exp $
--- fontforge/print.c.orig Fri Feb 18 22:33:20 2011
+++ fontforge/print.c Fri Jul 8 17:05:49 2011
@@ -1056,10 +1056,7 @@ static void dump_pdfprologue(PI *pi) {
tm = localtime(&now);
fprintf( pi->out, " /CreationDate (D:%4d%02d%02d%02d%02d",
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min );
- if ( timezone==0 )
- fprintf( pi->out, "Z)\n" );
- else
- fprintf( pi->out, "%+02d')\n", (int) timezone/3600 ); /* doesn't handle half-hour zones */
+ fprintf( pi->out, "Z)\n" );
if ( author!=NULL )
fprintf( pi->out, " /Author (%s)\n", author );
fprintf( pi->out, ">>\n" );