freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] Crash in t42


From: Roberto Alameda
Subject: Re: [Devel] Crash in t42
Date: 19 Jun 2002 20:10:58 +0200

On Fri, 2002-06-14 at 21:10, Roberto Alameda wrote:
> On Wed, 2002-06-12 at 10:42, Werner LEMBERG wrote:
> > 
> > I fear the release has been done too early :-(  I get the following
> > crash using arial.t42:
> > 

Hi!

The following patch makes the type42 driver work again.

Roberto



===================================================================
RCS file: /cvs/freetype/freetype2/src/type42/t42objs.c,v
retrieving revision 1.4
diff -u -r1.4 t42objs.c
--- t42objs.c   2002/06/12 08:43:58     1.4
+++ t42objs.c   2002/06/19 18:10:05
@@ -705,18 +705,7 @@
   }
 

-  static void
-  t42_check_size_change( FT_Face  face )
-  {
-    FT_Face  tt_face = ((T42_Face)face)->ttf_face;
-    FT_Size  tt_size = ((T42_Size)face->size)->ttsize;
-    
 
-    if ( tt_face->size != tt_size )
-      FT_Activate_Size( tt_size );
-  }
-
-
   FT_LOCAL_DEF( FT_Error )
   T42_Size_SetChars( T42_Size    size,
                      FT_F26Dot6  char_width,
@@ -728,7 +717,7 @@
     T42_Face  t42face = (T42_Face)face;
 

-    t42_check_size_change( t42face->ttf_face );
+    FT_Activate_Size(size->ttsize);
     
     return FT_Set_Char_Size( t42face->ttf_face,
                              char_width,
@@ -747,7 +736,7 @@
     T42_Face  t42face = (T42_Face)face;
 

-    t42_check_size_change( t42face->ttf_face );
+    FT_Activate_Size(size->ttsize);
     
     return FT_Set_Pixel_Sizes( t42face->ttf_face,
                                pixel_width,
@@ -796,11 +785,8 @@
     FT_Error         error;
     T42_GlyphSlot    t42slot = (T42_GlyphSlot)glyph;
     T42_Size         t42size = (T42_Size)size;
-    FT_Face          tt_face = ((T42_Face) glyph->face)->ttf_face;
     FT_Driver_Class  ttclazz = ((T42_Driver)glyph->face->driver)->ttclazz;
 
-
-    t42_check_size_change( tt_face );
 
     ft_glyphslot_clear( t42slot->ttslot );
     error = ttclazz->load_glyph( t42slot->ttslot,





reply via email to

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