A class which encapsulates an MFC CFontDialog object. Derived from a PyCDialog object.
-
Displays a dialog and allows the user to make a selection.
-
Returns a dictionary describing the current font.
-
Returns the font selection in a CHARFORMAT tuple.
-
Determines the color of the selected font.
-
Returns the face name of the selected font.
-
Returns the style name of the selected font.
-
Returns he font's size, in tenths of a point.
-
Returns the font's weight.
-
Determines whether the font is displayed with strikeout.
-
Determines whether the font is displayed with underline.
-
Determines whether the font is displayed bold.
-
Determines whether the font is displayed with italic.
PyCFontDialog.DoModal
int = DoModal() Displays a dialog and allows the user to make a selection.
- CFontDialog::DoModal
PyCFontDialog.GetCharFormat
tuple = GetCharFormat() Returns the font selection in a CHARFORMAT tuple.
- CFontDialog::GetCharFormat
PyCFontDialog.GetColor
int = GetColor() Determines the color of the selected font.
- CFontDialog::GetColor
PyCFontDialog.GetCurrentFont
dict = GetCurrentFont() Returns a dictionary describing the current font.
- CFontDialog::GetCurrentFont
PyCFontDialog.GetFaceName
string = GetFaceName() Returns the face name of the selected font.
- CFontDialog::GetFaceName
PyCFontDialog.GetSize
int = GetSize() Returns he font's size, in tenths of a point.
- CFontDialog::GetSize
PyCFontDialog.GetStyleName
string = GetStyleName() Returns the style name of the selected font.
- CFontDialog::GetStyleName
PyCFontDialog.GetWeight
int = GetWeight() Returns the font's weight.
- CFontDialog::GetWeight
PyCFontDialog.IsBold
int = IsBold() Determines whether the font is displayed bold.
- CFontDialog::IsBold
PyCFontDialog.IsItalic
int = IsItalic() Determines whether the font is displayed with italic.
- CFontDialog::IsItalic
PyCFontDialog.IsStrikeOut
int = IsStrikeOut() Determines whether the font is displayed with strikeout.
- CFontDialog::IsStrikeOut
PyCFontDialog.IsUnderline
int = IsUnderline() Determines whether the font is displayed with underline.
- CFontDialog::IsUnderline