masakudamatsu / line-height-picker

A front-end web app that helps web designers/developers pick the best line-height value for their websites
https://line-height-picker.vercel.app
MIT License
2 stars 1 forks source link

Avoid the error if fontFamily is not available #256

Open masakudamatsu opened 4 years ago

masakudamatsu commented 4 years ago

With a trial version of Euclid Flex, it returns an error because neither preferredFamily or fontFamily is available in the file. But the rest is available (the Opentype.js Font Inspector does work).

cf. Euclid Flex's naming table:

Screenshot 2020-09-22 at 12 26 50

This case should not return an error. Just show that the font name cannot be extracted from the file. It's not a serious error because the user knows the font name.