Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the Frutiger font as the sans serif font in my document. It is invoked by

\renewcommand{\sfdefault}{pfr}

However this font is too bold for my taste. There is a ligher version available. I would like {\sf Test} to be rendered as

{\fontfamily{pfr}\fontseries{l}\selectfont Test}

and {\sf \textbf{Test}} to be rendered as

{\fontfamily{pfr}\fontseries{m}\selectfont Test}

(that is, the normal variant is now used as the bold typeface). How do I achieve this? I don't know the proper commands to so this and I suspect my \renewcommand is not the correct way of switching to Frutiger in the first place.

share|improve this question
    
Adding a command \renewcommand{\seriesdefault}{l} also affects my serif font. –  Ben Mar 4 '12 at 14:46
1  
You didn't mention which package you use for the font support. Can you add a minimal working example (MWE) that can be experimented with? –  Andrey Vihrov Mar 5 '12 at 19:55
    
I cannot add a minimal working example because I ama using non-fee typefaces. I am not using a package, just the command I mentioned. –  Ben Mar 7 '12 at 22:06

1 Answer 1

up vote 6 down vote accepted

Remark: don't use \sf command, better keep with \sffamily. The following works only with this one. Putting the following by the end of your preamble should work, it surely does for some font that provides both l and m series:

\makeatletter
\expandafter\g@addto@macro\csname sffamily \endcsname{\def\bfdefault{m}}
\makeatother

The command \g@addto@macro re-defines the macro \sffamily to locally re-define bf series to m. Usage of \csname is necessary since \sffamily is a protected command and the command itself ends with an extra space. The \makeat... commands makes the commands with @ in name accessible. (Thanks to egreg for explanations and corrections.)

share|improve this answer
    
may I ask why did you delete your answer to my question? Your answer works perfectly! (I'm just experimenting with egreg's answer, too.) –  nnunes Jan 20 '13 at 15:44
    
@NunoNunes that answer is malacious, try \sffamily this \rmfamily that. The egreg's one should work better. –  yo' Jan 20 '13 at 16:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.