Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can I use Junicode small caps fonts with LuaLaTeX? The solution posted in textls breaks smallcaps with luatex did not work or I just can't fix it.

Example:

\defaultfontfeatures{Ligatures=TeX}
\setmainfont[SmallCapsFont={Junicode},SmallCapsFeatures={Letters=SmallCaps}]{Jun‌​icode}
\newfontfamily\scfont[Letters=SmallCaps]{Junicode}
share|improve this question
    
We could do with a bit more than 'did not work' Could you post an example of what you did, and an image or description of the result. –  Joseph Wright Apr 7 '12 at 7:01
    
@Erasm It's best to edit your question than adding code as a comment. –  egreg Apr 7 '12 at 9:34

1 Answer 1

What is wrong with the simple:

\documentclass{article}

\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Junicode}

\begin{document}
The quick brown {\scshape smallcaps} jumps over the \emph{italic} fox.
\end{document}

which gives:

enter image description here

share|improve this answer
    
It does not work with microtype's tracking: tex.stackexchange.com/questions/27555/… –  Erasm Apr 7 '12 at 7:55
1  
@Erasm I think that microtype tracking does not work correctly with LuaTeX anyway. –  topskip Apr 7 '12 at 8:21
2  
@Erasm: If you use version 2.5 of the microtype package -- still in (late) beta and available from tlcontrib.metatex.org/cgi-bin/package.cgi/action=view/id=423 -- you can use the following options when used with luatex >=0.62: "Protrusion", "Expansion, "Auto" (the combination of "protrusion" and "expansion"), and "Tracking"; what's still left out are "Spacing" and "Kerning". That said, it does indeed seem to be the case that "Tracking" doesn't work correctly with the smallcaps font of Junicode (it sets it in "normal" lowercase letters). –  Mico Apr 7 '12 at 11:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.