imagettftext没有小字体的反别名 - >丑陋 [英] imagettftext w/o anti alias in small font sizes -> ugly

查看:60
本文介绍了imagettftext没有小字体的反别名 - >丑陋的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用ImageTTFText时遇到问题:我想要Arial中的文本,8pt,

没有抗锯齿。结果非常难看,我怎么能得到它

就像它会在浏览器窗口或photoshop中显示一样?

i尝试了很多东西并进行了搜索,但是找不到解决方案

这个...非常感谢帮助!谢谢

i have a problem using ImageTTFText: I want a Text in Arial , 8pt,
without Anti-Aliasing . The result is very ugly, how can i get it
proper like it would be displayed in the browser window or photoshop?
i tried a lot of things and searched, but did not find a solution to
this...help is very much appreciated! thank you

推荐答案



< bl ************* @ googlemail。在消息中写道

新闻:c6 ********************************** @ t54g2000 hsg.googlegroups.com ...

<bl*************@googlemail.comwrote in message
news:c6**********************************@t54g2000 hsg.googlegroups.com...

>我在使用ImageTTFText时遇到问题:我想要Arial中的文字,8pt,

没有抗锯齿。结果非常难看,我怎么能得到它

就像在浏览器窗口中显示一样或者

photoshop?

i试过很多东西和搜索,但没有找到解决方案

这...帮助非常感谢!谢谢
>i have a problem using ImageTTFText: I want a Text in Arial , 8pt,
without Anti-Aliasing . The result is very ugly, how can i get it
proper like it would be displayed in the browser window or
photoshop?
i tried a lot of things and searched, but did not find a solution to
this...help is very much appreciated! thank you



很抱歉让你失望,但这是不可能的。


没有抗锯齿或灰度插值,你不能得到

屏幕上的小文字。


考虑一下:

8分左右是8像素在72 DPI。尝试在这些维度中绘制一个角色

。你得到像素化的图形。


你在说什么浏览器?

什么操作系统?


所有操作系统和浏览器有平滑的文字,这意味着它们会自动消除锯齿现象。


理查德。


BTW:

计算机屏幕上没有Point这样的单位。屏幕上唯一真正的

单位是一个像素。点数用于打印。

Sorry to disappoint you, but it is not possible.

Without anti-aliasing or grey-scale interpolation, you can not get
smooth small text on a screen.

Consider this:
8 points would be around 8 pixels at 72 DPI. Try to draw a character
in those dimensions. You get pixelated graphics.

Which browser are you talking about anyway?
What OS?

All OSes and browsers have smooth text, meaning they do anti-aliasing
automatically.

Richard.

BTW:
There is no such unit as a Point on a computer screen. The only real
unit on a screen is a pixel. Points are for printing.


这可能有助于解释:
http://img170.imageshack.us/img170/636/testsu2.jpg


你可以''不幸的是看到太多的文字,但是看看0......它的价格是b $ b noch显示正确的所有其他角色......
maybe this helps explaining:
http://img170.imageshack.us/img170/636/testsu2.jpg

you can''t see too much text unfortunately, but look at the "0"...it''s
noch displayed correct an so are all other characters...


尝试使用32px字体写入另一个图像处理程序,然后使用imagecopyresampled()将其复制到图像中并使其成为宽度和

高度的一半......这是我用于平滑的技巧,而不是

andti-aliasing它应该给你更好的结果,但不是因为

如你所希望的那样顺利。


问候,

George Maicovschi。
Try writing to another image handler with 32px font and then copy it
in your image using imagecopyresampled() and making it''s width and
height half of what it was...It''s a trick I use for smoothing without
andti-aliasing and it should give you better results, but not as
smooth as you are hoping.

Regards,
George Maicovschi.


这篇关于imagettftext没有小字体的反别名 - &gt;丑陋的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆