SourceForge has been redesigned. Learn more.
Close

Different Font

Help
ömer
2008-07-31
2013-04-29
  • ömer

    ömer - 2008-07-31

    Hello,

    I am making a math site and I want to use jsMath for the maths. But I want to use non-serif fonts for formulaes (arial...). Is it possible? Thanks in advance.

    Ömer

     
    • Davide P. Cervone

      No, this is not really possible.  The jsMath TeX fonts are serif fonts because they are based on the TeX Computer Modern fonts.  The image fallback fonts are rasterized versions of these same fonts, so are also serif fonts.  If you use the symbols-only image fallback mode, then the letters and numbers are taken from the default serif font.  You can change that using

      <style>
          .typeset .cmr10 {font-family: Arial ! important}
      </style>

      but that will only affect the symbol-only fallback and unicode fallback modes (under some circumstances).  Those who have installed the jsMath TeX fonts will not be affected.

      Davide

       
    • ömer

      ömer - 2008-08-04

      Thank you very much. It's an amazing script.

       

Log in to post a comment.