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

[bug] Math delimiters break when math font is changed #4254

Closed
1 task done
tapyu opened this issue May 25, 2024 · 5 comments
Closed
1 task done

[bug] Math delimiters break when math font is changed #4254

tapyu opened this issue May 25, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@tapyu
Copy link
Sponsor

tapyu commented May 25, 2024

Description

#show math.equation: set text(font: "Comic Sans MS")
#set align(top+left)
$ { x mid(|) sum_(i=1)^n w_i|f_i (x)| < 1 } $

image

Any math equation font but the default one will break the correct math delimiter, which should produce

image

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst
@tapyu tapyu added the bug Something isn't working label May 25, 2024
@Enivex
Copy link
Collaborator

Enivex commented May 25, 2024

Comic sans is not a math font

@Enivex Enivex closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2024
@laurmaedje
Copy link
Member

I wonder why the first brace is scaled up at all without a math font ... maybe some weird fallback

@Enivex
Copy link
Collaborator

Enivex commented May 25, 2024

I wonder why the first brace is scaled up at all without a math font ... maybe some weird fallback

I think this has come up before, and iirc it turned out that the font has a very minimal (broken) math table.

Though it could very well be that I misremember.

@tapyu
Copy link
Sponsor Author

tapyu commented May 25, 2024

@Enivex I am sorry, I didn't know that, but "Fira Math" is a math font, correct? And the bug persists

image

@Enivex
Copy link
Collaborator

Enivex commented May 25, 2024

@Enivex I am sorry, I didn't know that, but "Fira Math" is a math font, correct? And the bug persists

image

Fira Math is definitely a math font, but that's not Fira Math. Are you sure you have the font installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants