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

问题描述

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


感谢您的期待。

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

Thanks in anticipation.

推荐答案




没问题! :-)

-

Rob



No problem! :-)
--
Rob





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

经验。

PointedEars



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




否,用于基数的长度单位基于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.


^^^^^^^^^^



^^^^^^^^^^



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


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




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



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



这比告知更多的误导读者。例如,它完全忽略了如果那些人首先使用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.




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




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


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.



废话。


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.



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


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


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

09-03 09:46