how to make underline word by gtk1.2
- From: xiening <xiening topshine com cn>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: how to make underline word by gtk1.2
- Date: Fri, 14 Mar 2003 22:25:25 +0800
dear sir/madam:
while I use GtkText in my application I use
*******************************************
void
setFontX ( GtkWidget * widget, gint fontNumber )
{
GtkStyle *thisStyle;
thisStyle = gtk_style_copy( gtk_widget_get_style( widget));
if ( fontNumber == 14 ) {
thisStyle->font =gdk_fontset_load( medium_font[3] );
}else{
thisStyle->font
=gdk_fontset_load("-adobe-helvetica-medium-r-normal--16-*-*-*-*-*-iso8859-1,\
-*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0");
}
gtk_widget_set_style( widget, thisStyle);
}
****************************************
to set the font by bold, medium.
how to make underline word?
**********************************
I know in the gtk2.x
pango could solve this problem, very easy. and beg you pardon, how about
gtk1.2
thank you.
xn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]