[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [debian@tmail.plala.or.jp: Pango tutorial?]
- From: Noah Levitt <nlevitt columbia edu>
- To: Tomohiro KUBOTA <debian tmail plala or jp>
- Cc: martine cs washington edu, gtk-app-devel-list gnome org
- Subject: Re: [debian@tmail.plala.or.jp: Pango tutorial?]
- Date: Fri, 28 Feb 2003 11:40:49 -0500
Hi,
I believe part of the reason there are no simple tutorials
on pango is that it is usually not meant to be used directly
by application developers. People are encouraged to use
GTK+, which uses pango automatically.
You can try the following program for example. It can be
compiled with:
gcc -Wall -ansi -g `pkg-config --cflags gtk+-2.0` test.c `pkg-config --libs gtk+-2.0`
#include <gtk/gtk.h>
gint
main (gint argc, gchar **argv)
{
GtkWidget *window;
GtkWidget *label;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_container_set_border_width (GTK_CONTAINER (window), 48);
g_signal_connect (G_OBJECT (window), "destroy",
G_CALLBACK (gtk_main_quit), NULL);
gtk_widget_show (window);
label = gtk_label_new ("私は日本語を話す");
gtk_widget_show (label);
gtk_container_add (GTK_CONTAINER (window), label);
gtk_main ();
return 0;
}
Noah
On Fri, Feb 28, 2003 at 22:46:36 +0900, Tomohiro KUBOTA wrote:
> Hi,
>
> From: Evan Martin <martine@cs.washington.edu>
> Subject: Re: [debian@tmail.plala.or.jp: Pango tutorial?]
> Date: Wed, 26 Feb 2003 23:40:47 -0800
>
> > > However, I have no idea how to use it. Are there any tutorials
> > > of Pango?
> > There is reference documentation at
> > http://developer.gnome.org/doc/API/2.0/pango/pango.html
>
> Thank you for your information. However, I don't know which part
> of the reference should I read at least to display multilingual
> UTF-8 text....
>
> Nowadays, several softwares (which had been able to display CJK
> characters) became not able to display CJK characters because
> of migration from conventional X11 font ("XFontSet") to anti-alias
> font engine which cannot handle CJK or proper font selection.
>
> To stop this annoying situation for CJK people, we want developers
> (who want to use anti-alias fonts) to adopt Pango (or other
> internationalized engine) than FreeType (or other low-level non-
> internationalized engine). To achieve this, Pango has to be easier
> than other non-internationalized (i.e., European-only) engines for
> developers who are interested in anti-alias, and a tutorial for
> Pango beginners is needed.
>
> Are there really no such tutorials?
>
> ---
> Tomohiro KUBOTA <kubota@debian.org>
> http://www.debian.or.jp/~kubota/
>
>
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]