font-picker icon indicating copy to clipboard operation
font-picker copied to clipboard

Fix dropdown button is not rendered with selected font.

Open emmanuelgeoffray opened this issue 5 years ago • 5 comments

The issue happens when you call setActiveFont dynamically.

When called dynamically, the dropdown button renders with the previously selected font by mouse click.

emmanuelgeoffray avatar Nov 12 '20 15:11 emmanuelgeoffray

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 !

emmanuelgeoffray avatar May 14 '21 08:05 emmanuelgeoffray

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 avatar May 14 '21 12:05 emmanuelgeoffray

@emmanuelgeoffray sad it looks like abandoned.

@samuelmeuli 👉🏻

ghost avatar Mar 07 '22 08:03 ghost

@bacloud22 @samuelmeuli I'm sad too ! Are you already using it or looking for an alternative ?

emmanuelgeoffray avatar Mar 07 '22 11:03 emmanuelgeoffray

@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.

ghost avatar Mar 07 '22 11:03 ghost