Re: Question about instructionLength of simple glyphs

On Fri, Mar 27, 2015 at 07:56:06PM +0000, Jonathan Kew wrote:
> On 27/3/15 19:31, Levantovsky, Vladimir wrote:
> >Hi Khaled,
> >
> >You mentioned two completely separate cases, and I believe both are sufficiently covered in the spec.
> >1) you have an empty glyph (numberOfContours = 0): in this case, the glyphStream will have nothing in it for this particular glyph;
> >2) you have a simple glyph (numberOfContours > 0): in this case the size of the instructions that need to be read from the instructionStream will be defined by the instructionLength read from the glyphStream.
> >
> >I think the spec is sufficiently clear on this, is it not the case?
> >
> 
> It seems clear enough to me, as steps 5 and 6 in the glyph reconstruction
> process are only performed for simple glyphs (numberOfContours > 0) and for
> composite glyphs (numberOfContours = -1) where FLAG_WE_HAVE_INSTRUCTIONS was
> set. An empty glyph is neither of these.

I had to read the text several times to “see” it, so I think something a
long what Rod suggested would make the text easier to grasp.

Regards,
Khaled

Received on Friday, 27 March 2015 23:49:01 UTC