Skip to content

Commit

Permalink
Firefox OS info added
Browse files Browse the repository at this point in the history
  • Loading branch information
eb1 committed Jan 26, 2015
1 parent 3d07861 commit 5f8a927
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ This plugin defines a global `Fonts` object, which provides access to the fonts

- Android
- Amazon Fire OS (untested / just using Android code)
- Firefox OS
- iOS

# Fonts
Expand All @@ -50,6 +51,10 @@ Currently this plugin only provides a single method, **getFontList**.

- **successCallback**: Callback that returns the list of fonts as an array of string values.
- **errorCallback: Callback that executes if an error occurs while retrieving the list of fonts on the local device.

** Firefox OS quirks **

Firefox OS does not provide an API to access the fonts on the device. The Fonts plugin currently returns a list corresponding to the fonts.mk file found in the mozilla-b2g project (https://github.com/mozilla-b2g/moztt/blob/master/fonts.mk), but it is a hard-coded list and not guaranteed to be correct on any particular version or distro of Firefox OS.

### Example

Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="org.adapt-it.cordova.fonts"
version="0.0.2"
version="0.3.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android">
Expand Down Expand Up @@ -49,5 +49,5 @@
<runs />
</js-module>
</platform>
<!-- wp7 and Firefox OS not currently supported -->
<!-- windows phone not currently supported -->
</plugin>

0 comments on commit 5f8a927

Please sign in to comment.