网页文字字体

liubingqian 2002-08-25 04:11:34
我的网页需要用到某种字体,可是用户系统中没有安装该字体,请问如何在用户机器中下载并安装该字体(最好不需要用户干预安装过程)?
字体文件已放在网上。
...全文
56 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
xchunyu 2002-08-26
  • 打赏
  • 举报
回复


msdn中有关于font embed(嵌入)技术,
可以在客户端动态潜入你需要用户显示的字体,不过最好是英文,
不过我想即使可能,字体也必须是英文,因为中文字体文件太大了。

你可以到msdn网站library搜索以上关键字,
我记得有实例讲解,而且不是很麻烦。

dayu 2002-08-26
  • 打赏
  • 举报
回复
根本不用下载字体,看我的网站 www.pen365.com
到“自我设计”,选1号模板
孟子E章 2002-08-25
  • 打赏
  • 举报
回复
@font-face Rule

--------------------------------------------------------------------------------

Sets a font to embed in the HTML document.

Syntax

HTML @font-face { sFace }
Scripting N/A

Possible Values

sFace String that specifies one of the following values:font-family:fontFamilyName Any 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 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 Font Embedding.

Example

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>
dugucan 2002-08-25
  • 打赏
  • 举报
回复
不是吧,如果你机上没装日语的话,打开日本网站,就会提示安装的!
advanced 2002-08-25
  • 打赏
  • 举报
回复
只能作为普通文件下载,自己安装,没有别的办法。

87,901

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧