# Incorrect Responsiveness of \overleftrightarrow using STIX 2.0 Fonts

I'm trying to use STIX 2.0 fonts and typeset a file using lualatex. I faced an issue on the \overleftrightarrow as it is not responsive correctly.

This is the code I use:

\documentclass{article}
\usepackage{unicode-math}
\setmainfont{STIX2Text-Regular.otf}
\setmathfont[StylisticSet=8]{STIX2Math.otf}

\begin{document}
$\overleftrightarrow{ABC}$
\end{document}


And here is the output:

I expected the output to be like this:

Are there any solution for this issue?

• Jan 14, 2018 at 14:32

Apparently, U+020E1 is not extensible in STIX2, whereas it is in STIX (v. 1) and in XITS Math.

Workaround:

\documentclass{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}
\setmathfont[StylisticSet=8]{STIX Two Math}
\setmathfont[range=\overleftrightarrow]{XITS Math}

\begin{document}

$\overleftrightarrow{ABC}+\overleftarrow{ABC}+\overrightarrow{ABC}$

\end{document}


• i assume that you were the one who reportrd the problem on github. thanks. Jan 14, 2018 at 14:38
• @barbarabeeton No, I found a bug report about the issue and added some information. Jan 14, 2018 at 14:46