1. 首先定义宏 croel 和 导入 VGCore 空间

    #define  corel VGCore::IVGApplication
    using namespace VGCore;
  2. 然后编写应用函数如下

// CorelDRAW CPG 统一中英文字体 C++ 源码
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;
}
  1. 功能: 修复 CorelDRAW 中英文字体不一样,可能有修复乱码的效果