Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.1
LEADTOOLS Raster Imaging C DLL Help

L_AnnGetFontName

Show in webframe

#include "l_bitmap.h"

L_LTANN_API L_INT L_AnnGetFontName(hObject, pFontName, puLen)

HANNOBJECT hObject;

/* handle to the annotation object */

L_TCHAR * pFontName;

/* pointer to the variable to be updated */

L_UINT *puLen;

/* address of integer variable to be updated with text length*/

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

Parameter

Description

hObject

Handle to the annotation object.

pFontName

Pointer to a character string to be updated with the name of the font used by the annotation object.

puLen

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

Returns

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

LTANN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64.

See Also

Functions:

L_AnnSetFontName, L_AnnSetFontSize, L_AnnGetFontSize, L_AnnSetFontUnderline, L_AnnGetFontUnderline, L_AnnSetFontStrikeThrough, L_AnnGetFontStrikeThrough, L_AnnSetFontItalic, L_AnnGetFontItalic, L_AnnSetFontBold, L_AnnGetFontBold

Topics:

Annotation Functions: Object Properties

 

Annotation Objects - Default Values

 

Annotation Objects - Automated Features

 

Implementing an Automated Annotation Program

 

Implementing a Non-automated Annotation Program

 

Obtaining Annotation Object Information

Example

For an example, refer to L_AnnSetFontName.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.