Thank you Dylan, it works!
Both "Arial" and "Arial 10" work and the size changes accordingly.

Paolo


------- Messaggio originale -------
Da: Moonfire, D. <[email protected]>
A: [email protected]
CC: Bertrand Lorentz <[email protected]>,
[email protected]
Oggetto: Re: [Gtk-sharp-list] Fonts in TreeView
Data: Wed, 17 Apr 2013 13:11:59 -0500


On Tue, Apr 16, 2013 at 7:23 AM, Anyware Electronics <[email protected]> wrote:
> CellRenderer Col0r=new CellRendererText();

Try not casting it to the base class:

CellRendererText Col0r=new CellRendererText();

> ...
>
> // Select fonts here ???
> Col0r.CellBackground="Green"; // it works
> Col0r.Font="Arial"; // error:
>
> This gives an error, as you may see in the enclosed image.

I don't remember from my own text editor work (been a few years), but
if "Arial" doesn't work, try "Arial 10".

- Dylan


_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to