|
AcDbTextStyleTableRecord * pTextStyleTblRec = new AcDbTextStyleTableRecord();
pTextStyleTblRec->setFileName(L"ArialN.ttf");
pTextStyleTblRec->setIsShapeFile(false);
pTextStyleTblRec->setName(acsName);
pTextStyleTblRec->setFont(L"Arial Narrow", false, false, Charset::kUnicodeCharset,
Autodesk::AutoCAD::PAL::FontUtils::FontPitch::kDefault, Autodesk::AutoCAD::PAL::FontUtils::FontFamily::kDoNotCare);
pTextStyleTblRec->setIsVertical(false);
pTextStyleTblRec->setObliquingAngle(0);
pTextStyleTblRec->setPriorSize(2);
pTextStyleTblRec->setTextSize(2);
pTextStyleTblRec->setXScale(1);
pTextStyleTblRec->setFlagBits(0);
AcDbTextStyleTable *pTextStylTable;
if ((es = acdbHostApplicationServices()->workingDatabase()->getTextStyleTable(pTextStylTable, AcDb::kForWrite)) != Acad::eOk)
{
delete pTextStyleTblRec;
acutPrintf(L"\nNevytvořen pTextStylTable");
return false;
}
pTextStylTable->add(idTXTStyl, pTextStyleTblRec);
pTextStyleTblRec->close();
pTextStylTable->close();
return idTXTStyl; |
|