New build of AfterGRASP is up for download:

http://www.aftergrasp.com/download/agsetup_20060910.exe

----------------------------------------------------------------------------
Sun, 10 September 2006

You can now use a loaded font as the face name in FONTDEFINE, and it will
scale that font to whatever size you specify. The resulting font is
always anti-aliased.

FONTSAVE changed to create fonts which include 2 more fields, the original
font height used in FONTDEFINE, and the width table scaling in floating
point (previously only an integer value was permitted) . Fonts saved
with this version of AfterGRASP will not load into previous builds of
AfterGRASP.  FONTLOAD will still load older fonts.


Example of using a single large non-anti-aliased font for many smaller
sizes:

        windowsize 960 724 32
        drawclear white

        sizelist = array(36,24,18,14,12,10,8)
        fontstyle init bold render

        fontdefine cs72b "corpoS" 72
        fontsavecompressed cs72b
        free cs72b

        fontload cs72b

        newscaledtestsingle cs72b

        fontstyle init underline render

        fontdefine cs72u "corpoS" 72
        fontsavecompressed cs72u
        free cs72u

        fontload cs72u

        newscaledtestsingle cs72u
        wait

        exitnow

newscaledtestsingle:
        declare sourcefont
        for newsize in strlist(@sizelist)
                fontstyle init anti
                fontdefine [EMAIL PROTECTED] @sourcefont @newsize
                font [EMAIL PROTECTED]
                color black
                textln "Scaled from non-anti-aliased 72pt to fontsize "[EMAIL 
PROTECTED]
        endloop
        return

----------------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"aftergrasp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/aftergrasp
-~----------~----~----~----~------~----~------~--~---

Reply via email to