Các phương thức Indic reorder và GSUB shaping của THotPDF

THotPDF API reference

 

Các phương thức THotPDF  Tự động định hình  GSUB

Tài liệu hóa bề mặt Indic reorder và GSUB shaping, bao gồm các trợ giúp reorder theo từng script, bộ điều phối và đường tạo Indic GSUB v2.167

 

Delphi syntax

function ApplyIndicReorder(const Wide: UnicodeString): UnicodeString; overload;

function ApplyIndicReorder(const Wide: UnicodeString; const Features: THPDFShapingFeatures): UnicodeString; overload;

function ApplyIndicShaping(const S: UnicodeString): UnicodeString;

function IndicShapeToGIDs(const S: UnicodeString): TGSUBLookupArray;

function ApplyDevanagariReorder(const Wide: UnicodeString): UnicodeString;

function ApplyBengaliReorder(const Wide: UnicodeString): UnicodeString;

function ApplyGujaratiReorder(const Wide: UnicodeString): UnicodeString;

function ApplyTamilReorder(const Wide: UnicodeString): UnicodeString;

function ApplyTeluguReorder(const Wide: UnicodeString): UnicodeString;

function ApplyKannadaReorder(const Wide: UnicodeString): UnicodeString;

function ApplyMalayalamReorder(const Wide: UnicodeString): UnicodeString;

function ApplySinhalaReorder(const Wide: UnicodeString): UnicodeString;

function ApplyKhmerReorder(const Wide: UnicodeString): UnicodeString;

function ApplyMyanmarReorder(const Wide: UnicodeString): UnicodeString;

 

API được bao phủ

APIGhi chú sử dụng
ApplyIndicReorderDispatches script-specific Indic reorder helpers before GSUB shaping or text output. The parameterless form keeps full-script coverage; the overload taking a THPDFShapingFeatures set reorders only the scripts whose shaping flag is present, matching the per-flag isolation applied during text output
ApplyIndicShapingÁp dụng reorder cộng chuỗi tính năng Indic GSUB và trả về văn bản synthetic-codepoint để xuất ra
IndicShapeToGIDsTrả về chuỗi glyph ID đã định hình cho một chuỗi Indic mà không phát sinh văn bản PDF
GetDevanagariCategoryPhân loại các codepoint Devanagari cho quyết định theo âm tiết và reorder
GetBengaliCategoryPhân loại các codepoint Bengali cho quyết định Indic reorder
GetGujaratiCategoryPhân loại các codepoint Gujarati cho quyết định Indic reorder
GetTamilCategoryPhân loại các codepoint Tamil cho quyết định Indic reorder
GetTeluguCategoryPhân loại các codepoint Telugu cho quyết định Indic reorder
GetKannadaCategoryPhân loại các codepoint Kannada cho quyết định Indic reorder
GetMalayalamCategoryPhân loại các codepoint Malayalam cho quyết định Indic reorder
GetSinhalaCategoryPhân loại các codepoint Sinhala cho quyết định Indic reorder
GetKhmerCategoryPhân loại các codepoint Khmer cho đường reorder dùng chung của script phức hợp
GetMyanmarCategoryPhân loại các codepoint Myanmar cho đường reorder dùng chung của script phức hợp
sfIndicShapingChạy đường Indic syllable reorder thận trọng trước khi xuất văn bản mà không ép áp dụng đầy đủ các tính năng GSUB
sfIndicGSUBChạy chuỗi Indic reorder và GSUB, rồi phát các glyph ID đã định hình qua synthetic codepoints

 

Ghi chú sử dụng

sfIndicShaping chỉ thực hiện đầu ra reorder-only và vẫn là lựa chọn thận trọng. sfIndicGSUB reorder từng âm tiết, áp dụng chuỗi tính năng Indic của OpenType, phát GID đã định hình qua synthetic codepoints, và rơi về đường reorder khi phông thiếu script GSUB liên quan

 

Xem thêm: International Script Shaping ShapingFeatures GSUB lookup methods