mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Correct font loading
Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
This commit is contained in:
parent
249e5ed899
commit
167c9e4395
1 changed files with 13 additions and 24 deletions
37
moderncv.cls
37
moderncv.cls
|
|
@ -96,33 +96,22 @@
|
||||||
\fi
|
\fi
|
||||||
\fi
|
\fi
|
||||||
|
|
||||||
% do not use inputenc and do not automatically load lmodern to avoid problems with German
|
% for luatex and xetex, do not use inputenc and fontenc
|
||||||
% charactes, see
|
% see https://tex.stackexchange.com/a/496643
|
||||||
% https://tex.stackexchange.com/questions/496630/lualatex-problems-with-german-characters
|
|
||||||
\ifxetexorluatex
|
\ifxetexorluatex
|
||||||
% \RequirePackage{fontspec}
|
\RequirePackage{fontspec}
|
||||||
% \defaultfontfeatures{Ligatures=TeX}
|
\defaultfontfeatures{Ligatures=TeX}
|
||||||
% \RequirePackage{unicode-math}
|
\RequirePackage{unicode-math}
|
||||||
% \setmainfont{Latin Modern}
|
\setmainfont{Latin Modern Roman}
|
||||||
% \setsansfont{Latin Modern Sans}
|
\setsansfont{Latin Modern Sans}
|
||||||
% \setmathfont{Latin Modern Math}
|
\setmonofont{Latin Modern Mono}
|
||||||
% \ifluatex
|
\setmathfont{Latin Modern Math}
|
||||||
% \usepackage{luatextra}
|
|
||||||
% \usepackage{lualatex-math} %loads fontspec
|
|
||||||
% \usepackage{shellesc} % fix a bug for lualatex shellescape
|
|
||||||
% \fi
|
|
||||||
\else
|
\else
|
||||||
\RequirePackage[utf8]{inputenc}
|
\RequirePackage[utf8]{inputenc}
|
||||||
% \RequirePackage[utf8]{inputenx}
|
\RequirePackage[T1]{fontenc}
|
||||||
% %additions for utf8
|
\RequirePackage{lmodern}
|
||||||
% \input{ix-utf8enc.dfu}
|
|
||||||
\RequirePackage[T1]{fontenc}
|
|
||||||
% loading lmodern can cause issues with certain special characters. avoid.
|
|
||||||
% \IfFileExists{lmodern.sty}%
|
|
||||||
% {\RequirePackage{lmodern}}%
|
|
||||||
% {}
|
|
||||||
% \fi
|
|
||||||
\fi
|
\fi
|
||||||
|
|
||||||
% hyper links (hyperref is loaded at the end of the preamble to pass options required by loaded packages such as CJK)
|
% hyper links (hyperref is loaded at the end of the preamble to pass options required by loaded packages such as CJK)
|
||||||
\newcommand*\pdfpagemode{UseNone}% do not show thumbnails or bookmarks on opening (on supporting browsers); set \pdfpagemode to "UseOutlines" to show bookmarks
|
\newcommand*\pdfpagemode{UseNone}% do not show thumbnails or bookmarks on opening (on supporting browsers); set \pdfpagemode to "UseOutlines" to show bookmarks
|
||||||
\RequirePackage{url}
|
\RequirePackage{url}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue