SoFontGetAvailableFonts Method (String, Boolean) |
Returns the number of loadable font files and a list of their names. Each name in the list is formatted
as follows: "Name : Style : (font file)".
Namespace: OIV.Inventor.NodesAssembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public static void GetAvailableFonts(
out string[] strings,
bool clearDB
)
Public Shared Sub GetAvailableFonts (
<OutAttribute> ByRef strings As String(),
clearDB As Boolean
)
public:
static void GetAvailableFonts(
[OutAttribute] array<String^>^% strings,
bool clearDB
)
static member GetAvailableFonts :
strings : string[] byref *
clearDB : bool -> unit
Parameters
- strings
- Type: SystemString
- clearDB
- Type: SystemBoolean
Remarks
The retrieved string can be passed directly to the SoFont::name field
(the "(font file)" substring will be ignored).
Internally, this method builds a font name database. It scans some defined directories and
registers the association "Name : Style" -- "font file". Passing the clearDB parameter as TRUE makes
sure the database is cleared before it is created.
See Also