I'd like to write some code that properly renders in any font (and I cannot use UTF8 input). Is there a way to find out if \textendash is properly defined for the current font?
With \ttfamily, -- does not render as en dash, but as -- literally, \textendash renders as opening brace {.
So I guess, I need an own macro that uses textendash if available, and - otherwise.
\documentclass{minimal}
\begin{document}
This -- should work the same \textendash{} in any font.
\ttfamily
This -- should work the same \textendash{} in any font.
\end{document}

-or break the monospace nature of the font and make a double length dash or make a dash a bit longer than - but still with the same character width,m just smaller sidebearing or.... – David Carlisle Jan 04 '16 at 01:23minimalfor examples as it is not suitable. – cfr Jan 04 '16 at 01:28minimalnot suitable for minimal working examples? – mhchem Jan 04 '16 at 01:32standalonewould be a better choice or so people now seem to think). Neither of those applies to your example. – cfr Jan 04 '16 at 02:55