Padgetfont; Padgetfontsize - Hand Held Products PadCom TT1500 User Manual

Point-of-sale terminal control library
Table of Contents

Advertisement

padGetFont

Gets the current text font.
Syntax
int padGetFont(
void
)
Returns
Returns the current font number. The FontIDs correspond to the sizes specified in the table below:
Font ID
Horizontal Size
0
8
1
16
2
6
3
8
4
12
5
16
See Also
padSetFont, padPutText

padGetFontSize

This command returns the horizontal and vertical size of the character dimensions used in the specified font. For example,
on a Transaction Team 3100 Series, in font number 0 each character is 8 pixels wide and 8 pixels high. Calling this command
with the Id of 0 will return 8x8 (in pptPixels).
Syntax
int padGetFontSize(
BYTE Id,
padPOINT *pptPixels
)
Parameter
Id
pptPixels
The following table describes the relationship between font ID and the font sizes:
Font ID
Horizontal Size
0
8
1
16
2
6
3
8
4
12
5
16
Returns
Returns TRUE if function call succeeds and FALSE otherwise
3 - 14
Available for
Vertical Size
Transaction Team
3100 Series
8
YES
16
YES
8
YES
12
YES
16
YES
24
YES
Description
ID of the specified font
Pointer to store the obtained font size
Available for
Vertical Size
Transaction Team
3100 Series
8
YES
16
YES
8
YES
12
YES
16
YES
24
YES

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents