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



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

Rank: Advanced Member

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

Thanks: 5 times
Was thanked: 75 time(s) in 73 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.


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:

************** 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.


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


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.