Historically, advance.y is mainly used for vertical text, for example, used in Asia ( FT_LOAD_VERTICAL_LAYOUT calls it.) In the normal rendering case, you should not get non-zero values ββfor advance.x and advance.y at the same time.
But it is also useful to use Freetype in a more general way. If you want to write Latin vertical text with an inclined angle of 30 Β°, you can still use the same structures: you apply (via FT_Set_Transform ) a 30 Β° inclination matrix to each glyph, but also to the progress vector; and the result will indeed have a diagonal slope; as expected!
source share