How can I get the Wikipedia-looking crossing-w from Linux Libertine font?
They talk about it on their homepage and in the wikipedia article, but I can't find an example of how to actually produce it.
Fyi I'm using xetex
with fontspec
.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityHow can I get the Wikipedia-looking crossing-w from Linux Libertine font?
They talk about it on their homepage and in the wikipedia article, but I can't find an example of how to actually produce it.
Fyi I'm using xetex
with fontspec
.
The “official” way, is to activate stylistic set 5 feature, StylisticSet=5
fontspec option. If you to use it locally then you can define a “font family” with that option, and if you want it globally you should pass it to \setmainfont
. This is also the most portable way, as the glyph name (W.alt
) or the private use area code point (U+E02F
) can change in the future since they are “internal” to the font and should not concern its users, only the OpenType features are the “public” interface.
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\newfontfamily\libertinew[StylisticSet=5]{Linux Libertine O}
\begin{document}
\textsc{Wikipedia}\par
\textsc{\libertinew Wikipedia}
\end{document}
\libertineGlyph
works with pdflatex as well...
The character is accessible through \libertineGlyph{W.alt}
or \libertineGlyph{uniE02F}
\documentclass{scrartcl}
\usepackage{fontspec}
\usepackage{libertineotf}
\setmainfont{Linux Libertine O}
\begin{document}
\libertineGlyph{W.alt}\textsc{ikipedia} \libertineGlyph{uniE02F}\textsc{ikipedia}
\end{document}
As Andrey Vihrov pointed out in his comment you can also access the glyph with \char"E02F
without having to load libertineotf
.
\documentclass{scrartcl}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\begin{document}
\char"E02F\relax\textsc{ikipedia}
\end{document}
Alternate
doesn't quite work. But you can get the glyph with \char"E02F\relax
, then libertineotf
is not needed.
Mar 8, 2012 at 21:52
\textsc
? The way it is, the kerning looks a little off, repositioning it might help.
Mar 8, 2012 at 22:43
\WikipediaMark
, say, so you stick a manual \kern -0.05em
or something in there.
\libertineGlyph
versions, it fixes the kerning, but the W appears strangely, I'd say it's italic. No idea why. \textsc{\char"E02F\relax ikipedia}
looks good -- correct letter and right kerning.
Mar 8, 2012 at 23:17
\libertineGlyph{W.alt}
libertineotf
package.) Is there a way to do it without?fontspec
'sAlternate
feature.