PT630 Programming Reference Guide
Page 6 of 59
------------------------------------------------------------------------------------------------------------------
1.2.3 Set
Font
Type
Entry Parameter: AH= 2
AL= 0/1 ; set to large/small font
Return Value:
None
void TL_font(int status)
{
regs.h.ah = (unsigned char)status;
regs.h.al = 2;
int86(0x09,®s,®s);
}
1.2.4 Get
Font
Type
Entry Parameter: AH= 3
Return Value: AL= 0/1 ; large/small font
int TL_get_font_type()
{
regs.h.ah = 3;
int86(0x09,®s,®s);
return(regs.h.al);
}
1.2.5 Set User-Defined Font for All Characters
Entry Parameter: AH= 4
AL= 0/1 ; large/small font
DS:DX ; pointer to the buffer with font data
; ( for large font: buffer size = 16*256 =4096 bytes
; for small font: buffer size = 6*256 =1536 bytes )
Return Value: None
void TL_change_all_ASCII_font(int type,unsigned char *str)
{
regs.h.ah=4;
regs.h.al=(unsigned char)type;
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
int86x(0x9,®s,®s,&segregs);
}