[texhax] Bold for sf and semi-bold for rm

Ulrike Fischer news3 at nililand.de
Thu Oct 8 11:08:54 CEST 2009

Am Wed, 07 Oct 2009 13:20:02 +0200 schrieb Christer Thörn:

> Hi.
> I'm using a roman font, where I want the bold weight to use the 
> semi-bold font. But I want the sans serif bold to use its regular bold! 
> Is there an easy way?
> Currently I use:
> \renewcommand{\rmdefault}{mbv} % A Baskerville as rm
> \renewcommand{\bfdefault}{sb}  % Use semibold instead of bold
> \usepackage{helvet}            % Helvetica as sf
> This causes the roman to be semibold and the sans serif be neither bold 
> nor semi-bold. Is there a "\bfdefault_for_rm_only"?

No, but you can add substituation rules for helvet so that it use b
when sb is called:


\sffamily\selectfont%to load t1phv.fd
\DeclareFontShape{T1}{phv}{sb}{n}{<->ssub * phv/b/n}{}
\DeclareFontShape{T1}{phv}{sb}{sc}{<->ssub * phv/b/sc}{}
\DeclareFontShape{T1}{phv}{sb}{sl}{<->ssub * phv/b/sl}{}
\DeclareFontShape{T1}{phv}{sb}{it}{<->ssub * phv/b/it}{}

%etc for other encodings like TS1

abc \sffamily abc \bfseries abc

You can naturally also generate local fd-file for phv and add the
rules there. 
Ulrike Fischer 

More information about the texhax mailing list