Version imprimable

Nightly firefox prefers STIX

Since 2007-12-05, the nightly builts of Firefox prefers the STIX fonts if installed. This is good of course however most users update their browsers with automatic updates and do not install manually the nightly builts, so most users will still need to wait. As a follow up exercise to my STIX experiments, I wanted to check what was done to enable the STIX fonts in the nightly built. Here is a log.
Download and upack the nightly firefox. In the folder firefox, grep for STIX yields some expected customization of the pref.js and of mathml.css:

[localhost:firefox!148] grep STIX *
[localhost:firefox!149] grep STIX */*
greprefs/all.js:pref("font.mathfont-family", "STIXNonUnicode, STIXSize1, STIXGeneral, Cambria Math, Standard Symbols L, DejaVu Sans");
res/mathml.css: font-family: STIXGeneral, Cambria, Cambria Math, DejaVu Serif, DejaVu Sans, Times, Lucida Sans Unicode, OpenSymbol, Standard Symbols L, serif;

It is easy to correct the local copy of the files accordingly. However, this might not be enough.
In the folder res/fonts/ there are fewer and newer files (when compared to the standard installation):

[localhost:firefox!157] ls res/fonts/
mathfont.properties
mathfontStandardSymbolsL.properties
mathfontSTIXNonUnicode.properties
mathfontSTIXSize1.properties
mathfontUnicode.properties
[localhost:firefox!158] ls /usr/lib/firefox-2.0.0.10/res/fonts/
fontEncoding.properties
mathfontCMSY10.properties
mathfontMath2.properties
mathfontMTExtra.properties
mathfontPUA.properties
pangoFontEncoding.properties
mathfontCMEX10.properties
mathfontMath1.properties
mathfontMath4.properties
mathfont.properties
mathfontSymbol.properties

It is not hard to replace the newer mathfont.properties and to copy the additional files to the fonts directory.

Last thing to do is to install Cambria and Cambria Math.

Technorati Tags:Technorati Tags:

Trackback URL for this post:

http://www.jem-thematic.net/fr/trackback/517

Répondre

Le contenu de ce champ ne sera pas montré publiquement.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.