Skip to content

[Bug]: Incorrect rendering of some fonts at intersection of shapes #21353

Description

@MDLC01

Attach (recommended) or Link to PDF file

Created with Typst using New Computer Modern Math Bold 8.0.1:

#set text(font: "New Computer Modern Math", weight: "bold")
#sym.eq.not

The OTF font file I used can be downloaded on CTAN.

font-rendering.pdf

Web browser and its version

Firefox 151.0.2 (64-bit)

Operating system and its version

Windows

PDF.js version

Don't know how to check the version that's embeded in Firefox

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open the PDF file I provided.
  2. Have a zoom level up to 350 %.

What is the expected behavior?

The symbol should be displayed properly:

The not equal sign from New Computer Modern Math Bold.

What went wrong?

The symbol is displayed improperly:

The intersection of the equal lines with the cancel line is not filled.

Link to a viewer

No response

Additional context

The issue can be reproduced with other symbols and other NewCM fonts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions