%&program=xelatex
%&encoding=UTF-8 Unicode

%%%% Begin file %%%%

\documentclass[12pt,a4paper]{article}

%%% NOTE that the osxfonts.sty package used here is a quick-and-dirty hack
%%% and should be replaced by Will Robertson's far more extensive "fontspec" package
%%% (see http://scripts.sil.org/xetex_related)

\usepackage{fontspec}

\setromanfont{DejaVu Serif}

\begin{document}

Normal text—in Üñıćō∂ė, of course.

\textbf{Bold text}.

\textit{Italic text}.

\textbf{\textit{Bold italic text}}.

\textsc{Small caps text \textbf{including bold}}.

% a couple of extra experiments....
% test for the use of font mappings:
\bigskip
Normal text—in “Üñıćō∂ė”, of course. % note dash and quotes!

% try a transliteration mapping:
\begin{centering}
\def\txt{Unicode - это уникальный код для любого символа,\\
    независимо от платформы,\\
    независимо от программы,\\
    независимо от языка.\par}

\end{centering}

\end{document}

%%%% End file %%%%
