font-picker
font-picker copied to clipboard
Fix dropdown button is not rendered with selected font.
The issue happens when you call setActiveFont dynamically.
When called dynamically, the dropdown button renders with the previously selected font by mouse click.
Hi @samuelmeuli Did you have a chance to have a look to this ? Your module is pretty convenient for loading fonts to final user and I hope this fix will help !
I've add changes to add a font from url, for fonts outside of Google. As described in #17 . I've added a sample code in the demo.
To add a font:
fontPicker.addFont('MyFamilyName', 0, 'https://myfonturl')
@emmanuelgeoffray sad it looks like abandoned.
@samuelmeuli 👉🏻
@bacloud22 @samuelmeuli I'm sad too ! Are you already using it or looking for an alternative ?
@emmanuelgeoffray I am not really using it for anything serious. Using it for a listing web project (classified-ads) but still optional. I couldn't find any alternative.
Still for its use case, it's beautiful and effective, I'm just afraid of any compatibility questions with Google API/ browsers and modern JS.