This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: rxvt fonts size setting problem for X/Cygwin
On 11/23/05, Charles Wilson <> wrote:
> Igor Pechtchanski wrote:
> > I don't know of an easy way to dispatch to a font name based on whether
> > you're running X or native. You could try playing with window names and
> > using this as a selector in your .Xdefaults...
> > Igor
>
> Here's what I do:
>
> (1) ~/.Xdefaults has the following (if you ignore the silly mailer line
> wrapping):
>
> rxvt*background: #000040
> rxvt*foreground: #ffffbf
> rxvt*scrollBar: true
> rxvt*scrollBar_right: true
> rxvt*font: -bitstream-bitstream vera sans
> mono-medium-r-normal--*-120-*-*-m-*-iso8859-1
> rxvt*boldfont: -bitstream-bitstream vera sans
> mono-bold-r-normal--*-120-*-*-m-*-iso8859-1
> rxvt*saveLines: 10000
> rxvt*loginshell: true
> rxvt.backspacekey: ^H
>
> (2) I have a shortcut to start rxvt-X with the following target (where
> 'runrxvt.exe' is a copy of run.exe):
>
> C:\cygwin\bin\runrxvt.exe -display 127.0.0.1:0.0 -tn rxvt-cygwin -e
> /usr/bin/bash --login -i
>
> One thing I haven't worked out is, if I click this shortcut with no X
> server running, I get a gigantic rxvt-native window with absolutely huge
> font. But that's my error; I just close the window, start the X server,
> and go again. "Problem" solved.
>
> (3) I have a shortcut to start rxvt-native with the following target
> (ditto runrxvt.exe):
>
> C:\cygwin\bin\runrxvt.exe -display :0 -fn "Bitstream Vera Sans Mono-16"
> -tn rxvt-cygwin-native -e /usr/bin/bash --login -i
>
> The colors and other settings from the .Xdefaults file are actually used
> by both versions -- but the rxvt-native one uses the "command line" -fn
> font instead of the .Xdefaults value.
>
> (I also have 'rxvt' aliased depending on the current value of $TERM, so
> that subsidiary rxvt windows launched from the command line 'inherit'
> X-ness or Native-ness, but that's a different issue).
>
> --
> Chuck
Great! Thanks, I am using two shortcuts now and the native one has -fn
to overwrite value on .Xdefault. That works. Thank you all for your
response!
Leo
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/