文字的像素大小 [英] Pixel size of text

查看:132
本文介绍了文字的像素大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何获取任何字符串的像素大小?我希望得到像素的长度。


谢谢。

Hi,
How to get the pixel size of any string? I want to get the length it is taking in terms of pixels.

Thanks.

推荐答案

你是什么意思a像素?

像素是图形元素。字符串是一个字符数组。这些有什么共同之处?这就像问一磅黄油的重量华氏度。 : - )
What do you mean by a "pixel"?

A pixel is graphics element. A string is an array of characters. What do these have in common? It''s like asking how much a pound of butter weighs in degrees Fahrenheit. :-)


我的意思是连接该字符串两端的最低直线将包含多少像素。我想计算一下。
I mean that the lowest straight line joining the two ends of that string will contain how many pixels. I want to calculate that.


你想用哪种字体?

点大小是多少?

什么是字形布局?

怎么样的字距调整?

等......
Which font do you want to use?
What is the point size?
What is the glyph layout?
What about kerning?
etc...


这篇关于文字的像素大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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