home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 February
/
PCWK0296.iso
/
sharewar
/
os2
/
program
/
liberty
/
fonttest.bas
< prev
next >
Wrap
BASIC Source File
|
1995-02-02
|
815b
|
30 lines
'when specifying a monospaced (fixed width) font
'the height and width specified must be exactly
'the width and height of a real monospaced font
'or you might get a different font approximately
'the size you specify.
'PM's font handling (like in Windows) is designed
'to return approximate matches based on names and
'sizes of fonts.
'Common heights for the System Monospaced font in
'OS/2 are 8x8 8x12 and 9x20
'Note that the current font handling (v.07) does only
'remembers the last font used on the redraw
open "Test me" for graphics as #1
print #1, "place 10 25" ;
print #1, "font SystemMonospaced 8 12" ;
print #1, "\This is SystemMonospaced"
print #1, "place 10 45" ;
print #1, "font Courier 8 12" ;
print #1, "\This is Courier"
input r$
close #1