Win32_Pick_Font Function
Displays a Windows common font dialog.
Usage
font_name = Win32_Pick_Font( )
Input Parameters
None.
Returned Value
fontname — Name of font selected in form “Face, Point Size [, bold, italic, underline ]”. If the Cancel button is pressed, a NULL string is returned.
Keywords
Default — A font specification that is used to initialize the font dialog.
Device — If present and non-zero indicates the selected font should be set as the current hardware font for subsequent WIN32 driver text. Equivalent to using the command “DEVICE, Font=f”.
Fixed — If present and non-zero indicates that only fixed width fonts should be displayed in the font dialog.
Scalable — If present and non-zero indicates that only scalable fonts should be displayed in the font dialog.
TrueType — If present and non-zero indicates that only TrueType fonts should be displayed in the font dialog. Since TrueType fonts are specified by point size, they are not scaled when displayed as part of a view element. It is best to use software fonts for this purpose.
Example
Displays all TrueType fonts and sets the default font to the selected font.
font_name = WIN32_PICK_FONT(/TrueType, /Device)
Opens a font dialog displaying Arial, 12 pt. Bold as the default font.
font_name = WIN32_PICK_FONT(Default='Arial, 12, bold')
See Also