Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Overscript arrows don't extend #84

@hunter1749

Description

@hunter1749

I believe the included image speaks for itself. The default Typst font is the one on the left, and Fira Math is the one on the right. Regarding the default font, where the overscript lines have extended as expected, there also appears to be a mismatch with the arrow heads, but it turns out that's just what happens with the default font weight used in Typst. So that's something to watch out for if you decide to implement such a feature. This issue about extending (vector) arrows most like isn't limited to Typst, otherwise I wouldn't bother sharing it.

Image

For comparison, here's what it looks like typeset in LaTeX:

\usepackage{harpoon, unicode-math}

\begin{document}

$\overrightharp{ABCDEFGHIJK}$

\setmathfont{Fira Math}

$\overrightharp{ABCDEFGHIJK}$

\end{document}

Image

I sort of went overboard with the length of the contents, but it's obvious that both fonts have the arrows extended. As far as I'm aware, it's the harpoon package which is responsible for extending the arrows. It also skews them, but again, you're probably not going to have arrows that long. Actually, it probably only skews them instead of separately adding the line segments as done in the Typst example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions