Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

webfont:ligatures task aborts with "pattern.indexOf" #384

Open
remino opened this issue Jul 23, 2018 · 1 comment
Open

webfont:ligatures task aborts with "pattern.indexOf" #384

remino opened this issue Jul 23, 2018 · 1 comment

Comments

@remino
Copy link

remino commented Jul 23, 2018

With grunt-webfont 1.7.1, I enabled ligatures in my Gruntfile.js. Yet running grunt --force webfont will create the fonts, but will fail at doing ligatures with the following:

Running "webfont:ligatures" (webfont) task
Verifying property webfont.ligatures exists in config...OK
Warning: pattern.indexOf is not a function Used --force, continuing.  

In the generated icons.html file, I tried enabling ligatures via CSS by adding font-feature-settings: "liga" and I tried writing the name of an icon, but this had no effect. Ligatures are not added to the font file.

@remino
Copy link
Author

remino commented Jul 23, 2018

Dumb me who skimmed README.md added the ligatures: true option directly in the webfont config object in Gruntfile.js instead of putting it in webfont.icons.options. Now it's working.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant