首先定义宏 croel 和 导入 VGCore 空间
#define corel VGCore::IVGApplication
using namespace VGCore;
然后编写应用函数如下
bool setFont(corel *cdr) {
auto sr = cdr->ActiveSelectionRange;
auto s = sr->FirstShape;
s->Text->Story->LanguageID = cdrSimplifiedChinese;
s->Text->Story->Font = L"Microsoft YaHei";
s->Text->Story->Size = 18;
return true;
}
- 功能: 修复 CorelDRAW 中英文字体不一样,可能有修复乱码的效果
