From aca0c7803cd97eabf3bcd19a93d498d35ad85285 Mon Sep 17 00:00:00 2001 From: liaoxianglian Date: Thu, 11 Sep 2025 10:19:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=AE=9E=E5=BF=83=E9=95=BF?= =?UTF-8?q?=E6=96=B9=E5=BD=A2=EF=BC=88=E6=9C=89constant=5Fwidth=E7=9A=84?= =?UTF-8?q?=E7=BA=BF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/qelmt/line.rs | 2 ++ src/qelmt/polygon.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/qelmt/line.rs b/src/qelmt/line.rs index 0acaf95..23b6713 100644 --- a/src/qelmt/line.rs +++ b/src/qelmt/line.rs @@ -102,6 +102,8 @@ impl TryFrom<&LwPolyline> for Line { antialias: false, style: if poly.thickness > 0.1 { "line-style:normal;line-weight:normal;filling:none;color:black" + } else if poly.constant_width > 1.0{ + "line-style:normal;line-weight:hight;filling:none;color:black" } else { "line-style:normal;line-weight:thin;filling:none;color:black" } diff --git a/src/qelmt/polygon.rs b/src/qelmt/polygon.rs index b10a53a..1d5e827 100644 --- a/src/qelmt/polygon.rs +++ b/src/qelmt/polygon.rs @@ -185,9 +185,9 @@ impl From<&Solid> for Polygon { //reasons...I'm trying to think if there is a time we might want to turn it on? antialias: false, style: if solid.thickness > 0.5 { - "line-style:normal;line-weight:normal;filling:none;color:black" + "line-style:normal;line-weight:normal;filling:black;color:black" } else { - "line-style:normal;line-weight:thin;filling:none;color:black" + "line-style:normal;line-weight:thin;filling:black;color:black" } .into(), }