|
-
Aug 28th, 2002, 07:32 AM
#1
Thread Starter
New Member
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!
-
Aug 28th, 2002, 10:31 AM
#2
I think you are going to either find a True Type version of the font or use a different font.
-
Aug 28th, 2002, 10:39 AM
#3
Thread Starter
New Member
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?
-
Aug 28th, 2002, 11:59 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|