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.

OS X Mavericks includes a copy of the font Charter in /Library/fonts/Charter.ttc. This file provides six variants: roman, italic, black, bold, black italic, and bold italic.

As the following example shows, \textit{text} produces bold italics instead plain italics and \textbf{text} produces black text not bold.

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Charter}
\begin{document}
Here are some \textit{italics} that should not be so \textbf{bold}.
\end{document}

Here’s a screenshot (for non-Mac/Mavericks users) compiled with xelatex.

enter image description here

How do I persuade fontspec to pick the right parts of the six part font?

share|improve this question
    
I've noticed the same with plain-xetex, so prolly not related to fontspec. –  morbusg May 28 at 19:43
    
Just tested: \font\it="Charter/I" produces the bold italic, while \font\it="Charter Italic" produces the correct italic. –  morbusg May 28 at 19:51
    
@morbusg, so is that a bug in xetex? It is at least surprising that the /I bold italic with this font. –  Thruston May 28 at 21:29
    
I don't know, but I'd guess it relates to the file being a TrueType Collection. –  morbusg May 29 at 18:50
add comment

2 Answers 2

up vote 8 down vote accepted

The fontspec package lets you specify explicitly the italic, bold, and bold italic fonts that should be used. This is useful for many obvious reasons, including when it's necessary to override incorrect font-related guesses that fontspec occasionally makes. Incorrect font guesses can happen under both LuaLaTeX and XeLaTeX, by the way.

enter image description here

% !TEX TS-program = xelatex
\documentclass{article}
\usepackage{fontspec}
\setmainfont[ItalicFont     = Charter Italic,
             BoldFont       = Charter Bold,
             BoldItalicFont = Charter Bold Italic,
             Ligatures = TeX] 
            {Charter}
\begin{document}
Here are some \textit{italics} that aren't \textbf{bold}.
\end{document}
share|improve this answer
1  
What's up with the final 's' in the word 'italics'? –  Sverre May 29 at 16:30
    
@Sverre - Yeah, I noticed that too. The s looks fine when I first produce the pdf file, but it gets mangled when I create the .png file to post as a screenshot. The c right before it doesn't look to good either in the png file, does it? It happens regardless of whether I compile the file under XeLaTeX or LuaLaTeX. I'm afraid I have no idea what's causing it. Do you? –  Mico May 29 at 16:36
add comment

It depends to the Charter font you are using. I have the CharterITC and that one works very well:

enter image description here

share|improve this answer
2  
So where does on get CharterITC? Otherwise, this might just as well be a comment... –  Werner May 28 at 20:50
add comment

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.