Re: Problem displaying Japanese Text in GtkEntry/GtkTextView



On Mon, 2006-04-24 at 16:47 +0530, Gaurav Jain wrote:
> Hello,
> 
> I have written a small GTK program (attached below), which is supposed
> to display some japanese text in a GtkEntry and GtkTextView.  The text
> is UTF8, and I have extracted the UTF8 values from an application that
> contained some valid UTF8 japanese text.
> 
> The problem is that when I run this program on Solaris or AIX (with
> GTK 2.0.9) the japanese text is not shown correctly (it either shows
> blank spaces or boxes).  On Linux (with GTK 2.4) it shows the japanese
> text correctly.
> 
> Is there a way to get this working on Solaris or AIX too?  Do I need
> to install some fonts or set some environment variables?  Is the
> environment variable such as GTK_RC_FILES or GTK2_RC_FILES required to
> be set here?

Nobody is likely to be able to help you with GTK+-2.0.9 except your
operating system vendor. It was released quite a long time ago, and
probably was configured on those operating systems to use core
X fonts, rather than the more modern font fonts that are supported
with current versions of GTK+.

The configuration of core X fonts was done with the config file:
/etc/pango/pangox.aliases (may be some place else on your system,
perhaps under /opt/gnome or something like that.) You need to make
sure that the fonts referenced in that file are present on your
system.

					Owen

Attachment: signature.asc
Description: This is a digitally signed message part



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