Skip to content

Commit 5714fbf

Browse files
committed
Improved SVG text rendering
1 parent dd4db66 commit 5714fbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libduc-graph/graph-svg.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ static void br_svg_draw_text(duc_graph *g, double x, double y, double size, char
8787
struct svg_backend_data *bd = g->backend_data;
8888
FILE *f = bd->fout;
8989

90-
fprintf(f, "<text x='%.0f' y='%.0f' font-size='%.0fpt' stroke='white' stroke-width='2'>\n", x, y, size);
90+
fprintf(f, "<text x='%.0f' y='%.0f' font-size='%.0fpt' stroke='white' stroke-width='3' stroke-opacity='0.7'>\n", x, y, size);
9191
draw_text_aux(x, text, f);
9292
fprintf(f, "</text>\n");
9393

94-
fprintf(f, "<text x='%.0f' y='%.0f' font-size='%.0fpt' fill='black' stroke-width='2'>\n", x, y, size);
94+
fprintf(f, "<text x='%.0f' y='%.0f' font-size='%.0fpt' fill='black'>\n", x, y, size);
9595
draw_text_aux(x, text, f);
9696
fprintf(f, "</text>\n");
9797
}

0 commit comments

Comments
 (0)