You need no package, actually.
The idea is to look how the commands are defined in stix2.sty
and you find
\stix@MathSymbol{\rdiagovfdiag}{\mathord}{arrows2}{"C4}
\stix@MathSymbol{\fdiagovrdiag}{\mathord}{arrows2}{"C5}
OK, now we want to see what arrow2
points to:
\DeclareSymbolFont{arrows2} {LS1}{stix2sf} {m}{it}
\SetSymbolFont{arrows2} {bold}{LS1}{stix2sf} {b}{it}
We have to look for LS1
, which is a nonstandard encoding:
\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix2}{m}{n}
OK, we have all the ingredients. I add a prefix just to be sure that nothing gets clobbered.
\documentclass{article}
\usepackage{amsmath}
\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix2}{m}{n}
\DeclareSymbolFont{STIX2arrows2}{LS1}{stix2sf}{m}{it}
\SetSymbolFont{STIX2arrows2}{bold}{LS1}{stix2sf}{b}{it}
\DeclareMathSymbol{\rdiagovfdiag}{\mathord}{STIX2arrows2}{"C4}
\DeclareMathSymbol{\fdiagovrdiag}{\mathord}{STIX2arrows2}{"C5}
\begin{document}
$A\rdiagovfdiag\fdiagovrdiag B$
\end{document}
If you don't need the bold version, you can even avoid wasting a math group:
\documentclass{article}
\usepackage{amsmath}
\DeclareFontEncoding{LS1}{}{}
\DeclareFontSubstitution{LS1}{stix2}{m}{n}
\NewDocumentCommand{\rdiagovfdiag}{}{\text{\usefont{LS1}{stix2sf}{m}{it}\symbol{"C4}}}
\NewDocumentCommand{\fdiagovrdiag}{}{\text{\usefont{LS1}{stix2sf}{m}{it}\symbol{"C5}}}
\begin{document}
$A\rdiagovfdiag\fdiagovrdiag B$
\end{document}