[+] rozdzielczość ekranu startowego oraz dpi czcionek w xfce
: 03 listopada 2008, 10:15
Witam.
Korzystam ze środowiska graficznego Xfce4 i mam następujące dwa problemy.
Pierwszy: W jaki sposób nakłonić GDM aby ekran logowania był wyświetlany w rozdzielczości, którą ja będę uznawać.
Drugi: Dotarłem do opisu w jaki sposób nakłonić Xfce do używania czcionki w DPI 96 jednak mimo wszystkiego wyświetla czcionkę w odmienny sposób niż mój zakładany.
A oto sposób jaki znalazłem na problem 2:
Tego wlasciwie nie jestem pewien
Korzystam ze środowiska graficznego Xfce4 i mam następujące dwa problemy.
Pierwszy: W jaki sposób nakłonić GDM aby ekran logowania był wyświetlany w rozdzielczości, którą ja będę uznawać.
Drugi: Dotarłem do opisu w jaki sposób nakłonić Xfce do używania czcionki w DPI 96 jednak mimo wszystkiego wyświetla czcionkę w odmienny sposób niż mój zakładany.
A oto sposób jaki znalazłem na problem 2:
Kod: Zaznacz cały
> 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: 100
>
> 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
Kod: Zaznacz cały
>
> 5 - Create a DisplaySize property
> Go to Section "Monitor"
> My resolution is 1440x900
> width = 1440
> heigth = 900
> formula = pixelwidth/dpi*25.4 and pixelheight/dpi*25.4
> 1440/96*25.4 and 900/96*25.4 =
> DisplaySize 381 238.125
>
> Looks now like this:
> Section "Monitor"
> Identifier "Generic Monitor"
> Option "DPMS"
> Modeline "1440x900" 106.50 1440 1520 1672 1904 900 903 909
> 934 -Hsync +Vsync
> DisplaySize 381 238.125
> HorizSync 30-81
> VertRefresh 56-75
> EndSection
>
> 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 see your settings
> xdpyinfo |grep resolution
> xrdb -q |grep Xft