[Mono-list] Font rendering (dpi) and cron
nospam.list at unclassified.de
Sat Jul 2 18:12:28 EDT 2011
I have written a programme that generates graph images from data in a
database. These images include text drawn in a certain font and size.
When I run the programme interactively, everything is fine.
When the programme is run through cron, though, the font is a bit
larger. But I want the font to be exactly the same as when running it
I assume it's got something to do with the configured dpi value. This is
96 for the root user (under which cron runs the app) and 80 for my
account. When I run the app interactively, I sudo from my account to
root, because root privileges are required. (I don't know how gconf
works and what sudo does to it, but I could only see the value of 96 by
sudo'ing to root - exactly what I did when running my app. So does that
make a difference at all?)
I have already set root's dpi value to 80 with gconftool and verified
the success of that action, but the font is still larger.
What does Mono do to render text? Where does it look for the relevant
parameters? And how is the cron environment different from an
interactive shell in a Terminal window?
I'm on Ubuntu 10.4 x64 with Mono 2.4.4.
Yves Goergen "LonelyPixel" <nospam.list at unclassified.de>
Visit my web laboratory at http://beta.unclassified.de
More information about the Mono-list