Fonts & Character SetsAutoinst font question

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
yoriz
Posts: 8
Joined: Sun Nov 21, 2010 8:39 pm

Autoinst font question

Post by yoriz »

Hi everyone,

I have a question about installing fonts using autoinst. I've been looking for the answer on this forum and couldn't find it. I hope I am not asking something that has been answered already.

The issue is the following: I have TeXLive 2009 on an Ubuntu computer. I just installed, using autoinst, a new OTF font (BemboPro). The font works perfectly fine. However: when I use the package BemboPro, I somehow lose the default sans serif bold font. In particular, pdflatex returns the following warning:

LaTeX Font Warning: Font shape `T1/cmss/b/n' undefined
(Font) using `T1/cmss/m/n' instead on input line 12.

A minimal 'working' example (except that you don't have the package BemboPro) is:

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{BemboPro}
\begin{document}
This is supposed to be in Bembo Pro. 
{\sffamily This is supposed to be in sans serif normal. }
{\sffamily\bfseries This is supposed to be in sans serif bold. }
\end{document}
So the issue is: when I include BemboPro, I don't have the sans serif bold font (it gives the warning above). But whenever I remove the command "\usepackage{BemboPro}" the sans serif bold works again. So somehow the BemboPro package undoes the definition of the T1/cmss/b/n font shape.

What am I doing wrong and how should I fix this?

Thanks very much,

Yori
Last edited by yoriz on Tue Nov 23, 2010 6:05 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Autoinst font question

Post by frabjous »

One of the many problems with using commercial software is that it makes it impossible for those who don't own the software to help troubleshoot problems with it. I don't have access to the Bembo fonts, but I did get a similar problem with some other packages created with autoinst. In fact, I used BergamoStd (a freely available, though not open source, Bembo lookalike). I couldn't quite figure out what the source of the problem was, but one workaround was simply to load the lmodern package before loading the Bergamo package. This set the default sans to Latin Modern Sans Serif, which is mostly indistinguishable from Computer Modern Sans and if anything, is higher quality).

Code: Select all


\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{BergamoStd}
\begin{document}
This is supposed to be in BergamoStd.
{\sffamily This is supposed to be in sans serif normal. }
{\sffamily\bfseries This is supposed to be in sans serif bold. }
\end{document}
yoriz
Posts: 8
Joined: Sun Nov 21, 2010 8:39 pm

Re: Autoinst font question

Post by yoriz »

Awesome, you're good! Thanks a lot, this works. I'm still confused about how come the font shape cmss/b/n seems to be 'undefined' while loading the package. I checked the source code of BemboProy.sty and could not find any hint on where/why this happens.

The problem has been solved at least. Thanks a lot!

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

Autoinst font question

Post by localghost »

Now that the problem is obviously solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
yoriz
Posts: 8
Joined: Sun Nov 21, 2010 8:39 pm

Autoinst font question

Post by yoriz »

Hi Thorsten,

I know that; I left the question open because I am still unclear about why cmss/b/n is undefined (which is clearly written in my last post).

I will set it to solved.

Yori
Post Reply