@pdfa-lab/fontkit / HangulShaper
Class: HangulShaper ​
Defined in: src/open-type/shapers/hangul-shaper.ts:28
This is a shaper for the Hangul script, used by the Korean language. It does the following:
decompose if unsupported by the font: <LV> &rarrow; <L,V> <LVT> &rarrow; <L,V,T> <LV,T> &rarrow; <L,V,T>
compose if supported by the font: <L,V> &rarrow; <LV> <L,V,T> &rarrow; <LVT> <LV,T> &rarrow; <LVT>
reorder tone marks (S is any valid syllable): <S, M> &rarrow; <M, S>
apply ljmo, vjmo, and tjmo OpenType features to decomposed Jamo sequences.
This logic is based on the following documents:
- http://www.microsoft.com/typography/OpenTypeDev/hangul/intro.htm
- http://ktug.org/~nomos/harfbuzz-hangul/hangulshaper.pdf
Extends ​
Constructors ​
Constructor ​
new HangulShaper():
HangulShaper
Returns ​
HangulShaper
Inherited from ​
Properties ​
| Property | Modifier | Type | Default value | Overrides | Defined in |
|---|---|---|---|---|---|
zeroMarkWidths | static | string | 'NONE' | DefaultShaper.zeroMarkWidths | src/open-type/shapers/hangul-shaper.ts:29 |
Methods ​
assignFeatures() ​
staticassignFeatures<T>(plan,glyphs):void
Defined in: src/open-type/shapers/hangul-shaper.ts:34
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/hangul-shaper.ts:30
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