FONT FACE被认为是有害的 [英] FONT FACE considered harmful

查看:121
本文介绍了FONT FACE被认为是有害的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是警告的说明
http://ppewww.ph.gla.ac.uk/~flavell/...onts.html#dont

你不应该指定一个当你在你的页面上有字符

西欧拉丁文1以外的字体。


参考测试页面是
http://www.unics.uni-hannover.de/nht ... emp / arial.html


这个 http://www.unics.uni-hannover.de/nht...face-arial.gif

太可怕了当我这样做时,Mac OS 9.1上会出现Mozilla 1.3

允许文档使用其他字体。你可以看到一些

[非拉丁-1]字符显示在芝加哥而不是Arial。


这个 http://www.unics.uni-hannover.de/nht ... ce-default.gif

是我不允许使用其他字体的结果,即使用

浏览器默认字体(此处:Palatino)。 />

Here is an illustration of the warning
http://ppewww.ph.gla.ac.uk/~flavell/...onts.html#dont
that you should not specify a typeface when you have characters
outside West European Latin-1 on your page.

The reference test page is
http://www.unics.uni-hannover.de/nht...emp/arial.html

This http://www.unics.uni-hannover.de/nht...face-arial.gif
is the horrible result in Mozilla 1.3 on Mac OS 9.1 when I do
"allow documents to use other fonts". You can see that some
[non-Latin-1] characters are displayed in Chicago instead of Arial.

This http://www.unics.uni-hannover.de/nht...ce-default.gif
is the result when I disallow to use other fonts, i.e. using the
browsers default typeface (here: Palatino).

推荐答案

Andreas Prilop写道:
Andreas Prilop wrote:
http://www.unics.uni-hannover.de/nht...face-arial.gif
是我在Mac OS 9.1上使用Mozilla 1.3时可怕的结果
允许文档使用其他字体。你可以看到一些
[非拉丁-1]字符显示在芝加哥而不是Arial。
This http://www.unics.uni-hannover.de/nht...face-arial.gif
is the horrible result in Mozilla 1.3 on Mac OS 9.1 when I do
"allow documents to use other fonts". You can see that some
[non-Latin-1] characters are displayed in Chicago instead of Arial.




这可能是因为你的Arial字体没有不包含

必需的字形。所以Mozilla玩得很聪明,至少可以为你显示

正确的角色。我没有看到任何异常,没有错......?

用户选择的默认字体不需要包含所有Unicode字符的字形

(使用HTML4文档)。因此,即使

作者没有指定字体,也可能会出现字符

使用与用户选择的默认字体不同的字体呈现。


这与试图显示希腊的用户问题相关

欧米茄字母如下:


< FONT face = 符号> W< / FONT>


但为什么世界上人们想要显示''W'字母,如

希腊欧米茄字母...只是因为符号而已。字体

不包含''W''字形。


-

Stanimir



This is probably because your Arial font doesn''t contain the
necessary glyphs. So Mozilla plays smart and at least shows the
right character for you. I see nothing unusual, nothing wrong... ?

The default font an user has chosen doesn''t necessary contain glyphs
for all the Unicode characters (a HTML4 document use). So even if an
author doesn''t specify a font face there may appear characters
rendered with different font from the default the user has chosen.

This is related to a user question who tried to display the greek
omega letter like this:

<FONT face="Symbol">W</FONT>

But why in the world one would want to display the ''W'' letter like
the greek omega letter... only just because the "Symbol" font
doesn''t contain ''W'' glyph.

--
Stanimir


2003年10月7日星期二,Stanimir Stamenkov写道:
On Tue, 7 Oct 2003, Stanimir Stamenkov wrote:
Andreas Prilop写道:
Andreas Prilop wrote:
这个 http://www.unics .uni-hannover.de / nht ... face-arial.gif
是Mac OS 9.1上Mozilla 1.3的可怕结果当我做允许文档使用其他字体时;。您可以看到一些
[非拉丁-1]字符显示在芝加哥而不是Arial。
这可能是因为您的Arial字体不包含
必需的字形。
This http://www.unics.uni-hannover.de/nht...face-arial.gif
is the horrible result in Mozilla 1.3 on Mac OS 9.1 when I do
"allow documents to use other fonts". You can see that some
[non-Latin-1] characters are displayed in Chicago instead of Arial.
This is probably because your Arial font doesn''t contain the
necessary glyphs.




毕竟这是安德烈亚斯的观点(但可能更糟糕的是:在某些情况下,在一些情况下,WinIE只会玩愚蠢的现在占位符字形,

而不是寻找其他字体。)

因此Mozilla玩得很聪明,至少能为你显示正确的角色。


确实;但这不是一个美丽的景象。

我没有看到任何异常,没有错......?


正如安德烈亚斯正确地说的那样,它在美容上是一团糟。

用户选择的默认字体不需要包含字形
对于所有Unicode字符(使用HTML4文档)。因此,即使
作者没有指定字体,也可能会出现使用与用户选择的默认字体不同的字体呈现的字符。


如果他们对他们正在做的事情有一些最低限度的兴趣,那么人们可能希望他们在他们的平台上使用可用的字体
/>
涵盖了他们习惯阅读的语言脚本。


他们处于更好的位置,知道这些字体是什么比一些

任意作者可能根本不熟悉他们的平台。

这与用户问题有关,他试图显示希腊语这样的欧米茄字母:

< FONT face ="符号"> W< / FONT>



That _is_ Andreas''s point, after all (but it could be worse: in some
situations, WinIE would just play dumb and present placeholder glyphs,
instead of looking for some other font).
So Mozilla plays smart and at least shows the right character for
you.
Indeed; but it''s not a pretty sight.
I see nothing unusual, nothing wrong... ?
As Andreas rightly says, it''s cosmetically a mess.
The default font an user has chosen doesn''t necessary contain glyphs
for all the Unicode characters (a HTML4 document use). So even if an
author doesn''t specify a font face there may appear characters
rendered with different font from the default the user has chosen.
If they take some minimal interest in what they''re doing, one might
expect them to be using a font available on their platform which
covers the language script(s) which they''re accustomed to reading.

They''re in a better position to know what those fonts are than some
arbitrary author who might not be familiar with their platform at all.
This is related to a user question who tried to display the greek
omega letter like this:

<FONT face="Symbol">W</FONT>




我们以前来过这里,很多倍。但它与安德烈亚斯正在制作的基本上不同点。



We''ve been here before, many times. But it''s a fundamentally
different point from the one which Andreas was making.


Alan J. Flavell写道:
Alan J. Flavell wrote:
我们以前来过很多次。但它与安德烈亚斯正在制造的基本上不同点。
We''ve been here before, many times. But it''s a fundamentally
different point from the one which Andreas was making.




O.k.好像我没有得到它,抱歉 - 可能是因为我的

糟糕的英语。


但是无论如何,我不认为指定字体系列是如此基本

邪恶(如果我这次正确的话)。


-

Stanimir


这篇关于FONT FACE被认为是有害的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆