[Mono-osx] WinForms does not work on Mac OS 10.4 (missing font?)

Rudloff rudloff at strasweb.fr
Tue May 24 20:24:43 EDT 2011


Hello,
I have successfully built Mono on Mac OS 10.4.11 and can run commandline
executables.
But when launching a program that uses Windows.Forms, I get this kind of
error :

Unhandled Exception: System.ArgumentException: The requested FontFamily
could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in
<filename unknown>:0 
  at System.Drawing.Font.GetHeight (Single dpi) [0x00000] in <filename
unknown>:0 
  at System.Drawing.Font.GetHeight () [0x00000] in <filename unknown>:0 
  at System.Drawing.Font.get_Height () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font:get_Height ()
  at System.Windows.Forms.XplatUICarbon.GetAutoScaleSize
(System.Drawing.Font font) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI.GetAutoScaleSize (System.Drawing.Font
font) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.GetAutoScaleSize (System.Drawing.Font font)
[0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 
  at MyFormProject.MainForm..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) MyFormProject.MainForm:.ctor ()
  at MyFormProject.MainForm.Main (System.String[] args) [0x00000] in
<filename unknown>:0 

I thought I was missing some X11 fonts, so I have installed xorg-fonts but
it still does not work.

--
View this message in context: http://mono.1490590.n4.nabble.com/WinForms-does-not-work-on-Mac-OS-10-4-missing-font-tp3548620p3548620.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list