Skip to content

@pdfa-lab/fontkit / UniversalShaper

Class: UniversalShaper ​

Defined in: src/open-type/shapers/universal-shaper.ts:57

This shaper is an implementation of the Universal Shaping Engine, which uses Unicode data to shape a number of scripts without a dedicated shaping engine. See https://www.microsoft.com/typography/OpenTypeDev/USE/intro.htm.

Extends ​

Constructors ​

Constructor ​

new UniversalShaper(): UniversalShaper

Returns ​

UniversalShaper

Inherited from ​

DefaultShaper.constructor

Properties ​

PropertyModifierTypeDefault valueOverridesDefined in
zeroMarkWidthsstaticstring'BEFORE_GPOS'DefaultShaper.zeroMarkWidthssrc/open-type/shapers/universal-shaper.ts:58

Methods ​

assignFeatures() ​

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

Defined in: src/open-type/shapers/universal-shaper.ts:85

Type Parameters ​

Type ParameterDefault type
TUSEInfo

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<T>(plan): void

Defined in: src/open-type/shapers/universal-shaper.ts:59

Type Parameters ​

Type Parameter
T

Parameters ​

ParameterType
planShapingPlan<T>

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