| API | Purpose |
ShapePdfText(Text, FontName, FontSize, Direction, out Shaped) | 以內建的 Windows Uniscribe 實作與預設資源限制塑形文字 |
TPdfTextShaper.Shape | 自訂引擎的抽象塑形合約,傳回字形識別碼、叢集、視覺文字段、前進寬度與選定的字型資料 |
TPdfUniscribeTextShaper.Shape | 使用 usp10.dll 對文字段進行分段、塑形、定位與視覺重排 |
TPdfTextShapingOptions.Default | 傳回自動方向,限制為 1,000,000 個字元、2,000,000 個字形與 100,000 個文字段 |
ConfigureTextShaper(Shaper) | 安裝本單元使用的文字整形後端,自安裝起取代內建實作;執行個體的所有權歸單元所有 |
ClearTextShaper | 移除已安裝的後端,回到平台預設實作 |
ActiveTextShaper | 目前正在使用的後端;平台上沒有可用的整形器時為 nil |
ActiveTextShaperName | 作用中後端所回報的名稱,用於日誌記錄,也用於區分不同的部署 |
| Type | Description |
EPdfTextShapingError | 輸入無效、違反資源限制、字型資料失敗或塑形引擎錯誤時引發的例外 |
TPdfTextDirection | ptdAuto、ptdLeftToRight 或 ptdRightToLeft |
TPdfShapedGlyph | 單一字元,包含 GlyphID、Advance、OffsetX、OffsetY、ClusterStart 與 ClusterLength |
TPdfShapedGlyphs | TPdfShapedGlyph 記錄的動態陣列 |
TPdfShapedRun | 單一視覺文字段,包含 TextStart、TextLength、VisualX、Width、BidiLevel、IsRightToLeft 與 Glyphs |
TPdfShapedRuns | 以視覺順序排列的 TPdfShapedRun 記錄動態陣列 |
TPdfShapedText | 來源 Text、選定的 FontName、FontSize、內嵌的 FontData、塑形後的 Runs、總 Width、GlyphCount 與 LogicalCharacterCount |
TPdfTextShapingOptions | Direction、MaxCharacters、MaxGlyphs 與 MaxRuns 資源限制 |
TPdfTextShaper | 呼叫端提供之塑形實作的抽象基底類別 |
TPdfUniscribeTextShaper | TPdfTextShaper 的內建 Windows 實作 |