freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] issue with ArialMT in 2.1.9


From: Werner LEMBERG
Subject: Re: [ft-devel] issue with ArialMT in 2.1.9
Date: Thu, 10 Feb 2005 08:03:36 +0100 (CET)

> The problem is that when freetype tries to render the space
> character, it finds only one instruction which is 'closepath' and
> generates a syntax error saying that there is no current path.

Below a patch which is now in the CVS.


    Werner


PS: I expect that the CVS is publicly available again soon.


======================================================================


--- t1decode.c.old      2004-05-13 14:59:59.000000000 +0200
+++ t1decode.c  2005-02-10 07:42:49.345349280 +0100
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    PostScript Type 1 decoding routines (body).                          */
 /*                                                                         */
-/*  Copyright 2000-2001, 2002, 2003, 2004 by                               */
+/*  Copyright 2000-2001, 2002, 2003, 2004, 2005 by                         */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -796,7 +796,8 @@
           FT_TRACE4(( " closepath" ));
 
           close_contour( builder );
-          if ( builder->parse_state != T1_Parse_Have_Path )
+          if ( !( builder->parse_state == T1_Parse_Have_Path   ||
+                  builder->parse_state == T1_Parse_Have_Moveto ) )
             goto Syntax_Error;
           builder->parse_state = T1_Parse_Have_Width;
           break;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]