Raphaeljs在IE中将所有文本呈现为Italic [英] Raphaeljs renders all text as Italic in IE

查看:147
本文介绍了Raphaeljs在IE中将所有文本呈现为Italic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 RaphaelJS 直观地表示某些数据。底层技术是SVG,所以显然在IE中并不总能很好地工作,但是库仍然能够提供有用的东西,尽管它往往看起来很差。

I'm using RaphaelJS for visually representing some data. The underlying technology is SVG so obviously things don't always work that well in IE, but the library does a relatively ok job of still rendering something useful, although it often tends to look pretty poor.

无论如何,我似乎无法解决这个基本问题。文字在Chrome或FireFox中呈现正常,但在IE8中所有内容都呈现为粗体和斜体。

In any case, I can't seem to get around this basic issue. Text is rendered fine in Chrome or FireFox, but everything renders as bold and italic in IE8.

要查看我的问题,请转到 RaphaelJS游乐场并使用以下代码

To see my issue in action, go to the RaphaelJS playground and use the following code

paper.text(100, 100, "this is the text")

这是导致Chrome和IE。

Here is the result in Chrome and IE.


这是否有解决方法?

推荐答案

你试过 .attr({font-family:xxxxxx, font-weight:400});

这篇关于Raphaeljs在IE中将所有文本呈现为Italic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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