' ' Some neat font thingys ' ' ' txt$ = Text to display ' sx% = Starting x coordinate for text, use -1 to center ' sy% = Starting y coordinate for text ' clr% = Color of neat text ' sty% = sty%le of text to use ' size% = size% to make neat text (1 TO 10) ' ' lnh = Length of text ' ' sty%les of the neat fonts ' 1. Filled in square ' 2. Hollow square ' 3. Hollow circle ' 4. Filled in circle ' 5. Single pixle ' 6. Hollow triangle ' 7. Filled in triangle ' 8. Forward slant ' 9. Backward slant ' DECLARE SUB NeatFont (txt$, sx%, sy%, clr%, sty%, size%) DIM SHARED txt AS STRING, sx%, sy%, clr%, sty%, size% CLS : SCREEN 12 CALL NeatFont("Hello There Steve", -1, 100, 4, 8, 4) SUB NeatFont (txt$, sx%, sy%, clr%, sty%, size%) lnh% = LEN(txt$) IF sx% = -1 THEN sx% = (640 - ((lnh% * 8) * size%)) / 2 sx2% = sx%: l% = lnh% * 8 COLOR 8: LOCATE 1, 1: PRINT txt$ FOR y% = 0 TO 15 FOR x% = 0 TO l% IF POINT(x%, y%) <> 0 THEN IF sty% = 1 THEN LINE (sx2% - size%, sy% - size%)-(sx2%, sy%), clr%, BF IF sty% = 2 THEN LINE (sx2% - size%, sy% - size%)-(sx2%, sy%), clr%, B IF sty% = 3 THEN CIRCLE (sx2% - (size% / 2), sy% - (size% / 2)), size% / 2, clr% IF sty% = 4 THEN CIRCLE (sx2% - (size% / 2), sy% - (size% / 2)), size% / 2, clr% PAINT (sx2% - (size% / 2), sy% - (size% / 2)), clr% END IF IF sty% = 5 THEN PSET (sx2% - (size% / 2), sy% - (size% / 2)), clr% IF sty% = 6 OR sty% = 7 THEN LINE (sx2% - (size% / 2), sy% - size%)-(sx2% - size%, sy%), clr% LINE (sx2% - (size% / 2), sy% - size%)-(sx2%, sy%), clr% LINE (sx2% - size%, sy%)-(sx2%, sy%), clr% END IF IF sty% = 7 THEN PAINT (sx2% - (size% / 2), sy% - (size% / 2)), clr% IF sty% = 8 THEN LINE (sx2%, sy% - size%)-(sx2% - size%, sy%), clr% IF sty% = 9 THEN LINE (sx2% - size%, sy% - size%)-(sx2%, sy%), clr% END IF sx2% = sx2% + size% NEXT x% sy% = sy% + size%: sx2% = sx% NEXT y% LOCATE 1, 1: COLOR 0: PRINT txt$ END SUB