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
39 stars 8 forks source link

Some fonts are not loading #127

Closed shahabsiavash closed 6 years ago

shahabsiavash commented 6 years ago

Hi,

I just put some of my fonts on my site. In one case which a font has 12 styles, weirdly some of them are loading instead of each other. I mean the first one supposed to be regular, but it is the Italic one which is the second font in the list. Also some of other ones are also missing. I don't know why?

image

You can see all 12 of them with different filenames. And now if you go to this link and find the Fontsampler, you can see some of them are missing: https://shahabsiavash.com/?p=1256

kontur commented 6 years ago

Just for reference: When I visit the page I get redirected to this page - is that the page you linked, it seems like it's the "homepage", no?

On that page I don't get any console messages about missing fonts. There is 12 different styles of DEMOKayKhosrow... loading. Seeing the names of the files, I need to point out one issue with Fontsamplers that have several files with same PostScript Family Name as well as Weight - Fontsampler relies on CSS and CSS does not define an "outline" or "stencil" style - i.e. if both "regular", "outline" and "stencil" have the same weight and family name (but look visually different or are different files) Fontsampler still cannot tell them apart. The only workaround for this is to include the style name in the Family Name of the woff you are generating.

shahabsiavash commented 6 years ago

Yes, that was the correct page. As I said they all were loaded but were not showing. So I checked and you were right, some of them had identical names. Thanks. It is solve now :)