[Mono-bugs] [Bug 553191] New: Can't create a font based on a FontFamily loaded through PrivateFontCollection

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 6 05:07:20 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=553191


           Summary: Can't create a font based on a FontFamily loaded
                    through PrivateFontCollection
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: cummings.michael at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=325940)
 --> (http://bugzilla.novell.com/attachment.cgi?id=325940)
Sample test case that causes the issue

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0

If I try to create a font based on a FontFamily loaded from a TTF into a
PrivateFontCollection the following occurs:

Stacktrace:

  at (wrapper managed-to-native) System.Drawing.GDIPlus.GdipGetFamilyName
(intptr,System.Text.StringBuilder,int) <0x00004>
  at (wrapper managed-to-native) System.Drawing.GDIPlus.GdipGetFamilyName
(intptr,System.Text.StringBuilder,int) <0xffffffff>
  at System.Drawing.FontFamily.refreshName () <0x00073>
  at System.Drawing.FontFamily.get_Name () <0x0003a>
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily.get_Name ()
<0xffffffff>
  at System.Drawing.Font.setProperties
(System.Drawing.FontFamily,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool)
<0x00023>
  at System.Drawing.Font..ctor
(System.Drawing.FontFamily,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool)
<0x0006d>
  at System.Drawing.Font..ctor (System.Drawing.FontFamily,single) <0x00042>
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor
(System.Drawing.FontFamily,single) <0xffffffff>
  at Font.Test.Program.Main (string[]) [0x0008e] in
System.Drawing.Font.Test/Program.cs:39
  at (wrapper runtime-invoke) Font.Test.Program.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    /usr/bin/mono [0x80c8824]
    /usr/bin/mono [0x80f4693]
    [0xb77b0410]
    /usr/lib/libfontconfig.so.1 [0xb683f7ba]
    /usr/lib/libfontconfig.so.1 [0xb683f840]
    /usr/lib/libfontconfig.so.1 [0xb683f9d6]
    /usr/lib/libgdiplus.so.0(GdipGetFamilyName+0x4a) [0xb6b7bb3a]
    [0xb711970d]
    [0xb71192c4]
    [0xb71191db]
    [0xb7119171]
    [0xb7118fcc]
    [0xb7118efe]
    [0xb7118e7b]
    [0xb7118dfe]
    [0xb71128be]
    [0xb711225b]
    /usr/bin/mono(mono_runtime_exec_main+0xde) [0x81112ae]
    /usr/bin/mono(mono_runtime_run_main+0x15a) [0x81134da]
    /usr/bin/mono(mono_debugger_main+0x77) [0x80f7c37]
    /usr/bin/mono(mono_main+0x1662) [0x80b1572]
    /usr/bin/mono [0x805aba5]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb7568b56]
    /usr/bin/mono [0x805aae1]

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================



Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list