Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect italic 'Book' weights chosen #233

Closed
adunning opened this issue Mar 15, 2016 · 3 comments
Closed

Incorrect italic 'Book' weights chosen #233

adunning opened this issue Mar 15, 2016 · 3 comments

Comments

@adunning
Copy link

@adunning adunning commented Mar 15, 2016

With the following document, fontspec uses the Book weight of Gill Sans MT Pro for non-italicized text, and Medium Italic for the italics:

\documentclass{minimal}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
    \setmainfont{Gill Sans MT Pro}

\begin{document}

This is a \emph{test}.

\end{document}

It works if one uses:

\setmainfont
  [Ligatures=TeX,
   UprightFont={* Book},
   ItalicFont={* Book Italic}]
  {Gill Sans MT Pro}

These are the weights included in the font:

  • Light
  • Light Italic
  • Book
  • Book Italic
  • Medium
  • Medium Italic
  • Bold
  • Bold Italic
  • Heavy
  • Heavy Italic
  • Extra Bold
  • Condensed
  • Bold Condensed
  • Ultra Bold Condensed
  • Display Bold
  • Display Extra Bold
  • Display Bold Condensed
  • Bold Extra Condensed
@wspr
Copy link
Owner

@wspr wspr commented Mar 16, 2016

Thanks for writing. Unfortunately fontspec has nothing to do with the "auto-selection" of shapes and weights and has no way to influence the results -- for complex fonts such as this one there is often confusion by the engine to guess which is the correct one. Generally you're expected to be specific in such situations, using the syntax you give in the issue. I use .fontspec files to automate the selection of specific families within a superfamily like this.

@wspr wspr closed this Mar 16, 2016
@adunning
Copy link
Author

@adunning adunning commented Mar 16, 2016

I am clearly spoiled by your cleverness in dealing with optical sizes. Thanks!

@wspr
Copy link
Owner

@wspr wspr commented Mar 17, 2016

Actually a lot of that is also just the engine being clever :) The extra features in fontspec only override what XeTeX or luaotfload do by default!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants