|
|
Title | Let the user select a TrueType font |
Keywords | select font, TrueType, common dialog |
Categories | Controls, Graphics |
|
|
Sometimes you need to use a TrueType font. For example, you can only rotate TrueType fonts. To let the user select only these fonts, set the cdlCFTTOnly value in the Common Dialog control's Flags property.
|
|
' Initialize the dialog's properties.
...
dlgFont.Flags = cdlCFScreenFonts Or cdlCFTTOnly
dlgFont.CancelError = True
On Error Resume Next
dlgFont.ShowFont
If Err = cdlCancel Then Exit Sub
' Use the dialog's properties.
...
|
|
|
|
|
|