On 8/8/07, Florian Kulzer <[EMAIL PROTECTED]> 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. When I do ps I see: root 2371 0.0 0.5 3584 1380 ? Ss Aug08 0:00 /usr/bin/xfs -daemon root 2545 6.1 8.1 27344 20812 tty9 S<s+ Aug08 15:20 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt9 I remember in the past seeing the font paths listed in one of the processes but I don't see that anymore. Is there a command to show exactly what font the system is using for my desktop applications (emacs, firefox, gnome-terminal)? 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. 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 don't have a Xorg.0.log from when the fonts were working (wish it archived more than just 1 revision) but I do have a log from when I used the XFree86 xserver for this machine. Here is the XFree86.0.log: http://pastebin.ca/650833 > Zach, since you have problems with the sizes of both fonts and entire > windows I suspect that your Xorg is currently working with a wrong > resolution setting, maybe due to a graphics driver update. (It could > also be that the resolution setting was wrong earlier and you set your > application font preferences and default window sizes for this wrong > configuration...) 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. > I think the best approach is to put the real physical dimensions of your > screen into the "Monitor" section of your xorg.conf: > > DisplaySize width height > > (Width and height are given as dimensionless numbers and are understood > to be in millimeters; see "man xorg.conf" for details.) My laptop LCD is 11.25" (285.75mm) width x 8.4375" (214.312mm) height > Then you can restart X and check if the settings are correct now: > > $ egrep 'physical|dimensions|DPI' /var/log/Xorg.0.log > (**) intel(0): Display dimensions: (340, 270) mm > (**) intel(0): DPI set to (95, 120) > (II) intel(0): Setting screen physical size to 338 x 270 Ok I will do that as my next task and let you know the results. > The DPI (dots per inch) values should correspond to the number of pixels > in horizontal (vertical) direction divided by the width (height) of the > display. (Give-or-take 1-2 millimeters is fine; 1 inch = 25.4 mm.) The > first DPI value (horizontal) is more critical for the font rendering > than the second one. 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. > Another thing to check is the Xft.dpi setting in the X resource > database: > > $ xrdb -query | grep Xft > Xft.antialias: 1 > Xft.dpi: 96 > Xft.hinting: 1 > Xft.hintstyle: hintfull > Xft.rgba: none > > You can change the setting like this: > > echo "Xft.dpi: 96" | xrdb -m > > You have to restart running programs to see the effect. If you find a > setting that you like you can put it into your ~/.Xresources file to > make it permanent. 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? 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? 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 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 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? 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 :) Zach -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]