[Tex/LaTex] Warning: Font shape LGR/mdbch/m/n undefined(Font) using LGR/cmr/m/n instead

font-encodingsfontswarnings

Basically I get the warning:

Warning: Font shape LGR/mdbch/m/n undefined(Font) using LGR/cmr/m/n instead

in a paragraph with

\textdelta

This latter command has an orange background, color that points to an unrecognized command.

enter image description here

I know that this is just a warning, bud it would be to know if this would be worth to be solved. If so, how can I solve it?

I use TeXstudio and all the completion files have been activated (Options -> Configure TeXstudio -> Completion).

I forgot to mention that I am using these packages:

\usepackage[bitstream-charter]{mathdesign}
\usepackage{textgreek}                          % greek letters in text

Thanks in advance for any hints,

Best Answer

The error message means that the symbol you asked for is not in any of the fonts you selected, so the glyph is being taken from Computer Modern (cmr) instead.

The textgreek package is conflicting with mathdesign.

The mathdesign package substitutes glyphs from alternate fonts for most of the default LaTeX math-mode commands. When you select \usepackage[charter]{mathdesign} the package pulls the normal text-mode glyphs from the Charter font and the math-mode glyphs from various other sources.

The textgreek package, on the other hand, is providing Greek characters (in Greek encoding) in text mode instead of math mode. By default it uses the Computer Modern Greek font.

So mathdesign gives you Charter and alternate math fonts, but the \textgreek command asks the textgreek package to give you a Greek font from Computer Modern. If you only need the occasional Greek symbol as part of scientific writing (as it appears from the screenshot), then the textgreek package is not necessary.

Without knowing more about your setup (a MWE would be necessary), I would suggest using $\delta$ or $\Delta$. Mathdesign also provides $\deltaup$ and $\Deltaup$ if you don't want the symbols slanted.