@versatiles/style
    Preparing search index...

    Function textScripts

    • The scripts of FONT_SCRIPTS that occur in text, in that order — e.g. for the labels a map shows, to pick the fonts that can write them. Japanese text with kanji and kana is ['Hani', 'Jpan'], matching fontScripts, whose Jpan needs both. [] for text of digits, punctuation or scripts outside FONT_SCRIPTS only.

      npm only. Not exported by the browser bundle (versatiles-style.js) — see the versatiles-style.js module for what that carries.

      Parameters

      • text: string

      Returns string[]