Re: rxvt fonts size setting problem for X/Cygwin
On 11/22/05, Igor Pechtchanski wrote: On Tue, 22 Nov 2005, Leo wrote: On 11/22/05, Igor Pechtchanski wrote: On Tue, 22 Nov 2005, faif cn wrote: Hello All, I use rxvt in cygwin in dos shell without X. Font size is set on .Xdefaults as Rxvt*font: Lucida Console-14 But when I run rxvt in X, the fonts size of rxvt terminal is too small. The same setting seems not affect rxvt in X? How can I keep fonts as same as big in cygwin dos shell? First off, if you use rxvt, it's not a DOS shell. Secondly, X uses a different font selection scheme from W11 (the X interface wrapper around the native Windows calls that rxvt uses). W11 uses Windows font names. For a list of available X fonts, run xlsfonts (or use xfontsel to select fonts visually). Thank you. If I understand you right, the fonts name shown by xlsfonts or xfontsel should be used for X. Yes. But I changed .Xdefaults font section by using name listed by xlsfonts, the native rxvt fonts changes, whereas X version rxvt doesn't. Am I missing your points? I don't think so. When I do this, the font changes in both the Windows mode and the X mode (to different things, of course). How do you invoke the X-mode rxvt? Do you have a script or an alias that passes the -fn option to rxvt? Yes, you are right. I did have script with -fn which messed up this. many thanks -- 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/
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:#40 rxvt*foreground:#bf 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: 1 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/
rxvt fonts size setting problem for X/Cygwin
Hello All, I use rxvt in cygwin in dos shell without X. Font size is set on .Xdefaults as Rxvt*font: Lucida Console-14 But when I run rxvt in X, the fonts size of rxvt terminal is too small. The same setting seems not affect rxvt in X? How can I keep fonts as same as big in cygwin dos shell? Thanks for any help! 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/
Re: rxvt fonts size setting problem for X/Cygwin
On Tue, 22 Nov 2005, faif cn wrote: Hello All, I use rxvt in cygwin in dos shell without X. Font size is set on .Xdefaults as Rxvt*font: Lucida Console-14 But when I run rxvt in X, the fonts size of rxvt terminal is too small. The same setting seems not affect rxvt in X? How can I keep fonts as same as big in cygwin dos shell? First off, if you use rxvt, it's not a DOS shell. Secondly, X uses a different font selection scheme from W11 (the X interface wrapper around the native Windows calls that rxvt uses). W11 uses Windows font names. For a list of available X fonts, run xlsfonts (or use xfontsel to select fonts visually). 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 -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/
Re: rxvt fonts size setting problem for X/Cygwin
On Tue, 22 Nov 2005, Igor Pechtchanski wrote: On Tue, 22 Nov 2005, faif cn wrote: I use rxvt in cygwin in dos shell without X. Font size is set on .Xdefaults as Rxvt*font: Lucida Console-14 ... 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... It's conceivable that cygwin could provide a customized font alias file to cover the names. I have the impression that the font sizes don't directly correspond, but an alias would hide that. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- 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/
Re: rxvt fonts size setting problem for X/Cygwin
On 11/22/05, Igor Pechtchanski wrote: On Tue, 22 Nov 2005, faif cn wrote: Hello All, I use rxvt in cygwin in dos shell without X. Font size is set on .Xdefaults as Rxvt*font: Lucida Console-14 But when I run rxvt in X, the fonts size of rxvt terminal is too small. The same setting seems not affect rxvt in X? How can I keep fonts as same as big in cygwin dos shell? First off, if you use rxvt, it's not a DOS shell. Secondly, X uses a different font selection scheme from W11 (the X interface wrapper around the native Windows calls that rxvt uses). W11 uses Windows font names. For a list of available X fonts, run xlsfonts (or use xfontsel to select fonts visually). Thank you. If I understand you right, the fonts name shown by xlsfonts or xfontsel should be used for X. But I changed .Xdefaults font section by using name listed by xlsfonts, the native rxvt fonts changes, whereas X version rxvt doesn't. Am I missing your points? -- 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/
Re: rxvt fonts size setting problem for X/Cygwin
On Tue, 22 Nov 2005, Leo wrote: On 11/22/05, Igor Pechtchanski wrote: On Tue, 22 Nov 2005, faif cn wrote: Hello All, I use rxvt in cygwin in dos shell without X. Font size is set on .Xdefaults as Rxvt*font: Lucida Console-14 But when I run rxvt in X, the fonts size of rxvt terminal is too small. The same setting seems not affect rxvt in X? How can I keep fonts as same as big in cygwin dos shell? First off, if you use rxvt, it's not a DOS shell. Secondly, X uses a different font selection scheme from W11 (the X interface wrapper around the native Windows calls that rxvt uses). W11 uses Windows font names. For a list of available X fonts, run xlsfonts (or use xfontsel to select fonts visually). Thank you. If I understand you right, the fonts name shown by xlsfonts or xfontsel should be used for X. Yes. But I changed .Xdefaults font section by using name listed by xlsfonts, the native rxvt fonts changes, whereas X version rxvt doesn't. Am I missing your points? I don't think so. When I do this, the font changes in both the Windows mode and the X mode (to different things, of course). How do you invoke the X-mode rxvt? Do you have a script or an alias that passes the -fn option to rxvt? Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/
Re: rxvt fonts size setting problem for X/Cygwin
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:#40 rxvt*foreground:#bf 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: 1 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 -- 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/
Re: rxvt fonts size setting problem for X/Cygwin
Charles Wilson wrote: 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. FWIW I noticed the exact same problem and asked some time ago: http://cygwin.com/ml/cygwin-xfree/2005-03/msg00160.html. It seems that there is a factor of 100 difference in the font size parsing between W11 and X11. You can otherwise get a font specification that works in both, except for that factor of 100. Brian -- 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/