我想用“monotype corsiva”字体显示我的商业标语,它在 Google 字体上不可用,所以任何人都可以帮助我。
最佳答案
将所有这些字体格式粘贴到您的 css 文件夹 otf/ttf/woff 中。
在你的样式表中添加:-
@font-face {
font-family: 'MTCORSVA';
src: url('./MTCORSVA.eot');
src: local('MTCORSVA'), url('./MTCORSVA.woff') format('woff'), url('./MTCORSVA.ttf') format('truetype');
}
现在使用它来应用字体系列 font-family: 'MTCORSVA';
关于php - 我怎样才能在网站上使用本地字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49399399/