Category Graphics and model display, Object ProText

Function ProTextAttributesCurrentGet


Description
Retrieves the current text attributes. If the current text attributes have not already been modified by Creo Parametric TOOLKIT, this function returns the default text parameters.

The text attributes apply only to text that is output by ProGraphicsTextDisplay().

Replacement in Object TOOLKIT: pfcDisplay::CurrentFont
pfcDisplay::TextHeight
pfcDisplay::RotationAngle
pfcDisplay::SlantAngle
pfcDisplay::WidthFactor
Synopsis
#include <ProGraphic.h>
ProErrorProTextAttributesCurrentGet(
ProTextAttribute* attribute
/* (Out)
The current text attributes
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSThe attribute argument is NULL.
PRO_TK_E_NOT_FOUNDThe attributes were not set.
See Also
ProTextFontIdCurrentSet
ProTextHeightCurrentSet
ProTextWidthFactorCurrentSet
ProTextRotationAngleCurrentSet
ProTextSlantAngleCurrentSet
ProGraphicsTextDisplay

Manual References:

  1. User Interface: Basic Graphics: Controlling Text Attributes

Sample Code References:

  1. pt_examples ( TestDrawTbl.c )
  2. pt_examples ( TestText.c )
  3. pt_examples ( UtilTree.c )
  4. pt_userguide ( UgGraphPolyLineDraw.c )