Commits

Philipp Gesang committed 939ed45

add Context version of buggy fake slant example

  • Participants
  • Parent commits 3f211b0

Comments (0)

Files changed (2)

File cnt-slant-3.tex

+\definefontfeature [fakeslant] [slant=0.3]
+
+\definefont [mainfont]        [file:Iwona-Regular.otf]
+\definefont [slantedfont]     [file:Iwona-Regular.otf*fakeslant]
+\definefont [boldslantedfont] [file:Iwona-BoldItalic.otf*fakeslant]
+
+\starttext
+
+  \mainfont foo             %% comment this out and there be slanted glyphs
+  {\slantedfont bar}        %% only if not preceded by same font in unslanted variety
+  {\boldslantedfont baz}    %% works because of different font
+
+\stoptext

File pln-slant-2.tex

   \input luaotfload.sty
 \fi
 
-\font \mainfont        = "file:Iwona-Regular.otf:mode=node;script=latn;language=DFLT"
-\font \slantedfont     = "file:Iwona-Regular.otf:mode=node;script=latn;language=DFLT;slant=0.30;"
-\font \boldslantedfont = "file:Iwona-BoldItalic.otf:mode=node;script=latn;language=DFLT;slant=0.30;"
+\font \mainfont        = "file:Iwona-Regular.otf"
+\font \slantedfont     = "file:Iwona-Regular.otf:slant=0.30;"
+\font \boldslantedfont = "file:Iwona-BoldItalic.otf:slant=0.30;"
 
 \mainfont foo             %% comment this out and there be slanted glyphs
 {\slantedfont bar}        %% only if not preceded by same font in unslanted variety