#3 noImageFont plugin overide custom extra font warning message

v3.4
closed-fixed
nobody
5
2009-08-25
2007-05-20
Jetsada
No

noImageFonts plugin overides the custom extra font warning message. The code below

if (!jsMath.Font) {jsMath.Font = {}}
jsMath.Font.extra_message =
'Extra TeX fonts not found: <b><span id="jsMath_ExtraFonts"></span></b><br/>'
+ 'Using unicode fonts instead. This may be slow and might not print well.<br/>\n'
+ 'Use the jsMath control panel to get additional information.';
}

should be replaced with

if (!jsMath.Font) {jsMath.Font = {}}
if (!jsMath.Font.extra_message) {
jsMath.Font.extra_message =
'Extra TeX fonts not found: <b><span id="jsMath_ExtraFonts"></span></b><br/>'
+ 'Using unicode fonts instead. This may be slow and might not print well.<br/>\n'
+ 'Use the jsMath control panel to get additional information.';
}

Discussion

  • Davide P. Cervone

    Logged In: YES
    user_id=1161141
    Originator: NO

    You are quite correct. This will allow authors to override the new missing-font message. Thanks for the fix; it will be included in the next release of jsMath.

     
  • Davide P. Cervone

    • status: open --> closed-accepted
     
  • Jetsada

    Jetsada - 2009-08-25

    Sorry for a long time to report this bug.

    In a file "jsMath-easy-load.js", there are codes like noImageFont plugin that might overide the custom extra font warning message below.

    if (jsMath.Easy.noImageFonts) {
    jsMath.noImgFonts = 1;
    if (!jsMath.Font) {jsMath.Font = {}}
    jsMath.Font.extra_message =
    'Extra TeX fonts not found: <b><span id="jsMath_ExtraFonts"></span></b><br/>'
    + 'Using unicode fonts instead. This may be slow and might not print well.<br/>\n'
    + 'Use the jsMath control panel to get additional information.';
    }

    That should be replaced with

    if (jsMath.Easy.noImageFonts) {
    jsMath.noImgFonts = 1;
    if (!jsMath.Font) {jsMath.Font = {}}
    if (!jsMath.Font.extra_message) {
    jsMath.Font.extra_message =
    'Extra TeX fonts not found: <b><span id="jsMath_ExtraFonts"></span></b><br/>'
    + 'Using unicode fonts instead. This may be slow and might not print well.<br/>\n'
    + 'Use the jsMath control panel to get additional information.';
    }
    }

     
  • Jetsada

    Jetsada - 2009-08-25
    • status: closed-accepted --> open-accepted
     
  • Davide P. Cervone

    OK, thanks for the report. I've fixed it, and the update will be included in the next release of jsMath.

    Davide

     
  • Davide P. Cervone

    • status: open-accepted --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks