How does one go about creating cordova plugins on Firefox OS?
I've got a cordova plugin that I've written for iOS and Android that I'd like to add firefox OS support to. Specifically, it enumerates the fonts that have been installed on the mobile device (my use case is a mostly-offline editor / translation tool).
It looks like firefox OS uses the Android Open Source Project at a lower layer of its OS called Gonk. But, it also looks like Gronk is buried a couple layers deeper than the applications live. Is this where I need to be writing the plugin code? It doesn't seem like code written there would be exposed through the gecko / gaia layers, and unfortunately the Cordova plugin developer's guide doesn't have any info on where to begin.
Okay, it looks like this is a two-part answer:
There is kind of a hack-y way to dynamically get fonts based on whether a browser is doing font substitution here: http://www.lalit.org/lab/javascript-css-font-detect/. I had tried this earlier and it did work on firefox, but not on webkit/chrome -- hence my desire to make this plugin for iOS/Android in the first place. I might end up using this method for the firefoxos port of my plugin.