--- rxvt-unicode/src/rxvtfont.h 2006/01/17 05:47:42 1.18 +++ rxvt-unicode/src/rxvtfont.h 2007/10/18 09:11:43 1.24 @@ -6,19 +6,6 @@ # include #endif -#ifdef HAVE_XSETLOCALE -# define X_LOCALE -# include -#else -# ifdef HAVE_SETLOCALE -# include -# endif -#endif /* HAVE_XLOCALE */ - -#ifdef HAVE_NL_LANGINFO -# include -#endif - #include #include "feature.h" @@ -38,29 +25,6 @@ int weight, slant; }; -struct rxvt_drawable { - rxvt_display *display; -#if XFT - XftDraw *xftdrawable; - operator XftDraw *(); -#endif - Drawable drawable; - - rxvt_drawable (rxvt_display *display, Drawable drawable) - : display(display), -#if XFT - xftdrawable(0), -#endif - drawable(drawable) - { } - -#if XFT - ~rxvt_drawable (); -#endif - - operator Drawable() { return drawable; } -}; - struct rxvt_font { // managed by the fontset rxvt_term *term; @@ -76,7 +40,7 @@ void set_name (char *name); - rxvt_font () { name = 0; } + rxvt_font (); virtual ~rxvt_font () { free (name); }; virtual void clear () { }; @@ -85,7 +49,7 @@ virtual rxvt_fontprop properties () = 0; - virtual bool load (const rxvt_fontprop &morph) = 0; + virtual bool load (const rxvt_fontprop &morph, bool force_prop) = 0; virtual bool has_char (uint32_t unicode, const rxvt_fontprop *prop, bool &careful) const = 0; virtual void draw (rxvt_drawable &d, @@ -105,7 +69,7 @@ ~rxvt_fontset (); bool populate (const char *desc); - void set_prop (const rxvt_fontprop &prop) { this->prop = prop; } + void set_prop (const rxvt_fontprop &prop, bool force_prop) { this->prop = prop; this->force_prop = force_prop; } int find_font (uint32_t unicode); int find_font (const char *name) const; bool realize_font (int i); @@ -119,6 +83,7 @@ private: rxvt_term *term; rxvt_fontprop prop; + bool force_prop; simplevec fonts; const rxvt_fallback_font *fallback;