nuxt / fonts

Plug-and-play web font optimization and configuration for Nuxt apps.
https://nuxt.com
MIT License
360 stars 5 forks source link

Add support for Google Material Symbols #127

Open AndersCV opened 2 weeks ago

AndersCV commented 2 weeks ago

Currently it is not possible to use google as a provider for Material Symbols.

Looking at the current implementation of the google provider it seems it's only looking at the meta data for fonts found at: https://fonts.google.com/metadata/fonts

![Uploading image.png…]()

Metadata for googles Material Symbols can be found at https://fonts.google.com/metadata/icons

qwerzl commented 2 weeks ago

Icon's metadata is in a completely different format than Fonts, so we might need to create a new provider for that. @danielroe What do you think?

Meanwhile, you could always use the material symbols provided by the fontsource provider.

AndersCV commented 2 weeks ago

@qwerzl Thanks for the response and suggetions. I thought the same but unfortunately Material Symbols provided by google is not totally identical to that of fontsource which is blocking us from changing.

As a workaround I'll try and create my own custom provider for Google Material Symbols, however I do think this module should support it out of the box.