各大浏览器有什么区别吗?跨操作系统渲染?

发布于 2024-08-19 09:23:01 字数 465 浏览 7 评论 0原文

我长期以来一直认为,就不同平台上的主要浏览器的渲染而言,唯一的区别是操作系统的底层字体渲染技术,其他一切都依赖于浏览器中包含的相同库。

就我的研究而言,前端开发人员要么相信,要么不相信。看来我们可以选择其中一个。我的处境很糟糕,因为我一直相信两者没有区别,现在我被告知,在发布任何影响前端的作品之前,我必须在 Mac 和 Windows 上进行彻底的测试。

需要明确的是,我知道文本渲染方面的差异(Tom Phiney 在这里深入讨论了这个问题:http://www.thomasphinney.com/2009/12/browser-choice-vs-font-rendering/)。我找不到任何文档的灰色区域是是否存在任何差异。

有没有技术方面的权威文章给出明确的答案?

I have long believed that the only difference as far as the rendering of major browsers on different platforms is concerned is operating systems' underlying font-rendering technology, everything else relying upon the same libraries included with the browser.

As far as my research takes me, this is something that front-end developers either believe or don't. It seems we can chose either. I'm in a bad spot because I've always believed there was no difference, and now I am being told that before I publish any piece of front-end-impacting work I must carry out thorough testing on Mac as well as Windows.

To be clear, I am aware of the differences in text rendering (Tom Phiney covers the issue in depth here: http://www.thomasphinney.com/2009/12/browser-choice-vs-font-rendering/). The grey area I cannot find any documentation on is whether or not there are any either disparities.

Are there any authoritative articles of a technical bent giving a definitive answer either way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

绝影如岚 2024-08-26 09:23:01

尽管我不知道操作系统之间的浏览器有任何具体差异(通常在发现后很快就会修复),但您可以使用 浏览器截图

Though I'm not aware of any specific differences for browsers between operating systems (they are usually fixed pretty quickly after being found), you can check any specific site using BrowserShots.

冬天旳寂寞 2024-08-26 09:23:01

没有明确的答案,而且也是一个主观的答案,不同的操作系统在幕后有不同的访问图形的方式(就像你提到的字体渲染一样)。

因此,这实际上并不是一个公平的问题,因为这就像试图在不同系统如何渲染图形的背景下比较粉笔和奶酪。不要忘记,就 Windows 而言,有更广泛的图形驱动程序,原因很简单,Windows 如今拥有很大的市场份额(我希望 Linux 拥有更大的份额,我是 Linux 粉丝) )。

以Linux为例,出于竞争原因,并非所有视频图形制造商都会开放其图形驱动程序以使其在Linux的X接口下工作。尽管到目前为止,由于用于与图形硬件通信的库不同,X 下的图形非常出色和流畅,但您仍然无法将图形输出与 Windows 进行比较,因为底层硬件驱动程序本质上是非常不同的。图形非常成熟并且越来越坚固。

您可以尝试将 true-type 字体复制到 Linux(但这在版权问题和 EULA 方面存在争议),看看字体渲染是否更好...这可能会侵犯版权等...

以 wxWidgets 为例,它致力于使 Linux 和 Windows 上的图形相同,或者 QT 工具包,这就是它的便携性和外观相同的本质。 Mono 是另一个例子,它的 WinForms 非常成熟,几乎与 Windows 上的 .NET winforms 相同。

再次,正如我所说,这是主观的,这是我对此的看法。

希望这有帮助,
此致,
汤姆.

There is no definitive answer, and is a subjective one also, different operating systems, are very much under the hood, have a different way of accessing the graphics (as in your case you mentioned font rendering).

So it is not really a fair question as such because it's like trying to compare chalk and cheese in the context of how different systems render the graphics. Don't forget, that in the case of Windows, there is a wider range of graphics drivers, for the simple reason that Windows has a large market share today (I wish it was Linux that had a larger share, I am a Linux fan).

Take Linux for example, not all video graphics manufacturers will open up their graphic drivers for it to work under Linux's X interface for competition reasons. Even though, as of today, the graphics are superb and smooth under X, due to the different libraries used to communicate with the graphics hardware, but you still cannot compare the graphics output to that of Windows as the underlying hardware drivers are inherently very different. The graphics are very mature and increasingly solid.

You could try copying over the true-type fonts across to Linux (but that is debatable in terms of copyright issues and EULA's) to see if the font rendering is any better...again this could be in violation of copyright etc...

Take wxWidgets, which strives to make the graphics the same across Linux and Windows, or QT toolkit, that is the very nature of what makes it portable and look the same. Mono is another example, the WinForms on it is quite mature and near-same as the Windows equivalent of the .NET winforms.

Again, as I have said, this is subjective and that is my opinion on it.

Hope this helps,
Best regards,
Tom.

诠释孤独 2024-08-26 09:23:01

表单元素往往以操作系统为中心,而不是以浏览器为中心。所以这是检查跨平台的一件事。但除此之外,据我所知,跨平台浏览器上的渲染引擎往往相当统一,无论它们现在运行在哪个平台上。

Form elements tend to be OS-centric rather than browser centric. So that's one thing to check for cross-platform. But other than that, AFAIK, the rendering engines on cross-platform browsers tend to be fairly unified regardless of the platform they are running on these days.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文