Skip to content

Instantly share code, notes, and snippets.

@phi-gamma
Created July 11, 2014 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phi-gamma/70f8bbb8515ba71978b6 to your computer and use it in GitHub Desktop.
Save phi-gamma/70f8bbb8515ba71978b6 to your computer and use it in GitHub Desktop.
\input luaotfload.sty
\font \foo = file:Iwona-Regular.otf:+smcp;letterspace=1.25 at 42pt
\font \foo = file:MinionPro-Regular.otf:+smcp;letterspace=1.25 at 42pt
\foo It works!
\bye
@eg9
Copy link

eg9 commented Jul 11, 2014

Here's an example with LuaLaTeX

\documentclass{article}
\usepackage{microtype}
\usepackage{fontspec}

\setmainfont{Linux Libertine O}[
  Renderer=Basic
]

\begin{document}
\textls[50]{\scshape This\showtokens\expandafter{\fontname\font}}
\end{document}

The log file reports:

"LinuxLibertineO:mode=base;script=latn;language=DFLT;+tlig;+trep;+smcp;"+50ls

that doesn't seem well formed. However this is not the problem; when Renderer=Basic is omitted, the +smcp type is ignored though the terminal reports

"LinuxLibertineO:mode=node;script=latn;language=DFLT;+tlig;+trep;+smcp;"+50ls

In synthesis:

  • the ligature Th is kept, which is awfully wrong, when Renderer=Basic is used, small caps are used for the rest;
  • the letterspacing is maintained (and no Th ligature is formed) but no small caps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment