C++
virtual Adesk::Boolean getSubstituteFont( ACHAR ** pFileName, ACHAR * prompt, int type, int fontAlt );
Description
Returns Adesk::kTrue if the substitute font was found, and Adesk::kFalse otherwise.
pFilename contains the name of the substitute font file found. The file name is dynamically allocated, so the caller is responsible for freeing the memory. If a matching font file is not found, pFileName will be NULL. The prompt string is only used if the user is asked to select a substitute font interactively. type is used to select the type(s) of font files wanted, and its value is a bitmask as shown in the following table:
0 | Any font file |
1 | Standard font |
2 | Shape font |
4 | Multibyte character set font or an extended font |
Parameters
Parameters | Description |
---|---|
pFileName | Output name of the substitute font file |
prompt | Input prompt string for interactive substitute font selection |
type | Input bitmask selecting the type(s) of font files wanted |
fontAlt | Input non-zero value to use the substitute font |