@pdfa-lab/fontkit / UnicodeLayoutEngine
Class: UnicodeLayoutEngine ​
Defined in: src/layout/unicode-layout-engine.ts:14
This class is used when GPOS does not define 'mark' or 'mkmk' features for positioning marks relative to base glyphs. It uses the unicode combining class property to position marks.
Based on code from Harfbuzz, thanks! https://github.com/behdad/harfbuzz/blob/master/src/hb-ot-shape-fallback.cc
Constructors ​
Constructor ​
new UnicodeLayoutEngine(
font):UnicodeLayoutEngine
Defined in: src/layout/unicode-layout-engine.ts:15
Parameters ​
| Parameter | Type |
|---|---|
font | TrueTypeFont |
Returns ​
UnicodeLayoutEngine
Methods ​
positionGlyphs() ​
positionGlyphs(
glyphs,positions):GlyphPosition[]
Defined in: src/layout/unicode-layout-engine.ts:20
TODO Ligatures are currently not handled.
Parameters ​
| Parameter | Type |
|---|---|
glyphs | Glyph[] |
positions | GlyphPosition[] |