Skip to content
This repository was archived by the owner on Jan 10, 2026. It is now read-only.

Fixed style and weight support#1

Open
sumigoma wants to merge 2 commits intoFetten:masterfrom
sumigoma:master
Open

Fixed style and weight support#1
sumigoma wants to merge 2 commits intoFetten:masterfrom
sumigoma:master

Conversation

@sumigoma
Copy link
Copy Markdown

this.fontWeights.hasOwnProperty was throwing an exception and not working for cases where a weight/style were manually provided (e.g. weight: '900'). This changes it to use Array.includes() and provides the test to ensure it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant