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.
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.
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...
– cgnieder
Mar 09 '12 at 08:21
Linux Libertine O (fontspec warning: "icu-feature-not-exist-in-font" OpenType feature 'Variant=5' (+ss05) not available for font 'LinuxLibertineO/B' with script 'Latin' and language 'Default'.), but the W shows as expected.
– 0xC0000022L
Jun 22 '15 at 16:54
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.
– Andrey Vihrov
Mar 08 '12 at 21:52
\textsc? The way it is, the kerning looks a little off, repositioning it might help.
– doncherry
Mar 08 '12 at 22:43
\WikipediaMark, say, so you stick a manual \kern -0.05em or something in there.
– kahen
Mar 08 '12 at 22:54
\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.
– doncherry
Mar 08 '12 at 23:17
\libertineGlyph{W.alt}– cgnieder Mar 08 '12 at 21:01libertineotfpackage.) Is there a way to do it without? – Alan Munn Mar 08 '12 at 21:21fontspec'sAlternatefeature. – Andrey Vihrov Mar 08 '12 at 21:22