#define RS_baseattrMask (RS_Italic | RS_Bold | RS_Blink | RS_RVid | RS_Uline)
#define RS_attrMask (RS_baseattrMask | RS_fontMask)
-#define RS_fontCount 127 // not 128 or 256, see rxvtfont.h
+#define RS_fontCount rxvt_fontset::fontCount
#define RS_fontMask 0xff000000UL // plenty(?) of fonts, includes RS_Careful
#define RS_fontShift 24
{
char *fontdesc;
+ enum { fontCount = 127 }; // must be power-of-two - 1, also has to match RS_fontMask in rxvt.h
+
rxvt_fontset (rxvt_term *term);
~rxvt_fontset ();
// font-id's MUST fit into a signed 16 bit integer, and within 0..255
rxvt_font *operator [] (int id) const
{
- return fonts[id & 0x7f];
+ return fonts[id & fontCount];
}
private: