@pdfa-lab/fontkit / OpenTypeProcessor
Class: OpenTypeProcessor<T> ​
Defined in: src/open-type/open-type-processor.ts:19
Extended by ​
Type Parameters ​
| Type Parameter |
|---|
T |
Constructors ​
Constructor ​
new OpenTypeProcessor<
T>(font,table):OpenTypeProcessor<T>
Defined in: src/open-type/open-type-processor.ts:35
Parameters ​
| Parameter | Type |
|---|---|
font | TrueTypeFont |
table | GPOS | GSUB |
Returns ​
OpenTypeProcessor<T>
Properties ​
| Property | Modifier | Type | Defined in |
|---|---|---|---|
direction | protected | BidiDirection | undefined | src/open-type/open-type-processor.ts:32 |
features | public | Partial<Record<FeatureTag, Feature>> | src/open-type/open-type-processor.ts:26 |
font | protected | TrueTypeFont | src/open-type/open-type-processor.ts:20 |
glyphIterator | protected | GlyphIterator<T> | undefined | src/open-type/open-type-processor.ts:33 |
glyphs | protected | GlyphInfo<T>[] | src/open-type/open-type-processor.ts:28 |
ligatureID | protected | number | src/open-type/open-type-processor.ts:30 |
positions? | protected | GlyphPosition[] | src/open-type/open-type-processor.ts:29 |
Methods ​
applyChainingContext() ​
protectedapplyChainingContext(table):boolean
Defined in: src/open-type/open-type-processor.ts:491
Parameters ​
| Parameter | Type |
|---|---|
table | ChainingContext |
Returns ​
boolean
applyContext() ​
protectedapplyContext(table):boolean
Defined in: src/open-type/open-type-processor.ts:439
Parameters ​
| Parameter | Type |
|---|---|
table | Context |
Returns ​
boolean
applyFeatures() ​
applyFeatures(
userFeatures,glyphs,advances?):void
Defined in: src/open-type/open-type-processor.ts:242
Parameters ​
| Parameter | Type |
|---|---|
userFeatures | keyof Features[] |
glyphs | GlyphInfo<T>[] |
advances? | GlyphPosition[] |
Returns ​
void
applyLookup() ​
applyLookup(
_lookupType,_table):boolean
Defined in: src/open-type/open-type-processor.ts:284
Parameters ​
| Parameter | Type |
|---|---|
_lookupType | number |
_table | LookupTable | LookupTable |
Returns ​
boolean
coverageIndex() ​
protectedcoverageIndex(coverage,glyph?):number
Defined in: src/open-type/open-type-processor.ts:317
Parameters ​
| Parameter | Type |
|---|---|
coverage | Coverage |
glyph? | number |
Returns ​
number
getClassID() ​
getClassID(
glyph,classDef):number
Defined in: src/open-type/open-type-processor.ts:402
Parameters ​
| Parameter | Type |
|---|---|
glyph | number |
classDef | ClassDef |
Returns ​
number
selectScript() ​
selectScript(
script?,language?,direction?):string|null
Defined in: src/open-type/open-type-processor.ts:82
Parameters ​
| Parameter | Type |
|---|---|
script? | string |
language? | string | null |
direction? | BidiDirection |
Returns ​
string | null
sequenceMatchIndices() ​
protectedsequenceMatchIndices(sequenceIndex,sequence):boolean|number[]
Defined in: src/open-type/open-type-processor.ts:374
Parameters ​
| Parameter | Type |
|---|---|
sequenceIndex | number |
sequence | number[] |
Returns ​
boolean | number[]