From 59dcfe9e2523bcf7c73704a11f83757665f746c4 Mon Sep 17 00:00:00 2001 From: company-desktop-computer Date: Mon, 19 Oct 2026 09:26:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84pcfiso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SourceCode/Code2026/CoreCommand/PcfIso.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SourceCode/Code2026/CoreCommand/PcfIso.cpp b/SourceCode/Code2026/CoreCommand/PcfIso.cpp index 59a4573..89ff97a 100644 --- a/SourceCode/Code2026/CoreCommand/PcfIso.cpp +++ b/SourceCode/Code2026/CoreCommand/PcfIso.cpp @@ -375,7 +375,8 @@ namespace { if (!txt || !*txt) return AcDbObjectId::kNull; const AcGePoint2d q = apply(p); - AcDbText *pEnt = new AcDbText(AcGePoint3d(q.x, q.y, 0.0), txt, AcDbObjectId::kNull, h, 0.0); + const double hh = h * m_scale; // 文字高度也要随缩放变换(与 addCircle 的 r*m_scale 一致) + AcDbText *pEnt = new AcDbText(AcGePoint3d(q.x, q.y, 0.0), txt, AcDbObjectId::kNull, hh, 0.0); return append(pEnt, layer); } @@ -384,7 +385,8 @@ namespace { if (!txt || !*txt) return AcDbObjectId::kNull; const AcGePoint2d q = apply(p); - AcDbText *pEnt = new AcDbText(AcGePoint3d(q.x, q.y, 0.0), txt, AcDbObjectId::kNull, h, rot); + const double hh = h * m_scale; // 文字高度也要随缩放变换 + AcDbText *pEnt = new AcDbText(AcGePoint3d(q.x, q.y, 0.0), txt, AcDbObjectId::kNull, hh, rot); if (hMode == 1) pEnt->setHorizontalMode(AcDb::kTextCenter); else if (hMode == 2) pEnt->setHorizontalMode(AcDb::kTextRight); pEnt->setVerticalMode(AcDb::kTextVertMid); -- 2.54.0