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

Francisco M. Marzoa fmmarzoa at gmx.net
Tue Nov 23 18:13:11 EST 2010


Hello,

Anyway there MUST be another way to do this, so parsing FontName may
resolv the problem of getting the font selected in a Gtk.FontSelection
object, but it does not solve the problem of SETTING it, and I've found
that setting FontName to, for example, "Arial 10" does NOT change the
default selection ("Sand 10").

Neither of you guys has seen this problem before? Should I use a
different component for selecting fonts rather than Gtk.FontSelection?

Thanks a lot in advance,


El 24/11/10 00:01, Francisco M. Marzoa escribió:
> 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,
>   



More information about the Mono-list mailing list