Excellent library! There is one feature that would be handy for my use case in selecting fonts for https://github.com/tdewolff/canvas, which is selecting the font weight that best fits. For example, if someone is looking for Arial with weight Black, it would be nice to return Arial Black if is exists, otherwise Arial Bold or Arial. Additionally, it might be nice to specify what weight was returned so that it can be manually fixed with a faux-bold style.
Excellent library! There is one feature that would be handy for my use case in selecting fonts for https://github.com/tdewolff/canvas, which is selecting the font weight that best fits. For example, if someone is looking for
Arialwith weightBlack, it would be nice to returnArial Blackif is exists, otherwiseArial BoldorArial. Additionally, it might be nice to specify what weight was returned so that it can be manually fixed with a faux-bold style.