NXOpen.UF.Ugfont.AskFontStyles¶
-
Ugfont.
AskFontStyles
()¶ Refer to UF_UGFONT_ask_font_styles for documentation.
Signature:
AskFontStyles(fte, index)
Parameters: - fte (Tag) – The tag of the Font Table Entity (FTE)
- index (int) – Font index number of the font to check on
Returns: A Tuple
Return type: A tuple consisting of (numStyles,styles)
numStyles(int): The number of style names in the style_names array. This will be zero if the index input is not that of a font in the Font Table Entity, or if the index is that of an NX Legacy font (not that of a Standard Font).
styles(list of str): An array of the names of available styles for the given font. This must be freed by the caller, using UF_free.
License requirements: None