Adjust alignment of titleblock text in DXF export

This commit is contained in:
David Varley
2020-08-17 09:13:19 +10:00
parent 2b396960d9
commit 0cb98b2ee1

View File

@@ -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,