graphicore / specimenTools

Apache License 2.0
29 stars 5 forks source link

Add support for multiple instances per page #2

Closed kontur closed 7 years ago

kontur commented 7 years ago

Most of the functionality already supports this. As far as I can tell, font loading events would need to be more specific to the instance. I'll have a closer look at this, but let me know what you think.

kontur commented 7 years ago

I've had a play with this and got pretty far as it is. If you check my branch https://github.com/kontur/specimenTools/tree/multiple-specimens I am wondering why on the initial load activating the first font of each instance fails. Manually switching fonts after by pressing the according button works just fine.

In FamilyChooser.js l 299 this._fontData seems empty, even though in the onAllFontsLoaded in l. 272 the this._fontData seems to have contents.