freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] uniXXXX glyph names are not recognized.


From: David Turner
Subject: Re: [Devel] uniXXXX glyph names are not recognized.
Date: Mon, 03 Sep 2001 18:27:27 +0200

thanks Artur, I'm committing your patch right now..

Cheers,

- David



Artur Zaprzala a écrit :
> 
> Glyph names like `uniXXXX' are not recognized in Type 1 fonts because of 
> mistakes in
> freetype-2.0.4/src/psnames/psmodule.c (a patch is attached).
> 
> 
> Artur Zaprzala
> 
>   
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> diff -ur freetype-2.0.4-orig/src/psnames/psmodule.c 
> freetype-2.0.4/src/psnames/psmodule.c
> --- freetype-2.0.4-orig/src/psnames/psmodule.c  Wed Jun 27 11:26:44 2001
> +++ freetype-2.0.4/src/psnames/psmodule.c       Sun Jul 29 19:04:35 2001
> @@ -61,7 +61,7 @@
> 
>        FT_Int       count;
>        FT_ULong     value = 0;
> -      const char*  p     = glyph_name + 4;
> +      const char*  p     = glyph_name + 3;
> 
> 
>        for ( count = 4; count > 0; count--, p++ )
> @@ -85,10 +85,9 @@
>            break;
> 
>          value = ( value << 4 ) + d;
> -
> -        if ( count == 0 )
> -          return value;
>        }
> +      if ( count == 0 )
> +        return value;
>      }
> 
>      /* look for a non-initial dot in the glyph name in order to */



reply via email to

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