Re: how do I create a fontset at runtime ?



Hi,

In article <36907C0F.8EAF3B50@borco-ei.eng.hokudai.ac.jp>
borco@borco-ei.eng.hokudai.ac.jp writes:

>Fontsets looks very nice and useful. However at the oresebt I can use
>them only via a rc file. I would like to create a font set at runtime

How about gdk_fontset_load() ?
Here's an example:

my_style = gtk_style_new();
my_fontset = gdk_fontset_load("-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-*");
gdk_font_unref(my_style->font);
my_style->font = my_fontset;
gtk_widget_set_style(widget, my_style);

--------------------------------------
Akira Higuchi
Dept. of Mathematics, Hokkaido Univ.
Hokkaido, Japan
Email: a-higuti@math.sci.hokudai.ac.jp



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