*** empty log message ***
authorroot <root>
Tue, 3 Jan 2006 23:40:58 +0000 (23:40 +0000)
committerroot <root>
Tue, 3 Jan 2006 23:40:58 +0000 (23:40 +0000)
Changes
doc/rxvt.1.html
doc/rxvt.1.man.in
doc/rxvt.1.txt
doc/rxvtperl.3.html
doc/rxvtperl.3.man.in
doc/rxvtperl.3.txt
src/main.C
src/rxvtfont.C
src/rxvtfont.h
src/urxvt.pm

diff --git a/Changes b/Changes
index 5f6b4272d61c0b16407aa03fbccbff8d03c4ebdb..c31aeba71445e7c9d7759adccce72cfaff6b4b39 100644 (file)
--- a/Changes
+++ b/Changes
@@ -23,6 +23,7 @@ WISH: better support for mixing xft font sizes rxvt -fn "xft:Andale Mono:size=15
           intelligent/customized selection support, visual feedback,
           menus, tabs etc. See the the urxvtperl manpage, the -pe option,
           perl*-resources and keysym resources. Not everything is there yet.
+        - try to be more clever about differing font sizes and their ascent.
         - fix directory permissions on install.
         - improved sched_yield support.
 
index 91965c16bc2cf8aff5aad02b99859a9b6838c9c6..21995151f579bc8291a709cc981cd6c5bb5d0b84 100644 (file)
@@ -268,22 +268,23 @@ section of rxvt(7).</p>
 <dt><strong><a name="item__2dfb_fontlist"><strong>-fb</strong> <em>fontlist</em></a></strong><br />
 </dt>
 <dd>
-Compile font-styles: The bold font list to use when bold characters are to
+Compile font-styles: The bold font list to use when <strong>bold</strong> characters are to
 be printed. See resource <strong>boldFont</strong> for details.
 </dd>
 <p></p>
 <dt><strong><a name="item__2dfi_fontlist"><strong>-fi</strong> <em>fontlist</em></a></strong><br />
 </dt>
 <dd>
-Compile font-styles: The italic font list to use when bold characters are to
+Compile font-styles: The italic font list to use when <em>italic</em> characters are to
 be printed. See resource <strong>italicFont</strong> for details.
 </dd>
 <p></p>
 <dt><strong><a name="item__2dfbi_fontlist"><strong>-fbi</strong> <em>fontlist</em></a></strong><br />
 </dt>
 <dd>
-Compile font-styles: The bold italic font list to use when bold characters are to
-be printed. See resource <strong>boldItalicFont</strong> for details.
+Compile font-styles: The bold italic font list to use when <strong><em>bold
+italic</em> </strong>&gt; characters are to be printed. See resource <strong>boldItalicFont</strong>
+for details.
 </dd>
 <p></p>
 <dt><strong><a name="item__2dis_7c_2bis"><strong>-is</strong>|<strong>+is</strong></a></strong><br />
index e74d19bea9e3db8339c568e3243705279e42a586..1b17fbbdc7b05d65268a12e2807581e8233556a8 100644 (file)
 .\" ========================================================================
 .\"
 .IX Title "rxvt 1"
-.TH rxvt 1 "2006-01-03" "6.2" "RXVT-UNICODE"
+.TH rxvt 1 "2006-01-04" "6.2" "RXVT-UNICODE"
 .SH "NAME"
 rxvt\-unicode (ouR XVT, unicode) \- (a VT102 emulator for the X window system)
 .SH "SYNOPSIS"
@@ -300,16 +300,17 @@ See also the question \*(L"How does rxvt-unicode choose fonts?\*(R" in the \s-1F
 section of @@RXVT_NAME@@(7).
 .IP "\fB\-fb\fR \fIfontlist\fR" 4
 .IX Item "-fb fontlist"
-Compile font\-styles: The bold font list to use when bold characters are to
+Compile font\-styles: The bold font list to use when \fBbold\fR characters are to
 be printed. See resource \fBboldFont\fR for details.
 .IP "\fB\-fi\fR \fIfontlist\fR" 4
 .IX Item "-fi fontlist"
-Compile font\-styles: The italic font list to use when bold characters are to
+Compile font\-styles: The italic font list to use when \fIitalic\fR characters are to
 be printed. See resource \fBitalicFont\fR for details.
 .IP "\fB\-fbi\fR \fIfontlist\fR" 4
 .IX Item "-fbi fontlist"
-Compile font\-styles: The bold italic font list to use when bold characters are to
-be printed. See resource \fBboldItalicFont\fR for details.
+Compile font\-styles: The bold italic font list to use when \fB\f(BIbold
+italic\fB\fR characters are to be printed. See resource \fBboldItalicFont\fR
+for details.
 .IP "\fB\-is\fR|\fB+is\fR" 4
 .IX Item "-is|+is"
 Compile font\-styles: Bold/Italic font styles imply high intensity
index 8fb71b41a3194b790ff0b83a6e4374d1f89e6d74..38b1b3ae49c657567efba539e8fc35cd8b7cdd3a 100644 (file)
@@ -169,13 +169,13 @@ OPTIONS
         are to be printed. See resource boldFont for details.
 
     -fi *fontlist*
-        Compile font-styles: The italic font list to use when bold
+        Compile font-styles: The italic font list to use when *italic*
         characters are to be printed. See resource italicFont for details.
 
     -fbi *fontlist*
-        Compile font-styles: The bold italic font list to use when bold
-        characters are to be printed. See resource boldItalicFont for
-        details.
+        Compile font-styles: The bold italic font list to use when *bold
+        italic* characters are to be printed. See resource boldItalicFont
+        for details.
 
     -is|+is
         Compile font-styles: Bold/Italic font styles imply high intensity
index 06c21f164dd5911ae19c3f1acec70a3ddfdea5b9..f33e822137416e79bfcdda82f6fbf8fbbfb4b1f9 100644 (file)
@@ -81,8 +81,10 @@ find them in <em>/opt/rxvt/lib/urxvt/perl/</em>.</p>
 <dt><strong><a name="item_selection">selection</a></strong><br />
 </dt>
 <dd>
-Intelligent selection. This etxension tries to be more intelligent when the user
-extends selections (double-click).
+Intelligent selection. This extension tries to be more intelligent when
+the user extends selections (double-click). Right now, it tries to select
+urls and complete shell-quoted arguments, which is very convenient, too,
+if your <em>ls</em> supports <code>--quoting-style=shell</code>.
 </dd>
 <dd>
 <p>It also offers the following bindable event:</p>
@@ -823,14 +825,14 @@ Stop watching for events on the given filehandle.
 <h2><a name="urxvt_perl_verbosity">URXVT_PERL_VERBOSITY</a></h2>
 <p>This variable controls the verbosity level of the perl extension. Higher
 numbers indicate more verbose output.</p>
-<ol>
-<li><strong><a name="item__2d_only_fatal_messages">- only fatal messages</a></strong><br />
-</li>
-<li><strong><a name="item__2d_script_loading_and_management">- script loading and management</a></strong><br />
-</li>
-<li><strong><a name="item__2d_all_events_received">- all events received</a></strong><br />
-</li>
-</ol>
+<dl>
+<dt><strong><a name="item__3d0__2d_only_fatal_messages">=0 - only fatal messages</a></strong><br />
+</dt>
+<dt><strong><a name="item__3d3__2d_script_loading_and_management">=3 - script loading and management</a></strong><br />
+</dt>
+<dt><strong><a name="item__3d10__2d_all_events_received">=10 - all events received</a></strong><br />
+</dt>
+</dl>
 <p>
 </p>
 <hr />
index 61a360945541ff7183c143b3f045e937c3f3bcfa..21bb1bb4d46f0e858baed725671a1ce4f4ac8f87 100644 (file)
 .\" ========================================================================
 .\"
 .IX Title "rxvt 3"
-.TH rxvt 3 "2006-01-03" "6.2" "RXVT-UNICODE"
+.TH rxvt 3 "2006-01-04" "6.2" "RXVT-UNICODE"
 .SH "NAME"
 @@RXVT_NAME@@perl \- rxvt\-unicode's embedded perl interpreter
 .SH "SYNOPSIS"
@@ -174,8 +174,10 @@ You can activate them like this:
 .Ve
 .IP "selection" 4
 .IX Item "selection"
-Intelligent selection. This etxension tries to be more intelligent when the user
-extends selections (double\-click).
+Intelligent selection. This extension tries to be more intelligent when
+the user extends selections (double\-click). Right now, it tries to select
+urls and complete shell-quoted arguments, which is very convenient, too,
+if your \fIls\fR supports \f(CW\*(C`\-\-quoting\-style=shell\*(C'\fR.
 .Sp
 It also offers the following bindable event:
 .RS 4
@@ -757,13 +759,13 @@ Stop watching for events on the given filehandle.
 .IX Subsection "URXVT_PERL_VERBOSITY"
 This variable controls the verbosity level of the perl extension. Higher
 numbers indicate more verbose output.
-.IP "0 \- only fatal messages" 4
-.IX Item "0 - only fatal messages"
+.IP "=0 \- only fatal messages" 4
+.IX Item "=0 - only fatal messages"
 .PD 0
-.IP "3 \- script loading and management" 4
-.IX Item "3 - script loading and management"
-.IP "10 \- all events received" 4
-.IX Item "10 - all events received"
+.IP "=3 \- script loading and management" 4
+.IX Item "=3 - script loading and management"
+.IP "=10 \- all events received" 4
+.IX Item "=10 - all events received"
 .PD
 .SH "AUTHOR"
 .IX Header "AUTHOR"
index 85258740156416551978de4c83312af0124119ca..39007fdb2d3c5c5c26605d42402e1a99e54ec7ea 100644 (file)
@@ -32,8 +32,10 @@ DESCRIPTION
       rxvt -pe <extensionname>
 
     selection
-        Intelligent selection. This etxension tries to be more intelligent
-        when the user extends selections (double-click).
+        Intelligent selection. This extension tries to be more intelligent
+        when the user extends selections (double-click). Right now, it tries
+        to select urls and complete shell-quoted arguments, which is very
+        convenient, too, if your ls supports "--quoting-style=shell".
 
         It also offers the following bindable event:
 
@@ -509,9 +511,9 @@ ENVIRONMENT
     This variable controls the verbosity level of the perl extension. Higher
     numbers indicate more verbose output.
 
-    0 - only fatal messages
-    3 - script loading and management
-    10 - all events received
+    =0 - only fatal messages
+    =3 - script loading and management
+    =10 - all events received
 
 AUTHOR
      Marc Lehmann <pcg@goof.com>
index e3cbaeb180b4cd288a69f462c535ce02eef8da8c..2a204ba7dec3d567f86ac73b62fd221001516959 100644 (file)
@@ -925,7 +925,7 @@ rxvt_term::set_fonts ()
 
   fwidth  = prop.width;
   fheight = prop.height;
-  fbase   = (*fs)[1]->ascent;
+  fbase   = prop.ascent;
 
   for (int style = 1; style < 4; style++)
     {
index 5fda418f6883ccb35b0a225528ef66c996f73330..3f315fa05744796fb11d9da852004a9c099a257c 100644 (file)
@@ -278,6 +278,7 @@ struct rxvt_font_default : rxvt_font {
     rxvt_fontprop p;
 
     p.width = p.height = 1;
+    p.ascent = rxvt_fontprop::unset;
     p.weight = rxvt_fontprop::medium;
     p.slant = rxvt_fontprop::roman;
 
@@ -525,6 +526,7 @@ rxvt_font_x11::set_properties (rxvt_fontprop &p, int height, const char *weight,
 {
   p.width  = avgwidth ? (avgwidth + 1) / 10 : (height + 1) / 2;
   p.height = height;
+  p.ascent = rxvt_fontprop::unset;
   p.weight = *weight == 'B' || *weight == 'b' ? rxvt_fontprop::bold : rxvt_fontprop::medium;
   p.slant  = *slant == 'r' || *slant == 'R' ? rxvt_fontprop::roman : rxvt_fontprop::italic;
 
@@ -555,6 +557,8 @@ rxvt_font_x11::set_properties (rxvt_fontprop &p, XFontStruct *f)
   free (weight);
   free (slant);
 
+  p.ascent = f->ascent;
+
   return true;
 }
 
@@ -1075,6 +1079,7 @@ rxvt_font_xft::properties ()
 
   p.width  = width;
   p.height = height;
+  p.ascent = ascent;
   p.weight = face->style_flags & FT_STYLE_FLAG_BOLD
                ? rxvt_fontprop::bold : rxvt_fontprop::medium;
   p.slant  = face->style_flags & FT_STYLE_FLAG_ITALIC
@@ -1338,7 +1343,7 @@ rxvt_fontset::~rxvt_fontset ()
 void
 rxvt_fontset::clear ()
 {
-  prop.width = prop.height = prop.weight = prop.slant
+  prop.width = prop.height = prop.ascent = prop.weight = prop.slant
     = rxvt_fontprop::unset;
 
   for (rxvt_font **i = fonts.begin (); i != fonts.end (); i++)
@@ -1521,6 +1526,9 @@ rxvt_fontset::find_font (unicode_t unicode)
 
           if (!realize_font (i))
             goto next_font;
+
+          if (prop.ascent != rxvt_fontprop::unset)
+            max_it (f->ascent, prop.ascent);
         }
 
       if (f->cs == CS_UNKNOWN)
index 8b8ef86d80209bae26a7ce3c7c72b0d4b4964757..b62cea18cdfc65632c3019de179baac2237bb563 100644 (file)
@@ -34,7 +34,7 @@ struct rxvt_fontprop {
     medium = 100, bold = 200,
     roman  = 0, italic = 100,
   };
-  int width, height;
+  int width, height, ascent;
   int weight, slant;
 };
 
index 1a0d6cb356c1cc03cc28aea8402430ac650592e6..4816eba5765bfa151953be85dbf5c86e3d40b136 100644 (file)
@@ -852,11 +852,11 @@ numbers indicate more verbose output.
 
 =over 4
 
-=item 0 - only fatal messages
+=item =0 - only fatal messages
 
-=item 3 - script loading and management
+=item =3 - script loading and management
 
-=item 10 - all events received
+=item =10 - all events received
 
 =back