Commits

Philipp Gesang committed cf8a79b

add tests for kerning bug

Comments (0)

Files changed (4)

cnt-kerning-pairs-1.tex

+\definefontfeature [kerning] [mode=node,smcp=yes,kern=yes]
+\definefont [libertineserifsmallcaps] [file:LinLibertine_R.otf*kerning]
+\definefont [libertinesanssmallcaps]  [file:LinBiolinum_R.otf*kerning]
+
+\def\demotext{Vacillate Vaccine Vapour Vanish Va...}
+
+\starttext
+  {\libertineserifsmallcaps \demotext}\par
+  {\libertinesanssmallcaps  \demotext}\par
+\stoptext

ltx-fontspec-optical-size-3.tex

 %% set your font here
 
 %\setmainfont {Arno Pro}
-\setmainfont{Garamond Premiere Pro}
+\setmainfont{Garamond Premier Pro}
 
 %% helper for extracting the font name name, please ignore
 

ltx-kerning-pairs-1.tex

+%% http://tex.stackexchange.com/q/126617/14066
+\documentclass[12pt]{article}
+% PACKAGES
+\usepackage{fontspec}
+\defaultfontfeatures{Mapping=tex-text}
+\setromanfont[Renderer=Basic,Mapping=tex-text]{Linux Libertine O}
+\setsansfont[Renderer=Basic,Scale=MatchLowercase,Mapping=tex-text]{Linux Biolinum O}
+\setmonofont[Scale=MatchLowercase]{Linux Libertine Mono O}
+
+% BEGIN
+
+\begin{document} % ==============================================================
+
+Vacillate Vaccine Vapour Vanish Va...
+
+\textit{Vacillate Vaccine Vapour Vanish Va...}
+
+\textsf{Vacillate Vaccine Vapour Vanish Va...}
+
+\texttt{Vacillate Vaccine Vapour Vanish Va...}
+
+\textbf{Vacillate Vaccine Vapour Vanish Va...}
+
+\vspace{3ex}
+
+\textsc{Vacillate Waccine Vapour Vanish Va...}
+
+\textsc{\textsf{Vacillate Vaccine Vapour Vanish Va...}}
+
+\end{document}

pln-kerning-pairs-1.tex

+\ifdefined \directlua
+  \ifdefined \luatexsuppresslongerror
+    \input luaotfload.sty
+  \fi
+
+  \font\libertineserifsmallcaps = "name:Linux Libertine O:mode=node;+smcp;+kern;"
+  \font\libertinesanssmallcaps  = "name:Linux Biolinum O:mode=node;+smcp;+kern;"
+\else
+  \font\libertineserifsmallcaps = "Linux Libertine O:mode=node;+smcp;"
+  \font\libertinesanssmallcaps  = "Linux Biolinum O:mode=node;+smcp;"
+\fi
+
+\def\demotext{Vacillate Vaccine Vapour Vanish Va...}
+
+{\libertineserifsmallcaps \demotext}\par
+{\libertinesanssmallcaps  \demotext}\par
+
+\bye