Skip to content

@pdfa-lab/fontkit / choose

Function: choose() ​

choose(script?): typeof DefaultShaper

Defined in: src/open-type/shapers/index.ts:97

Given a Unicode script or list of script, select an appropriate shaper.

Parameters ​

ParameterTypeDescription
script?string | string[] | nullOne or more scripts

Returns ​

typeof DefaultShaper

the appropriate shaper