freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Problematic font


From: Peter Hunter
Subject: [ft-devel] Problematic font
Date: Wed, 24 Mar 2010 11:09:29 +1100

Hi, I've been using Freetype for quite some time now, great product

I've come across a TrueType font that has a bad version number (0x200 instead 
of 0x00020000) in the eblc table. The font appears to be Ok otherwise, so I'm 
including this patch in the hope of getting it included in the next release
Not familiar with diff, so I hope this is the correct format, as you can see 
the patch is quite straight forward

--- ttsbit.c    2010-03-24 09:41:54.691698400 +1100
+++ ttsbit_new.c        2010-03-24 10:11:31.111476300 +1100
@@ -491,7 +491,7 @@
     FT_FRAME_EXIT();
 
     /* check version number and strike count */
-    if ( version     != 0x00020000L ||
+    if ( ((version     != 0x00020000L) && (version     != 0x00000200L)) ||
          num_strikes >= 0x10000L    )
     {
       FT_ERROR(( "tt_face_load_sbit_strikes: invalid table version\n" ));

Peter Hunter





reply via email to

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