[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] NPUSHW in skipcode().
From: |
suzuki toshiya |
Subject: |
Re: [ft] NPUSHW in skipcode(). |
Date: |
Mon, 17 Sep 2012 15:19:52 +0900 |
User-agent: |
Mozilla-Thunderbird 2.0.0.12 (X11/20080406) |
Dear Dakai,
Thanks! I was showing all characters with ftview and
wondering why I could not receive any errors :-),
Regards,
mpsuzuki
Dakai Liu wrote:
> Hi Werner and Mr. Suzuki,
>
> Sorry, This IS a false alarm. The problem does happen in version 2.1.4, which
> is what we are using. And the 2.4.10 reference are out of hasted peruse.
> My apology.
>
>
> Regards,
> Dakai
> ________________________________________
> From: Werner LEMBERG address@hidden
> Sent: Monday, 17 September 2012 3:55 PM
> To: Dakai Liu
> Cc: address@hidden
> Subject: Re: [ft] NPUSHW in skipcode().
>
>> I have encountered a byte interpreter exception when rendering a
>> Japanese font. I think I may have found a bug in SkipCode() function
>> in ttinterp.c. On version 2.4.10, in ttinterp.c, at line#4477,
>>
>> CUR.length = 2 - CUR.length * CUR.code[CUR.IP + 1];
>>
>> The NPUSHW needs to double the offset:
>>
>> CUR.length = 2 - CUR.length * CUR.code[CUR.IP + 1]*2;
>
> Thanks for the report, however, I don't think this is the right fix:
> `CUR.length' is -1 for NPUSHB, and -2 for NPUSHW, so the offset is
> already doubled.
>
> Can you send me the offending font offline, together with instructions
> (ideally for ftview or a similar demo program) how to reproduce your
> problem?
>
>
> Werner
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype