Skip to content

@pdfa-lab/fontkit / IndicShaper

Class: IndicShaper ​

Defined in: src/open-type/shapers/indic-shaper.ts:65

The IndicShaper supports indic scripts e.g. Devanagari, Kannada, etc. Based on code from Harfbuzz: https://github.com/behdad/harfbuzz/blob/master/src/hb-ot-shape-complex-indic.cc

Extends ​

Constructors ​

Constructor ​

new IndicShaper(): IndicShaper

Returns ​

IndicShaper

Inherited from ​

DefaultShaper.constructor

Properties ​

PropertyModifierTypeDefault valueOverridesDefined in
zeroMarkWidthsstaticstring'NONE'DefaultShaper.zeroMarkWidthssrc/open-type/shapers/indic-shaper.ts:66

Methods ​

assignFeatures() ​

static assignFeatures<T>(plan, glyphs): void

Defined in: src/open-type/shapers/indic-shaper.ts:116

Type Parameters ​

Type ParameterDefault type
TIndicInfo

Parameters ​

ParameterType
planShapingPlan<T>
glyphsGlyphInfo<T>[]

Returns ​

void

Overrides ​

DefaultShaper.assignFeatures


plan() ​

static plan<T>(plan, glyphs, features): void

Defined in: src/open-type/shapers/default-shaper.ts:33

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
planShapingPlan<T>
glyphsGlyphInfo<T>[]
featuresFeatureFlags

Returns ​

void

Inherited from ​

DefaultShaper.plan


planFeatures() ​

static planFeatures<IndicInfo>(plan): void

Defined in: src/open-type/shapers/indic-shaper.ts:67

Type Parameters ​

Type Parameter
IndicInfo

Parameters ​

ParameterType
planShapingPlan<IndicInfo>

Returns ​

void

Overrides ​

DefaultShaper.planFeatures


planPostprocessing() ​

static planPostprocessing<T>(plan, userFeatures): void

Defined in: src/open-type/shapers/default-shaper.ts:65

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
planShapingPlan<T>
userFeaturesFeatureFlags

Returns ​

void

Inherited from ​

DefaultShaper.planPostprocessing


planPreprocessing() ​

static planPreprocessing<T>(plan): void

Defined in: src/open-type/shapers/default-shaper.ts:54

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
planShapingPlan<T>

Returns ​

void

Inherited from ​

DefaultShaper.planPreprocessing