我最近在 Railo 中使用 CFIMAGE 玩验证码,出于某种原因我
无法使其正常工作。它生成图像并且它
在浏览器中显示,但字体看起来很奇怪,而且字母
全部放置,通常一半在顶部,另一半在顶部
图像的底部。
这是我的代码:
这就是它生成的内容:
http://lecws.com/captcha.cfm
我缺少什么吗?我必须安装字体吗
服务器?我在 CentOS 5.3 64 位上运行 Railo 3.1.2.001 Final。
任何帮助表示赞赏。
乔治
I was playing around with CAPTCHA in Railo using CFIMAGE recently and for some reason I
couldn't make it work correctly. It generates the image and it
shows up in the browser, but the font looks strange and the letters
are placed all over, usually one half on top and the other on the
bottom of the image.
Here's my code:
<cfimage action="captcha" width="250" height="80" text="RAILO"
fonts="arial,verdana,times new roman, courier" fontsize="20"
difficulty="low" />
And this is what it generates:
http://lecws.com/captcha.cfm
Is there anything I'm missing? Do I have to install fonts on the
server? I'm running Railo 3.1.2.001 final on CentOS 5.3 64bit.
Any help is appreciated.
George
发布评论
评论(1)
这是解决方案,以防其他人遇到此问题。
我必须在我的服务器上安装字体。我使用本页上接受的解决方案来做到这一点:
www.experts-exchange.com/OS/Linux/Administration/Q_23644439.html
然后我必须重新启动 Railo,以便它读取新字体并解决问题。
非常感谢 Railo Google 论坛为我提供的帮助。
Here's the solution in case someone else runs into this issue.
I had to install fonts on my server. I did so using the accepted solution on this page:
www.experts-exchange.com/OS/Linux/Administration/Q_23644439.html
Then I had to restart Railo so that it read the new fonts and the problem was fixed.
Big thanks to the Railo Google Group for helping me with this.