[Gtk-sharp-list] Fonts in TreeView

Anyware Electronics any at anyelec.com
Thu Apr 18 05:53:13 UTC 2013

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


------- Messaggio originale -------
Da: Moonfire, D. <d.moonfire at moonfire.us>
A: any at anyelec.com
CC: Bertrand Lorentz <bertrand.lorentz at gmail.com>,
gtk-sharp-list at lists.ximian.com
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 <any at anyelec.com> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20130418/8d8a803a/attachment.html>

More information about the Gtk-sharp-list mailing list