浏览器文本大小设置 [英] Browser text size setting

查看:89
本文介绍了浏览器文本大小设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找出浏览器设置的文字大小?


感谢您的期待。

How to I find out what size text the browser is set to?

Thanks in anticipation.

推荐答案

Roger Withnell写道:
Roger Withnell wrote:
如何找出浏览器设置的文本大小?


var textSize = prompt(请输入浏览器的文字大小);


哈哈......: - )


文字大小的概念在不同的浏览器中有所不同。 IE使用

最大,更大,更小等基于系统

设置的基本大小。 Firefox的基本字体大小以pts为单位,然后从那里调整为
(系统设置也会对其产生影响)。


其他浏览器可能还有其他浏览器方法,例如IE 7 Opera也有缩放

因子。不同的平台增加了混合。


所以停止想要知道甚至关心特定浏览器可能具有的字体大小设置

。使你的字体看起来相对于每个

其他字体,并将其余部分留给用户。您可以获得更多帮助或

建议:


新闻:comp.infosystems。 www.authoring.stylesheets


试试这个:


< URL :http://db.tidbits.com/getbits.acgi?tbart = 05284>

回首Mac使用72dpi的屏幕字体,但显得太小了

Windows的开发人员,因此他们使用默认值96dpi。发送

为96dpi制作的图像到72dpi的屏幕使图像更大。

但是,现在这些字体看起来太大,所以每个人都制作他们的网络字体

90%甚至80%。


所有因为一个软件供应商试图欺骗系统...请

不要复合问题。


感谢您的期待。
How to I find out what size text the browser is set to?
var textSize = prompt("Please enter your browser''s text size");

Ha ha... :-)

The concept of ''text size'' is different in different browsers. IE uses
largest, larger, smaller, etc. with a base ''size'' based on system
settings. Firefox has a base font size in pts and then adjusts from
there (and system settings have an effect on it too).

Other browsers likely have other methods, e.g. IE 7 Opera has a zoom
factor as well. Different platforms add to the mix.

So stop wanting to know or even care about what font size setting a
particular browser may have. Make your fonts look good relative to each
other and leave the rest up to the user. You may get more help or
advice in:

news:comp.infosystems.www.authoring.stylesheets

Try this:

<URL:http://db.tidbits.com/getbits.acgi?tbart=05284>
Way back Macs used 72dpi for screen fonts but that appeared too small
for the developers of Windows, so they used a default of 96dpi. Sending
an image made for 96dpi to a 72dpi screen made the images larger.
However, now those fonts look too big so everyone makes their web fonts
90% or even 80%.

All because one software vendor tried to trick the system... please
don''t compound the problem.

Thanks in anticipation.




没问题! :-)

-

Rob



No problem! :-)
--
Rob


RobG写道:
RobG wrote:
'text size''的概念在不同的浏览器中是不同的。 IE
使用最大,更大,更小等基于系统
设置的基本大小。 Firefox的基本字体大小为pts,然后从那里进行调整(系统设置也会对其产生影响)。


不,基于Gecko的浏览器用于基本字体大小的长度单位,包括Firefox的
,是px。

其他浏览器可能有其他方法,例如IE 7 Opera也有一个缩放
^^^^^^^^^^因子。不同的平台增加了混合。


我从来没有听说过/那个/用户代理,希望我永远不会;-)

[...]
试试这个:

< URL:http://db.tidbits.com/getbits.acgi?tbart = 05284>


这比通知读者更容易误导。例如,它b / b
完全忽略了如果那些人在

首先使用px,em或%,而不是'pt''单位,这是专为打印输出设计,

不适用于屏幕,如果显示分辨率相同,Windows和Mac之间不会出现字体显示问题



回来Macs使用72dpi用于屏幕字体


AIUI它仍然用于1024x768和更低的显示分辨率。

但是看起来太小了Windows的开发人员,所以他们使用了默认的96dpi。将96dpi的图像发送到72dpi的屏幕使图像更大。


字体分辨率与图像分辨率无关。

但是,现在这些字体看起来太大,所以每个人都制作他们的网络字体
90%甚至80%。


废话。

所有因为一个软件供应商试图欺骗系统......请不要复杂化问题。
The concept of ''text size'' is different in different browsers. IE
uses largest, larger, smaller, etc. with a base ''size'' based on system
settings. Firefox has a base font size in pts and then adjusts from
there (and system settings have an effect on it too).
No, the length unit used for the base font size by Gecko-based browsers,
including Firefox, is px.
Other browsers likely have other methods, e.g. IE 7 Opera has a zoom ^^^^^^^^^^ factor as well. Different platforms add to the mix.
I never heard of /that/ user agent and hopefully I never will ;-)
[...]
Try this:

<URL:http://db.tidbits.com/getbits.acgi?tbart=05284>
That is more misinforming than informing the reader. For example, it
completely misses the point that if those people used px, em or % in the
first place, instead of the `pt'' unit, which is designed for printouts,
not for the screen, there would not have been a problem of font display
between Windows and Mac, given the same display resolution.
Way back Macs used 72dpi for screen fonts
AIUI it still uses that for 1024x768 and lower display resolutions.
but that appeared too small for the developers of Windows, so they used a
default of 96dpi. Sending an image made for 96dpi to a 72dpi screen made
the images larger.
Font resolution does not have anything to do with image resolution.
However, now those fonts look too big so everyone makes their web fonts
90% or even 80%.
Nonsense.
All because one software vendor tried to trick the system... please
don''t compound the problem.




你是怎么想到的?显然不是来自个人

经验。

PointedEars



How did you get that idea anyway? Obviously not from of personal
experience.
PointedEars


Thomas''PointedEars''Lahn写道:
Thomas ''PointedEars'' Lahn wrote:
RobG写道:

RobG wrote:

文字大小的概念在不同的浏览器中有所不同。 IE
使用最大,更大,更小等基于系统
设置的基本大小。 Firefox的基本字体大小为pts,然后从那里进行调整(系统设置也会对其产生影响)。
The concept of ''text size'' is different in different browsers. IE
uses largest, larger, smaller, etc. with a base ''size'' based on system
settings. Firefox has a base font size in pts and then adjusts from
there (and system settings have an effect on it too).



否,用于基数的长度单位基于Gecko的浏览器的字体大小,包括Firefox,是px。


No, the length unit used for the base font size by Gecko-based browsers,
including Firefox, is px.




在设置对话框中没有指定单位,我假设pt。即使

帮助页面也没有说明单位是什么,你有参考吗?我不是说你错了(天堂禁止!)只是因为我找不到它指定的地方。



No unit is specified in the settings dialog, I assumed pt. Even the
help pages don''t say what the unit is, do you have a reference? I''m not
saying you''re wrong (heaven forbid!) just that I can''t find where it''s
specified.

其他浏览器可能有其他方法,例如IE 7 Opera有一个缩放
Other browsers likely have other methods, e.g. IE 7 Opera has a zoom


^^^^^^^^^^



^^^^^^^^^^

因素。不同的平台增加了混合。
factor as well. Different platforms add to the mix.



我从来没有听说过/那个/用户代理,希望我永远不会; - )


I never heard of /that/ user agent and hopefully I never will ;-)




:-x ... IE 7和Opera有...



:-x ... IE 7 and Opera have ...

[...]
尝试这个:

< URL:http://db.tidbits.com/getbits.acgi?tbart = 05284>
[...]
Try this:

<URL:http://db.tidbits.com/getbits.acgi?tbart=05284>



这比告知更多的误导读者。例如,它完全忽略了如果那些人首先使用px,em或%,而不是专为打印输出设计的pt单元,
不是屏幕,在Windows和Mac之间不会出现字体显示问题,给定相同的显示分辨率。


That is more misinforming than informing the reader. For example, it
completely misses the point that if those people used px, em or % in the
first place, instead of the `pt'' unit, which is designed for printouts,
not for the screen, there would not have been a problem of font display
between Windows and Mac, given the same display resolution.




是的,会有,这就是重点。鉴于Windows和Mac都有72dpi的显示器,因为图形系统*认为*它正在发送一个,因此相同的12pt字体在

Windows显示屏上会显示33%的大小。

映像到96dpi设备。在Windows中,72pt M将是96pixels高,在Mac上它将是72pixels高。这是从Windows开始刻意完成的。


当然很少有设备是72dpi,有些设备接近200pdi。



Yes there would, that is the whole point. Given a 72dpi display for
both Windows and Mac, the same 12pt font will appear 33% larger on the
Windows display because the graphics system *thinks* it is sending an
image to a 96dpi device. In Windows, a 72pt M will be 96pixels high, on
a Mac it will be 72pixels high. That was done deliberately by Windows
right from the start.

Of course very few devices are 72dpi any more, some are approaching 200pdi.

返回Macs使用72dpi作为屏幕字体
Way back Macs used 72dpi for screen fonts




AIUI it still uses that for 1024x768 and lower display resolutions.


但对于Windows的开发人员而言,这似乎太小了,所以他们使用了默认的96dpi。将96dpi的图像发送到72dpi的屏幕使图像更大。
but that appeared too small for the developers of Windows, so they used a
default of 96dpi. Sending an image made for 96dpi to a 72dpi screen made
the images larger.



字体分辨率与图像分辨率无关。


Font resolution does not have anything to do with image resolution.




你误解了我。术语图像在这里表示发送到屏幕的文本图像

。 Windows生成了适合96dpi设备的字体

的图像,但由于它显示在72dpi

设备上,它看起来更大。为了给定的pt大小,这是非常刻意地使

文本大33%更大且更容易阅读。


Windows仍然使用这种技术来制作文本更大 - 这就是为什么它

建议使用120dpi的设置,如果你有阅读屏幕有困难

文本。现在许多屏幕的物理尺寸大约为96dpi(例如,1280x1024px的典型17英寸/ b $ b液晶显示器大约为94dpi),之前通过设置96dpi提供的放大幅度为

不会发生。



You misunderstand me. The term ''image'' here means the image of the text
that is sent to the screen. Windows generated an image of the font
suitable for a 96dpi device, but because it was displayed on a 72dpi
device, it appeared bigger. It was done quite deliberately to make the
text 33% bigger and easier to read for a given pt size.

Windows still uses this technique to make text bigger - that''s why it
suggests using a setting of 120dpi if you have difficulty reading screen
text. Many screens are now physically about 96dpi (e.g. a typical 17"
LCD of 1280x1024px is about 94dpi) and the enlargement that was
previously delivered by setting 96dpi doesn''t occur.

但是,现在这些字体看起来太大,所以每个人都会制作他们的网络字体90%甚至80% 。
However, now those fonts look too big so everyone makes their web fonts
90% or even 80%.



废话。


Nonsense.




什么?这是一个众所周知且被人理解的问题,你以前肯定会发现它偶然发现了吗?谷歌''小文本windows mac''。


许多90年代后期网页的基本设计模板基于

看起来不错一个72dpi的Windows屏幕,因此Windows引入的比例因子(不知不觉在大多数情况下我怀疑)在他们的设计中考虑了

。许多设计师都试图获得10 bpt的屏幕字体,这些字体确实是10pt。


但是这已经改变了,因为显示器上的点密度现在通常是

96dpi或更多,Windows用户正在看看Mac用户已经花了一段时间 - 一点点文字。在大多数设备上,现代页面现在通常都是可读的,但是文本大小问题

仍然存在。



What? This is a very well known and understood problem, surely you''ve
stumbled across it before? Google ''tiny text windows mac''.

The basic design templates for many late 90''s web pages were based on
what looked good on a 72dpi Windows screen, hence the scale factor
introduced by Windows was (unknowingly in most cases I suspect) taken
into consideration in their design. Many designers were trying to get
10pt screen fonts that really were 10pt.

But that has changed because the dot density on monitors is now commonly
96dpi or more and Windows users are seeing what Mac users had been
putting up with for some time - tiny text. Modern pages are now
generally quite readable on most devices, but the text size issue
persists in places.

全部是因为一个软件供应商试图欺骗系统......请不要解决问题。
All because one software vendor tried to trick the system... please
don''t compound the problem.



怎么做你还是明白了吗?显然不是来自个人的经验。


How did you get that idea anyway? Obviously not from of personal
experience.




给我一个休息的托马斯。我引用的文章的开头提供了以下引用的




因为Windows认为显示器使用屏幕分辨率

默认为96 dpi,而不是Mac的72 dpi,基于Windows

网页设计师经常降低字体大小,因此文字不会出现

对Windows用户来说太大了。然后,Mac用户面临着难以阅读的微小文本。


决定通过播放dpi设置来放大屏幕文本是Windows独有的
,由此产生的问题非常清楚。

文章的其余部分(1999年2月发布)在这里:


< URL:http://db.tidbits.com/getbits。 acgi?tbart = 05255>

请注意,即使在Windows XP中,Microsoft建议如果您看到文本难以获得
,*会增加您的

监视器*。通过使用作为问题根源的dpi设置,您可以控制屏幕文本大小

的概念。


操作系统应该注意显示器的真正dpi,它不应该被认为是除了它真正只是为了修改文本大小之外的任何东西。这对真正做的应用程序造成严重破坏

想知道显示器点距是什么 - 可靠。


我可以互换地使用Mac和Windows计算机超过15年

并且目前使用94ppi的显示器(17LCD 1280x1024)。我还要测试并且不经常使用72ppi到150ppi的显示器。


一些文章可以帮助你加快速度:


96 DPI来自Windows?

< URL:http://blogs.msdn.com/fontblog/archive/2005/11/08/490490 .aspx>


调整更高DPI屏幕的比例

< URL:http://msdn.microsoft.com/library/default。 asp?url = / workshop / author / dhtml / overview / highdpi.asp>


一个相当夸张的标题,但说明问题的广泛性

已知:

Tiny text威胁航空安全

< URL:http://www.theregister.co.uk/2002/04/18/tiny_text_threatens_air_safety/ >


-

Rob



Gimme a break Thomas. The very start of the article I quoted offers the
following quote:

"Because Windows thinks monitors use a screen resolution
of 96 dpi by default, rather than the Mac''s 72 dpi, Windows-based
Web designers often lower the font size so text doesn''t appear
too large for Windows users. Mac users are then faced with tiny
text that''s hard to read."

The decision to enlarge screen text by playing with the dpi setting was
unique to Windows, the resulting issues are very well understood. The
rest of the article (published in February 1999) is here:

<URL:http://db.tidbits.com/getbits.acgi?tbart=05255>
Note that even in Windows XP, Microsoft suggest that if you have
difficulty seeing text, *increase the Windows dpi setting for your
monitor*. It is the concept that you can control your screen text size
by playing with dpi settings that is the root of the problem.

The OS should be aware of the real dpi of the monitor, it should not be
fooled into thinking it is anything other than what it really is just to
modify text size. That plays havoc with applications that really do
want to know what what the monitor dot pitch is - reliably.

I have used Mac and Windows computers interchangeably for over 15 years
and currently use displays with 94ppi on both (17" LCD at 1280x1024). I
also test on and infrequently use displays with 72ppi to 150ppi.

Some articles to bring you up to speed:

"Where does 96 DPI come from in Windows?"
<URL:http://blogs.msdn.com/fontblog/archive/2005/11/08/490490.aspx>

"Adjusting Scale for Higher DPI Screens"
<URL:http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/highdpi.asp>

A rather over stated headline, but illustrates how widely the issue is
known:
"Tiny text threatens air safety"
<URL:http://www.theregister.co.uk/2002/04/18/tiny_text_threatens_air_safety/>

--
Rob


这篇关于浏览器文本大小设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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