1

I have a font, whose font table is as shown in the image. However, when I compile a basic document with LuaLaTeX, the text appears as lower case, though small caps is specified.

I understand, from looking at the font table, that the small caps glyphs may be in the wrong location (in the font table) and/or have wrong labels (e.g. small caps 'a' is shown as LATIN CAPITAL LETTER A in the image below). I do not understand font tables well and any insights will be appreciated.

Please advise if I need to move the small caps gylphs to another location in the table, to allow LuaLaTeX to pick it up correctly.

If my understanding is wrong, please can you suggest any other resolution?

Fonttable

\documentclass{article}
\usepackage{fontspec}
\setmainfont[Ligatures={Required,Common,Contextual,TeX},Numbers=Lining, ItalicFont={Alcala-Italic},BoldFont={Alcala-Bold}]{Alcala-Regular}

\begin{document}    
\textsc{test}
\end{document}

Output

  • Do you ger error messages or warnings about fonts? If yes add them to your question. Is that font free? Do you have a link to it? – Kurt Nov 20 '18 at 15:06
  • The name of the glyph looks wrong, it should be something like A.sc (but capital small caps doesn't make much sense). Beside this: moving glyphs around doesn't help, the lookup table must be correct. – Ulrike Fischer Nov 20 '18 at 15:33
  • For me, the name of the glyph does sound right (it is defined as variant glyph) as it is called "a.smcp" which is "a small caps", but I am unsure if fontspec supports variant glyphs as small caps shape. – TeXnician Nov 20 '18 at 16:25
  • This seems to be a commercial font, with many pirated versions circulating. Do you have the real thing? (Pirated copies will be broken in various ways.) If so, how do you invoke it? – Thérèse Nov 20 '18 at 17:15
  • I am playing around and I feel that the solution might have something to do with SmallCapsFeatures = { RawFeature={+smcp}}. It worked once and hasn't since. – AK16 Nov 20 '18 at 17:23
1

I found that the font table is mapped to replace Latin capital glyphs to small caps glyphs as shown in this image below (and not Latin small letters to small caps as is usually the case.)

Caps toSC

Now, using the \textsc command on capital letters, produces the right output.

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Alcala-Regular}

\begin{document}    
\textsc{\uppercase{test for small caps}}\enspace TEST FOR ALL CAPS
\end{document}

scfine

  • 1
    That’s bizarre: according to the PDF specimen, the font is supposed to have both the c2sc and the smcp features, but it looks as though smcp was defined the way c2sc would be. – Thérèse Nov 21 '18 at 15:28

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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