kontur / fontsampler-wordpress-plugin

A Wordpress plugin that let's users interactively preview and test webfonts
http://fontsampler.johannesneumeier.com
GNU General Public License v3.0
38 stars 8 forks source link

font style linking does not work #167

Closed lettersoup closed 4 years ago

lettersoup commented 4 years ago

Hi, we just updated to WordPress 5.4.1 Since the update the font style linking in Font Sampler does not work any more. The style names are no longer visible, also changing the styles does not work. Could you please advise on that. Тhe bug appears in version 0.4.5 ( in version 0.4.4 everything still works fine) Here is a screenshot of the bug:

Bildschirmfoto 2020-05-12 um 15 10 16

You can also check it on our dev site: https://dev.lettersoup.de/product-category/quasimoda/

kontur commented 4 years ago

Thanks for reporting.

After a quick glance it looks like using a hyphen in the font name (overwrite) breaks the parsing in the font list and uses only the first part (e.g. the "family" of the "family-style" string) thus all styles have the same name and switching them does not work.

I'll investigate more now and see about a fix.

kontur commented 4 years ago

I just released version 0.4.9 to the Wordpress plugin directory. Please update the plugin and test with that version and let me know if that solves the issue.

lettersoup commented 4 years ago

Many thanks for tue quick update! Version 0.4.9 works fine.

kontur commented 4 years ago

Super Sache, thanks for confirming the fix works.