Question about CFF charstring parsing

View: New views
3 Messages — Rating Filter:   Alert me  

Question about CFF charstring parsing

by Ning Dong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A question about CFF charstring parsing:
According to CFF Technical note #5177, cff_op_put stores a value into a transient array and cff_op_get retrieves a value from that transient array.
In function cff_decoder_parse_charstrings, that two operators are implemented just as described in #5177.
The CFF_DecoderRec_.buildchar is used as transient array and len_buildchar is the length of that array.
But buildchar and len_buildchar were not been initialized. 
Are these two storage operators never used in real world?
 
Anyone know my last question about cff_op_dup?
2009-10-13

Ning Dong

_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: Question about CFF charstring parsing

by Werner LEMBERG :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Anyone know my last question about cff_op_dup?

Please give me some time to answer; I'm abroad and have a lot of other
things to do.


    Werner


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Re: Question about CFF charstring parsing

by Werner LEMBERG :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> A question about CFF charstring parsing: According to CFF Technical
> note #5177, cff_op_put stores a value into a transient array and
> cff_op_get retrieves a value from that transient array.  In function
> cff_decoder_parse_charstrings, that two operators are implemented
> just as described in #5177.  The CFF_DecoderRec_.buildchar is used
> as transient array and len_buildchar is the length of that array.
> But buildchar and len_buildchar were not been initialized.

Oops!  Can you provide a patch?  Maybe it's necessary to map the
arbitrary index values for `put' and `get' to consecutive index values
within `buildchar', e.g.

  put index        buildchar index
     4                  1
  1234345               2
     17                 3
    ...

> Are these two storage operators never used in real world?

I don't know.


    Werner


_______________________________________________
Freetype-devel mailing list
Freetype-devel@...
http://lists.nongnu.org/mailman/listinfo/freetype-devel