repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: fbaadcd63679b42abe7527ba64f20327d36bcabf:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit fbaadcd63679b42abe7527ba64f20327d36bcabf
Author: Marc Lehmann 
Date:   Tue Aug 17 01:58:17 2004 +0000

    *** empty log message ***

diff --git a/src/rxvtfont.C b/src/rxvtfont.C
index 2dc1c0201f20ae84f6b816cb17124541b6bf9701..
index ..ef6529b87a1f96ec2cf08336113b823e5c8eeb09 100644
--- a/src/rxvtfont.C
+++ b/src/rxvtfont.C
@@ -1223,6 +1223,7 @@ rxvt_fontset::find_font (unicode_t unicode, bool bold)
               // only xft currently supported, as there is no
               // way to configure this and xft is easier to hack in,
               // while x11 has more framework in place already.
+              // TODO: bold is being ignroed (obviously).
 #if XFT
               // grab the first xft font that seems suitable
               FcPattern *p = FcPatternCreate ();
@@ -1234,7 +1235,7 @@ rxvt_fontset::find_font (unicode_t unicode, bool bold)
               // a non-matching font even if a better font is available :/

               FcPatternAddInteger (p, FC_PIXEL_SIZE, base_prop.height);
-              FcPatternAddInteger (p, FC_WEIGHT, base_prop.weight);
+              FcPatternAddInteger (p, FC_WEIGHT, bold ? rxvt_fontprop::bold : base_prop.weight);
               FcPatternAddInteger (p, FC_SLANT, base_prop.slant);
               FcPatternAddBool    (p, FC_MINSPACE, 1);
               //FcPatternAddBool    (p, FC_ANTIALIAS, 1);

-----END OF PAGE-----