m_write_printer_atb
This call sends to the printer the appropriate instruction needed to generate the desired attribute change in the following print stream data.
- Syntax: int m_write_printer_atb(AtbNo)
- Parameters: int AtbNo - Number of the attribute change desired See table below.
- Returns: The number of characters sent to the printer to cause the desired
attribute change.
-1 - if AtbNo is invalid
0 - if the associated attribute string is of length 0
- Comments: Attributes supported are bold, italics, underline, and combinations
thereof. Manifest constants for the attributes are available in
printer.h, as well as shown below.
ATB_B_ON 1 /* bold on */
ATB_B_OFF 2 /* bold off */
ATB_I_ON 3 /* italics on */
ATB_I_OFF 4 /* italics off */
ATB_U_ON 5 /* underline on */
ATB_U_OFF 6 /* underline off */
ATB_BI_ON 7 /* bold + italics on */
ATB_BI_OFF 8 /* bold + italics off */
ATB_BU_ON 9 /* bold + underline on */
ATB_BU_OFF 10 /* bold + underline off */
ATB_BIU_ON 11 /* bold + underline + italics on */
ATB_BIU_OFF 12 /* bold + underline + italics off */
ATB_IU_ON 13 /* italics + underline on */
ATB_IU_OFF 14 /* italics + underline off */