如何包含非标准字体面在蔚蓝的? [英] How to include a non-standard font-face in azure?
问题描述
我是新来的云的Azure为此事,使我第一次部署我公司今天。工作
I'm new to the cloud and Azure for that matter and made my first deployment for the company I work for today.
它位于 http://fleetcarma.cloudapp.net 目前为止,我能得到域名验证与湛蓝服务器。
It's located at http://fleetcarma.cloudapp.net currently until I am able to get the domain name to verify with the azure servers.
因此,一些是很奇怪的,当我在本地运行我的web服务,或在IIS上部署,我想用作品的字体。但是,当部署到Azure中,它没有,默认为类似各种各样的宋体。
So something is really weird, when I run my web service locally, or deployed on IIS, the font that I want to use works. But when deployed to Azure, it doesn't and defaults to something like a times new roman of sorts.
我已经包含了不同的字体类型了。
I've included the different font types too.
下面是CSS:
@font-face {
font-family: 'SlateStdBk';
src: url('/Content/ACTExpo/slatestd-bk1-webfont.eot');
src: url('/Content/ACTExpo/slatestd-bk1-webfont.eot?#iefix') format('embedded-opentype'),
url('/Content/ACTExpo/slatestd-bk1-webfont.woff') format('woff'),
url('/Content/ACTExpo/slatestd-bk1-webfont.ttf') format('truetype'),
url('/Content/ACTExpo/slatestd-bk1-webfont.svg#SlateStdBk') format('svg');
font-weight: normal;
font-style: normal;
}
我已经包含在内容文件夹中的字体。我已经看到了这一点:<一href=\"http://stackoverflow.com/questions/5114658/how-can-i-install-custom-fonts-on-windows-azure\">How我可以在Windows Azure上安装自定义字体?,但不会为我工作,因为我画的所有文字,是否正确?
I've included the fonts in the content folder. I've seen this: How can I install custom fonts on Windows Azure?, but that wouldn't work for me because I have to draw all the text, correct?
如果有人可以帮帮忙,我会很感激。
谢谢你在前进。
If anybody could help out, I would be really grateful. Thank you in advance.
推荐答案
感谢@Seva季托夫,我有同样的问题,在性能生成作用下选择内容后,它的工作就像一个魅力!
Thanks @Seva Titov, I had the same problem, after selecting "Content" under the Build Action on the properties, it worked like a charm!
这篇关于如何包含非标准字体面在蔚蓝的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!