lcPaint_DrawText Home

Draws a text string, using active font.

 BOOL lcPaint_DrawText (
   HANDLE hLcWnd,
   double X,
   double Y,
   LPCWSTR szText
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
X Y
  Text insertion point.
szText
  Text string.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  Additional text parameters are got from global properties:

Property Type Access Meaning
LC_PROP_G_TEXT_ALIGN int RW Alignment type
LC_PROP_G_TEXT_H float RW Text height
LC_PROP_G_TEXT_WS float RW Width scale coefficient (0.1 - 10.0)
LC_PROP_G_TEXT_CSPACE float RW Charspace coefficient (0.0 - 3.0)
LC_PROP_G_TEXT_ANG float RW Rotation angle
LC_PROP_G_TEXT_OBL float RW Oblique angle
LC_PROP_G_TEXT_UPDOWN bool RW Upside-down direction
LC_PROP_G_TEXT_BACK bool RW Backward direction
LC_PROP_G_TEXT_FILL bool RW Filled characters
LC_PROP_G_TEXT_BORDER bool RW For filled characters: Display outline

See Also

  lcPaint_DrawText2lcPaint_FontSelect