How to draw text on a surface?

34 views
Skip to first unread message

Andres Orellana

unread,
Mar 7, 2014, 6:20:34 PM3/7/14
to lispb...@googlegroups.com
I tried following the example
(WITH-COLOR (*WHITE*)
 
(WITH-FONT (*FONT-10x20*)
   
(DRAW-STRING-SOLID-* "Font is 10x20." 10 10)
but i get this message 
Required arguments in (LISPBUILDER-SDL:*FONT-10X20*) don't match lambda list (LISPBUILDER-SDL::FONT
                                                                              LISPBUILDER-SDL::FONT-DEFINITION).

Luke Crook

unread,
Mar 7, 2014, 9:31:25 PM3/7/14
to lispb...@googlegroups.com
Hi Andres,

Do the font examples work for you?

/Luke
--
You received this message because you are subscribed to the Google Groups "Lispbuilder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispbuilder...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andres Orellana

unread,
Mar 10, 2014, 2:56:03 PM3/10/14
to lispb...@googlegroups.com
I put this before the code and it worked 
(sdl:initialise-default-font sdl:*font-9x18*)
Reply all
Reply to author
Forward
0 new messages