diff --git a/image/svg.c b/image/svg.c index a6cb06c2b..d77c8e03a 100644 --- a/image/svg.c +++ b/image/svg.c @@ -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, diff --git a/render/html_redraw.c b/render/html_redraw.c index e56035f38..730528a19 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -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,