Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Fedor  
#1 Posted : Wednesday, December 20, 2006 2:24:00 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
When drawing text strings with the help of Graphics Mill and using the ITC Stone Sans Semibold font, an exception may occur, or the text may be drawn using a different font.

Description

If you draw text using Graphics Mill for .NET, and try to use ITC Stone Sans Semibold font, it may produce an exception, or the text may be drawn using some other different font. In the same time it may work properly on other computers.

The typical symptom of a problem when you draw text through GDI (Aurigma.GraphicsMill.Drawing.GdiGraphics class) is the Aurigma.GraphicsMill.Win32Exception exception which occurs whenever you try to draw a text with this font. Text of the exception will look similar to the follows:

Code:
************** Exception Text **************
 Aurigma.GraphicsMill.Win32Exception: GetCharacterPlacement call failed
    at Aurigma.GraphicsMill.Drawing.GdiGraphics._DrawString(String s, Font font, SolidBrush brush, Single x, Single y, Single[] kernings)
    at Aurigma.GraphicsMill.Drawing.GdiGraphics.DrawString(String s, Font font, SolidBrush brush, Int32 x, Int32 y)
    at WindowsApplication1.Form1.button3_Click(Object sender, EventArgs e)...


If you try to draw some text using GDI+ (i.e. using standard .NET class, namely System.Drawing.Graphics), no exception will occur. However, the text may not be rendered correctly, as the acually used font may differ from ITC Stone Sans Semibold.
Reason

The reason of this behavior is a bug of GDI and GDI+.

Solution

Currently, the only solution is to render the text using another font. In particular, it is recommended to handle
the Aurigma.GraphicsMill.Win32Exception exception, and if it is raised, use some fallback font.

Edited by moderator Sunday, June 10, 2012 9:07:10 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.