Re: luatex en system fonts

Wybo Dekker <wybodekker-qWit8jRvyhVmR6Xm/[email protected]>
Newsgroups gmane.comp.tex.dutch
Message-ID <[email protected]>
On 05/08/2011 10:44 AM, Roland Kwee wrote:
> Kan iemand me uitleggen hoe ik de system fonts in luatex kan
> gebruiken? Mijn systeem is Ubuntu linux.
> 
> Ik ben heel blij met de komst van luatex, vooral omdat er van gezegd
> wordt dat het heel makkelijk gebruik kan maken van de system fonts.

Het kan ook zonder luatex, als je xelatex gebruikt. Attached is mijn
testfiletje om fonts uit te proberen.

-- 
Wybo

_______________________________________________
TeX-NL mailing list
[email protected]
http://www.ntg.nl/cgi-bin/mailman/listinfo/tex-nl
fonttest.tex (text/x-tex, 751 B)
%!xelatex

\documentclass[10pt]{article}
\usepackage[a5paper,margin=7mm]{geometry}
\parindent0pt
\pagestyle{empty}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Times New Roman}
\defaultfontfeatures{Scale=MatchLowercase,Numbers=OldStyle,Mapping=tex-text}

\newcommand\Text[1]{%
  \fontspec{Bitstream Charter}
  \message{----------#1----------}
  {\LARGE #1}\\[-1ex]
  \rule{\textwidth}{.2pt}\\
  \fontspec{#1}
  abcdefghijklmnopqrstuvwxyz\\
  ABCDEFGHIJKLMNOPQRSTUVWXYZ\\
  áéúíóäïüëöç αβγδεζ ☦☧☨☩☪☫☬☭☮☯☸\\
  0123456789 - -- --- \textsc{smallcaps} \textbf{bold} \textsl{slanted} \textit{italic}
  \\[2ex]
}
  
\begin{document}
\Text{DejaVu Serif}
\Text{DejaVu Sans}
\Text{DejaVu Sans Mono}
\end{document}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.