Function ProTextFontNameToId
Description
Returns the identifier for the specified text font name.
NOTES:
The correspondence between font names and font identifiers stays constant during a Creo Parametric session, but may be different for different sessions.
To the Creo Parametric user, fonts are identified by names; in Creo Parametric TOOLKIT, they are identified by integer identifiers. This function translates between names and identifiers. The names must have the file extension .ndx added to them, such as font.ndx, filled.ndx.
Replacement in Object TOOLKIT:
Synopsis
#include <ProGraphic.h>
ProTextFontNameToId
(
ProLine font_name
/* (In)
The name of the text font
*/
int* font_id
/* (Out)
The font identifier
*/
)
Returns
The function successfully retrieved the information.
The input argument is invalid, or the font identifier is NULL.
The function could not find a font identifier for the specified font name.
Sample Code References
User Guide References
Isto foi útil?