I'm using PyX 0.12.1 to produce an EPS document for printing. I'm following the example in the documentation for changing the font, and have the following:
from pyx import *
text.set("Latex")
text.preamble(r"\renewcommand{\familydefault}{\sfdefault}")
height = 37 * unit.mm
c = canvas.canvas()
c.text(0, 15*unit.mm, "Hello, World!", [text.parbox(height), text.halign.boxcenter, text.halign.flushcenter])
When testing from my PC, this works as expected, however when running from the server, it generates a RuntimeError: preamble calls disabled due to previous text calls
exception.
What is causing this, and why does it not happen on my PC?