Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why, after finishing my application and running it on another Xserver, all fonts are wrong, destroying my carefully designed layout?

0
Posted

Why, after finishing my application and running it on another Xserver, all fonts are wrong, destroying my carefully designed layout?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123