Jump to content

Recommended Posts

Posted

In my applications, I try to use the new fonts that MS delivers with Vista and Office 2007 (Calibri, Segoe UI, ...), of course falling back to other fonts if the user doesn't have them installed.

 

Now I'm getting exceptions under certain circumstances. If I'm trying to measure a string with more than 32000 characters using one of the new fonts, I get an ExternalException that says "A generic error occurred in GDI+". If I use a font like Tahoma or Verdana, there's no problem. If the string is 32000 characters or less, there's no problem.

 

Of course, it's taken me 2 days to locate the exact location and circumstances of the error. And if it was in my own code, I could write some kind of*workaround, but no: the MeasureString is performed by a 3rd party grid control, making it impossible for me to fix it. Which means I am now unable to use Segoe UI (or Calibri)*as the default font for all the grid controls in my applications.

 

What's wrong with these fonts that it makes me unable to use them? Nice way to promote the use of MS's new fonts.

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...