What is the algo for sorting these styles that Figma uses? In the font list they are returned with just names, and different fonts can get creative with naming their styles.
Solved
How to sort font styles
Best answer by tank666
fontWeight
can be found at TextNode. That is, to get fontWeight, you need to load the font and create a TextNode.
If the weight is the same, sort alphabetically.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.