[Mono-bugs] [Bug 74761][Wis] Changed - gdiplus should handle missing font families gracefully.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 4 May 2005 13:00:05 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by vargaz@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74761
--- shadow/74761 2005-04-28 16:40:42.000000000 -0400
+++ shadow/74761.tmp.15864 2005-05-04 13:00:05.000000000 -0400
@@ -1,23 +1,23 @@
Bug#: 74761
-Product: Mono: Runtime
+Product: Mono: Class Libraries
Version: 1.1
-OS:
+OS: unknown
OS Details: Solaris 8 and 9
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
-Component: misc
+Component: Windows.Forms
AssignedTo: mono-bugs@ximian.com
ReportedBy: dougpostman@yahoo.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: Windows Form Failing to Run using mono 1.1.6 on solaris - System.Windows.Forms.ThemeEngine---> System.NullREferenceExceptio
+Summary: gdiplus should handle missing font families gracefully.
Please fill in this template when reporting a bug, unless you know what
you are doing.
Description of Problem:
When running mono 1.1.6 on a simple .exe application with only a simple
Windows form coming up, I get errors concerning the theme engine. Errors
@@ -59,6 +59,18 @@
How often does this happen?
Every time
Additional Information:
Tested on two separate boxes. Solaris 8 on one box and Solaris 9 on the
other. Same results.
+
+------- Additional Comments From vargaz@gmail.com 2005-05-04 13:00 -------
+The problem here is that probably your fontconfig installation is not
+set up correctly, and it doesn't find the default fonts like Serif.
+Unfortunately, libgdiplus doesn't handle this gracefully and crashes
+in GdipCreateFontFamilyFromName because (*fontFamily)->pattern
+is NULL.
+
+The solution is to add the directories holding the fonts to
+/etc/fonts/fonts.conf.
+
+After doing this, I was able to run a simple winforms app.