[英]using Lucida Grande in windows
我想在我的Windows网站上使用Lucida Grande。
怎么做 ? 我怎么能把它嵌入我的网页?
谢谢
我只是在找同样的东西,偶然发现了这篇文章:
http://www.brownbatterystudios.com/sixthings/2007/03/14/lucida-hybrid-the-grande-alternative/
它基本上建议使用Lucida Sans Unicode
作为普通文本,使用Lucida Sans
作为粗体和斜体文本。
body {
font-family: "Lucida Sans Unicode";
}
b, strong, i {
font-family: "Lucida Sans";
}
来自链接网站的完整代码示例(包括后备字体):
body {
font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}
strong, em, b, i {
font-family: "Lucida Sans", "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}
这是我过去使用的字体堆栈:
font-family: 'Lucida Grande', Tahoma, Verdana, Arial, sans-serif;
你可以尝试这样的事情:
<style type="text/css">
@font-face {
font-family: "Lucida Grande";
src: url(/resources/fonts/lucidagrande.ttf);
}
.ace {
font-family: "Lucida Grande";
font-size: 90%;
}
</style>
你应该调整src:
行中使用的url和.ttf
文件的磁盘上的实际位置(取决于多个因素:你的文档根位置,或者你是否使用单独的服务器来获取静态资源等)。
您可以尝试将Lucida Grande添加到font-family
标签中
element {
font-family: "Lucida Grande", Arial, Helvetica, sans-serif;
}
并希望用户安装Lucida Grande或从W3C阅读: http : //www.w3.org/TR/css3-fonts/#font-family0-这里他们解释了如何嵌入字体(使用CSS3)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.