DrawFormulaA

文本、公式布局、矢量图形

描述

DrawFormula 的 ANSI 变体

字符串参数按 ANSI 文本接受,其余行为与宽字符串入口点完全相同

语法

DLL

int DLDrawFormulaA(int InstanceID, double Left, double Top, const wchar_t * Formula, const wchar_t * AltText);

返回值

绘制后返回 1;Formula 为空时返回 0

备注

分数使用 \frac{a}{b},上标和下标使用 x^{2} 和 x_{i},根式使用 \sqrt{x} 或 \sqrt[3]{x},符号则使用 \alpha、\Gamma、\times、\sum 和 \infty 等命令

组可嵌套,重复测量或绘制会在字体状态不变时复用已解析布局

DLL 的 DLDrawFormulaA 变体依据配置的 ANSI 模式接受文本