Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBM Plex Math: incorrect display of integral symbol #610

Open
polemon opened this issue Dec 2, 2024 · 4 comments
Open

IBM Plex Math: incorrect display of integral symbol #610

polemon opened this issue Dec 2, 2024 · 4 comments

Comments

@polemon
Copy link

polemon commented Dec 2, 2024

There seems to be a problem with the integral symbol in IBM Plex Math:
image
This is from the preview of Chrome/Brave browser in the font settings.

It doesn't happen with any other (math) font, just IBM Plex Math.

A more correct (albeit not perfect) representation is achievable with things like Noto Sans Math:
image

@BoldMonday
Copy link
Collaborator

Thanks for the report.

How can the example above be replicated so we can test this on our side?

@polemon
Copy link
Author

polemon commented Dec 3, 2024

Technically, the MathML is this:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
  </head>

  </body>
    <div style="font-size: 16px; font-family: IBM Plex Math;">
      16:
      <math style="font:inherit" displaystyle="true" display="block">
        <mrow>
        
          <msqrt>
            <mrow>
              <munderover>
                <mo>∑</mo>
                <mrow><mi>n</mi><mo>=</mo><mn>1</mn></mrow>
                <mn>∞</mn>
              </munderover>
              <mfrac>
                <mn>10</mn>
                <msup><mi>n</mi><mn>4</mn></msup>
              </mfrac>
            </mrow>
          </msqrt>
        
          <mo>=</mo>
        
          <mrow>
            <msubsup>
              <mo>∫</mo>
              <mn>0</mn>
              <mn>∞</mn>
            </msubsup>
            <mfrac>
              <mrow><mn>2</mn><mi>x</mi> <mrow><mi>d</mi><mi>x</mi></mrow> </mrow>
              <mrow><msup><mi>e</mi><mi>x</mi></msup> <mo>−</mo> <mn>1</mn></mrow>
            </mfrac>
          </mrow>
        
          <mo>=</mo>
     
          <mfrac>
            <msup><mi>π</mi><mn>2</mn></msup>
            <mn>3</mn>
          </mfrac>
        
          <mo>∊</mo>
        
          <mi>ℝ</mi>
        
        </mrow>
      </math>
    </div>
  </body>
</html>

But it should be noted that this specific error only happens with Chrome and Brave!

In my case (I use brave) the font settings are under this URL: brave://settings/fonts
(i.e. it's one of the internal URLs of the browser, etc.)

(in case this makes any difference, I'm on Linux, Fedora 41)

@BoldMonday
Copy link
Collaborator

Not sure whether this is a font problem, or a browser problem.

@khaledhosny What is your impression?

@khaledhosny
Copy link

I cannot reproduce this in Chrome 131.0.6778.86 using the HTML file above, I get:
image

Nor in the chrome://settings/fonts preview:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants