TBarCode Library 11  TBarCode Library 11

◆ BCSetLogFont()

ERRCODE BCSetLogFont ( t_BarCode pBarCode,
const LOGFONTA *  lf 
)

Sets the font of the currently active text object (usually the human readable text - Windows only).

Sets the font characteristics used for the human readable text and the extra texts.

Note
Pass a LOGFONTA structure. The font size in field lfHeight must be given in Point [1/72"]. We suggest to leave the field lfWidth 0. If you have to change it, you must set the width in 1/1000 mm.
Usage for printing and BCSaveImage()
// LOGFONTA font size = size [point]
pFont->lfHeight = sizeInPoints; // unit = [point]
Note
The currently active text object can be selected by calling BCSetActiveTextIndex().
We are using 8 Byte alignment!
Windows only
For UNIX use BCSetFontName() and BCSetFontHeight() instead.
See also
BCGetLogFont()
Parameters
[in]pBarCodePointer to barcode structure.
[in]lfPointer to LOGFONTA structure.
Return values
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.

© 2023 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Wed Apr 10 2024 13:55:57 for TBarCode Library 11 with doxygen 1.9.1