[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decwindows

Title:DECWINDOWS
Notice:DECwindows Motif V1.2-4 SSB kits: note 5519
Moderator:GRIM::MESSENGER
Created:Wed Nov 28 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5861
Total number of notes:24081

5859.0. "How to tell xdm to use 75dpi" by CIRCUS::SCHMIDT () Wed Jun 04 1997 11:46

I now have a Digital Unix workstation & I want it to use 75dpi fonts.

In vms all I did is set decw$server_density in decw$private_server_setup.com 
& it worked.

Poking around it looks like the place to do this on my unix workstation is
by modifying /var/X11/xdm/Xsetup_0  but it doesn't work.

Can someone tell me how to do this?

Thanks...

peter


T.RTitleUserPersonal
Name
DateLines
5859.1GERUND::WOLFEI'm going to huff, and puff, and blow your house downWed Jun 04 1997 19:4740
Are you running CDE? For CDE, create /etc/dt/config, copy /usr/dt/config/Xsetup
to /etc/dt/config/Xsetup. Hack this file to set the font path so 
that the 75dpi fonts are first.  For example:


        # check if the system has a Low or High Resolution Monitor
        #   -  High Resolution (1280 x 1024) uses 100 dpi fonts.
        #   -  Medium Resolution (1024 x 864 ) uses 75 dpi fonts.
        #   -  Low Resolution (1024 x 768 or lower) uses 75 dpi fonts.
        # This will only switch to 75dpi fonts if there is a low or medium
        # resolution monitor found.
        #
        #
        fd=""
        prefplist=""
        appfplist=""
        setfont="No"
        fontdpi="100dpi"
        othrfnt="75dpi"
        FONTLIB="/usr/lib/X11/fonts"
        I18N="/usr/i18n/${FONTLIB}/decwin"
        pixwidth=`/usr/sbin/sizer -gr | awk -Fx ' { print $1 } ' `
        if [ ${pixwidth} -lt 1280 ]
        then
           fontdpi="75dpi"
           othrfnt="100dpi"
        fi

#[pjw] hardwire 75dpi
        fontdpi="75dpi"
        othrfnt="100dpi"


I added the last three lines to that section of the file. You can 
also optionally copy /usr/dt/config/Xserver to /etc/dt/config/Xservers
and change the Xserver startup line to include -dpi 75. This makes 
the server and the fonts agree (which is important for some WYSIWYG 
applications). 

			pete