DISCLAIMER: I know nothing about how to use the workshop, or programing in Pascal.
So how do you use this? I'll include a copy of the program here in case you haven't seen it.
program chars; {show Lisa's fonts}
uses {$U qd/quickdraw} quickdraw,
{$U qd/qdsupport} qdsupport,
{$U qd/hardware} hardware;
const heaplim = 10000; var heapbuf: array[0..heaplim] of integer;
myport: grafptr;
event: keyevent;
c,fontn: integer;
info: fontinfo;
penpos: point;
begin
qdinit(@heapbuf,@heapbuf[heaplim],nil);
openport(@myport); fontn:= 0;
repeat
fillrect(theport^.portrect,white);
textfont(fontn); getfontinfo(info);
moveto(5,info.ascent+5);
for c := 0 to 255 do
begin
drawchar(chr(c));
if fontn = 3 then move(15,0);
getpen(penpos);
if penpos.h > (720-info.widmax) then
moveto(5,penpos.v+info.ascent+info.descent+5);
end;
if keybdevent(true,true,event) then
if event.key = $06 then halt;
fontn := fontn+1;
until false;
end.
-Jason
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "LisaList" group. To post to this group, send email to lisalist_at_email.domain.hidden To unsubscribe from this group, send email to lisalist-unsubscribe_at_email.domain.hidden For more options, visit this group at http://groups.google.com/group/lisalist -~----------~----~----~----~------~----~------~--~---
. Received on 2015-07-15 16:36:37
This archive was generated by hypermail 2.4.0 : 2020-01-13 12:15:14 EST