freetype
[Top][All Lists]
Advanced

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

Re: [ft] Extracting sub-glyph transformation


From: Werner LEMBERG
Subject: Re: [ft] Extracting sub-glyph transformation
Date: Fri, 31 Aug 2018 14:26:23 +0200 (CEST)

> Thanks for the comfirmatoon; those index values are they valid for
> using as indices into the parent FT_Outline.points array?

It's a cumulative process.

(1) Start with an empty outline.

(2) Take subglyph 0 (with n0 points having indices 0, 1, 2, ..., n0-1)
    and add it according to the subglyph flags (for example, the glyph
    might transformed and translated).

(3) Add subglyph 1 (with n1 points having indices 0, 1, 2, ..., n1-1)
    and add it according to the subglyph flags.  The merger of
    subglyphs 0 and 1 has n0 + n1 points, with indices 0, 1, 2, ...,
    n0+n1-1)

Repeat (3) until you are done.


    Werner



reply via email to

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