Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Opera 10.10 font fault; Firefox 3.0.14 error

Help
jgsedi
2009-12-21
2013-04-29
  • jgsedi
    jgsedi
    2009-12-21

    Hello,

    theres a big problem to me. I use linux with the two browsers Opera 10.10 and firefox 3.0.14 but no one does it right.

    I use sphinx documenting tool and while testing it with both browsers the same page results in different outputs:

    - **Opera** renders the formula but has probably a typesetting problem. It shows shows the wrong signs. For example Opera renders a "-" into ">>" ???
    - Much more less functionality does **firefox**. It simply shows the latex source
     
        qrt{ \frac{x^2_i - 1} { x^3_i + 2} } = y_i
        W^{3 \beta}_{ \delta_1 \rho_1 \sigma_2} \approx U^{ 3 \beta }_ { \delta_1 \rho_1}
     
    At the bottom left corner firefox shows just a few seconds the message "can't load fonts/cm-fonts/alpha/def.js"

    I tried all i found on jsMath - all font stuff there but nothing helps.

    Just for save - its necessary to create a font folder in the jsMath directory!

    thanks for help.
    j

     
  • jgsedi
    jgsedi
    2010-01-03

    I have installed the tex - fonts in the ./fonts directory. Therefore i thought the image fonts are not necessary.

    If i run the fc-cache script to install the new fonts then firefox shows the rendered formula at the first time but next time it didn't. Why?

    Then i tried something with the option box from jsMath. At the Xth attempt jsMath added >>?jsMath=font%3Aunicode%2Cautofont%3A0<< to the URL and it works fine - even in opera.

    - Why?
    - Is there a place to configure jsMath for unicode (i think thats the reason for the faults), so the addition in the URL isn't necessary at all?

    many thanks J.

     
  • I have tested both Firefox 3.5.6 and Opera 10.10 with the JsMath-TeX fonts on Ubuntu 9.8 and both work fine.  The fact that you don't have the image fonts installed does complicate the diagnosis process, as jsMath will try to use the image fonts if it can't find the jsMath-TeX fonts, which is what I suspect is happening.

    Be sure that your ~/.fonts directory contains the following files:

        jsMath-cmbx10.ttf
        jsMath-cmex10.ttf
        jsMath-cmmi10.ttf
        jsMath-cmr10.ttf
        jsMath-cmsy10.ttf
        jsMath-cmti10.ttf

    and that you have taken these from the TeX-fonts-linux.tgz file on the (http://www.math.union.edu/locate/jsMath/download/jsMath-fonts.html).  I have not needed to use fc-cache, but doing so should not hurt.  Then use

        fc-list | grep jsMath

    to see if the jsMath fonts are actually accessible.  If they are, then jsMath should work in both Firefox and Opera.  You can check which font method is being used by using the jsMath control panel and looking next to the jsMath version number:  you should see "(TeX fonts)" if the browser has access to the jsMath TeX fonts.

    If you are not going to install the image fonts, be sure that you include the noImageFonts plugin (se its (http://www.math.union.edu/locate/jsMath/authors/noImageFonts.html) for details).  This will disable the image fonts so that if you don't have the jsMath fonts, it will use the unicode fonts instead.

    The extra data in the URL is use by jsMath to store data between pages.  Normally, this is done via a cookie, but local pages (i.e., pages that don't come from a server) don't allow cookies, so jsMath places the cookie information in the URL.  You should not have to set those yourself.

    In any case, it looks like the problem is that the jsMath TeX fonts are not properly installed on your system.  Check that first.

    Davide

     
  • jgsedi
    jgsedi
    2010-01-03

    To install the fonts a second time leads to the expected results.

    The font names of the fonts installed at the first time are different to those you named. Seems the wrong fonts were installed - uuups.

    After installing them a second time all works fine.

    sorry and many thanks J.

     
  • I'm glad we could work it out.  If you are going to make a public web site, do be sure to either install the image fonts, or use the noImageFonts plugin, otherwise things will not work properly for your users.  If you are just making a private website for your own use, you should be all set as you are now.

    Davide