Html 包含@font-face并将页面另存为

Html 包含@font-face并将页面另存为,html,css,Html,Css,我可以用@font-face嵌入自定义字体。但当页面保存在我的计算机上以显示为本地时,字体不会保存。 我在Firefox、Chrome和Safari上试过。问题总是一样的 如何强制将字体嵌入另存为?谢谢@PartiallyFinite,这是我的想法 url调用的顺序很重要,所以我发布了我的@font-face css属性: @font-face{ 字体系列:“我的自定义字体”; src:url('my_custom_font.eot'); src:url('my_custom_font.eot?

我可以用@font-face嵌入自定义字体。但当页面保存在我的计算机上以显示为本地时,字体不会保存。
我在Firefox、Chrome和Safari上试过。问题总是一样的


如何强制将字体嵌入另存为?

谢谢@PartiallyFinite,这是我的想法

url调用的顺序很重要,所以我发布了我的@font-face css属性:

@font-face{
字体系列:“我的自定义字体”;
src:url('my_custom_font.eot');
src:url('my_custom_font.eot?#iefix')格式('embedded-opentype'),
url(数据:字体/truetype;字符集=utf-8;base64,AAA…AAA=)格式('truetype'),
url('my_custom_font.woff')格式('woff'),
url('my_custom_font.ttf')格式('truetype'),
url(“my_custom_font.otf”)格式(“opentype”),
url('my_custom_font.svg#my_custom_font')格式('svg');
字体大小:正常;
字体风格:普通;
字体变体:正常;
}
备注:
url(数据:font/truetype)
必须在
.woff
之前出现,因此firefox使用
base64
而不是
.woff


在Firefox 20.0、Google Chrome 26.0.1410.65、Safari 6.0上测试。

您可以将自定义字体作为base64数据直接嵌入字体样式表中;这样,它就必须与样式表一起保存。