freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Scaling of composite glyphs


From: Tuom Larsen
Subject: [ft-devel] Scaling of composite glyphs
Date: Fri, 14 Jun 2013 09:48:45 +0200

Hello,

I have some troubles understanding some FT code so I would like to kindly ask someone to explain it for me.

It regards the "glyf" table and the scaling of composite glyphs. From what I understood the flags specify the magnitudes for scaling of all the points of the whole compontent/"subglyph". By reading the code:

translate_array( num_points - num_base_points, base_vec + num_base_points, x, y );

it seems that FT only offsets the component by "x" and "y". The offset gets scaled, yes, but I cannot find where are the glyph-points scaled or rotated ("This could be used for 90-degree rotations, for example." - from the spec).

Please, what is the right way of doing this? What should be scaled - only the offset or the whole component? Does FT support this?

Thanks in advance!

PS: I could not find any fonts/glyphs which actually uses those flags, does anyone know of an example?

reply via email to

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