In texlive 2015
strike through for roboto font is a bit too high for lower case letters.
I think the reason might be, that the unit 1ex
for this font differs roughly by a factor 2 from what I would expect.
I found, that I can redefine ex
with \fontdimen5\font, however it seems to just change the value for the current font size.
\documentclass{article}
\usepackage[sfdefault]{roboto}
\usepackage{calc}
\usepackage[normalem]{ulem}
\begin{document}
\sout{hello world}
\newlength{\totalheightofex}
\setlength{\totalheightofex}{\totalheightof{x}}
Height of x \the\totalheightofex
\newlength{\oneex}
\setlength{\oneex}{1ex}
Height of 1ex \the\oneex
\fontdimen5\font=5.34pt
\sout{hello world}
\setlength{\totalheightofex}{\totalheightof{x}}
Height of x \the\totalheightofex
\setlength{\oneex}{1ex}
Height of 1ex \the\oneex
\large{
\sout{hello world}
\setlength{\totalheightofex}{\totalheightof{x}}
Height of x \the\totalheightofex
\setlength{\oneex}{1ex}
Height of 1ex \the\oneex
}
\end{document}
I guess, it would be possible to define a custom strikeout, but I would prefer to change the ex
unit.
Any suggestions?
:-)