|
Controls HotPDF's opt-in producer-side shaping, positioning, localised-form, and script-preprocess pipeline
Delphi syntax
property ShapingFeatures: THPDFShapingFeatures read FShapingFeatures write FShapingFeatures;
type THPDFShapingFeature = (sfArabicGSUB, sfStandardLigatures, sfContextualLigatures, sfStylisticAlternates, sfIndicShaping, sfContextualAlternates, sfKerning, sfMarkPositioning, sfTibetanShaping, sfMongolianShaping, sfIndicGSUB, sfLocalizedForms, sfVerticalKerning, sfThaiLaoReorder, sfHebrewReorder, sfJavaneseShaping, sfMarkToLigature, sfCursiveAttachment, sfDiscretionaryLigatures, sfHistoricalLigatures, sfSmallCaps, sfCapsToSmallCaps, sfOldstyleFigures, sfLiningFigures, sfSuperscripts, sfSubscripts, sfOrdinals, sfFractions, sfTaiVietReorder, sfMeeteiMayekShaping, sfDistancePositioning, sfKhmerShaping, sfMyanmarShaping, sfVerticalAlternates, sfCaseSensitiveForms, sfSlashedZero, sfProportionalFigures, sfTabularFigures, sfScientificInferiors, sfNumerators, sfDenominators);
Covered APIs
| API | Usage notes |
sfArabicGSUB | Enables native Arabic GSUB contextual shaping |
sfStandardLigatures | Applies standard Latin ligature substitutions such as fi, fl, ffi, and ffl when the font exposes the liga feature |
sfContextualLigatures | Adds contextual ligature substitution through clig after the standard ligature pass |
sfStylisticAlternates | Applies stylistic alternate substitutions through the OpenType salt feature in the Latin single-substitution pass, and keeps the tag enabled for the embedded subset |
sfIndicShaping | Runs the conservative Indic syllable reorder path before text output without forcing full GSUB feature application |
sfContextualAlternates | Applies required contextual alternates through the rclt-capable GSUB contextual lookup path |
sfKerning | Enables GPOS pair-kerning adjustments during left-to-right Unicode text emission |
sfMarkPositioning | Enables GPOS Mark-to-Base and Mark-to-Mark offsets for combining marks |
sfTibetanShaping | Enables Tibetan GSUB shaping and synthetic-codepoint emission for shaped Tibetan glyph IDs |
sfMongolianShaping | Enables Mongolian positional-form shaping through joining analysis and font GSUB lookups |
sfIndicGSUB | Runs the Indic reorder and GSUB feature chain, then emits shaped glyph IDs through synthetic codepoints |
sfLocalizedForms | Applies GSUB locl localised-form substitutions under the active script and language |
sfVerticalKerning | Enables GPOS vkrn and vpal vertical advance adjustment in the vertical text output path; the adjustment changes the step between glyphs, so a vertical run that the flag affects is written as one show block per glyph instead of one embedded run, which leaves the default output byte-identical |
sfThaiLaoReorder | Enables Thai/Lao SARA AM decomposition and mark ordering |
sfHebrewReorder | Enables Hebrew mark ordering by canonical combining class |
sfJavaneseShaping | Enables Javanese pre-base vowel-sign reorder |
sfMarkToLigature | Enables GPOS Mark-to-Ligature placement |
sfCursiveAttachment | Enables GPOS cursive entry/exit anchor alignment |
sfDiscretionaryLigatures | Applies discretionary ligatures through dlig |
sfHistoricalLigatures | Applies historical ligatures through hlig |
sfSmallCaps | Applies small-cap substitutions through smcp |
sfCapsToSmallCaps | Applies capital-to-small-cap substitutions through c2sc |
sfOldstyleFigures | Applies oldstyle figures through onum |
sfLiningFigures | Applies lining figures through lnum |
sfSuperscripts | Applies superscript glyphs through sups |
sfSubscripts | Applies subscript glyphs through subs |
sfOrdinals | Applies ordinal glyphs through ordn |
sfFractions | Applies fraction substitutions through frac |
sfTaiVietReorder | Enables Tai Viet vowel and mark ordering |
sfMeeteiMayekShaping | Enables Meetei Mayek syllable reorder |
sfDistancePositioning | Enables GPOS distance positioning |
sfKhmerShaping | Enables Khmer pre-base vowel and cluster reorder |
sfMyanmarShaping | Enables Myanmar kinzi, pre-base vowel, medial, and mark reorder |
sfVerticalAlternates | Applies vertical alternates through vert and vrt2 |
sfCaseSensitiveForms | Applies case-sensitive forms through case |
sfSlashedZero | Applies slashed zero through zero |
sfProportionalFigures | Applies proportional figures through pnum |
sfTabularFigures | Applies tabular figures through tnum |
sfScientificInferiors | Applies scientific inferiors through sinf |
sfNumerators | Applies numerators through numr |
sfDenominators | Applies denominators through dnom |
Usage notes
SVG text imports, loaded Unicode and rich FreeText appearances, and previewable loaded text replacements inherit this complete feature set, the script auto-shaping switches and the current GSUB script and language selections; configure them before generating the text and keep them stable between replacement preview and apply
Use this property after RegisterUnicodeTTF and before writing text. Choose typographic feature and figure-style flags, GPOS flags for spacing and anchors, and script-specific preprocess flags before cmap-to-GID mapping
See also: Automatic Shaping Pipeline GPOS methods Indic shaping methods Script shaping preprocess methods
|