Skip to content

Gugi font throws RangeError: Offset is outside the bounds of the DataView when spaces are in a layout #357

@HMilbradt

Description

@HMilbradt

I have provided an example where "HelloWorld" and "Hello World" behaves differently when using .layout. Without spaces, it is able to be laid out. With spaces it crashes. This is using the Gugi font from Google.

Font here: https://fonts.google.com/specimen/Gugi

A minimal reproducible example may be found here: https://codesandbox.io/p/devbox/pfjgyf. NOTE: you may need to fork this, I was having troubles getting FontKit to be picked up in the import.

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