#StackBounty: #tikz-pgf #fonts #tikz-arrows #unicode-math #tikz-cd tikzcdset{arrow style=math font} breaks the rendering of arrows

Bounty: 50

The command tikzcdset{arrow style=math font} seems to break the rendering of arrows with the package tikz-cd, whatever math font is chosen:
enter image description here

documentclass{article}
usepackage{unicode-math}
usepackage{tikz-cd}
tikzcdset{arrow style=math font}

begin{document}
    begin{tikzcd}
        aarrow[r]&b
    end{tikzcd}

    setmathfont{Libertinus Math}
    begin{tikzcd}
        aarrow[r]&b
    end{tikzcd}

    setmathfont{Latin Modern Math}
    begin{tikzcd}
        aarrow[r]&b
    end{tikzcd}

    setmathfont{STIX Two Math}
    begin{tikzcd}
        aarrow[r]&b
    end{tikzcd}
end{document}

What can be done about this?

If this is not fixible I woul also be interested in other ways to make the arrow of tikz-cd match the math font.


Get this bounty!!!

Leave a Reply