SVG字母间距也为Firefox [英] SVG letter-spacing also for the firefox

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

问题描述

SVG text 是否还有另外一种替代 letter-spacing 的替代方法?

这个代码是< 在Chrome上使用 ,但不在 Firefox 上使用 https://developer.mozilla.org/de/docs/Web/CSS/letter-spacing



正如你所看到的那样,由于一个bug,Firefox现在不支持它。但我真的需要在两个浏览器中的字母间距。那么是否有一个很好的SVG文本的替代?



顺便说一下 word-spacing 。在Chrome中完美工作,但不在Firefox上。解决方案我的解决方案是在QGIS中创建带有(多个)空白字符串的字符串。这是不好的方法,因为如果你想给所有的元素一个更大的空间需要很长的时间。

但是它很容易,并且可以在任何浏览器上以相同的方式工作。所以如果你在geojson或者topojson中有你的数据的话,这就是要走的路。


Is there another alternative to letter-spacing in terms of SVG text?

This code is working on Chrome but not on Firefox:

https://developer.mozilla.org/de/docs/Web/CSS/letter-spacing

As you can see there Firefox is not supporting it right now due to a bug. But I really need letter-spacing in both browser. So is there a good anternative for SVG text?

Btw the same is on word-spacing. Working in Chrome perfectly but not on Firefox.

解决方案

My solution was that I create the strings with (multiple)whitespaces in QGIS. This is bad way because if you want to give all elements a bigger space it takes a long time.

But it is easy and works on any browser in the same way. So this is the way to go if you have your data in geojson or topojson.

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

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