On Thu, Aug 09, 2007 at 04:01:51 -0400, Zach wrote: > On 8/8/07, Florian Kulzer wrote: > > > > Version 7.2 of Xorg includes the default font paths automatically now, > > so most of these lines are not needed anymore in the "Files" section of > > xorg.conf: > > I checked apt-cache for xserver-xorg and you're right I have "Version: > 1:7.2-5". > So where does the xserver keep the list of fonts to use and where is > this file? Can I edit it or would that mess up debconf? I already > tried putting the 75dpi font I wanted as the first line but my font > still don't look how they did before I upgraded the xserver-xorg > package.
The default font paths are hardcoded now into Xorg, as far as I can tell. You can still put additional font paths into xorg.conf, for example /usr/local/share/fonts. In any case, I am not sure if you can specify font preference by the order of the font directories. I think your main problem is that your X resolution setting is screwed up (see below). > Is there a command to show exactly what font the system is using for > my desktop applications (emacs, firefox, gnome-terminal)? I would assume that gnome-terminal follows the general gnome settings or maybe ~/.gtkrc-2.0. Other applications can either be configured via a menu or with a file in /etc/X11/app-defaults/. Your private settings in ~/.Xresources can override those. However, we are now drifting further and further away from the real issue, the DPI setting. > My desktop > is still running at 1024x768 and the set of GNOME icons and the start > button (I use fvwm2) and taskbar and clock look exactly the same > dimensions, but when I startup emacs it is definitely significantly > smaller, firefox starts up the same dimensions but the fonts in it > appear like 200% smaller than before! And all applications I start up > on the desktop have a noticebaly thinner titlebar as well as the fonts > inside the titlebar are thinner. And the gnome-terminals start up like > 25% smaller dimensions and the fonts are much smaller than before. You have to understand that the sizes of fonts on the screen are depending strongly on the DPI settings. My 11pt UI font has the same physical size on my desktop screen and on my laptop screen. This means that less text will fit on my smaller laptop display, of course, but I don't have to change font settings to keep readability just because the display is smaller. This works because my X knows the correct screen resolution on both my computers. Other sizes in X do not depend that strongly on the DPI setting, unless they are adjusted relative to some text, e.g. the height of the window titlebar. > So > how can I get my fonts back to how they were? This is a laptop machine > (Dell C600) and my xorg.conf is using the ATI video driver, I have a: > VGA compatible controller: ATI Technologies Inc Rage Mobility M3 AGP > 2x. And I only have 2 video modes in my xorg.conf 1024x768 and > 800x600, I switched video mode into 800x600 and confirmed I am > definitely running 1024x768. > > > (This is from my /var/log/Xorg.0.log; I reformatted the long line to > > make it more easily readable.) > > Here is my Xorg.0.log: > http://pastebin.ca/650829 > > As you can see at the top of the log where it sets font paths there > are some errors, it is trying to load the 100dpi fonts but I purged > that package from my system so obviously the font listing it has is > outdated. How can I update it? I think you would have to recompile X to change the hardcoded paths. These warnings are harmless anyway. And really, if you remove font packages you will not change the size of the fonts on screen, because X will consult the DPI setting for that. If you remove a font that X would need to satisfy the present setting then you will only get a less suitable substitute font rendered (uglier) in exactly the same size. [...] > I know my max screen resolution is 1024x768 cause the laptop specs > said so. And the desktop looks exactly like it did before I upgraded > the xserver-xorg package except for when I start up applications and > they appear with smaller fonts and sometimes smaller window > dimensions. Is there a command that will display what resolution the X > server is using? I'm like 95% certain it is using 1024x768. This is > what I've always used, even back when I ran XFree86 on this machine. Run this in an X terminal: $ xdpyinfo | egrep 'dimen|resol' dimensions: 1024x768 pixels (270x203 millimeters) resolution: 96x96 dots per inch [...] > My laptop LCD is 11.25" (285.75mm) width x 8.4375" (214.312mm) height With 1024x768 pixel this means that your horizontal resolution is 1024/11.25 = 91 dpi and your vertical resolution is 768/8.4375 = 91 dpi. Here is the cause of your present problem (from your Xorg log): (==) R128(0): DPI set to (75, 75) Your video driver reports the wrong resolution to X. The fonts are too small because X thinks that your pixels are bigger than they actually are. I think the best quick test is to start X with specifying the DPI explicitly, like Mumia has already suggested in a parallel sub-thread: startx -- -dpi=91 If that helps than you have to fix it permanently by putting the dimensions of your display into your xorg.conf and/or by checking if your video driver has a special option to enforce the correct DPI setting. [...] > Ah but I see 2 DPI values above, how is each one calculated? What is > the relation between DPI and screen resolution (ie 1024x768)? I > thought DPI was dependent on the type of screen/monitor you had. How > do I find out the correct DPI for my laptop's LCD? I know my screen > can't do more than 24 bits per pixel color depth. I have included the calculation above. The color depth (in bits per pixel) is unrelated to the resolution. It is a different dimension, namely the number of colors that each pixel can have. [...] > I did that command and it did not return any result: > netrek:~# xrdb -query | grep Xft > > So does that indicate my fonts are broken? How can I fix it so this > command will work as yours does? If you are using bitmap fonts then the Xft setting is not relevant. I cannot answer your question without knowing more about your overall setup. This is not necessarily an indication that your fonts are broken in any way. > Assuming we can get that working and iif I find one that works I can > create a ~/.Xresources for root and my normal user accounts? I > currently don't have that file in either root or normal user accounts. > Can I see yours? $ cat ~/.Xresources Xft.dpi: 96 I only have this one thing in my ~/.Xresources because I found that OpenOffice.org renders fonts too big if I don't set Xft.dpi. All the rest of my X setup is done via the KDE control center. > Another thing I noticed, as a test I uninstalled and then reinstalled > some of my font packages and I found some directory problems such as: > > Setting up xfonts-75dpi (1:1.0.0-4) ... > warning: /usr/lib/X11/fonts/75dpi does not exist or is not a directory > warning: /usr/lib/X11/fonts/75dpi does not exist or is not a directory > > There is no 75dpi subdirectory. I have: > netrek:/usr/lib/X11/fonts# ls > Speedo Type1 > > Setting up xfonts-base (1:1.0.0-5) ... > warning: /usr/lib/X11/fonts/misc does not exist or is not a directory > > There is no misc subdirectory. > > Setting up xfonts-scalable (1:1.0.0-6) ... > Updating font configuration of fontconfig... > Cleaning up category cid.. > Cleaning up category truetype.. > Cleaning up category type1.. > Updating category type1.. > Updating category truetype.. > Updating category cid.. > warning: /etc/X11/fonts/X11R7/Type1 does not exist or is not a directory > warning: /etc/X11/fonts/X11R7/Type1 does not exist or is not a directory > > There is no X11R7 subdirectory> I have: > netrek:/etc/X11/fonts# ls > 75dpi misc Speedo Type1 > > I also have fonts here: > netrek:/usr/share/fonts/X11# ls > 75dpi encodings misc Type1 util This is the correct new location, AFAIK. You seem to have some outdated /usr/lib/X11/fonts paths mentioned somewhere. This should normally not hurt, I think. > Is there a way I can explicitly setup my fonts from the command line? > Or from my .Xresources? So it seems X11R7 handles fonts different than > X11R6 or at least the release from X.Org 7.2 changed some things, then > Debian adds its own fingers into the font pie, so it's rather > confusing precisely how fonts are setup and used in X in Debian. I > then I noticed I have a Debian font manager installed called defoma > but it's status indicats it is in a partially installed state! > > netrek:~# dpkg -l|grep pi > pi defoma > 0.11.10-0.1 Debian Font Manager -- automatic font > config > > And some of my font packages are also in a partially installed state: > pi ttf-dejavu 2.17-1 > Vera font family derivate with additional ch > pi ttf-opensymbol > 2.0.4.dfsg.2-7etch1 The OpenSymbol TrueType font > pi gs-common 0.3.13 > Common files for different Ghostscript relea > pi gsfonts > 1:8.11+urwcyr1.0.7~pre41-3 Fonts for the Ghostscript > interpreter(s) > > And there is some font config package in a partal state also: > pi fontconfig 2.4.2-1.2 > generic font configuration library - support "pi" means that the packages where meant to be purged at some point but they are still installed. That looks like you tried to purge them and then changed your mind about it. > And apt doesn't show anything pending: > netrek:~# apt-get -f install > Reading package lists... Done > Building dependency tree > Reading state information... Done > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > Do you think I should file bug reports on these? I went to the Debian > Bug Tracking website but it was very confusing, I tried the one search > interface and searched on 'fonts' and listed by date order but there > was hardly anything recent. I think they should work on revamping the > bug page. What is the process for reporting a package bug in Debian > testing release? Bugs can be filed via the website or using the "reportbug" package. However, I think you have configuration problems rather than bugs. My general advice is: Try not to fiddle with so many different parameters/packages at once, especially if you don't fully understand what each individual component is doing. My specific advice is: Fix the DPI problem first. If you are still unhappy with your fonts after that then we can see about the rest. > I wish I could go back to how things were before the xserver-xorg > package was upgraded? Is that possible? Also when Debian wants to > upgrade a package but I don't want it to is there a way I can tell apt > to not upgrade? An easy way to revert back to an older version of a > package would be great, hope Debian adds that :) Don't hold your breath for it: "Downgrades are not officially supported." You can find the old packages on the Debian snapshots site and install them manually, but that will be a pain in the neck. If all else fails then you can always purge xorg completely and install it again with a clean configuration. -- Regards, | http://users.icfo.es/Florian.Kulzer Florian | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]