Hi,
  What is the problem with vertical layout.
I am using MsMincho which support vertical layout and I am also cross checking
it with FT_HAS_VERTICAL( face ). I am getting glyph but the advance value is
always the same i.e. 256.

Procedure I follow
1. Init lib,
2. Get new face,
3. Set size
4. load glyph: FT_Load_Glyph(face, glyph_index, FT_LOAD_VERTICAL_LAYOUT)
5. getglyph        : if(FT_Get_Glyph( face->glyph, glyphs))
6. transform glyph FT_Glyph_Transform( glyphs, &matrix, 0); matrix is with zero
angle
7. get control baox info FT_Glyph_Get_CBox(
glyphs,FT_GLYPH_BBOX_PIXELS,&glyph_bbox
);
8. get bitmap: FT_Glyph_To_Bitmap( &glyphs, FT_RENDER_MODE_MONO,0,1)
and copy bit map to target.
9. checking advance value to copy next char.; but getting 256 only.
I follow same procedure as described in turorials.

Please tell me if my understanding is wrong or if there is some specific steps
to follow to get proper result. Any sample code will be appricialble.

Thank in advance
Paresh



_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to