From c685425667fb2ad53401cb7e0529c61abcab98f6 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 17 Mar 2023 17:02:42 +0500 Subject: [PATCH] Fixed bugs with text annotations after 1) Bug when new text added without specifying it's font size in class appeared empty; 2) Bug when leader text appeared weirdly bold. --- src/blenderbim/blenderbim/bim/data/styles/default.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/data/styles/default.css b/src/blenderbim/blenderbim/bim/data/styles/default.css index 75e5877d5b..38a28223be 100644 --- a/src/blenderbim/blenderbim/bim/data/styles/default.css +++ b/src/blenderbim/blenderbim/bim/data/styles/default.css @@ -19,7 +19,7 @@ */ * { stroke-linecap: round; stroke-linejoin: round; } -text { /* 2.5mm */ fill: black; stroke: none; font-family: 'OpenGost Type B TT', 'DejaVu Sans Condensed', 'Liberation Sans', 'Arial Narrow', 'Arial'; font-size: 4.13px; } +text, tspan { /* 2.5mm */ fill: black; stroke: none; font-family: 'OpenGost Type B TT', 'DejaVu Sans Condensed', 'Liberation Sans', 'Arial Narrow', 'Arial'; font-size: 4.13px; } .cut { fill: black; stroke: black; stroke-linecap: 'round'; stroke-width: 0.35; fill-rule: evenodd; } .projection { fill: white; stroke: black; stroke-linecap: 'round'; stroke-width: 0.25; } .annotation { fill: none; stroke: black; stroke-linecap: 'round'; stroke-width: 0.25; } @@ -47,7 +47,7 @@ text { /* 2.5mm */ fill: black; stroke: none; font-family: 'OpenGost Type B TT', .PredefinedType-BREAKLINE { fill: none; stroke: black; stroke-width: 0.25; marker-mid: url(#breakline-marker); } .PredefinedType-TEXT { fill: black; stroke: none; } path.PredefinedType-TEXTLEADER { marker-end: url(#leader-marker); } -text.PredefinedType-TEXTLEADER { fill: black; stroke: none; } +text.PredefinedType-TEXTLEADER, tspan.PredefinedType-TEXTLEADER { fill: black; stroke: none; } text.title, tspan.title { /* 7mm */ font-size: 11.55px; } text.header, tspan.header { /* 5mm */ font-size: 8.25px; } text.large, tspan.large { /* 3.5mm */ font-size: 5.78px; }