Is ist possible to define a new series with fontspec? I tried the following but …
- it throws an error if the font doesn’t have a light version instead of replacing the font, like
\bfseriesdoes. In other word there’s no fallback. - my
\ltseriesisn’t deactivated by\mdseries.
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Source Sans Pro}
% http://www.google.com/fonts/specimen/Source+Sans+Pro
\newcommand{\ltseries}{%
\addfontfeatures{UprightFont={* Light},ItalicFont={* Light Italic}}%
}
\begin{document}
\ltseries
Light
\mdseries
Regular
\bfseries
Bold
\end{document}
If found Possible values for \fontseries and \fontshape but it doesn’t tell how to define a new series. Furthermore this is for LaTeX and it’s NFSS, while I’m using XeTeX with fontspec.
\newfontfamilyor\newfontface. – Manuel May 12 '14 at 14:17\ltserieswill change the family too. – Tobi May 12 '14 at 14:58\ltserieslike that (and you are sure it's enough), you could redefine\mdseries(and\bfseries) to be the same but with other UprightFont and ItalicFont. – Manuel May 12 '14 at 18:47