home *** CD-ROM | disk | FTP | other *** search
- '─ Area: F-QUICKBASIC ─────────────────────────────────────────────────────────
- ' Msg#: 307 Date: 16 Apr 94 23:50:02
- ' From: Steve Demo Read: Yes Replied: No
- ' To: Chris Walker Mark:
- ' Subj: Custom Fonts Free Code!
- '──────────────────────────────────────────────────────────────────────────────
- CW> I am currently in the process of writing a graphical terminal
- CW> Each screen mode (2,3,4,8,10,11,12) has it's own character
-
- DEFINT A-Z
- '**Please Note xx & yy are opposite of what you might expect
- DECLARE SUB ColorPrint (xx, yy, clur, a$, Array())
- SCREEN 13
- RANDOMIZE TIMER
- DIM Array(20736)
- FOR Letter = 0 TO 255
- LOCATE 1, 1
- PRINT CHR$(Letter)
- FOR x = 0 TO 8 'load the Char Set into an Array
- FOR y = 0 TO 8
- Counter = Counter + 1
- Array(Counter) = POINT(x, y)
- NEXT: NEXT
- NEXT Letter ' end loading
- PAINT (1, 1), 82
- FOR x = 1 TO 50 ' Draw some junk
- C1 = INT(RND * 295) + 1
- C2 = INT(RND * 165) + 1
- C3 = INT(RND * 20)
- C4 = INT(RND * 100) + 1
- CIRCLE (C1, C2), C3, C4
- PAINT (C1, C2), C4, C4
- NEXT 'end drawing
- ' ****************** Test routine ***********************
-
- ColorPrint 20, 20, 12, "Hello My Name is Steve Demo", Array()
- ColorPrint 20, 50, 1, "Don't you Think this is Cool!", Array()
- ColorPrint 20, 80, 9, "Well get busy codeing already Dude!", Array()
- ColorPrint 20, 100, 190, "1234567890" + CHR$(184), Array()
-
- ' I guess it works
- ' Steve Demo
-
-
- SUB ColorPrint (xx, yy, clur, a$, Array())
- FOR WordList = 1 TO LEN(a$)
- kt = (ASC(MID$(a$, WordList, 1))) * 81
- FOR xt = 0 TO 8
- FOR yt = 0 TO 8
- kt = kt + 1
- IF Array(kt) <> 0 THEN PSET (xt + xx + NxtLtr, yt + yy), clur
- NEXT: NEXT
- kt = 0
- NxtLtr = NxtLtr + 8
- NEXT WordList
- END SUB
-