Skip to content

HarfRust should not panic on an invalid language #372

Description

@drott

From Blink testing with HB-HR:

STDERR: [9524:11572:0529/031140.483:FATAL:third_party/harfbuzz/src/src/rust\shape.rs:188] panicked at ../../third_party/harfbuzz/src/src/rust\shape.rs:188:53:
STDERR: called `Result::unwrap()` on an `Err` value: "invalid language"

For a library, I don't think we should panic on an invalid language here, but instead ignore it or assume a default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions