problems when display text vertically.

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

 



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)



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux