How to determine the weights of locally added fonts #65
Replies: 3 comments
-
Weights are determined by the font files themselves so you don't need to specify them when calling {
family: 'Grizwald',
weight: 600,
style: 'normal',
width: 'normal',
file: 'fonts/Oswald-SemiBold.ttf'
} You can also get a list of available weights after you've loaded fonts by calling |
Beta Was this translation helpful? Give feedback.
-
Ok so I cant manually set the font weight right? |
Beta Was this translation helpful? Give feedback.
-
Right, the font files themselves define their weights (i.e., you can't override those settings). You can use whatever weight you want when you set the |
Beta Was this translation helpful? Give feedback.
-
how to set the font weights in the FontLibrary ?
Beta Was this translation helpful? Give feedback.
All reactions