av01d / fontpicker-jquery-plugin

A component to quickly choose fonts from Google Web Fonts, custom fonts you (the web developer) provide, as well as system fonts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: What about selecting multiple font weights?

jeff-at-livecanvas opened this issue · comments

First of all I would like to say that this tool is fantastic and looks exactly perfect for my use case: integrating a great font chooser in a WordPress Theme.

Regarding Google Fonts usage, it can be useful to load more than one variant, so that you can have the right font both for normal text, and for bolded text.

What I am proposing here is, what about a flag that could enable selection of multiple font variants, instead of only one at a time?

Thank you so much for your time. I beg you pardon if I haven't obeyed to some rule here - it's my first issue open on GH :)

Would love to know your views upon this. Thank you

This is more complicated than it sounds. And it seems there's not many people looking for this feature (yet). If others do want this, please comment below.
So: I won't be implementing this anytime soon, as I don't see the need for it. You're of course free to fork this repo and give it a go yourself.
Leaving this ticket open though, so others can join in!

Thanks for answering! I can understand your point of view.
I am going to illustrate my precise use case in order to put this into a context.

We use your excellent font picker in our WordPress Theme, Picostrap.

We added your font picker to the WordPress Customizer, so the user can pick it's fonts that are assigned to Bootstrap variables, so they're actually referenced by the CSS - and they're added to the so they are properly loaded.

Selecting one font weight cannot cut it, as for example you may want to use bold styles, those will need loading more than one weight.

Maybe there's some other solution - it's quite a bit I'm not focusing on this problem - will eventually edit / add details - but think you got the basic picture.

One year after, still relevant :)
Hope you're staying safe & sound in these hard times!

@jeff-at-livecanvas: you can easily create a multiple-font-selector using this component.
Check how I did this here: go to https://www.wordclouds.com and click the Fonts button.
See? You can do it yourself with a bit of creativity.

@av01d
First of all happy New Year!

Thank you for your recommendation but this looks like a way to select multiple fonts, not a way of selecting multiple font weights.

Still relevant, may dive into it hacking it a bit