Handle scaling of text plots in core.

svn path=/trunk/netsurf/; revision=11935
This commit is contained in:
Michael Drake 2011-03-08 18:47:15 +00:00
parent 7a72e1d90c
commit 06ff431df7
2 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,7 @@ bool svg_redraw(struct content *c, int x, int y,
fstyle.background = 0xffffff;
fstyle.foreground = 0x000000;
fstyle.size = (8 * FONT_SIZE_SCALE) * scale;
ok = plot.text(px, py,
diagram->shape[i].text,

View File

@ -797,6 +797,7 @@ bool html_redraw_text_box(struct box *box, int x, int y,
font_plot_style_from_css(box->style, &fstyle);
fstyle.background = current_background_color;
fstyle.size *= scale;
if (!text_redraw(box->text, box->length, box->byte_offset,
box->space, &fstyle, x, y,