Skip to content

Variable fonts not working #712

@NiteshSingh17

Description

@NiteshSingh17

Bug report

I am trying to use BAHNSCHRIFT font. its throwing error.


TypeError: Cannot read properties of undefined (reading ‘256’)
23|ivy-prints-apis    |   at parseFvarAxis (/home/ubuntu/test/node_modules/@shuding/opentype.js/src/tables/fvar.js:15:22)
23|ivy-prints-apis    |   at Object.parseFvarTable [as parse] (/home/ubuntu/test/node_modules/@shuding/opentype.js/src/tables/fvar.js:51:13)
23|ivy-prints-apis    |   at Object.parseBuffer [as parse] (/home/ubuntu/test/node_modules/@shuding/opentype.js/src/opentype.js:348:33)
23|ivy-prints-apis    |   at Ut.addFonts (/home/ubuntu/test/node_modules/satori/src/font.ts:146:29)

Description / Observed Behavior

Expected Behavior

It should work correctly with variable font.

Reproduction

Font url : https://www.dafontfree.io/download/bahnschrift/#google_vignette

Additional Context

Satori version: 0.18.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions