将 Google Fonts 与 SVG <object> 结合使用 [英] Using Google Fonts with SVG &lt;object&gt;

查看:17
本文介绍了将 Google Fonts 与 SVG <object> 结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 <object> 标签在我的页面中嵌入了 SVG,它们应该使用 Google 字体(例如 Roboto).但是,SVG 不会选择这些字体,而是默认使用系统字体.

I'm embedding SVGs in my page with the <object> tag, and they're supposed to utilize Google Fonts (e.g. Roboto). However, the SVGs aren't picking these fonts up and instead default to system fonts.

我做错了什么?是否每个 SVG 都要求将字体本身嵌入到