[Gtk-sharp-list] Changing font in textview

True Friend true.friend2004 at gmail.com
Wed Aug 20 21:20:36 EDT 2008

I am trying to change font in gtk# textview control. It works fine under
normal circumstances but when I add the font settings like below
Pango.FontDescription font = new Pango.FontDescription();
        font.Size = 14;
        font.Family = "Serif";
I get a very tiny miny cursor on build and nothing else which I can do. No
typing, no display of words/chars I tried to change the size even but
nothing. Even view.Buffer.Text = xxxx didn't worked and no text appeared.
In gtk+ and pygtk docs the font changing method is written the way as

Any ideas to do this in gtk#?
Muhammad Shakir Aziz محمد شاکر عزیز
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080821/6ac42ee1/attachment-0001.html 

More information about the Gtk-sharp-list mailing list