Dan503/font-face-generator

.otf fonts gets wrong format

tobros91 opened this issue · 3 comments

When using a .otf font type, the format gets the wrong value.

Expected output
src: local("☺"), url(https://serneke-karlatornet.lndo.site:8080/cbb7485d8c63df71c318bc45a5268f05.otf) format("opentype");

Actual output
src: local("☺"), url(https://serneke-karlatornet.lndo.site:8080/cbb7485d8c63df71c318bc45a5268f05.otf) format("otf");

Can you take a look at this PR and implement a similar fix for otf?

It is essentially the same issue but with a different font file type.

Sorry forgot to post the link.

This PR:
#6

Released in v1.1.3