Skip to content

Hyphens and soft hyphens are not being displayed #58

@guttermouth99

Description

@guttermouth99

Hey,

thanks for this great package.

I am running into some issues with html2canvas here. I am exporting a component as PNG with some text on it. The text needs to break and use hyphens for correct spelling. I worked with CSS hyphens: auto. However when exporting the Image the hyphenated text overlaps and hyphens are not displayed at all.

Thus, I changed my code to use soft hyphens via (react-hyphen). Now it works and the text breaks and renders correctly. However the hyphens are not displayed on the image as '-' anymore.

Any idea how to solve this issue?

Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions