下面代码增加文字样式到数据库中,为何和菜单命令操作显示有差别?
void addTextStyle(){
AcDbTextStyleTable *pTextTbl;
acdbHostApplicationServices()->workingDatabase()
->getSymbolTable(pTextTbl, AcDb::kForWrite);
AcDbTextStyleTableRecord *pTextTblRcd
= new AcDbTextStyleTableRecord;
pTextTblRcd->setName("HZ");
pTextTblRcd->setBigFontFileName("F:\\AntSoft\\ACAD2000\\FONTS\\HZTXT.SHX");
pTextTbl->add(pTextTblRcd);
pTextTblRcd->close();
pTextTbl->close();
}
上面代码增加文字样式到数据库中,为何和菜单命令操作显示有差别?
"SHX字体“下拉列表框不显示任何字符。而在菜单命令中有显示。毛病出在哪,请教各位大虾! qqqqqqqqqqqqqqqqqqq AcDbTextStyleTableRecord::setFont
页:
[1]