[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do you make the X Icons, Fonts, Everything bigger



On Wed, Oct 28, 1998 at 07:50:31AM -0800, Joe Smith wrote:
> Whenever I run Windows in 1024x768 mode, I get decent quality fonts and
> icons in terms of size.
> 
> how can i run x in the same mode with much larger fonts and icons?

I've not looked at icons. To make your font settings resolution dependent,
you can make use of conditional macros in X resources files.

[Branden, perhaps something like this can be included as an example with the
X packages?]

For example, here's the relevant part of my ~/.Xresources:
 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! ~/.Xresources - X resource preferences.
!
! You should ensure this is read by something like `xrdb $HOME/.Xdefaults'
! during X startup.
!
! For information about X resources and associated commands, see xrdb(1x),
! editres(1x), appres(1x), listres(1x).
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! This file uses xrdb's capability of using cpp as a preprocesor.
! For documentation on cpp, see cpp(1) and the cpp info entry.

! xrdb defines several preprocessor symbols, including:
! HEIGHT=num
!	the height of the root window in pixels.
! WIDTH=num
!	the width of the root window in pixels.
! Use `xrdb -symbols' to view the symbols and their values.


! Abbreviations to shorten tests on display size

#if (WIDTH >= 1280 ) && (HEIGHT >= 1024)
#  define W_1280
#elif (WIDTH >= 1152 ) && (HEIGHT >= 864)
#  define W_1152
#elif (WIDTH >= 1024 ) && (HEIGHT >= 768)
#  define W_1024
#elif (WIDTH >= 800) && (HEIGHT >= 600)
#  define W_800
#endif


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Fixed width fonts
!
! Useful programs for determining font preferences:
! - xlsfonts(1x) 
!   - list X fonts matching a pattern (e.g. xlsfonts -fn '*-iso8859-1' ).
!   - `-ll' includes information on whether a font is proportional or not
!     (`monospaced', `character cell'). 
! - xfd(1x) - show all glyphs in a font.
! - xfontsel(1x) - point and click selection of font names. .
!   (e.g. xfontsel -noscaled -pattern '*-iso8859-1' )
!
! Constraints: 
! - Fixed width (essential for terminal emulators)
! - ISO 8859-1 encoding and full ISO 8859-1 character set
! - Slightly on the big side (I don't like to have many windows on my display,
!   and often use screen(1) to keep things managable). 
! - The `huge' font should be as big as possible within the screen size.
! - FONT_UNREADABLE < FONT_TINY < FONT_SMALL < FONT_NORMAL < FONT_LARGISH
!   < FONT_LARGE < FONT_HUGE
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! I don't see the need for a separate "Medium" font - I use default for a
! medium (normal) sized font.
XTerm*fontMenu*font4*Label: Largish

#ifdef W_1152
#  define FONT_NORMAL -*-fixed-bold-r-*-*-15-*-*-*-*-*-iso8859-1
#  define FONT_LARGISH -misc-fixed-*-*-*-*-20-*-*-*-*-*-iso8859-1
#  define FONT_LARGE -sony-fixed-*-*-*-*-24-*-*-*-*-*-iso8859-1
#  define FONT_HUGE -b&h-lucidatypewriter-medium-r-*-*-24-*-*-*-*-*-iso8859-1
#  define FONT_SMALL -misc-fixed-*-r-*-*-13-*-*-*-*-*-iso8859-1
#  define FONT_TINY -b&h-lucidatypewriter-*-r-*-*-8-*-*-*-*-*-iso8859-1
#endif 

#ifdef W_1024
#  define FONT_NORMAL -misc-fixed-*-*-*-*-13-*-*-*-c-*-iso8859-1
#  define FONT_LARGISH -misc-fixed-*-*-*-*-15-*-*-*-c-*-iso8859-1
#  define FONT_LARGE -bitstream-terminal-medium-*-*-*-18-*-*-*-c-*-iso8859-1
#  define FONT_HUGE -sony-fixed-medium-*-*-*-24-*-*-*-c-*-iso8859-1
#  define FONT_SMALL -b&h-lucidatypewriter-*-r-*-*-10-*-*-*-m-*-iso8859-1
#  define FONT_TINY -*-fixed-*-r-*-*-7-*-*-*-c-*-iso8859-1
#endif 

#if !defined(FONT_NORMAL) || defined(W_800)
! Default fonts

#  define FONT_NORMAL -misc-fixed-medium-r-*-*-13-*-*-*-*-70-iso8859-1
#  define FONT_LARGISH -misc-fixed-medium-r-*-*-13-*-*-*-*-iso8859-1
#  define FONT_LARGE -misc-fixed-medium-r-*-*-14-*-*-*-*-*-iso8859-1
#  define FONT_HUGE -misc-fixed-medium-r-*-*-15-*-*-*-*-*-iso8859-1
#  define FONT_SMALL -b&h-lucidatypewriter-medium-r-*-*-10-*-*-*-*-*-iso8859-1
#  define FONT_TINY -misc-fixed-medium-r-*--7-*-*-*-*-50-iso8859-1
#endif 

#if !defined(FONT_UNREADABLE)
#  define FONT_UNREADABLE nil2
#endif

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! Fonts for terminal emulators
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

XTerm*VT100*font:  FONT_NORMAL
XTerm*VT100*font1: FONT_UNREADABLE
XTerm*VT100*font2: FONT_TINY
XTerm*VT100*font3: FONT_SMALL
XTerm*VT100*font4: FONT_LARGISH
XTerm*VT100*font5: FONT_LARGE
XTerm*VT100*font6: FONT_HUGE

! rxvt takes over fonts from XTerm, but is has fewer font slots 
! (normal and 1..4); we override the XTerm font settings by skipping
! FONT_UNREADABLE and FONT_LARGISH
Rxvt*font:  FONT_NORMAL
Rxvt*font1: FONT_SMALL
Rxvt*font2: FONT_TINY
Rxvt*font3: FONT_LARGE
Rxvt*font4: FONT_HUGE



HTH,
Ray
-- 
PATRIOTISM  A great British writer once said that if he had to choose 
between betraying his country and betraying a friend he hoped he would
have the decency to betray his country.                                      
- The Hipcrime Vocab by Chad C. Mulligan 


Reply to: