stylesplugin / styles-font-menu

Display an up-to-date menu of Google Fonts with image previews. Include it in your own plugins and themes, or install as a plugin.
15 stars 9 forks source link

Passing array of fonts to display #10

Open vaclavgreif opened 10 years ago

vaclavgreif commented 10 years ago

I have an array of font families, that I'd like to display in the dropdown, and I'm trying to figure out best place to pass it in the code. Should I add it to the get_fonts() function somehow? Or maybe this can be even done without hijacking the core code?

Thanks for help

pdclark commented 10 years ago

See if the filter added in this commit works for you. Should be fairly straight-forward, and example usage is in the commit message, but I didn't have time to test this evening.

Check out or download a zip from the f/filter-fonts branch.