On 03.07.2011 00:12 CE(S)T, Yves Goergen wrote: > 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 > interactively. > > 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?
Since nobody seems to know about dpi on Mono, I have changed my application to specify font sizes in pixels instead of point. That works well on any platform. I'm used to px sizes on the web since browsers on some Linux systems couldn't handle the conversion right in the past and rendered fonts much too small. And as screen resolutions on the desktop don't seem to change much (to say 300 dpi) this isn't much of a problem anyway. -- Yves Goergen "LonelyPixel" <[email protected]> Visit my web laboratory at http://beta.unclassified.de _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
