At last found the static method to do this. view.ModifyFont(FontDescription.FromString("Courier 16")); FontDescription.FromString("Courier 16") is the way to change, when u try to make an object of FontDescription class and then set its values it does not work (at least for me didn't work). And it is very difficult to find c# and gtk# equivalents reading c and pygtk documentation. Regards On Fri, Aug 22, 2008 at 9:18 AM, True Friend <[EMAIL PROTECTED]>wrote:
> Still waiting for an answer. > > > On Thu, Aug 21, 2008 at 7:20 AM, True Friend <[EMAIL PROTECTED]>wrote: > >> Hi >> 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"; >> view.ModifyFont(font); >> 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 >> here <http://inti.sourceforge.net/tutorial/libinti/textwidget.html>. >> Any ideas to do this in gtk#? >> Regards >> -- >> Muhammad Shakir Aziz محمد شاکر عزیز >> >> > > > -- > Muhammad Shakir Aziz محمد شاکر عزیز > > -- Muhammad Shakir Aziz محمد شاکر عزیز
_______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list