Re: Steps in porting standard gtk program to pango-gtk ..
- From: Owen Taylor <otaylor redhat com>
- To: gtk-i18n-list redhat com
- Subject: Re: Steps in porting standard gtk program to pango-gtk ..
- Date: 19 May 2000 16:00:08 -0400
swapan@lycosmail.com writes:
> I was trying to port a working gtk program to pango-gtk but am
> facing problem in displaying UTF8 char sequences. Does data to
> gdk_fontset_load(xlfd_font) need some extra messaging ? I have a
> CLists made from gchar * (containing UTF8 sequence) which are not
> rendered onto the window properly. The ASCII portions are rendered
> well but not the multibyte portions. The some file is rendered
> properly using ./pango-viewer or ./testtext .
CList is not converted to pango, sorry.
[ Feel free to look into this ;-) ]
Basically, for pango-gtk, to display a string, you create a pango
layout using gtk_widget_create_pango_layout(), set the text it the
layout using pango_layout_set_text(), and then render the layout
using gdk_draw_layout().
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]