<pre><span style="font-family: arial,sans-serif;">I am not sure if it's hunchentoot or gd because when I specify "arial" for the functon, it works.<br>When the same string comes from (session-value 'text) I got following error:
<br><br></span>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>0: (DEBUG:BACKTRACE 536870911 #<String-Output Stream>)<br>1: (HUNCHENTOOT:GET-BACKTRACE #<unused-arg>)<br>2: ("DEFUN PROCESS-REQUEST" #<TYPE-ERROR {58123B7D}>)<br>3: (SIGNAL #<TYPE-ERROR {58123B7D}>)
<br>4: (ERROR TYPE-ERROR<br> :FUNCTION-NAME CL-GD::GD-IMAGE-STRING-FT<br> :DATUM "arial"<br> :EXPECTED-TYPE (OR SIMPLE-BASE-STRING<br> NULL<br> (ALIEN:ALIEN (* (ALIEN:SIGNED 8)))))
<br>.<br>.<br>.<br>6: (KERNEL::INTERNAL-ERROR #.(SYSTEM:INT-SAP #x3FFFBF04) #<unused-arg>)<br>7: ("call_into_lisp+#x8C [#x805560C] /usr/bin/cmucl")<br>8: ("funcall2+#x2C [#x80553EE] /usr/bin/cmucl")
<br>9: ("interrupt_internal_error+#xC3 [#x80506F1] /usr/bin/cmucl")<br>10: ("sigtrap_handler+#x187 [#x8055260] /usr/bin/cmucl")<br>11: (CL-GD::GD-IMAGE-STRING-FT<br> #<Alien (*<br> (ALIEN:STRUCT CL-GD::GD-IMAGE
<br> (CL-GD::PIXELS (* (* (ALIEN:UNSIGNED 8))))<br> (CL-GD::SX (ALIEN:SIGNED 32)) (CL-GD::SY (ALIEN:SIGNED 32))<br> (CL-GD::COLORS-TOTAL (ALIEN:SIGNED 32))<br> (CL-GD::RED (ARRAY (ALIEN:SIGNED 32) 256))
<br> (CL-GD::GREEN (ARRAY (ALIEN:SIGNED 32) 256))<br> (CL-GD::BLUE (ARRAY (ALIEN:SIGNED 32) 256))<br> (OPEN (ARRAY (ALIEN:SIGNED 32) 256))<br> (CL-GD::TRANSPARENT (ALIEN:SIGNED 32))
<br> (CL-GD::POLY-INTS (* (ALIEN:SIGNED 32)))<br> (CL-GD::POLY-ALLOCATED (ALIEN:SIGNED 32))<br> (CL-GD::BRUSH (* (ALIEN:STRUCT CL-GD::GD-IMAGE)))<br> (CL-GD::TILE (* (ALIEN:STRUCT CL-GD::GD-IMAGE)))
<br> (CL-GD::BRUSH-COLOR-MAP (ARRAY (ALIEN:SIGNED 32) 256))<br> (CL-GD::TILE-COLOR-MAP (ARRAY (ALIEN:SIGNED 32) 256))<br> (CL-GD::STYLE-LENGTH (ALIEN:SIGNED 32))<br> (CL-GD::STYLE-POS (ALIEN:SIGNED 32))
<br> (CL-GD::STYLE (* (ALIEN:SIGNED 32)))<br> (CL-GD::INTERFACE (ALIEN:SIGNED 32))<br> (CL-GD::THICK (ALIEN:SIGNED 32))<br> (CL-GD::ALPHA (ARRAY (ALIEN:SIGNED 32) 256))
<br> (CL-GD::TRUE-COLOR (ALIEN:SIGNED 32))<br> (CL-GD::T-PIXELS (* (* (ALIEN:SIGNED 32))))<br> (CL-GD::ALPHA-BLENDING-FLAG (ALIEN:SIGNED 32))<br> (CL-GD::SAVE-ALPHA-FLAG (ALIEN:SIGNED 32))
<br> (CL-GD::AA (ALIEN:SIGNED 32))<br> (CL-GD::AA-COLOR (ALIEN:SIGNED 32))<br> (CL-GD::AA-DO-NOT-BLEND (ALIEN:SIGNED 32))<br> (CL-GD::AA-OPACITY (* (* (ALIEN:UNSIGNED 8))))
<br> (CL-GD::AA-POLYGON (ALIEN:SIGNED 32))<br> (CL-GD::AAL-X1 (ALIEN:SIGNED 32))<br> (CL-GD::AAL-Y1 (ALIEN:SIGNED 32))<br> (CL-GD::AAL-X2 (ALIEN:SIGNED 32))<br> (CL-GD::AAL-Y2 (ALIEN:SIGNED 32))
<br> (CL-GD::AAL-BX-AX (ALIEN:SIGNED 32))<br> (CL-GD::AAL-BY-AY (ALIEN:SIGNED 32))<br> (CL-GD::AAL-LAB-2 (ALIEN:SIGNED 32))<br> (CL-GD::AAL-LAB SINGLE-FLOAT) (CL-GD::CX1 (ALIEN:SIGNED 32))
<br> (CL-GD::CY1 (ALIEN:SIGNED 32)) (CL-GD::CX2 (ALIEN:SIGNED 32))<br> (CL-GD::CY2 (ALIEN:SIGNED 32)))) at #x00000000><br> #<Alien (* (ALIEN:SIGNED 32)) at #x0808D178><br> 0<br>
"arial"<br> 40.0d0<br> 0.0d0<br> 0<br> 0<br> "555")<br>12: (CL-GD:DRAW-FREETYPE-STRING 0<br> 0<br> "555"
<br> :ANTI-ALIASED T<br> :POINT-SIZE 40<br> :ANGLE 0<br> :CONVERT-CHARS T<br> :LINE-SPACING NIL
<br> :FONT-NAME "arial"<br> :DO-NOT-DRAW T<br> :COLOR 0<br> :IMAGE NIL)<br></pre>