[Mono-bugs] [Bug 77498][Blo] New - PrivateFontCollection crash Mono to crash in native code

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Feb 7 16:18:06 EST 2006


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 pkwan at advsofteng.net.

http://bugzilla.ximian.com/show_bug.cgi?id=77498

--- shadow/77498	2006-02-07 16:18:06.000000000 -0500
+++ shadow/77498.tmp.31917	2006-02-07 16:18:06.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 77498
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Tried on Fedora 4 and Gentoo (Kernel 2.6)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Sys.Drawing.
+AssignedTo: jordi at ximian.com                            
+ReportedBy: pkwan at advsofteng.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: PrivateFontCollection crash Mono to crash in native code
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+
+Description of Problem:
+
+When using PrivateFontCollection, Mono crash in native code (probably in 
+libgdiplus).
+
+Steps to reproduce the problem:
+
+1. Put the Microsoft font "arial.ttf" in the web page root directory for 
+XSP.
+
+2. Use XSP to run the ASPX below, which opens the font file with 
+PrivateFontCollection, create a Font object, and display its name.
+
+Actual Results:
+
+The XSP console shows that the Mono has crashed in native code.
+
+Expected Results:
+
+It should display the font name of the Font created.
+
+How often does this happen? 
+
+Always in Mono 1.1.13_2.
+
+Additional Information:
+
+Test code to reproduce the problem:
+
+<%@ Page language="c#" Debug="true" %>
+<%@ Import Namespace="System.Drawing" %>
+<%@ Import Namespace="System.Drawing.Text" %>
+<%@ Import Namespace="System.Drawing.Imaging" %>
+<%
+PrivateFontCollection pfc = new PrivateFontCollection();
+pfc.AddFontFile(Server.MapPath("/arial.ttf"));
+int ii = pfc.Families.Length;
+FontFamily m = pfc.Families[0];
+Font ff = new Font(m, 12, FontStyle.Regular, GraphicsUnit.Pixel);
+%>
+<%=ff.ToString()%>


More information about the mono-bugs mailing list