GetFormulaWidth

文字、公式排版、量測

描述

以目前字型與文字大小,傳回已解析數學公式的寬度

語法

Delphi

Function TPDFlib.GetFormulaWidth(Const Formula: WideString): Double;

ActiveX

Function PDFlib::GetFormulaWidth(Formula As String) As Double

DLL

double DLGetFormulaWidth(int InstanceID, const wchar_t * Formula);

參數

Formula要量測的公式來源

傳回值

以目前量測單位傳回公式寬度;輸入為空時傳回 0

備註

結果包含分式邊距、上下標偏移、根號、選配的根指數與巢狀群組

DLGetFormulaWidthA 這個 DLL 變體依設定的 ANSI 模式接受文字