1. Philipp Gesang
  2. lua[la]tex tests

Commits

Philipp Gesang  committed 47799a6

add tests for fake stretch bug

  • Participants
  • Parent commits 939ed45
  • Branches default

Comments (0)

Files changed (4)

File cnt-feature-extend-1.tex

View file
+%% http://www.ntg.nl/pipermail/ntg-context/2013/075200.html
+\definefontfeature [quite_wide] [extend=1.5]
+\definefont [mainfont] [file:Iwona-Regular.otf]
+\definefont [widefont] [file:Iwona-Regular.otf*quite_wide]
+
+\starttext
+  \mainfont
+  {\widefont foo}
+  bar
+  {\widefont baz}
+\stoptext
+

File ltx-feature-extend-1.tex

View file
+%% via (closed) DANTE e. V. mailing list, relegated to
+%% http://www.ntg.nl/pipermail/ntg-context/2013/075200.html
+\documentclass{scrartcl}
+\usepackage{fontspec}
+\usepackage{blindtext}
+
+\defaultfontfeatures{
+  SizeFeatures={
+    {Size={10}},
+    {Size={12}, FakeStretch=1.5}}}
+\setmainfont{TeX Gyre Adventor}
+\parindent0pt
+
+\begin{document}
+  {\Large Test 1}
+
+  \rule{\textwidth}{0.4pt}
+
+  \blindtext
+
+  {\Large Test 2}
+\end{document}

File pln-feature-extend-1.tex

View file
+%% http://www.ntg.nl/pipermail/ntg-context/2013/075200.html
+\ifdefined \directlua
+  \ifdefined \luatexsuppresslongerror
+    \input luaotfload.sty
+  \fi
+  \font \mainfont = "file:Iwona-Regular.otf:mode=base" at 10pt
+  \font \extfont  = "file:Iwona-Regular.otf:mode=base;extend=1.5" at 12pt
+\else
+  \font \mainfont = "[Iwona-Regular.otf]" at 10pt
+  \font \extfont  = "[Iwona-Regular.otf]:extend=1.5" at 12pt
+\fi
+
+\mainfont
+
+{\extfont bar}
+
+\input knuth
+
+{\extfont bar}
+
+\bye
+

File pln-slant-2.tex

View file
 \fi
 
 \font \mainfont        = "file:Iwona-Regular.otf"
+\font \italicfont      = "file:Iwona-Italic.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
+%{\italicfont bar}         %% only if not preceded by same font in unslanted variety
 {\boldslantedfont baz}    %% works because of different font
 
 \bye