Skip to content

Incorrect mathscr variant size in math formulas with attachments #5929

@hooyuser

Description

@hooyuser

Description

Updating from Typst 0.12 to 0.13, the following implementation method (documented in cal) causes the mathscr variant to have an incorrect size when appearing in math formulas as attachments:

#let scr(it) = text(
  features: ("ss01",),
  box($cal(it)$),
)

Here is an example to illustrate the issue:

$
product.co^(B in scr(B) , x in B)_(B in scr(B) , x in B) cal(F) (B)
$
  • v0.13

Image

  • v0.12

Image

If this behavior is a bug, then it is a regression from 0.12. If this behavior is expected, then I think we should find a correct implementation method for mathscr and update the documentation for calligraphic font style in math.

Reproduction URL

https://typst.app/project/rhHk7jmqH5JgVaZOjLCAsW

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmathRelated to math category, with its syntax, layout, etc.regressionSomething that did work before stopped working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions