LAnnotation::GetFontName

Summary

Gets the font name (character string) for text in the annotation object.

Syntax

#include "ltwrappr.h"

virtual L_INT LAnnotation::GetFontName(pFontName, puLen)

Parameters

L_TCHAR * pFontName

Character string to be updated with the name of the font used by the annotation object.

L_UINT *puLen

Pointer to a variable to be updated with the length of pFontName string.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

To get the font name, the user should:

  1. Declare a variable of type L_UINT.
  2. Call this function passing the address of the variable as the puLen parameter and pFontName as NULL. The length will be returned in the variable *puLen.
  3. Allocate a buffer of size *puLen.
  4. Call this function passing the allocated buffer to the pFontName parameter to obtain the text.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to LAnnotation::SetNameOptions.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.