Results 1 to 4 of 4

Thread: Only TrueType Fonts

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    Germany
    Posts
    7

    Only TrueType Fonts

    hi @ all!

    I use a FontDialog to select fonts...but when I select a font (that is not true-type) then my program brakes with this error message:

    An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll

    Additional information: Only TrueType fonts are supported, and this is not a TrueType font.

    please help me!

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I think you are going to either find a True Type version of the font or use a different font.

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2002
    Location
    Germany
    Posts
    7
    yes, but I need it for program configurations.

    the user who uses my program can select a font, but what if he select a font who isn't TrueType!?

    and my question is: how can I display only the "TrueType"-fonts in the FontDialog

    ...or is there any other way to fix this error?

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Sorry I think I misunderstood the question. I guess you must be selecting an OpenType Font which are also allowed in .NEt (but I guess not for your drawing operation). The easiest is to just catch the error and have them pick another font or cancel. Just use a Try..Catch where you use the font.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width