We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to remove a bunch of font families, Hind Siliguri, Hind Madurai, Mukta, Noto Sans HK, Noto Sans JP, and more.
Are there any examples I can remove them onload?
I can use removeFont onChange, but not onload.
removeFont
Also adding the removeFont method to the onChange callback, it fires errors when I select a font since it is already removed.
onChange
const fontPicker = new FontPicker( "My-API-Key", // Google API key "Open Sans", // Default font { limit: 100 }, // Additional options ()=>{ const fontsToRemove =['Hind Siliguri', 'Hind Madurai','Mukta','Noto Sans HK','Noto Sans JP','Noto Sans KR','Noto Sans SC','Noto Sans TC','Noto Serif JP','Assistant','Mulish','Padauk', 'Cormorant Garamond'] fontsToRemove.forEach(font => { fontPicker.removeFont(font) }); } );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to remove a bunch of font families, Hind Siliguri, Hind Madurai, Mukta, Noto Sans HK, Noto Sans JP, and more.
Are there any examples I can remove them onload?
I can use
removeFont
onChange, but not onload.Also adding the
removeFont
method to theonChange
callback, it fires errors when I select a font since it is already removed.The text was updated successfully, but these errors were encountered: