Skip to content

Format not yet supported error when trying to render Noto Nastaliq Urdu #627

@bennlich

Description

@bennlich

I'm trying to generate a font path with Noto Nastaliq Urdu for some Urdu text: اردو

let chars = 'اردو'
parsedFont.getPath(chars, 0, 0, 1200)

But I get the following error:

Uncaught (in promise) Error: lookupType: 7 - substFormat: 1 is not yet supported
    at FeatureQuery.getLookupMethod (opentype.js:12342:20)
    at FeatureQuery.lookupFeature (opentype.js:12396:32)
    at opentype.js:12753:43
    at Array.forEach (<anonymous>)
    at Bidi.arabicRequiredLigatures (opentype.js:12751:28)
    at opentype.js:12993:34
    at Array.forEach (<anonymous>)
    at Bidi.applyArabicRequireLigatures (opentype.js:12992:13)
    at Bidi.applyFeaturesToContexts (opentype.js:13028:38)
    at Bidi.processText (opentype.js:13046:15)

I'd be happy to try to contribute to fix this, but I'm not sure what this means / where to begin :)

Your Environment

  • Version used: opentype v1.3.4
  • Font used: Noto Nastaliq Urdu
  • Browser Name and version: Chrome 118.0.5993.70
  • Operating System and version (desktop or mobile): mac os 13.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    SpecRelated to the implementation of the Opentype specificationfont features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions