… | |
… | |
512 | unsigned long value; |
512 | unsigned long value; |
513 | |
513 | |
514 | if (XGetFontProperty (f, property, &value)) |
514 | if (XGetFontProperty (f, property, &value)) |
515 | return XGetAtomName (term->dpy, value); |
515 | return XGetAtomName (term->dpy, value); |
516 | else |
516 | else |
517 | return rxvt_strdup (repl); |
517 | return repl ? strdup (repl) : 0; |
518 | } |
518 | } |
519 | |
519 | |
520 | rxvt_fontprop |
520 | rxvt_fontprop |
521 | rxvt_font_x11::properties () |
521 | rxvt_font_x11::properties () |
522 | { |
522 | { |
… | |
… | |
1058 | |
1058 | |
1059 | void draw (rxvt_drawable &d, int x, int y, |
1059 | void draw (rxvt_drawable &d, int x, int y, |
1060 | const text_t *text, int len, |
1060 | const text_t *text, int len, |
1061 | int fg, int bg); |
1061 | int fg, int bg); |
1062 | |
1062 | |
1063 | bool has_char (unicode_t unicode, const rxvt_fontprop *prop, bool &carefull) const; |
1063 | bool has_char (unicode_t unicode, const rxvt_fontprop *prop, bool &careful) const; |
1064 | |
1064 | |
1065 | protected: |
1065 | protected: |
1066 | XftFont *f; |
1066 | XftFont *f; |
1067 | }; |
1067 | }; |
1068 | |
1068 | |