3

I'm using a webfont which is hosted by fonts.com. It renders normally in Chrome, Firefox, Safari, but not in any version of Internet Explorer. Even IE10 is not rendering it.

The project runs with Plone. The css file is registered normally via Cssregestry. But this shouldn't make any difference to a normal site.

To all who are familiar with Plone, this is the registry:

<stylesheet
    bundle="aufhebenswert"
    id="http://fast.fonts.com/cssapi/47bc7d51-3bb8-428d-a077-06d3d6f54eae.css"
    insert-after="*"
    cacheable="False"
    compression="none"
    cookable="False"
    enabled="True"
    media="screen"
    rel="stylesheet"
    rendering="link"/>

to all others, this is was appears in the HTML site:

<link rel="stylesheet" type="text/css" media="screen" href="http://fast.fonts.com/cssapi/47bc7d51-3bb8-428d-a077-06d3d6f54eae.css">

In IE the link is rendered exactly like in chrome or FF , ...

Sadly I couldn't find any solution in other questions that have been asked here before. Also google search haven't been successful.

Is there any known issue or did I do something wrong?

Officially the fonts.com fonts should work in IE 4 and upper versions.

4

1 回答 1

1

我怀疑应用的样式表中缺少字体的本地源:

src: local(fontfamilyname) local(fontname)

这可能与++resource++Plone 中使用的 -paths 有关。

样式表似乎受到身份验证机制的保护,因为将样式表直接从给定的 url 应用到测试模板中可以正常工作,而应用它的本地副本则不行。

您的字体提供程序是否让您获得实际的字体文件或自定义样式表?如果是,应用字体文件和样式表的本地副本,将字体 URL 替换为您的 Plone-product-URL 并用本地源补充样式规则。

于 2013-05-06T11:47:17.513 回答