Restore saving real font family.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-06-29 20:08:08 +03:00
parent 22b448f98d
commit c97af5a9f9

View File

@ -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);