BrndBot / BrndBot_old

Main Source Code
0 stars 0 forks source link

Fonts not displaying properly when first selected #64

Open gmcgath opened 9 years ago

gmcgath commented 9 years ago

When the user first selects a font in the editor, the display will usually show a generic sans serif font instead. After a while, selecting a font starts working properly.

I believe this is because web fonts don't load before they're first used. If the font isn't loaded yet, the browser will fall back to a generic font. I'm changing the font selector to display each font name in the font. This will force the font to be loaded with the page. It also has the incidental advantage of showing the user what the font looks like. This should get into the May 8 daily build.