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

Baseline nonconformity with small font when using big operator and superscript #3960

Open
3 tasks done
UlyssesZh opened this issue Jun 23, 2024 · 8 comments
Open
3 tasks done
Labels

Comments

@UlyssesZh
Copy link

UlyssesZh commented Jun 23, 2024

Before reporting a bug

Describe the bug:
On Chromium browser, when KaTeX renders an expression with both big operator (e.g. \int) and superscript (e.g. x^2) with a small font size (or zoom ratio), it gives nonconformity in the baseline.

To Reproduce:
Steps to reproduce the behavior:

  1. Type in \int xx^2 in the demo at https://katex.org.
  2. Set zoom ratio to 75%.

Expected behavior:
The baseline of x and x^2 are aligned at the same height.

Screenshots:
Zoom at 100% (good):
image
Zoom at 75% (bad):
image

Environment (please complete the following information):

  • KaTeX Version: 0.16.10
  • Device: desktop
  • OS: NixOS 24.05
  • Browser: Brave
  • Version: 1.66.118 Chromium: 125.0.6422.147 (Official Build) (64-bit)

Additional context:

@UlyssesZh UlyssesZh added the bug label Jun 23, 2024
@edemaine
Copy link
Member

Can you reproduce this on Chrome? (I can't, but it might be resolution specific.) Perhaps it's a bug in Brave?

@UlyssesZh
Copy link
Author

Reproduced on Google Chrome 126.0.6478.61 (Official Build) (64-bit) on Debian 12.

@edemaine
Copy link
Member

On what screen resolution? Like I said, I can't reproduce. But I only have high-DPI displays which tend to render differently.

@UlyssesZh
Copy link
Author

The resolution is 1920x1080.

@mbourne
Copy link

mbourne commented Jun 24, 2024

For the record, I'm also seeing the issue on Chrome, Brave, Edge, and Opera. I'm also on 1920x1080.

@edemaine
Copy link
Member

@mbourne Thanks, that is helpful! I forget, which OS do you use?

@mbourne
Copy link

mbourne commented Jun 24, 2024

It's Windoze.

@nonotran68
Copy link

nonotran68 commented Jun 26, 2024

I can reproduce this issue on Brave and another Chromium-based browser, but not on Firefox, im using Arch Linux with resolution 1920x1080

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

No branches or pull requests

4 participants