On Firefox OS devices, special fonts like "Fira Sans" and "Fira Mono" are used.
On desktop environments (Simulator / B2G desktop), different fonts are used.
We are trying to fix this in bug 992210, but we are not familiar with how fonts work in Firefox, and need some help.

In Gaia, generic font names like "serif", "sans-serif" and "monospace" are used instead of explicit font families for internationalization reasons. The correct font families are resolved using the localized font prefs defined in http://dxr.mozilla.org/mozilla-central/source/modules/libpref/src/init/all.js#3199, and on Firefox OS devices these fonts are installed in /system/fonts.

We modified all.js to use the same localized font prefs as Firefox OS on B2G desktop environments, and this makes the simulator use the correct fonts if they are available on the system. However, on most systems the simulator runs on these fonts are not installed, so we fall back to available fonts. This is why we'd like to ship the fonts along with the simulator.

We are currently thinking of packaging them inside a simulator's Gaia profile, but we're missing a way to tell Firefox where to find these fonts. How can we make the simulator use the fonts from a specific list of files we know about?
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to