[Gtk-sharp-list] Mono System.Argument Exception in Mac when using System.Drawing.Font

netgear cool_rainbow at rocketmail.com
Sun Mar 30 13:35:32 UTC 2014


Im trying to create a new font from the system font in C#(Mono).

 System.Drawing.Font myfont=System.Drawing.SystemFonts.DefaultFont 
The code works properly in Windows but when it comes to running in Mac i get
an argument exception-The Requested font family Could not be found

I thought that the default font may be missing,So i tried with Helvtica.That
is installed On Mac by default

 System.Drawing.Font myfont=new System.Drawing.Font("Helvetica",10f);

Still the same exception



--
View this message in context: http://mono.1490590.n4.nabble.com/Mono-System-Argument-Exception-in-Mac-when-using-System-Drawing-Font-tp4662400.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list