I would like to achieve exactly the same thing that was questioned and answered here but with SF font.
This works:
\documentclass[11pt]{standalone} \usepackage{siunitx} \sisetup{detect-weight, table-format=2.2} \usepackage{etoolbox} \DeclareFontSeriesDefault[rm]{bf}{b} \newcommand\B{\bfseries} \begin{document} abc \textbf{ab} \begin{tabular}{ |S[mode=text] | S |} 12.34 & 12.34 \\ \B 12.34 &\B 12.34 \\ \end{tabular} \end{document}
But with
\renewcommand{\familydefault}{\sfdefault}
it does not (it uses extended bold, so the numbers are not aligned)
I tried changing
\DeclareFontSeriesDefault[rm]{bf}{b}
to
\DeclareFontSeriesDefault[sf]{bf}{b}
with no success.