Html MathML在Windows XP上的Firefox渲染效果不佳,但在Linux上渲染效果良好

Html MathML在Windows XP上的Firefox渲染效果不佳,但在Linux上渲染效果良好,html,firefox,mathml,Html,Firefox,Mathml,下面是我用来测试MathML渲染的MathML示例代码 演示URL: MathML演示 数学{ 显示:块; 字体大小:16px; } &总和; P 首要的 F ( P ) = ∫ T 1. F ( T ) &薄皮; D π ( T ) Windows XP上Firefox 8的输出: Debian GNU/Linux上Firefox 8的输出: 现在,考虑到不能强制网站用户安装新字体等。有什么可能的方法可以确保Windows用户也有很好的浏览用MathML编写的数学公式的体

下面是我用来测试MathML渲染的MathML示例代码

演示URL:


MathML演示
数学{
显示:块;
字体大小:16px;
}
&总和;
P
首要的
F
(
P
)
=
∫
T
1.
F
(
T
)
&薄皮;
D
π
(
T
)
Windows XP上Firefox 8的输出:

Debian GNU/Linux上Firefox 8的输出:


现在,考虑到不能强制网站用户安装新字体等。有什么可能的方法可以确保Windows用户也有很好的浏览用MathML编写的数学公式的体验?

以下是Firefox MathML的主要开发人员(Frédéric Wang)的回答,虽然我怀疑它在短期内会让你快乐:

用户需要安装STIX或Asana字体才能获得良好的MathML渲染效果。也许可以使用可下载字体强制在给定网页上使用这些字体,但我从未尝试过

两个可能很有趣的bug:

  • 允许下载STIX字体/使用firefox捆绑STIX字体:
  • 支持MathJax字体:
<!DOCTYPE html>
<html lang="en">
<head>
<title>MathML demo</title>
<style type="text/css">
math {
    display: block;
    font-size: 16px;
}
</style>
</head>
<body>
<math>
<mrow>
  <munder>
    <mo>&sum;</mo>
    <mrow>
      <mi>p</mi>
      <mtext>&nbsp;prime</mtext>
    </mrow>
  </munder>
  <mi>f</mi>
  <mo stretchy="false">(</mo>
  <mi>p</mi>
  <mo stretchy="false">)</mo>
  <mo>=</mo>
  <msub>
    <mo stretchy="false">&int;</mo>
    <mrow>
      <mi>t</mi>
      <mo>&gt;</mo>
      <mn>1</mn>
    </mrow>
  </msub>
  <mi>f</mi>
  <mo stretchy="false">(</mo>
  <mi>t</mi>
  <mo stretchy="false">)</mo>
  <mo>&ThinSpace;</mo>
  <mo mathvariant="italic">d</mo>
  <mi>&pi;</mi>
  <mo stretchy="false">(</mo>
  <mi>t</mi>
  <mo stretchy="false">)</mo>
</mrow>
</math>
</body>
</html>