centos rz上传命令:css
yum install lrzszcentos
sz中的s意为send(发送),告诉客户端,我(服务器)要发送文件 send to cilent,就等同于客户端在下载。服务器
rz中的r意为received(接收),告诉客户端,我(服务器)要接收文件 received by cilent,就等同于客户端在上传。字体
从window电脑本地找到MSYH.TTC文件,重命名成MSYH.TTFurl
而后把这个文件上传到服务器上面,而后复制到、usr/share/fonts/路径下 spa
二、修改字体文件的权限,使root用户之外的用户也能够使用blog
# cd /usr/share/fonts/chinese/TrueType
# chmod 755 *.ttf图片
# mkfontscale (若是提示 mkfontscale: command not found,需自行安装 # yum install mkfontscale )
# mkfontdir
# fc-cache -fv (若是提示 fc-cache: command not found,则须要安装# yum install fontconfig
ci
而后依次执行
cd /usr/share/fonts/
一、mkfontscale
二、mkfontdir
三、fc-cache
到这里就安装完成了
能够用:fc-list :lang=zh 查看安装的中文字体文件上传
fc-list 查看服务器的全部字体
css 引入字体
@font-face {
font-family: 'Source Han Sans CN';
src: url('fonts/SourceHanSerifSC-SemiBold.otf');
}
.SourceHanSerifSC-SemiBold{
font-family: 'Source Han Sans CN';
}
<p class="SourceHanSerifSC-SemiBold">SourceHanSerifSC-Medium么怎样使用它呢?</p>