1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-06 22:12:47 -05:00

Make the shadow bold offset configurable, after discovering that

7x13 goes the other way to all other X fonts I've ever seen. (Arrgh.)

[originally from svn r2095]
This commit is contained in:
Simon Tatham
2002-10-17 16:51:01 +00:00
parent 34bdd30857
commit 7d7b523977
4 changed files with 13 additions and 8 deletions

View File

@ -1296,16 +1296,9 @@ void do_text_internal(Context ctx, int x, int y, char *text, int len,
y*inst->font_height+cfg.window_border+inst->fonts[0]->ascent,
text, len);
/*
* X fonts seem to be pretty consistent about leaving the
* _left_ pixel of the cell blank rather than the right. Hence
* I'm going to hard-code shadow bolding as displaying one
* pixel to the left rather than try to work out whether it
* should be left or right.
*/
if (shadow) {
gdk_draw_text(inst->pixmap, inst->fonts[fontid], gc,
x*inst->font_width+cfg.window_border - 1,
x*inst->font_width+cfg.window_border + cfg.shadowboldoffset,
y*inst->font_height+cfg.window_border+inst->fonts[0]->ascent,
text, len);
}