ImageGear for C and C++ on Windows v19.10 - Updated
IG_REC_redactor_font_get
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Redactor Functions > IG_REC_redactor_font_get

Gets the current font attributes for text drawn on the redacted image.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_redactor_font_get(
   const HIG_REC_REDACTOR higRecRedactor,
   AT_LOGFONT* const  lpLogFont
);

Arguments:

Name Type Description
higRecRedactor const HIG_REC_REDACTOR The handle to a redactor instance.
lpLogFont AT_LOGFONT* const The pointer to writable memory that will receive a copy of the current logical font attributes.

Return Value:

The number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

Example:

 
Copy Code
AT_ERRCOUNT errCount = 0 ;
HIG_REC_REDACTOR higRedactor = 0 ;
AT_LOGFONT logical_font = {0} ;

IG_REC_redactor_create( &higRedactor ) ;
errCount = IG_REC_redactor_font_get 
                          ( higRedactor, 
                            &logical_font
                          ) ;
IG_REC_redactor_delete( higRedactor ) ;

Remarks:

The font attributes for replacement text drawn on the source image within a match result bounding box.

The default value is NULL.

If NULL is specified, then the redactor will default to the font attributes for the default system font.

See Also

HIG_REC_REDACTOR