Question
how to use specified font when extrude words
I am ready to engrave some words on a surface using extrude function. The code list below, but seems the specified font did not work. I checked the feature created by this function, the font is still font3D. How can I use other font?
double height = 10.0;
pfcPoint2D_ptr firstCorner = wfcCreatePoint2D(-25.00, -25.00);
double length = 48.764;
pfcPoint2D_ptr secondCorner = wfcCreatePoint2D(-25.00 + length, -25.00 + height);
wfcSectionEntityText_ptr text = wfcSectionEntityText::Create(firstCorner,secondCorner,content);
text->SetFontName("cgomg"); // use font cgomg
wfcSectionEntity_ptr textEntity = wfcSectionEntity::cast(text);
sketch->AddEntity(textEntity);
sketch->SetIntentManagerMode(true);
sketch->SetIntentManagerMode(false);
/* Redefining the feature */
extruFeat->RedefineFeature(0, extractedTree, featOpts, regenInstr);

