Why, after finishing my application and running it on another Xserver, all fonts are wrong, destroying my carefully designed layout?
A possible answer: If you specify fonts only partially, such as Helvetica-*-12-*-*…, the Xserver picks the first one that fits. Another Xserver may have a different set of fonts, and the one that first fits the specification is different, with unpredictable results. On the other side, if you specify a font completely, and the Xserver can’t find it, Tk may die, or the nearest font matched is really very different than the one that you intend. Another frequent error is to specify fonts with pixel size, not point size, and of course if you change from a 70 dpi to a 100 dpi monitor, than your application will be shrinked. Another frequent error is related with an improper setup of the font path for the Xserver (run `xset q’). If you specify your font with an “*” in the x or y dpi sizes, again the Xserver will pick the first one it found. If you are using a 100dpi monitor, but the font path for the xserver list first the directories of the 75dpi fonts, you are in trouble.
Related Questions
- When displaying my application on an X server running on Windows or Linux, the application fonts look different than the fonts used by the Windows version of my application. Why?
- I just tried running my application over our universitys Internet2 connection and it ran more slowly than before, not faster. Whats wrong?
- When syncing a Palm PDA device, it says the port is used by another application. Whats wrong?