css - 是否可以添加 Myriad pro 字体,就像离线 Web 应用程序的自定义字体一样

标签 css fonts webfonts typography typekit

用户需要网站中的 Myriad Pro 字体,该网站没有互联网连接来访问 https://typekit.com/fonts/myriad?ctx=syncfont:6851.js访问字体。

没有在 head 标签中提供 adobe 套件安装和 typekit 链接 页面是否有任何其他方法可以像其他自定义字体一样使用上述字体。

是否可以将字体放在本地的某个文件夹中,如下所示

@font-face {
  font-family: 'MyWebFont';
  src: url('webfont.eot'); /* IE9 Compat Modes */
  src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('webfont.woff2') format('woff2'), /* Super Modern Browsers */
       url('webfont.woff') format('woff'), /* Pretty Modern Browsers */
       url('webfont.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}

最佳答案

这应该可以回答您的问题 - 它是 Typekit Font Licensing 的摘录页面。

Can I use web fonts on my personal or company website?
Yes. If your website is viewed in the browser–either on the desktop or on a mobile device–it's covered by the web font license. The web font license also requires that the fonts be added to your website by the embed code that we provide. The tutorial on adding fonts to your website shows how it works.

Can I embed web fonts in a mobile or desktop application I’m building?
No. Neither the sync font license or web font license allows you to embed the fonts within mobile or desktop applications. This requires an appropriate license to be purchased directly from the foundry or one of their authorized resellers.

Can I host the web font files on my own server?
No. Typekit doesn't offer the ability to locally host fonts. Typekit web font hosting delivers fonts from a globally-distributed content delivery network (CDN), which performs much better and is more scalable than using local hosting for static assets.

Can I use web fonts for anything else?
Probably not. The Typekit web font license requires that the fonts be added to a website with the embed code that we provide. If your website or web application is viewed in the browser–either on the desktop or on a mobile device–it's covered by the web font license.

If you have questions on any type of project not covered in this page, get in touch with the Typekit support team at support@typekit.com.

关于css - 是否可以添加 Myriad pro 字体,就像离线 Web 应用程序的自定义字体一样,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47638703/

相关文章:

css - 聊天 HTML 页面建议

javascript - 单击时更改 div 中的图像

css - 在 CSS 中仅使用衬线作为字体

java - 在未设置的 android 字体上使用 iText

javascript - Web 应用程序加载屏幕

javascript - 无法使用javascript设置Object Division的高度

html - 我可以以未安装字体的用户身份查看我的网站吗?

webfonts - 如何使用 Webpack Encore 和 webfonts-loader 预加载字体?

css - 自定义 css 字体未加载

html - 如何使字体在浏览器中看起来很旧且过时