Handle scaling of text plots in core.
svn path=/trunk/netsurf/; revision=11935
This commit is contained in:
parent
7a72e1d90c
commit
06ff431df7
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue