Problems when displaying text vertically.

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

 



Hi:
   I want to display text vertically, so I write a piece of code:
   pattern = XftPatternBuild(0, 
		XFT_FAMILY, XftTypeString, "mono",
		XFT_VERTICAL_LAYOUT, XftTypeBool, FcTrue,
		0);
   and then match and open font,
   and 
   XftDrawStringUtf8(draw, color, font, 100, 100, "china", strlen("china"));
   
   when I run the program, it display "china" vertically, but 
   it is display "china" from bottom to top, that's to 
   say the "c" displays under the "h" and the "h" under the "i".

   why ? How can I display text vertically and from Top to Bottom?
   Thank you very much






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

  Powered by Linux