I would like to use the Type1 libertine fonts provided by the package libertine and compile with XeLaTeX. According to the manual under section 4, this can be activated with the option type1:
\documentclass{article}
\usepackage[type1, oldstyle]{libertine}
\begin{document}
This is a test 1234567890 fi ffi fl ffl ft fft fj ffj tt
\end{document}
I would like to use the OpenType fonts, also provided by the libertine package, when I need to access glyphs not included in the Type1 fonts. As mentioned in section 5 in the manual, I can access these with the macro \libertineGlyph{}:
\documentclass{article}
\usepackage{libertine}
\begin{document}
\libertineGlyph{uni025D}
\end{document}
But how do I combine these? As said above, I'd like to stick to Type1 fonts as far as possible (as this renders ligatures and old style numbers copy- and searchable in the pdf), but switch to the OpenType fonts when I need special glyphs. Combining the type1 option with \libertineGlyph{} does not compile:
\documentclass{article}
\usepackage[type1, oldstyle]{libertine}
\begin{document}
This is a test 1234567890 fi ffi fl ffl ft fft fj ffj tt \libertineGlyph{uni025D}
\end{document}
! Undefined control sequence.
l.4 ...ffi fl ffl ft fft fj ffj tt \libertineGlyph{uni025D}?

\libertineGlyphis now only defined when thetype1option is not used. Why do you need to use it? – Thruston Jun 12 '14 at 14:27type1option. But I guess there are other glyphs you need. – Thruston Jun 12 '14 at 14:50:P– Sverre Jun 12 '14 at 14:59XeLaTeXas mentioned in my question? Problems with: Th, 1234567890, ft, fft, fj, ffj, tt. – Sverre Jun 12 '14 at 17:29luatex.Xetexdoes produce a complete mess here, whileluatexgets it right. Isluatexan option for you? – Thérèse Jun 12 '14 at 17:33