Iconsolata Bold Italics FakeSlant funktioniert nicht (Xe/LuaLaTeX)

Iconsolata Bold Italics FakeSlant funktioniert nicht (Xe/LuaLaTeX)

Dies ist eine Folgefrage vondiese AntwortFakeSlant, das eine -basierte Methode zum Bereitstellen von Fett- und Kursivschrift für Iconsolata unter Verwendung von XeLaTeX oder LuaLaTeX (mit ) bereitstellt fontspec.

Die ursprüngliche Methode funktioniert, aber wenn Sie Extension = .otf, oder iconsolataals Schriftartnamen angeben (weil es inconsolata.fontspecin derinconsolata-zi4Paket), schlägt die falsche Neigung für fette Kursivschrift fehl.

Betrachten Sie das folgende MWE:

\documentclass{article}
\usepackage{fontspec}

% this works
% \setmonofont{Inconsolatazi4}[
%   AutoFakeSlant,
%   BoldItalicFeatures={FakeSlant},
% ]

% this does not work
\setmonofont[
  AutoFakeSlant,
  BoldItalicFeatures={FakeSlant},
]{inconsolata}

% this does not work either
% \setmonofont[
%   UprightFont = *-Regular,
%   BoldFont = *-Bold,
%   AutoFakeSlant,
%   BoldItalicFeatures={FakeSlant},
%   Extension=.otf
% ]{Inconsolatazi4}

\begin{document}
\ttfamily
Regular
\textbf{Bold}
\textsl{Slanted}
\textit{Italics}
\textbf{\textsl{BoldSlanted}}
\textbf{\textit{BoldItalics}}
\end{document}

Funktioniert nicht:

funktioniert nicht

Arbeiten:

Arbeiten

Antwort1

Inconsolatea hat keine Kursivschrift, daher wird auf Schrägschrift zurückgegriffen:

\documentclass{article}
\usepackage{fontspec}

 \setmonofont[
   UprightFont = *-Regular,
   BoldFont = *-Bold,
   SlantedFont = *-Regular,
   SlantedFeatures = {FakeSlant=0.2},
   BoldSlantedFont = *-Bold,
   BoldSlantedFeatures = {FakeSlant=0.2,RawFeature={embolden=2}},
   Extension=.otf
 ]{Inconsolatazi4}

\begin{document}
    \ttfamily
    Regular
    \textbf{Bold}
    \textsl{Slanted}
    \textit{Italics}
    \textbf{\textsl{BoldSlanted}}
    \textbf{\textit{BoldItalics}}
\end{document}

Bildbeschreibung hier eingeben

verwandte Informationen