THotPDF Shaping Subset and ToUnicode Mapping Methods THotPDF Shaping Subset and ToUnicode Mapping Methods THotPDF Shaping Subset and ToUnicode Mapping Methods THotPDF Shaping Subset and ToUnicode Mapping Methods THotPDF Shaping Subset and ToUnicode Mapping Methods THotPDF Shaping Subset and ToUnicode Mapping Methods THotPDF Shaping Subset and ToUnicode Mapping Methods

 

Metodi di shaping subset e mapping ToUnicode di THotPDF

THotPDF Riferimento API

 

THotPDF Methods  Auto Shaping  GSUB

Documenta le infrastrutture di subset dei glifi e ToUnicode che fanno renderizzare ed estrarre correttamente i GID con shaping

 

Sintassi Delphi

procedure EnableShapingFeatureForSubset(const FeatureTag: AnsiString); overload;

procedure EnableShapingFeatureForSubset(Feature: THPDFShapingFeature); overload;

procedure MarkUnicodeGlyphUsed(GID: Word);

procedure RegisterToUnicodeReverseMapping(SubstCodepoint: Cardinal; const SourceCodepoints: array of Cardinal);

procedure ClearToUnicodeReverseMappings;

function ToUnicodeReverseMappingCount: Integer;

function AssignSyntheticCodepointForGID(GID: Word; out SyntheticCP: Word): Boolean;

function GetSyntheticCodepointForGID(GID: Word): Word;

procedure MarkSyntheticCpRTL(Cp: Word);

function IsRTLSyntheticCp(Cp: Word): Boolean;

function IsRTLSyntheticGID(GID: Word): Boolean;

 

API trattate

Note sull'utilizzo
EnableShapingFeatureForSubsetMarca le funzionalità GSUB i cui glifi di output devono essere trattenuti nel subset incorporato
MarkUnicodeGlyphUsedAggiunge un GID sostitutivo restituito alla chiusura del subset del font incorporato
RegisterToUnicodeReverseMappingRegisters a substitute codepoint to source-codepoint mapping for extraction and accessibility
ClearToUnicodeReverseMappingsRimuove tutti i mapping inversi registrati dal chiamante per il documento corrente
ToUnicodeReverseMappingCountRestituisce il numero di mapping inversi registrati
AssignSyntheticCodepointForGIDAlloca un codepoint sintetico a uso privato che renderizza un GID attraverso CIDToGIDMap
GetSyntheticCodepointForGIDRestituisce il codepoint sintetico già assegnato a un GID
MarkSyntheticCpRTLMarca un codepoint sintetico come destra-sinistra così l'ordine di emissione resta corretto
IsRTLSyntheticCpRiporta se un codepoint sintetico è stato marcato per emissione da destra a sinistra
IsRTLSyntheticGIDRiporta se un GID risolve a un codepoint sintetico marcato per emissione da destra a sinistra

 

Note sull'utilizzo

Usa queste API quando un flusso di shaping emette GID non raggiungibili tramite una normale voce di cmap Unicode. I codepoint sintetici instradano il rendering attraverso CIDToGIDMap, mentre i mapping inversi recuperano i codepoint sorgente originali per l'estrazione del testo

 

Vedi anche: AssignSyntheticCodepointForGID metodi di lookup GSUB Metodi di shaping Indic