analogwp / analogwp-templates

Style Kits for Elementor adds a number of intuitive styling controls in the Elementor editor that allow you to apply styles globally or per page.
https://analogwp.com
27 stars 7 forks source link

Auto update Google Fonts library #457

Closed mauryaratan closed 3 years ago

mauryaratan commented 3 years ago

Currently we manually update the Google Fonts list with each release via a Gulp task. While this was a good idea initially to not wait for Elementor to update the font list, it still opposes the same issue as originally, that is, waiting for the plugin update.

Proposal

Introduce a way to auto-update the Google webfonts list. Maybe a cron task, scheduled to run every 24 hours.

Implementation

Additionally, we can pass fields parameter as follows to only include what we need in the response object, otherwise, the object gets pretty huge.

https://webfonts.googleapis.com/v1/webfonts?sort=ALPHA&fields=items.family&key=[YOUR_API_KEY]
mauryaratan commented 3 years ago

@gvgvgvijayan On second thought, we can make this less painful for customers.

I've another proposal, I'll get back to you on this.