Re: STIXfonts & Mozilla MathML?

[email protected]
Newsgroups gmane.comp.mozilla.devel.mathml
Message-ID <[email protected]>
It seems to me that the right way to do this on a per-user basis is to
create/edit the file
~/.mozilla/firefox/<profile>/chrome/userContent.css and add something
like the following to it:

math {
  font-family: STIXGeneral, STIXVariants, STIXIntegralsSmall, STIXIntegralsDisplay, STIXIntegralsUp, STIXIntegralsUpSmall, STIXIntegralsUpDisplay, STIXSize1Symbols, STIXSize2Symbols, STIXSize3Symbols, STIXSize4Symbols, STIXSize5Symbols;
}

This overrides the corresponding MathML font selection in the
stylesheet Urs referred to, and displays variables in math italic and
not text italic (and not text italic as with Urs' method).

This does not list all available fonts, and I'm not sure which of
these are actually needed (probably all available in general), but it
seems to render my math correctly, including math bold italic and
stretchy characters.

I also removed my font.mathfont-family preference.

Thanks,
Justus


Urs Holzer <[email protected]> wrote on Sat, 24 Nov 2007 11:54:23
+0100:

> I do not know how to configure firefox so it uses them by default
> for MathML. However, you can set the font-family to STIXGeneral in
> CSS for the math element and then it works perfectly!
>
> Hm, I guess firefox has something like a basic CSS stylesheet which it
> uses for all HTML documents. One could change this stylesheet to make
> STIXGeneral the font used for math elements by default ...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.