freetype-devel
[Top][All Lists]
Advanced

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

Re: CID + CFF drivers available


From: Yamano-uchi, Hidetoshi
Subject: Re: CID + CFF drivers available
Date: Sat, 03 Jun 2000 00:58:18 +0900

Hello,

From: Werner LEMBERG <address@hidden>
Subject: Re: CID + CFF drivers available
Date: Fri, 02 Jun 2000 06:31:44 +0000 (GMT)
Message-ID: <address@hidden>

>   T2.New_CFF_Font: no charstrings offset
> 
> As mentioned in another mail, T2_Parser_Run() doesn't get any
> reasonable results (and I don't know enough about CFFs yet to give
> more hints about the reason).

When it uses with HeiseiKakuGo-W5-Acro, T2_Parser_Run() may not
extract any datas.  But I don't know why....

./ftview 20 HeiseiKakuGo-W5-Acro
248 248 141 12 30 1 248 2 248 3 248 4 47 251 250 250 5 140 150 29 14 30 31 29 
12 35 248 15 249 17 248 12 37 29 12 36 T2.New_CFF_Font: no charstrings offset !!
Not a valid CID-keyed font

--- t2parse.c (with some modifications for debug)
  LOCAL_FUNC
  FT_Error  T2_Parser_Run( T2_Parser*  parser,
                           FT_Byte*    start,
                           FT_Byte*    limit )
  {
(snip)
    while (p < limit)
    {
      FT_Byte  v = *p;
    {
      FT_Byte  v = *p;   
+     printf("%d ", v);
      if ( v >= 27 || v != 31 )
      {
(snip)
      }
      else
      {
        /* this is not a number, hence it's an operator. Compute its code */
        /* and look for it in our current list..                          */
        FT_UInt                  code;
        FT_Int                   num_args = parser->top - parser->stack;
        const T2_Field_Handler*  field;

        /* first of all, a trivial check */
        if ( num_args < 1 ) goto Stack_Underflow;

+       printf("\n%d", v);
---


----- Yamano-uchi, Hidetoshi


reply via email to

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