mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Adjust alignment of titleblock text in DXF export
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user