arcgis for js api导入eclipse svg文件错误

本文介绍了解决在使用ArcGIS JS API时遇到的font-face错误的步骤,包括从SVG网站获取示例并修改代码。通过替换原有font-face属性,问题得以解决。解释了修改内容背后的原理,并提供了可能的用途。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

arcgis_js_api\library\3.12\3.12\esri\dijit\font\popup.svg  和

arcgis_js_api\library\3.12\3.12\esri\dijit\font\search.svg font-face错误

方法:

去svg网站找了个font-face的例子覆盖原来的

原内容分别是:

<font-face font-family="popup" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />


<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />

修改后的内容分别是:

<font-face font-family="popup" font-weight="400" font-style="normal" units-per-em="1000" ascent="850" descent="-150">
<font-face-src>
<font-face-name name="Super Sans Bold"/>
</font-face-src>
</font-face>


<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150">
<font-face-src>
<font-face-name name="Super Sans Bold"/>
</font-face-src>
</font-face>

Ok没错误了 添加这个东西没太搞清楚是干什么的,请大神帮忙解答。

我猜可能是给font-face 起个名字

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

筱芙淘趣坊

为嗷嗷待哺的我助力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值