Difference between revisions of "DiagramFontStyle getDefault"
(2 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
DiagramFontStyle_getDefault() | DiagramFontStyle_getDefault() | ||
+ | |||
+ | or can use [[TabulationTextStyle_class|TabulationTextStyle]] | ||
'''Arguments''' | '''Arguments''' | ||
Line 143: | Line 145: | ||
''print(font);'' | ''print(font);'' | ||
− | ''//Result: {18,Arial,10,{17,255,255,255},False,False,False,False}'' | + | ''//Result: (e.g: {18,Arial,10,{17,255,255,255},False,False,False,False})'' |
+ | |||
+ | ''{{note}} This function should be paired with create diagram functions'' | ||
'''Availability''' | '''Availability''' |
Latest revision as of 08:14, 22 September 2023
DiagramFontStyle_getDefault
Gets a default chart chart font style object that can then be used for setting styles for various parts of charts. The default settings are derived from the systems set default style sheet. Since this is defined when setting up the system, these help files cannot tell you what the actual default values for your site willl be.
Syntax
DiagramFontStyle_getDefault()
or can use TabulationTextStyle
Arguments
None
Return type
Returns the following array
Constant |
Type |
Initial/Default value |
Description |
OBJECT_TYPE |
Number |
18 |
Enumeration for the object type. |
DIAGRAM_FONT_STYLE_FACE |
String |
Default extracted from system's default style sheet. |
Font face. Currently, the system supports the following font face: arial, courier new, lucida sans unicode, ms sans serif, tahoma, verdana, arial black, arial narrow, comic sans ms, wingdings, kantipur. |
DIAGRAM_FONT_STYLE_SIZE |
Number |
Default extracted from system's default style sheet. |
Font size. |
DIAGRAM_FONT_STYLE_COLOR |
Array |
Default extracted from system's default style sheet. |
Font color. |
DIAGRAM_FONT_STYLE_BOLD |
Boolean |
Default extracted from system's default style sheet. |
Font style: bold. |
DIAGRAM_FONT_STYLE_ITALIC |
Boolean |
Default extracted from system's default style sheet. |
Font style: italic. |
DIAGRAM_FONT_STYLE_UNDERLINE |
Boolean |
Default extracted from system's default style sheet. |
Font style: underline. |
DIAGRAM_FONT_STYLE_INHERIT |
Boolean |
False |
Specifies whether the font style will be inherited from the style sheet (when True) or gotten from the system's default (when False). |
Examples
array font = DiagramFontStyle_getDefault();
print(font);
//Result: (e.g: {18,Arial,10,{17,255,255,255},False,False,False,False})
Note: This function should be paired with create diagram functions
Availability
Version 5.8.1