freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Question about CFF arithmetic operator dup


From: Ning Dong
Subject: [ft-devel] Question about CFF arithmetic operator dup
Date: Fri, 9 Oct 2009 17:29:18 +0800

Hi,
 
I'm checking the cff_decoder_parse_charstrings function in cffgload.c of FT239.
 
According to CFF technical note #5177, operator "dup" should consume one element and put two elements to arguement stack:
dup     any dup(12 27) any any
 
But in cff_decoder_parse_charstrings, the codes like this:
        case cff_op_dup:
          FT_TRACE4(( " dup\n" ));
          args[1] = args[0];
          args++;                //should be args+=2?
          break;
Only one element put to arguement stack.
 
Is this a bug?
FT2310 is the same.
2009-10-09

Ning Dong

reply via email to

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