<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>122526</bug_id>
          
          <creation_ts>2013-10-08 14:57:56 -0700</creation_ts>
          <short_desc>[Win] MathML Renders Improperly</short_desc>
          <delta_ts>2013-10-09 13:31:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>MathML</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>24230</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>fred.wang</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>937693</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-10-08 14:57:56 -0700</bug_when>
    <thetext>Viewing https://eyeasme.com/Joe/MathML/MathML_browser_test.html shows that Windows is not rendering several MathML tests properly:

1. Invisible multiplication symbols show up as an &apos;x&apos; in a box, rather than not displaying.
2. Certain greek characters are not rendering; they appear as &apos;?&apos; in a box.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>937823</commentid>
    <comment_count>1</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2013-10-08 23:36:50 -0700</bug_when>
    <thetext>Try installing the MathML fonts (e.g. STIX). They are available on the Mozilla page: https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project/Fonts

For the invisible operators, you&apos;ll still see bug 115786, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938009</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-10-09 11:58:54 -0700</bug_when>
    <thetext>The STIX fonts are installed, using the MathML Font Installer from the Mozilla site (https://developer.mozilla.org/@api/deki/files/6388/=MathML-fonts.msi).  I also tried installing them manually, but this made no difference.

Interestingly, this Mozilla test page (https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project/Fonts/Test?redirectlocale=en-US&amp;redirectslug=Mozilla_MathML_Project%2FFonts%2FTest) does not display properly on Mac or Windows, although the &quot;MathML Torture Test&quot; (https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project/MathML_Torture_Test?redirectlocale=en-US&amp;redirectslug=Mozilla_MathML_Project%2FMathML_Torture_Test) seems to work properly on Mac and partially on Windows.

After running the MathML Fonts installer, I no longer see an &quot;X inside a box&quot; glyph for the invisible times. However, the greek characters up port for the &quot;multi scripts &amp; greek alphabet&quot; test on https://eyeasme.com/Joe/MathML/MathML_browser_test.html no longer renders at all (showing just 5 empty box glyphs instead of the circle of greek characters surrounding a  capital Pi character.

Inspecting the elements in the WebInspector shows that the mathml.css styles are being applied, and that WebKit recognizes that it should be using MathJax_Main or STIXGeneral fonts for rendering.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938012</commentid>
    <comment_count>3</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2013-10-09 12:12:46 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Interestingly, this Mozilla test page (https://developer.mozilla.org/en-US/docs/Mozilla/MathML_Project/Fonts/Test?redirectlocale=en-US&amp;redirectslug=Mozilla_MathML_Project%2FFonts%2FTest) does not display properly on Mac or Windows, 

To draw the grid, this test page uses vertical stretchy U+221A SQUARE ROOT and horizontal stretchy U+23DC TOP PARENTHESIS, the minsize attribute and operator stretching in &lt;mover&gt;. I think only the last feature is supported by WebKit at the moment, so I&apos;m not surprise it does not work. See the related bug 119038 and bug 72828.

&gt; After running the MathML Fonts installer, I no longer see an &quot;X inside a box&quot; glyph for the invisible times. However, the greek characters up port for the &quot;multi scripts &amp; greek alphabet&quot; test on https://eyeasme.com/Joe/MathML/MathML_browser_test.html no longer renders at all (showing just 5 empty box glyphs instead of the circle of greek characters surrounding a  capital Pi character.

Could you try to check with HTML-only content like &lt;span&gt;&amp;pi;&lt;/span&gt;, &lt;span style=&quot;font-family: STIXGeneral&quot;&gt;&amp;pi;&lt;/span&gt;, &lt;span style=&quot;font-family: italic;&quot;&gt;&amp;pi;&lt;/span&gt; etc That might well be a font/text issue unrelated to MathML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938014</commentid>
    <comment_count>4</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2013-10-09 12:14:55 -0700</bug_when>
    <thetext>(In reply to comment #3)

&gt; To draw the grid, this test page uses vertical stretchy U+221A SQUARE ROOT and horizontal stretchy U+23DC TOP PARENTHESIS, the minsize attribute and operator stretching in &lt;mover&gt;. I think only the last feature is supported by WebKit at the moment

Well, actually horizontal stretching is not supported at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938017</commentid>
    <comment_count>5</comment_count>
    <who name="Frédéric Wang Nélar">fred.wang</who>
    <bug_when>2013-10-09 12:23:41 -0700</bug_when>
    <thetext>(In reply to comment #2)

&gt; After running the MathML Fonts installer, I no longer see an &quot;X inside a box&quot; glyph for the invisible times. However, the greek characters up port for the &quot;multi scripts &amp; greek alphabet&quot; test on https://eyeasme.com/Joe/MathML/MathML_browser_test.html no longer renders at all (showing just 5 empty box glyphs instead of the circle of greek characters surrounding a  capital Pi character.

OK, I just checked the page and I&apos;m guessing you are talking about the fraktur letters, not the greek ones. The fraktur characters are in Unicode Plane 1, so I suspect it is the old bug 24230.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938027</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-10-09 12:49:25 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; Could you try to check with HTML-only content like &lt;span&gt;&amp;pi;&lt;/span&gt;, &lt;span style=&quot;font-family: STIXGeneral&quot;&gt;&amp;pi;&lt;/span&gt;, &lt;span style=&quot;font-family: italic;&quot;&gt;&amp;pi;&lt;/span&gt; etc That might well be a font/text issue unrelated to MathML.

You are absolutely right; these glyphs display properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938029</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-10-09 12:53:09 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #2)

&gt; OK, I just checked the page and I&apos;m guessing you are talking about the fraktur letters, not the greek ones. The fraktur characters are in Unicode Plane 1, so I suspect it is the old bug 24230.

Indeed. My ignorance has been revealed!

The fraktur letters were the issue I was trying to describe.

Conclusion:
1. My original problem was due to missing fonts. We should probably update DRT/WInLauncher or perhaps update-webkit to check for the presence of these fonts when the MATHML feature is turned on.
2. The second issue I noticed with the fraktur letters is a duplicate of Bug 24230.

Closing as a duplicate, and opening a new bug for the test configuration checks.

*** This bug has been marked as a duplicate of bug 24230 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>938047</commentid>
    <comment_count>8</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-10-09 13:31:29 -0700</bug_when>
    <thetext>See Bug 122568 for checks to ensure MathML is installed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>