css - 我的网站需要 Prime 字体

标签 css font-family

我的网页设计师告诉我在我的网站上使用 prime regular 字体。

我没找到。

任何人都知道如何使用 font prime。

body
{
 font-family: ...
}

最佳答案

最终结果:

    <style type="text/css">
    @font-face {
    font-family: 'primelight';
    src: url('prime_light-webfont.eot');
    src: url('prime_light-webfont.eot?#iefix') format('embedded-opentype'),
         url('prime_light-webfont.woff') format('woff'),
         url('prime_light-webfont.ttf') format('truetype'),
         url('prime_light-webfont.svg#primelight') format('svg');
    font-weight: normal;
    font-style: normal;

}
    body { 
        font-family: "primelight", Verdana, Tahoma;
    }
    </style>
  1. 转到 http://fontfabric.com/prime-free-font/ 并下载字体

  2. 在您的网站中创建一个存储库:fonts/prime/

  3. 将 prime 文件放在里面,确保你有这样的东西:PrimeLight.otf

备选方案:

  1. 下载字体
  2. 使用所有选项转换它@ http://www.fontsquirrel.com/tools/webfont-generator

关于css - 我的网站需要 Prime 字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18679714/

相关文章:

css - HTML5 中的爱德华七世脚本到文本

CSS:如何为粗体字体系列设置回退?

javascript - 字体系列 iFrame 正文

html - 页脚下的额外空间

javascript - 在 jQuery/CSS 中使用上下文工具提示弹出叠加层

javascript - 改变菜单方向

javascript - JS : window. open - 如何设置 Open Sans 字体?

css - 将元素对齐到窗口底部

javascript - mini-css-extract-plugin 生成两个额外的 JS 文件

css - 仅当当前字体没有某些字符时才使用自定义字体