[texhax] Using TTF, OTF and T1 fonts
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Tue Apr 12 18:54:36 CEST 2011
Am 12.04.2011 18:20, schrieb Boris Veytsman:
> \listfiles
> \documentclass{article}
> \usepackage{auto-pst-pdf}
> \usepackage[T1]{fontenc}
> \usepackage{libertine}
> \usepackage{pstricks-add}
>
> i.e. why not use libertine inside luatex if we are already using it
> outside it?
as long as you are using a font which is already prepared
for pdftex it makes no difference.
If I want to use the DejaVu font, I can do it with xelatex:
\listfiles
\documentclass{article}
\usepackage{fontspec}
\setmainfont{DejaVuSerif}
\setsansfont{DejaVuSans}
\usepackage{pstricks-add}
\begin{filecontents*}{test.data}
0 0.000
1 0.125
2 0.172
3 0.159
4 0.139
5 0.113
6 0.083
7 0.053
8 0.025
10 0.019
11 0.032
12 0.038
13 0.038
14 0.032
15 0.022
16 0.011
\end{filecontents*}
\begin{document}
\sffamily
\readdata{\data}{test.data}
\begin{psgraph}[comma,labelFontSize=\scriptstyle,
axesstyle=frame,Dy=.02,
ticks=y,yticksize=0 \linewidth,
tickcolor=black!40,xlabelOffset=0.5\psxunit
](-0.4,0)(16.5,0.21){\linewidth}{5cm}
\listplot[plotstyle=bar,barwidth=18pt,fillcolor=red!60,
fillstyle=solid,opacity=0.8]{\data}
\end{psgraph}
\end{document}
Herbert
More information about the texhax
mailing list