[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Devel] patch cffgload.c
From: |
Dirck Blaskey |
Subject: |
[Devel] patch cffgload.c |
Date: |
Thu, 30 Jan 2003 16:34:48 -0800 |
Hello FreeTypists...
Here is a small patch to cffgload.
I've got a an embedded cff font subset in a pdf file that was bombing in the
hinter because glyph->points is null. My guess is there is a bug in the font,
probably some kind of spurious endchar signal, but I honestly don't know.
This patch keeps from going down into that code in this case -
the bomb goes away, and the glyph renders ok.
I can provide the font fragment if anyone is interested.
d
Index: cffgload.c
===================================================================
RCS file: /cvs/freetype/freetype2/src/cff/cffgload.c,v
retrieving revision 1.43
diff -u -r1.43 cffgload.c
--- cffgload.c 2002/09/27 11:09:22 1.43
+++ cffgload.c 2003/01/31 00:29:46
@@ -1767,10 +1767,11 @@
goto Syntax_Error;
/* apply hints to the loaded glyph outline now */
- hinter->apply( hinter->hints,
- builder->current,
- (PSH_Globals)builder->hints_globals,
- builder->hint_flags );
+ if (builder->current->n_points)
+ hinter->apply( hinter->hints,
+ builder->current,
+ (PSH_Globals)builder->hints_globals,
+ builder->hint_flags );
}
/* add current outline to the glyph slot */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Devel] patch cffgload.c,
Dirck Blaskey <=