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
remove none-existing reference
[PyX.git]
/
examples
/
text
/
font.py
blob
75670d63879d584d9ce1141de80affeed14045c6
1
from
pyx
import
*
2
3
text
.
set
(
cls
=
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"
)