haskellfoundation / haskellfoundation/haskell-2010-revised-report

Kerning of text inside math environment is wrong

Open
#64 2 comments 0 reactions 0 assignees View on GitHub
output: pdf
Dominant language
Typst
Stars
20
Forks
5
Avg merge
4d 18h
Merged PRs (30d)
6

Description

I noticed a few instances of broken kerning (also present in `main` now):
Image
...is this caused by the font or rather by a surprise math mode?

EDIT: I found the issue is rather typst using math font to typeset the contents of `italics` (or `text(...)`) although the documentation seems to imply otherwise.

I tried with IBM Plex, which gives a really nice render, try:

```typst
#set text( font: "IBM Plex Serif")
#show raw: set text(font: "IBM Plex Mono")
```

EDIT2: it's typst. https://github.com/typst/typst/issues/366

_Originally posted by @exaexa in https://github.com/haskellfoundation/haskell-2010-revised-report/pull/43#pullrequestreview-5202358904_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported rendering in the Haskell report and with the IBM Plex Serif and IBM Plex Mono settings shown in the issue. Compare text inside math, italics, and text(...) with the intended font behavior; done means the affected passages no longer use incorrect math-font kerning, or the issue is documented as dependent on Typst issue 366.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.