From 88bfa6fa96345d5c56adb97345e6c34d8dfeb27d Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 27 Sep 2020 14:28:07 +0200 Subject: [PATCH] smaller font-size in SVG print --- src/serializers/SvgSerializer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/serializers/SvgSerializer.cpp b/src/serializers/SvgSerializer.cpp index 4815231938..529c61bae4 100644 --- a/src/serializers/SvgSerializer.cpp +++ b/src/serializers/SvgSerializer.cpp @@ -1045,9 +1045,13 @@ void SvgSerializer::writeHeader() { " }\n"; if (scale_) { + // previously: + // (pt) (px) (in) (mm) + // approx 12 / 0.75 / 96 * 25.4 + svg_file << - " text {\n" // (pt) (px) (in) (mm) - " font-size: 4;\n" // approx 12 / 0.75 / 96 * 25.4 + " text {\n" + " font-size: 2;\n" // (reduced to two). " }\n" " path {\n" " stroke-width: 0.3;\n"