DXF - Add some color

This commit is contained in:
David Varley
2020-09-22 19:41:47 +10:00
parent bcc5846662
commit 2d6bef71ae
3 changed files with 30 additions and 24 deletions

View File

@@ -660,7 +660,7 @@ void ExportDialog::generateDxf(
qreal offset = fontSize * 1.6;
foreach (QString line, lines) {
if (line.size() > 0 && line != "_" )
Createdxf::drawText(file_path, line, QPointF(x, y), fontSize, 360-angle, 0, 0.72 );
Createdxf::drawText(file_path, line, QPointF(x, y), fontSize, 360-angle, Createdxf::dxfColor(dti->color()), 0.72 );
x += offset * xdir;
y -= offset * ydir;
}