--- rxvt-unicode/src/defaultfont.h 2003/12/04 00:43:26 1.6 +++ rxvt-unicode/src/defaultfont.h 2003/12/24 09:07:01 1.8 @@ -1,5 +1,5 @@ /* - * $Id: defaultfont.h,v 1.6 2003/12/04 00:43:26 pcg Exp $ + * $Id: defaultfont.h,v 1.8 2003/12/24 09:07:01 pcg Exp $ */ #ifndef _DEFAULTFONT_H_ @@ -23,6 +23,15 @@ #include "encoding.h" #include "rxvtvec.h" +struct rxvt_fontprop { + enum { + medium = 100, bold = 200, + roman = 0, italic = 100, + }; + int width, height; + int weight, slant; +}; + struct rxvt_font { // managed by the fontset rxvt_t r; @@ -33,7 +42,7 @@ bool loaded; // wether we tried loading it before (not wether it's loaded) // managed by the font object - bool prop; // wether this is a proportional font or has other funny characteristics + bool slow; // wether this is a proportional font or has other funny characteristics int ascent, descent, width, height; @@ -50,7 +59,9 @@ virtual void clear () { }; - virtual bool load (int maxheight) = 0; + virtual rxvt_fontprop properties () = 0; + + virtual bool load (const rxvt_fontprop &prop) = 0; virtual bool has_codepoint (uint32_t unicode) = 0; virtual void draw (int x, int y, @@ -88,7 +99,7 @@ simplevec fonts; const rxvt_fallback_font *fallback; - int height; + rxvt_fontprop base_prop; int base_id; bool realize_font (int i);