如何在linux和mac中使用Calibri字体 [英] how to use Calibri font in linux and mac

查看:2753
本文介绍了如何在linux和mac中使用Calibri字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目的所有文本在calibri我的选择,它的工作完美在所有主要的浏览器中的Windows os,但是当我们尝试部署相同的项目在Linux或Mac上的字体样式(字体系列,大小)更改和采取一些其他形式,它看起来很奇怪。它知道TTF(真字体类型)是为所有的O.S。
到目前为止,我有复制粘贴方法将calibri的文件从Windows复制到linux,但它对我不值得。

My project have all its text in calibri my choice, its working perfect in Window o.s in all major browser, but when we try to deploy the same project on Linux or Mac the font style (font family,size)changes and take some other form, it looks weird. Its known that TTF(True Type Fonts) are made for all O.S. Till now, I got the copy paste method to copy the file of calibri from Windows to linux but its not worthful for me.

我希望它不仅仅是一个特定的系统。

I want it to be general not just for a particular system.

推荐答案

你有它看起来在你的Windows机器上,因为calibri字体是在你的系统上。例如,macs在系统字体中没有calibri,这就是为什么它使用另一种字体,这是你在样式表中选择的第二个字体。你可能在你的css文件中有这样的东西:

you have it looking right on your windows machine because the calibri font is on your system. macs, for example, have no calibri in the system fonts, that's why it renders with another font, which is exactly the second one you choose on your style sheet. you probably have something like this in you css file:

font-family: calibri, arial;

如果系统没有calibri,则字体将以arial形式呈现。

if the system has no calibri, the fonts will be rendered in arial.

calibri是您可以购买的许可字体: http://www.fonts.com/font/microsoft-corporation/calibri?QueryFontType=Web&src=GoogleWebFonts

calibri is a licensed font you can buy: http://www.fonts.com/font/microsoft-corporation/calibri?QueryFontType=Web&src=GoogleWebFonts

i建议您使用类似google免费网络字体的东西: https://www.google.com/字体

i'd suggest you to use something that looks like it on google free web fonts: https://www.google.com/fonts

这篇关于如何在linux和mac中使用Calibri字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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