LINUX.ORG.RU

72dpi, 96dpi, e.t.c.


0

0

Читал я тут про xfstt и наткнулся там на то, что по-умолчанию Xserver предоставляет шрифты в разрешении 72 dpi, и о том как заставить xfstt выдавать шрифты в другом разрешении. У меня вопрос возник: если я не ипользую сервер шрифтов, где указывается X серверу необходимое разрешение?

★★★

ansi@bsd007# cat .xinitrc


...

xrdb -nocpp -merge - << EOF
Xft.dpi: 96                     # <------- Здеся   
Xft.hinting: 1
Xft.hintstyle: hintmedium
EOF
...


ansi@bsd007# 

ansi ★★★★
()

X-сы используют тот шриф который находят первым в XF96Config:

ansi@bsd007# head -20 XF86Config.new
Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        ModulePath   "/usr/X11R6/lib/modules"
        FontPath     "/usr/X11R6/lib/X11/fonts/local/"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

....

При этом конфиге первыми будут ш. со 100dpi.





ansi ★★★★
()

То же что привёл выше ansi в RH/Fedora находится в /etc/X11/Xresources


! This is the global resources file that is loaded when
! all users log in, as well as for the login screen

! Fix the Xft dpi to 96; this prevents tiny fonts
! or HUGE fonts depending on the screen size.
Xft.dpi: 96

! hintstyle: medium means that (for Postscript fonts) we
! position the stems for maximum constrast and consistency
! but don't force the stems to integral widths. hintnone,
! hintslight, and hintfull are the other possibilities.
Xft.hintstyle: hintmedium
Xft.hinting: true

Demetrio ★★★★★
()
Ответ на: комментарий от Demetrio

> Xft.dpi: 96

Это зло! Зло! Хотя прикольно с этим поиграться.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.