Category Graphics and model display, Object ProText

Function ProTextFontNameGet


Description
Retrieves the font name for the specified font identifier.

NOTE:

The correspondence between font names and font identifiers stays constant during a Creo Parametric session, but may be different for different sessions.

Replacement in Object TOOLKIT: pfcDisplay::DefaultFont
pfcDisplay::CurrentFont
pfcDisplay::GetFontById
Synopsis
#include <ProGraphic.h>
ProErrorProTextFontNameGet(
int font_id
/* (In)
The identifier of the text font
*/
ProLine font_name
/* (Out)
The name of the font
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_E_NOT_FOUNDThe function could not find a font name for the specified font identifier.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Basic Graphics: Controlling Text Fonts
  3. User Interface: Basic Graphics: Controlling Text Fonts

Sample Code References:

  1. pt_examples ( TestText.c )