[Mono-list] How to use Gdk.FontSelection???

Francisco M. Marzoa fmmarzoa at gmx.net
Tue Nov 23 18:01:08 EST 2010


Hello,

I think that I forgot to mention before is that... could it be that a
font family has the words "bold" or "italic" within his name? If it
could be, in some circunstances will be impossible to know if the user
has selected bold or italic through the FontSelection just using the
FontName property. For example, if there's a font named "Rome Italic" or
"Alps Bold" we may have additional problems.

So I still wonder if there's no other way to get that data from
Gtk.FontSelection...

Regards,

El 22/11/10 20:52, Francisco M. Marzoa escribió:
> Hello,
>
> I'm trying to use an object Gdk.FontSelection -not dialog- on my
> application. I create it within a frame and it looks fine, the problem
> is that I do not know how to set/get the selected font, the font size,
> etc. from code.
>
> I've tried something as simple as:
>
> Gtk.FontSelection fs = new Gtk.FontSelection();
> ...
> fs.FontName = "Arial"
>
> But "Arial" font is not selected. I've also try with:
>
> fs.SetFontName ("Arial");
>
> With same results.
>
> Anyway on Mono documentation there are only two writable properties and
> one public method on Gtk.FontSelection, that does not fullfill the
> requeriments of getting/setting font family, font slang, font weight and
> font size.
>
> ???
>
> Thanks a lot in advance,
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>   



More information about the Mono-list mailing list