From 0cb98b2ee1d472c26f0afb04c440db5e9f1cbd91 Mon Sep 17 00:00:00 2001 From: David Varley Date: Mon, 17 Aug 2020 09:13:19 +1000 Subject: [PATCH] Adjust alignment of titleblock text in DXF export --- sources/titleblocktemplate.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sources/titleblocktemplate.cpp b/sources/titleblocktemplate.cpp index 2117c9e0c..c3fc83726 100644 --- a/sources/titleblocktemplate.cpp +++ b/sources/titleblocktemplate.cpp @@ -1850,11 +1850,13 @@ void TitleBlockTemplate::renderTextCellDxf(QString &file_path, textHeight *= ratio; } } - + //TODO DAV 16AUG2020 - x & y offset values bellow (5 & 3) set heuristically for now, as are not exactly Diagram::margin = 5 + // fix when have a chance to work through the preceding scaling logic! + // Also add/fix autosizing font to fit in cell Createdxf::drawTextAligned(file_path, text, - x, - y, + x - 5*Createdxf::xScale, + y - 3*Createdxf::yScale, textHeight*Createdxf::yScale, 0, 0,