# microtype has issues with mathdesign \mathsf font [closed]

I am using

\documentclass{amsart}
\usepackage{microtype}
\usepackage[bitstream-charter,cal=cmcal]{mathdesign}


Sometimes  \mathsf{...}  produces

 pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.


Appears when the \mathsf is typeset in the end of a line and only with certain characters (e.g. P,..).

So, which fonts does mathdesign use for \mathsf? Should I replace it with other font? Suggestions? Solutions?

minimal 'working' example:


\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage[bitstream-charter]{mathdesign}

\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sdf$\mathsf P$ elementum, elit in varius viverra, mauris augue cursus purus, vel ullamcorper nisi orci pretium nunc.
\end{document}


This example is minimal, i.e. dropping \usepackage[T1]{fontenc} avoids the error.

-
Welcome to TeX.sx! Could you please extend your code snippet into a minimal working example (MWE) that reproduces the error? –  cgnieder Apr 22 at 17:33
Your MWE runs without errors on my machine (microtype 2013/03/13 v2.5 and mathdesign 2006/01/29 v1.55) –  cgnieder Apr 22 at 18:30
Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) (format=pdflatex 2012.12.23), fontenc 2005/09/27 v1.99g, microtype 2010/01/10 v2.4, mathdesign 2006/01/29 v1.55 –  DCh Apr 22 at 18:50
this looks like you should update microtype. –  cgnieder Apr 22 at 19:25
fontenc 2005/09/27 v1.99g, microtype 2013/03/13 v2.5, mathdesign 2006/01/29 v1.55 - the same error massage –  DCh Apr 22 at 21:07

## closed as too localized by lockstep, Andrew Swann, Martin Schröder, Claudio Fiandrino, zerothApr 24 at 14:05

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

This has nothing to do with microtype.
\usepackage[bitstream-charter]{mathdesign} does not provide sans serif font and the default is used. Type1 version of default font may not be installed (this seems to be the case in standard TeX setup), it is in cm-super
I don't think that moving around the call of fontenc does anything. The fact is that you don't have the Type1 version of the default sans serif font, which is available with the CM-Super fonts (to be installed). –  egreg Apr 24 at 8:33
I can not confirm that. \usepackage[T1]{fontenc} \usepackage[bitstream-charter]{mathdesign} ... S\textsf{S}$\mathsf{S}$ gives this \usepackage[bitstream-charter]{mathdesign} \usepackage[T1]{fontenc} ... this Installing cm-super solves the issue though. (But the sans serif font is still in wrong scale.) Seems like cm-super font is not included in 'standard' TeX setup.. Could someone explain what is going on and how to properly use sans serif fonts with mathdesign? –  DCh Apr 24 at 13:51