Was a typo, I thought I had send several newer versions, here you go.
Tommy Trussell wrote:
> On 12/23/06, Jelle de Jong <[EMAIL PROTECTED]> wrote:
>> Nope, I added the formula to calculate your display size with a example.
>
> I was looking at your example and it says:
>
>> xdpyinfo |grep resolution
>> resolution: 95x96 dots per inch
>
> then it says
>
>> 3 - Go to
>> mousepad ~/.config/xfce4/Xft.xrdb
>> And paste in the last line:
>> Xft.dpi: 96
>> (always leave a emty line)
>>
>> Looks now like this:
>> Xft.antialias: 1
>> Xft.hinting: 1
>> Xft.hintstyle: hintfull
>> Xft.rgba: rgb
>> Xft.dpi: 100
>
>
> I don't understand your formula. How did it change from 95 to 96 to 100dpi?
>
Date: 23-12-2006
Version: 0.3
Autor: Jelle de Jong
Change: 25-12-06
problem different font look between xfce, firefox, openoffice.
Use these commands to compare your new and old settings
xdpyinfo |grep resolution
xrdb -q |grep Xft
xdpyinfo |grep resolution
resolution: 95x96 dots per inch
xrdb -q |grep Xft
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.rgba: rgb
--------------------------------
1 - Remove old config file's:
rm ~/.config/xfce4/Xft*
2 - Create new settings:
Menu -> Settings -> User Interface Preferences
Font Rendering:
RECHECK all checkboxen with these settings:
Use anti-aliasing for fonts
Use hinting: Full
Use sub-pixel hinting: RGB
3 - Go to
mousepad ~/.config/xfce4/Xft.xrdb
And paste in the last line:
Xft.dpi: 96
(always leave a emty line)
Looks now like this:
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintfull
Xft.rgba: rgb
Xft.dpi: 96
Save and exit the Xft.xrdb file
4 - Edit xorg
sudo mousepad /etc/X11/xorg.conf
And paste in under Section "Files" (if itâs not there alread):
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/100dpi"
Looks now like this:
Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/usr/share/fonts/X11/misc"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
5 - Edit xorg add the DisplaySize property to the Monitor Section
sudo mousepad /etc/X11/xorg.conf
Go to Section "Monitor"
Calculate the wanted DisplaySize:
My resolution is 1440x900
pixelwidth = 1440
pixelheigth = 900
dpi = 96
formula = pixelwidth/dpi*25.4 and pixelheight/dpi*25.4
1440/96*25.4 and 900/96*25.4 =
DisplaySize 381 238.125
Put this line in the Section "Monitor"
Mine now looks like this:
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
DisplaySize 381 238.125
Modeline "1440x900" 106.50 1440 1520 1672 1904 900 903 909 934
-Hsync +Vsync
HorizSync 30-81
VertRefresh 56-75
EndSection
Note that I hava also a Modeline HorizSync VertRefresh in my Monitor section,
but these are not for this problem they are for my custom resolution. If you
screen is using the right resolution you can ignore this. It is also outside
the scope of this how to to go into it.
Save and exit the xorg.conf file
Restart the system.
Tips:
1 - You can also test to use 100 dpi everywere
2 - If openoffice gives you a hard time remove (removes al you openoffice
settings)
rm ~/.openoffice.org2
3- Use these commands to compare your new and old settings
xdpyinfo |grep resolution
xrdb -q |grep Xft
--
xubuntu-devel mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/xubuntu-devel