9

I just bought the font Uberschrift which brings tons of ligatures with it, but u nfortunately I'm not able to get access to them.

enter image description here

I tried to find out wich is the symbol's name and this is what fontmatrix tells me:

enter image description here

I found it not in the standard latin1 alphabet but in "un-mapped glyphs".

It is symbol I+191.

How do I get access to this ligature with xelatex or luatex with fontspec?

\documentclass[11pt]{standalone}
\usepackage{fontspec}
\usepackage{xltxtra}
\usepackage{polyglossia}% babel for Xelatex
\setdefaultlanguage{german}
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
\setmainfont{Uberschrift}

\pagestyle{empty}
\begin{document}

Überschrift


\end{document}
  • Complain with the distributors, who should tell customers how to get the ligatures. – egreg Dec 27 '14 at 22:35
  • 1
    @egreg: I'm quite sure the answer would be: klick that button on InDesign or similar and they would ask me back: WTF is LaTeX? ;) – schmendrich Dec 27 '14 at 22:39
  • Try \XeTeXglyph191\relax or \XeTeXglyph"191\relax (the latter uses hexadecimal. – egreg Dec 27 '14 at 22:42
  • \XeTeXglyph191\relax works. Great! Thanks. If you would make this an answer, I could accept it as the right one. – schmendrich Dec 27 '14 at 22:46
  • Sorry but they must be a better way to activate the ligatures than getting them through the slot number. Did you try the other options for the Ligatures key? Doesn't the description of the font say anything about its open type features? Did you try otfinfo? – Ulrike Fischer Dec 28 '14 at 18:05
11

Apparently, the program you used tells you the glyph index as a decimal number; with XeTeX you can access a glyph by index using \XeTeXglyph.

I suggest a macro, instead of the raw primitive:

\newcommand{\glyph}[1]{\XeTeXglyph#1\relax}

so, after this, you can type

Übers\glyph{191}rift

Why a macro? Because there could be a similar trick with LuaLaTeX (that I don't know at the moment), and the macro can be adapted to both engines without requiring changing the input.

See https://tex.stackexchange.com/a/120762/4427 for a LuaTeX function that should do the job.

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.