[comp.windows.x.motif] Width of XmString with special characters

kostka@ipsi.UUCP (Bernd Kostka) (11/06/90)

We are having a problem with the XmString.

We want to be able to use special characters that are needed in German,
French, Spanish, and other non-English languages.

The characters we need are all included in the ISO 8859-1 fonts.

We are able to generate XmStrings with these characters and they show
very neatly.

But: the width of any XmString containing such characters seems to be
too small! The special characters seem to have zero width!

This of course leads to PushButtons hiding the last letter(s) of their
labels, RowColumns being too small, etc.

For creating XmString, we use XmStringCreateLtoR with the charset being
XmSTRING_DEFAULT_CHARSET. Could this be the cause of our problems?
Do we have to use a different charset? Which one? What other values for
the charset argument are possible anyway?

I think I did not understand fully the relation between a charset and a
font. Perhaps if I did, I knew how to fix our bug. Therefore, any
explanations on this subject or pointers to such information will be
appreciated.

Thanks in advance for any help you can provide.

Bernd Kostka