From c97af5a9f9695b993746b1111f016f3ac23a398b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 29 Jun 2017 20:08:08 +0300 Subject: [PATCH] Restore saving real font family. --HG-- branch : feature --- src/libs/vdxf/dxiface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vdxf/dxiface.cpp b/src/libs/vdxf/dxiface.cpp index aee5f8223..a8ad79ff5 100644 --- a/src/libs/vdxf/dxiface.cpp +++ b/src/libs/vdxf/dxiface.cpp @@ -281,7 +281,7 @@ void dx_iface::AddEntity(DRW_Entity *e) UTF8STRING dx_iface::AddFont(const QFont &f) { DRW_Textstyle ts; - ts.name = f.family().toStdString(); + ts.name = f.family().toUpper().toStdString(); // Idea source https://stackoverflow.com/questions/20111522/writing-text-styles-into-dxf-from-a-delphi-application if (f.bold()) @@ -304,7 +304,7 @@ UTF8STRING dx_iface::AddFont(const QFont &f) } } - ts.font = "Times New Roman";//f.family().toStdString(); + ts.font = f.family().toStdString(); cData.textStyles.push_back(ts);