Category Graphics and model display, Object ProText

Function ProTextStyleFontSet


Description
Sets the font of the text. For ttf fonts, we have seperate fonts for italic/bold. Use proper font to set text as italic or Bold.
Synopsis
#include <ProNote.h>
ProErrorProTextStyleFontSet(
ProTextStyle text_style
/* (In)
The text style
*/
wchar_t* font
/* (In)
Name of the font.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the font.
PRO_TK_BAD_INPUTSOne or more input arguments is invalid.

Manual References:

  1. Drawings: Detail Note Text Data
  2. Drawings: Detail Note Text Data
  3. User Interface: Basic Graphics: Controlling Text Fonts

Sample Code References:

  1. pt_examples ( TestDtlnote.c )
  2. pt_userguide ( UgNoteCreate.c )