在服务器上上传字体 [英] uploading font on server

查看:68
本文介绍了在服务器上上传字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我想在我的项目中使用字体类型bergell let。我已经下载了它的.ttf文件并且已经更改了我的css但是当我上传html文件时它没有显示我的字体。



我的css代码:

Hello,

I want to use font type bergell let in my project. I have downloaded .ttf file of it also and have made changes my css but when i upload html file it is not showing me the font.

My css code :

@font-face {
    font-family: Bergell LET;
    font-style:  normal;
    font-weight: 700;
    src: url(http://projectname.com/bergell_let_plain.ttf);
  }

Please help me out with this.

Thanks in advance.

推荐答案

您好,



请尝试以下链接,您可以在哪里找到您的字体转换,只需在以下链接上传您的ttf文件,它们将为您提供字体的代码在单独的CSS文件中,现在您可以在项目中使用该代码。但请记住,不要忘记包含一个包含字体的Font文件夹(当您转换文件夹时,它们也会提供相同的文件。)



1. br />
http://www.fontsquirrel.com/tools/webfont-generator [ ^ ]



2.

http://www.freefontconverter.com/ [ ^ ]



3.

http://www.font2web.com/ [ ^ ]
Hello,

Try below links, Where you can find the conversion of your font so just upload your ttf file on the below link they will provide you the code for your Font in separate CSS File so now you can use that code in you project. but remember do not forgot to include a separate folder of Font which contain the fonts(when you convert your folder they will also provide you same.)

1.
http://www.fontsquirrel.com/tools/webfont-generator[^]

2.
http://www.freefontconverter.com/[^]

3.
http://www.font2web.com/[^]


这篇关于在服务器上上传字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆