Informix 4GL is a text based tool. One can not expect the functionality of GUI to be availble in it. The product Informix Dynamic 4GL (D4GL) is capable of printing the matters using different fonts and sizes.
However, you may use your printer (hardware) capability to print such fonts as double strikes, double width, double height, compressed etc. depending upon make & model of the printer. Refer to your printer mannual for more information about this matter.
Following is a sample 4GL code applicable to Epson campatible dot-matrix printer.
database testdb
define ds_on,ds_off,dw_on,dw_off,cm_on,cm_off varchar(6)
main
let ds_on = ascii(27), ascii(71)
let ds_off = ascii(27), ascii(72)
let dw_on = ascii(27), ascii(14)
let dw_off = ascii(27), ascii(20)
let cm_on = ascii(27), ascii(15)
let cm_off = ascii(27), ascii(18)
start report font to "test.txt"
output to report font()
finish report font
end main
report font()
output
left margin 0
format
on every row
print ds_on, "THIS IS DOUBLE STRIKE", ds_off
print dw_on, "THIS IS DOUBLE WIDTH ", dw_off
print cm_on, "THIS IS COMPRESSED ", cm_off
end report
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.