I have this in the preamble of my latex file:
\usepackage{type1cm}
but I still get these latex font warnings:
LateX Font Warning: Font shape 'OT1/cmss/m/it' in size <10> not available
...
Is there something else I'm supposed to do, in order for latex to generate the
missing font shapes/sizes?
Thanks
Document Classes ⇒ latex font warning
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
latex font warning
You better use the fontenc package with the encoding parameter you need.
Moreover you should make sure that the cm-super package is installed on your LaTeX system. If all that doesn't help, provide a minimal working example (MWE) and add the log file as attachment.
Best regards
Thorsten¹
Code: Select all
\usepackage[T1]{fontenc}
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
latex font warning
Hi,
This just to clarify, because I recommend to use the T1 encoding the way Thorsten wrote above. With T1 you are able to switch to italic with cmss.
Perhaps you want to try Latin Modern alternatively, they are derived from the Computer Modern fonts. Then write \usepackage{lmodern} together with T1 encoding.
Stefan
the computer modern sans serif font is not available in italic shape, use slanted shape instead. That means use \textsl instead of \textit and use \slshape instead of \itshape when you are using cmss (\sffamily) with OT1 encoding.xyz wrote:LateX Font Warning: Font shape 'OT1/cmss/m/it' in size <10> not available
This just to clarify, because I recommend to use the T1 encoding the way Thorsten wrote above. With T1 you are able to switch to italic with cmss.
Perhaps you want to try Latin Modern alternatively, they are derived from the Computer Modern fonts. Then write \usepackage{lmodern} together with T1 encoding.
Stefan
LaTeX.org admin
-
- Posts: 6
- Joined: Mon Dec 01, 2008 10:40 pm
latex font warning
The error I got was slightly different:
Adding package fix-cm worked; I think the title slide font was slightly too large.
Code: Select all
slides.tex:20: Font shape `T1/cmss/m/n' in size not available(Font) size substituted on input line 20. Font shape `T1/cmss/m/n' in size not available(Font) size substituted