HBCMS更多的中文手册参考:

@font-face Rule

DHTML文档教程

Sets a font to embed in the HTML document.

dhtml语法

HTML@font-face { sFace }
ScriptingN/A

DHTML可能的值

sFaceString that specifies one of the following values:
font-family:fontFamilyNameAny of the range of values available to the fontfamily attribute.
src:url(sURL)Location of the font file, where sURL is an absolute or relative URL.

Remarks

The rule has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

this feature allows you to use specific fonts that might not be available on your local system. the url must point to an embedded opentype file (.eot or .ote format). the file contains compressed font data that is converted to a truetype font. for more information about the font embedding feature and pointers to a tool for creating .eot files, see about font embedding.

DHTML代码范例

The following example embeds a font in an HTML document by pointing to the font source, which is located at another site.

<HTML>
<HEAD>
<STYLE>
@font-face {
font-family:comic;
src:url(http://valid_url/some_font_file.eot);
}
</STYLE>
</HEAD>
<BODY>
<P STYLE="font-family:comic;font-size:18pt">
This paragraph uses the font-face rule defined
in the above style element.  The rule embeds
an OpenType file for the Comic Sans font.
</P>
</BODY>
</HTML>

是否符合公共标准

This rule is defined in Cascading Style Sheets (CSS), Level 2 (CSS2) Non-Microsoft link.