VisualizationFonts Class¶
-
class
NXOpen.Preferences.VisualizationFonts¶ Bases:
objectRepresents visualization preferences for standard text fonts applicable to the entire session
To obtain an instance of this class, refer to
NXOpen.Preferences.SessionPreferencesNew in version NX8.0.0.
Methods¶
| Method | Description |
|---|---|
| GetDefaultStandardTextFont | Returns settings for the default standard text font |
| SetDefaultStandardTextFont | Modifies settings for the default standard text font |
Enumerations¶
| VisualizationFontsStyleType Enumeration | Specifies the font style. |
Method Detail¶
GetDefaultStandardTextFont¶
-
VisualizationFonts.GetDefaultStandardTextFont¶ Returns settings for the default standard text font
Signature
GetDefaultStandardTextFont()Returns: a tuple Return type: A tuple consisting of (fontFamily, fontStyle, fontSize). fontFamily is a str. the name of the font family fontStyle is a NXOpen.Preferences.VisualizationFontsStyleType. the font style fontSize is a int. the font size in points (72 points per inch)New in version NX8.0.0.
License requirements: None.
SetDefaultStandardTextFont¶
-
VisualizationFonts.SetDefaultStandardTextFont¶ Modifies settings for the default standard text font
Signature
SetDefaultStandardTextFont(fontFamily, fontStyle, fontSize)Parameters: - fontFamily (str) – the name of the font family
- fontStyle (
NXOpen.Preferences.VisualizationFontsStyleType) – the font style - fontSize (int) – the font size in points (72 points per inch)
New in version NX8.0.0.
License requirements: None.