@pdfa-lab/fontkit / ArabicShaper
Class: ArabicShaper ​
Defined in: src/open-type/shapers/arabic-shaper.ts:168
This is a shaper for Arabic, and other cursive scripts. It uses data from ArabicShaping.txt in the Unicode database, compiled to a UnicodeTrie by generate-data.coffee.
The shaping state machine was ported from Harfbuzz. https://github.com/behdad/harfbuzz/blob/master/src/hb-ot-shape-complex-arabic.cc
Extends ​
Constructors ​
Constructor ​
new ArabicShaper():
ArabicShaper
Returns ​
ArabicShaper
Inherited from ​
Properties ​
| Property | Modifier | Type | Default value | Inherited from | Defined in |
|---|---|---|---|---|---|
zeroMarkWidths | static | string | 'AFTER_GPOS' | DefaultShaper.zeroMarkWidths | src/open-type/shapers/default-shaper.ts:32 |
Methods ​
assignFeatures() ​
protectedstaticassignFeatures<T>(plan,glyphs):void
Defined in: src/open-type/shapers/arabic-shaper.ts:179
Type Parameters ​
| Type Parameter | Default type |
|---|---|
T | null |
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/arabic-shaper.ts:169
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