Custom font families
Adding ability to define custom font families. Needed for correct polyglossia operation with Cyrillic fonts and perhaps can find some other usages. Example usage in YAML metadata: ``` fontfamilies: - name: \cyrillicfont font: Liberation Serif - name: \cyrillicfonttt options: Scale=MatchLowercase font: Liberation Mono ```
This commit is contained in:
parent
63471c3b8c
commit
fd4ba42666
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ $endif$
|
||||||
\usepackage{fontspec}
|
\usepackage{fontspec}
|
||||||
\fi
|
\fi
|
||||||
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
|
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
|
||||||
|
$for(fontfamilies)$
|
||||||
|
\newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
|
||||||
|
$endfor$
|
||||||
$if(euro)$
|
$if(euro)$
|
||||||
\newcommand{\euro}{€}
|
\newcommand{\euro}{€}
|
||||||
$endif$
|
$endif$
|
||||||
|
|
Loading…
Add table
Reference in a new issue