Document Classeslatex font warning

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
xyz
Posts: 1
Joined: Sat May 17, 2008 11:43 am

latex font warning

Post by xyz »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

latex font warning

Post by localghost »

You better use the fontenc package with the encoding parameter you need.

Code: Select all

\usepackage[T1]{fontenc}
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¹
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

latex font warning

Post by Stefan Kottwitz »

Hi,
xyz wrote:LateX Font Warning: Font shape 'OT1/cmss/m/it' in size <10> not available
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.
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
gatoatigrado
Posts: 6
Joined: Mon Dec 01, 2008 10:40 pm

latex font warning

Post by gatoatigrado »

The error I got was slightly different:

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
Adding package fix-cm worked; I think the title slide font was slightly too large.
Post Reply