@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 ​
Properties ​
| Property | Modifier | Type | Default value | Overrides | Defined in |
|---|---|---|---|---|---|
zeroMarkWidths | static | string | 'BEFORE_GPOS' | DefaultShaper.zeroMarkWidths | src/open-type/shapers/universal-shaper.ts:58 |
Methods ​
assignFeatures() ​
staticassignFeatures<T>(plan,glyphs):void
Defined in: src/open-type/shapers/universal-shaper.ts:85
Type Parameters ​
| Type Parameter | Default type |
|---|---|
T | USEInfo |
Parameters ​
| Parameter | Type |
|---|---|
plan | ShapingPlan<T> |
glyphs | GlyphInfo<T>[] |
Returns ​
void
Overrides ​
plan() ​
staticplan<T>(plan,glyphs,features):void
Defined in: src/open-type/shapers/default-shaper.ts:33
Type Parameters ​
| Type Parameter |
|---|
T |
Parameters ​
| Parameter | Type |
|---|---|
plan | ShapingPlan<T> |
glyphs | GlyphInfo<T>[] |
features | FeatureFlags |
Returns ​
void
Inherited from ​
planFeatures() ​
staticplanFeatures<T>(plan):void
Defined in: src/open-type/shapers/universal-shaper.ts:59
Type Parameters ​
| Type Parameter |
|---|
T |
Parameters ​
| Parameter | Type |
|---|---|
plan | ShapingPlan<T> |
Returns ​
void
Overrides ​
planPostprocessing() ​
staticplanPostprocessing<T>(plan,userFeatures):void
Defined in: src/open-type/shapers/default-shaper.ts:65
Type Parameters ​
| Type Parameter |
|---|
T |
Parameters ​
| Parameter | Type |
|---|---|
plan | ShapingPlan<T> |
userFeatures | FeatureFlags |
Returns ​
void
Inherited from ​
DefaultShaper.planPostprocessing
planPreprocessing() ​
staticplanPreprocessing<T>(plan):void
Defined in: src/open-type/shapers/default-shaper.ts:54
Type Parameters ​
| Type Parameter |
|---|
T |
Parameters ​
| Parameter | Type |
|---|---|
plan | ShapingPlan<T> |
Returns ​
void