repo.or.cz
/
PyX.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix cross-device link error
[PyX.git]
/
examples
/
text
/
font.py
blob
5bb12845b8a698b7a4b67f2d9c8360e9008b0645
1
from
pyx
import
*
2
3
text
.
set
(
text
.
LatexRunner
)
4
text
.
preamble
(
r
"\usepackage
{times}
"
)
5
6
c
=
canvas
.
canvas
()
7
c
.
text
(
0
,
0
,
r
"\LaTeX{} doesn't need to look like \LaTeX{} all the time."
)
8
c
.
writeEPSfile
(
"font"
)
9
c
.
writePDFfile
(
"font"
)
10
c
.
writeSVGfile
(
"font"
)