Click or drag to resize
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.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public static void GetAvailableFonts(
	out string[] strings,
	bool clearDB
)

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