增加unicode符号的文本大小会占用过多的边距 [英] Increasing the text size of unicode symbol occupies too much margin
问题描述
我想使用unicode符号,我想要做的很大。但是当我这样做它需要很多的边距和填充,我不能控制。即使我设置边距和填充为零,这不能解决问题。所以我该怎么做?正常文字的行为是正常的,除了小的unicode符号。
这是一个有180px大小的符号,我突出显示它,所以你可以看到它周围的空间! >
编辑:
我尝试了一个普通字符'a',但它采用了相同的边距/ >
这种间距嵌入在字体字形本身,除了行高度属性外,不能真正克服。
如果你想要一个矢量化的字形,我会使用一个SVG元素。
I want to use a unicode symbol and I want to make really large. But when I do this it takes a lot of margins and padding that I'm not able to control. Even when I set the margins and padding to zero that doesn't fix the problem. So what should I do? The behavior with normal text is normal except for tiny unicode symbols.
Here is a symbol that has a 180pt size and I highlighted it so you can see the amount of space around it!
Edit:
I tried with a normal character 'a' but it took the same margins/padding!
This kind of spacing is embedded within the font glyph itself, and cannot really be overcome with CSS except by line height properties.
If you want a vectorised glyph, I would use an SVG element instead.
这篇关于增加unicode符号的文本大小会占用过多的边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!