On Fri, Oct 14, 2005 at 09:18:08PM -0700, Sergey Tolstov wrote: > Hello, > > The patch helped to fix the problem with vertical metrics. > However, now it turns out that SimSun font has vertical advance smaller > than bbox height for latin characters (check E, for example). As a > result, upright English text in vertical layout, becomes too condensed. > Adobe Illustrator displays vertical English text (upright) fine however. > It should mean they do not take the vadvance into consideration. So > should the vertical advance be ignored, or is there some tricks to > detect faulty fonts and ignore it only for them? If you are willing to use a hacked version of freetype, you can set face->vertical_info to 0 before "load_truetype_glyph".
Or you can check if glyph->metrics.height is less than glyph->metrics.vertAdvance in you application. If not, find some reasonable value by yourself, like "compute_glyph_metrics" does. (If you like it to be vertically monotone, then always find the value yourself.) -- Regards, olv _______________________________________________ Freetype mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/freetype
