THPDFPage.GetWideCharAdvances Method

在目前字型下測量 Unicode 字串:TotalWidth 接收整串寬度,Advances 接收每個字元的步進量,單位是 THotPDF.Resolution 的頁面單位(1/Resolution 英吋),與繪圖座標同一套單位

宣告

function GetWideCharAdvances(const Text: WideString; out TotalWidth: Single; out Advances: array of Single): boolean;

單元

HPDFDoc

參數

名稱說明
Text要測量的 Unicode 文字
TotalWidth[out] 整行總寬度(使用者空間點)
Advances[out] 每個 glyph 的自然步進陣列;呼叫前須 SetLength 至 Length(Text)

回傳值

成功測量文字時回傳 True

使用說明

相關 API