Package: fontforge Version: 0.0.20051205-0.1 Tags: patch The version of fontforge currently in Debian, describing itself as `0.0.20051205-0.1', has a bug in tottf.c where if you ask for `Show Grid Fit' in a very small font, it crashes. The enclosed patch fixes this.
Note that I present the same tiny patch two ways: once as required by the mad patch system used in the Debian fontforge source package, and once as a plain diff against the fontforge source. (This bug was reported by an Ubuntu user at https://launchpad.net/distros/ubuntu/+source/fontforge/+bug/31939 and I have just uploaded this fix to Ubuntu Dapper.) Regards, Ian. --- fontforge-0.0.20051205.orig/debian/fontforge-patches/008_FigureFullMetricsEmptyFont.diff +++ fontforge-0.0.20051205/debian/fontforge-patches/008_FigureFullMetricsEmptyFont.diff @@ -0,0 +1,11 @@ +--- fontforge-20051205/fontforge/tottf.c~ 2005-12-02 00:59:23.000000000 +0000 ++++ fontforge-20051205/fontforge/tottf.c 2006-04-06 17:33:03.000000000 +0100 +@@ -575,7 +575,7 @@ + + lasti = lastv = gi->gcnt-1; + for ( i=gi->gcnt-1; i>3 && gi->bygid[i]==-1; --i ); +- if ( i!=2 ) { ++ if ( i>2 ) { + width = sf->glyphs[gi->bygid[i]]->width; + vwidth = sf->glyphs[gi->bygid[i]]->vwidth; + lasti = lastv = i; --- fontforge-20051205/fontforge/tottf.c~ 2005-12-02 00:59:23.000000000 +0000 +++ fontforge-20051205/fontforge/tottf.c 2006-04-06 17:33:03.000000000 +0100 @@ -575,7 +575,7 @@ lasti = lastv = gi->gcnt-1; for ( i=gi->gcnt-1; i>3 && gi->bygid[i]==-1; --i ); - if ( i!=2 ) { + if ( i>2 ) { width = sf->glyphs[gi->bygid[i]]->width; vwidth = sf->glyphs[gi->bygid[i]]->vwidth; lasti = lastv = i; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

