问题描述
我的意思是如果我将字体大小设置为25px,我的文本的高度为25像素?
因为我尝试使用photoshop和如果我将字体大小设置为30px,常规大写字母(例如:B)将是24px高,正常字母(例如:a)将是19px高和j将是27px高。 br>
那么,什么确切意味着字体大小?
编辑:我的问题可能不清楚,那么,如何根据font-size计算一个字母的高度?
I have been wondering what exactly is the font size when it comes to web design.
I mean if I set the font size to 25px, will my text have a height of 25px ?
Because I tried that with photoshop and if I set the font size to 30px, a regular capital letter (ex: "B") will be 24px tall, a regular letter (ex: "a") will be 19px tall and a "j" will be 27px tall.
So what exactly means the font size ?
My question may not be clear so, how can you compute the height of a letter based on the font-size ?
推荐答案
它表示以最高字母的顶部为参考的大小,如I和下降字符的底部, p'
It represents the size taking as reference the top of the highest letter like a 'I' and the bottom of a descender character like a 'p'
您可以在
回答。
这篇关于什么是字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!