remotion icon indicating copy to clipboard operation
remotion copied to clipboard

implement zod type for google fonts

Open alexfernandez803 opened this issue 1 year ago • 5 comments

Feature Request 🛍️

It would be beneficial to have a combobox or picker to select google fonts similar to zColor. This will improve the dev experience to easily select a font while development.

Use Case

Possible Solution

Extend https://www.remotion.dev/docs/zod-types/ to add a z-google-font with a zGoogleFont type

alexfernandez803 avatar Aug 06 '23 09:08 alexfernandez803

Sounds good to me, since google fonts is a huge package though, it would be better if it does not become a dependency of @remotion/zod-types.

So maybe we only copy a list of the fonts as a string array into the zod-types package?

JonnyBurger avatar Aug 07 '23 07:08 JonnyBurger

Yep, we could just create a script to generate an array from getAvailableFonts() tho write a file containing the font array.

Does the studio support combobox right now?

alexfernandez803 avatar Aug 07 '23 08:08 alexfernandez803

The studio does do that yes! It is just z.enum

JonnyBurger avatar Aug 14 '23 14:08 JonnyBurger

Can I take this on? This will be my first time contributing to this project. :)

erayerdin avatar Aug 03 '24 05:08 erayerdin

@erayerdin That would be awesome! Thanks for giving it an attempt! 🙌

JonnyBurger avatar Aug 04 '24 07:08 JonnyBurger