How to use XmNfontEncoding with antialiased fonts?

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

3 posts / 0 new
Last post
How to use XmNfontEncoding with antialiased fonts?

Submitted by dpeterc on Thu, 06/21/2007 - 20:01.

I am trying to use antialiased fonts in the following way

*renderTable xft
*xft*fontType FONT_IS_XFT
*xft*fontName Verdana
*xft*fontSize 8

It works, but characters with ASCII code above 128 are not shown.
I assume that it uses UTF-8 as default encoding.
So I try to define the encoding

*xft*fontEncoding iso8859-1

but it does not work.
How can I properly define font encoding for XFT fonts?
If fontEncoding is not implemented, why is the option present?
If I can only use UTF8 with XFT fonts, which transliteration
tools are available to encode iso8859-1 ... 9 into UTF8

Thanks for the help in advance.

Fri, 07/27/2007 - 12:39#1

Fri, 07/27/2007 - 12:39#1

Yuriy Syrota

How to use XmNfontEncoding with antialiased fonts?

You are right, fontEncoding isn't implemented. For 8-bit encoding you should use Utf8. In order to transform to Utf8 you can use iconv(3)

Mon, 09/28/2009 - 13:25#2

Mon, 09/28/2009 - 13:25#2

svga

.aaa

.aaa