XTextProperty

Russell Shaw rjshaw at netspace.net.au
Sat Sep 17 22:10:42 PDT 2005


Hi,

How do i make text in XCompoundTextStyle ?

I read ISO-2022 and related ECMA standards.

This paper is unclear: http://www.x.org/X11R6.8.1/docs/CTEXT/ctext.pdf

What bytes do i need to make a iso-8859-1 compound string of "hello world" ?
How do i do it in utf-8 ?


typedef struct {
	unsigned char *value;	/* property data */
	Atom encoding;		/* type of property */
	int format;		/* 8, 16, or 32 */
	unsigned long nitems;	/* number of items in value */
} XTextProperty;

typedef enum {
	XStringStyle,		/* STRING */
	XCompoundTextStyle,	/* COMPOUND_TEXT */
	XTextStyle,		/* text in owner's encoding (current locale) */
	XStdICCTextStyle	/* STRING, else COMPOUND_TEXT */
} XICCEncodingStyle;

http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/converting-string-lists.html


I want to use XSetTextProperty() to set text according to the users language.



More information about the xorg mailing list