You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now a very quirky-looking method checks the filename and extracts the weight value.
Instead, I suggest the much simpler weight number prefix at the end of the filename, like "Arial-200.ttf" where 200 is extracted as the weight. I think it's more common than the "Arial-extralight.ttf" variant.
But the easiest approach would be to just simply delegate the weight extraction to the user by adding a callback to the config like this:
Right now a very quirky-looking method checks the filename and extracts the weight value.
Instead, I suggest the much simpler weight number prefix at the end of the filename, like "Arial-200.ttf" where 200 is extracted as the weight. I think it's more common than the "Arial-extralight.ttf" variant.
But the easiest approach would be to just simply delegate the weight extraction to the user by adding a callback to the config like this:
I'm aware of that, thanks for mentioning.
The text was updated successfully, but these errors were encountered: