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've got a font with two styles showing up in fc-list, corresponding to two TTF files:

Humanistic:style=Regular
Humanistic:style=Cursive

How can I select the Cursive style in fontspec?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You can check font names with otfinfo -i <font-file>.

In that particular case you can use

\documentclass{scrartcl}
\usepackage[english]{babel}
\usepackage{fontspec,blindtext}
\setmainfont{Humanistic}
\newfontface\humanisticcursive{Humanistic Cursive}% Create a new font face for the Cursive style
\begin{document}
\blindtext
\humanisticcursive{\blindtext}% Apply the new font face
\end{document}
share|improve this answer
    
Ah! That was easier than I thought :-) –  ℝaphink Jun 29 '11 at 12:39

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.