… | |
… | |
664 | #ifdef HAVE_SCROLLBARS |
664 | #ifdef HAVE_SCROLLBARS |
665 | setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle], |
665 | setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle], |
666 | rs[Rs_scrollBar_thickness]); |
666 | rs[Rs_scrollBar_thickness]); |
667 | #endif |
667 | #endif |
668 | |
668 | |
669 | TermWin.fontset = new rxvt_fontset (this); |
|
|
670 | TermWin.fontset->populate (rs[Rs_font]); |
|
|
671 | TermWin.fwidth = TermWin.fontset->base_font ()->width; |
|
|
672 | TermWin.fheight = TermWin.fontset->base_font ()->height; |
|
|
673 | TermWin.fbase = TermWin.fontset->base_font ()->ascent; |
|
|
674 | |
|
|
675 | #ifdef XTERM_REVERSE_VIDEO |
669 | #ifdef XTERM_REVERSE_VIDEO |
676 | /* this is how xterm implements reverseVideo */ |
670 | /* this is how xterm implements reverseVideo */ |
677 | if (Options & Opt_reverseVideo) |
671 | if (Options & Opt_reverseVideo) |
678 | { |
672 | { |
679 | if (!rs[Rs_color + Color_fg]) |
673 | if (!rs[Rs_color + Color_fg]) |
… | |
… | |
1137 | } |
1131 | } |
1138 | |
1132 | |
1139 | /* grab colors before netscape does */ |
1133 | /* grab colors before netscape does */ |
1140 | Get_Colours (); |
1134 | Get_Colours (); |
1141 | |
1135 | |
1142 | change_font (1, NULL); |
1136 | if (!change_font (rs[Rs_font])) |
|
|
1137 | { |
|
|
1138 | fprintf (stderr, "unable to load a base font, please provide one using -fn fontname\n"); |
|
|
1139 | destroy (); |
|
|
1140 | return; |
|
|
1141 | } |
|
|
1142 | |
1143 | window_calc (0, 0); |
1143 | window_calc (0, 0); |
1144 | old_width = szHint.width; |
1144 | old_width = szHint.width; |
1145 | old_height = szHint.height; |
1145 | old_height = szHint.height; |
1146 | |
1146 | |
1147 | /* parent window - reverse video so we can see placement errors |
1147 | /* parent window - reverse video so we can see placement errors |