Now I did (coerce (session-value 'font) 'simple-base-string) seems to work.<br><br>Thank you,<br>Andrew<br><br><br><div><span class="gmail_quote">On 3/24/07, <b class="gmail_sendername">Andrei Stebakov</b> <<a href="mailto:lispercat@gmail.com">
lispercat@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Looks like the value from (session-value) is BASE-STRING, and what the draw-freetype-string is looking for SIMPLE-BASE-STRING. Actually I setf the session value from the html form combo-box values. I wonder what can I do to make it right? Get latest FFI?
<br><br>Thank you,<br>Andrew<div><span class="e" id="q_11184039819596cb_1"><br><br><div><span class="gmail_quote">On 3/24/07, <b class="gmail_sendername">Edi Weitz</b> <<a href="mailto:edi@agharta.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
edi@agharta.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, 23 Mar 2007 22:26:41 -0500, "Andrei Stebakov" <<a href="mailto:lispercat@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lispercat@gmail.com</a>> wrote:<br><br>> I am not sure if it's hunchentoot or gd because when I specify
<br>
> "arial" for the functon, it works. When the same string comes from<br>> (session-value 'text) I got following error:<br>><br>> Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:<br>> "arial" is not of type (OR SIMPLE-BASE-STRING
<br>> NULL<br>> (ALIEN:ALIEN (* (ALIEN:SIGNED 8))))<br><br>Hmm, seems like a problem with the FFI of your Lisp. Try TYPE-OF to<br>see what kind of object (SESSION-VALUE 'TEXT) actually is.
<br>_______________________________________________<br>cl-gd-devel site list<br><a href="mailto:cl-gd-devel@common-lisp.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">cl-gd-devel@common-lisp.net
</a><br><a href="http://common-lisp.net/mailman/listinfo/cl-gd-devel" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://common-lisp.net/mailman/listinfo/cl-gd-devel</a><br></blockquote></div><br>
</span></div></blockquote></div><br>