[Fontconfig] problems when display text vertically.

yydzero yydzero at sina.com
Wed Nov 26 18:43:41 EST 2003


Hi:

  I want to display text vertically, so I wrote:

  pattern = XftPatternBulid(0,

         XFT_FAMILY, XftTypeString, "mono",

         Fc_VERTICAL_LAYOUT, XftTypeBool, FcTrue,

         0);

  then I match and open font.

  and then call:

  XftDrawString(draw, &color, font, 100, 100, "China", strlen("China"));

  then run this program. It can display "China" vertically, but

  it display from bottom to top, that is to say the 'C' is under

  the 'h', and 'h' under 'i'. I think it should display from top to 

  bottom. 

  Now, how to display text vertically and from top to bottom?

  thank you very much!


______________________________________


===================================================================
ÌåÑé¼´Åļ´´ò£¬ÏíÊܼÑÄÜÓ°ÏñÖ®Âà (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.html)




More information about the Fontconfig mailing list