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
/
encoding.py
blob
33d8ab882c36b2b03179a1b8849b29bb9a19c9b4
1
from
pyx
import
*
2
3
text
.
set
(
cls
=
text
.
LatexRunner
,
texenc
=
'utf-8'
)
4
text
.
preamble
(
r
'\usepackage[utf8]
{inputenc}
'
)
5
6
c
=
canvas
.
canvas
()
7
c
.
text
(
0
,
0
,
r
'Héllò, wørłd!'
)
8
c
.
writeEPSfile
()
9
c
.
writePDFfile
()
10
c
.
writeSVGfile
()