class PtFontSel PtContainer { font_display; // short (Pt_ARG_FONT_DISPLAY) font_flags; // flag (Pt_ARG_FONT_FLAGS) font_name; // string (Pt_ARG_FONT_NAME) font_sample; // PtWidget (Pt_ARG_FONT_SAMPLE) font_symbol; // long (Pt_ARG_FONT_SYMBOL) }
This widget is a dialog box that lets you choose a font, edit the size, and make it bold, italic, or anti-aliased. It also has a display for a sample text string of the selected font.
For detailed information, please refer to PtFontSel in the Photon documentation. |
This instance variable controls the categories of fonts offered, and may have one of the following values:
Constant | Description |
---|---|
Pt_FONTSEL_SCALABLE | Include scalable fonts. |
Pt_FONTSEL_BITMAP | Include bitmap fonts. |
Pt_FONTSEL_PROP | Include proportional fonts. |
Pt_FONTSEL_FIXED | Include fixed fonts. |
Pt_FONTSEL_ALL_FONTS | Include all fonts. |
This instance variable controls characteristics of the widget, and may be a combination of zero or more of the following flags:
Constant | Description |
---|---|
Pt_FONTSEL_AA_CHECK | Restricts the use of anti-aliasing button to scalable fonts. |
Pt_FONTSEL_SAMPLE | Displays sample text using the current font. |
A string specifying the initial and/or currently selected font. Default is "helv12".
A string specifying the sample to be displayed if the Pt_FONTSEL_SAMPLE flag is set. Default is "AaBbCcXxYyZz".
A character specifying the font family to include in the selection dialog. 'A', the default, specifies Latin fonts.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.