/*
 *  msbm10/def.js
 *  
 *  This file loads the  font into jsMath. To do this use
 *  
 *      <SCRIPT>jsMath.Font.Load("msbm10")</SCRIPT>
 *
 *  after loading jsMath.js itself.  The user will need to have
 *  the msbm10.ttf font installed, otherwise corresponding unicode
 *  characters will be used, but the mapping is not perfect, and it is not 
 *  customized on a per-browser basis as it probably should be.
 *  
 *  If the font isn't installed, the user will receive a message indicating
 *  that fact, and pointing to the jsMath web site where the font can be
 *  downloaded.
 *  
 *  Once this file is loaded, you can use \char{msbm10}{nn} to access
 *  any character in the font.  In addition, the \msbm10 macro will switch to
 *  the eufm font
 *  
 *  ---------------------------------------------------------------------
 *
 *  jsMath is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  jsMath is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with jsMath; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

jsMath.Add(jsMath.TeX,{

  msbm10: [
    // 00 - 0F
    [0.778,0.757,0.251],
    [0.778,0.757,0.251],
    [0.778,0.794,0.303],
    [0.778,0.794,0.303],
    [0.778,0.706,0.206],
    [0.778,0.706,0.206],
    [0.778,0.706,0.206],
    [0.778,0.706,0.206],
    [0.778,0.757,0.251],
    [0.778,0.757,0.251],
    [0.778,0.794,0.303],
    [0.778,0.794,0.303],
    [0.778,0.636,0.136],
    [0.778,0.636,0.136],
    [0.778,0.794,0.303],
    [0.778,0.794,0.303],
    // 10 - 1F
    [0.778,0.741,0.232],
    [0.778,0.741,0.232],
    [0.778,0.741,0.232],
    [0.778,0.741,0.232],
    [0.778,0.92,0.42],
    [0.778,0.92,0.42],
    [0.778,0.757,0.251],
    [0.778,0.757,0.251],
    [0.778,0.757,0.262],
    [0.778,0.757,0.262],
    [0.778,0.757,0.262],
    [0.778,0.757,0.262],
    [0.778,0.367,-0.133],
    [0.778,0.794,0.303],
    [0.889,0.689,0.194],
    [0.889,0.741,0.194],
    // 20 - 2F
    [0.778,0.636,0.136],
    [0.778,0.636,0.136],
    [0.778,0.757,0.251],
    [0.778,0.757,0.251],
    [0.778,0.794,0.285],
    [0.778,0.794,0.285],
    [0.778,0.757,0.251],
    [0.778,0.757,0.251],
    [0.778,0.636,0.136],
    [0.778,0.636,0.136],
    [0.778,0.794,0.303],
    [0.778,0.794,0.303],
    [0.5,0.741,0.251],
    [0.278,0.741,0.251],
    [0.222,0.582,0.0817],
    [0.389,0.582,0.0817],
    // 30 - 3F
    [0.611,0.689],
    [0.722,0.689],
    [0.611,0.689],
    [0.722,0.689],
    [0.778,0.794,0.303],
    [0.778,0.794,0.303],
    [0.778,0.706,0.206],
    [0.778,0.706,0.206],
    [1,0.367,-0.133],
    [1,0.367,-0.133],
    [1,0.367,-0.133],
    [1,0.367,-0.133],
    [1,0.367,-0.133],
    [1,0.367,-0.133],
    [0.778,0.582,0.0817],
    [0.778,0.582,0.0817],
    // 40 - 4F
    [0.556,0.689],
    [0.722,0.689],
    [0.667,0.689],
    [0.722,0.689],
    [0.722,0.689],
    [0.667,0.689],
    [0.611,0.689],
    [0.778,0.689],
    [0.778,0.689],
    [0.389,0.689],
    [0.5,0.689,0.167],
    [0.778,0.689],
    [0.667,0.689],
    [0.944,0.689],
    [0.722,0.689],
    [0.778,0.689,0.167],
    // 50 - 5F
    [0.611,0.689],
    [0.778,0.689,0.167],
    [0.722,0.689],
    [0.556,0.689],
    [0.667,0.689],
    [0.722,0.689],
    [0.722,0.689],
    [1,0.689],
    [0.722,0.689],
    [0.722,0.689],
    [0.667,0.689],
    [1.89,0.825,0,{n: 92}],
    [2.33,0.825],
    [1.89,0.825,0,{n: 94}],
    [2.33,0.9],
    [0,0,0],
    // 60 - 6F
    [0.556,0.689],
    [0.639,0.689],
    [0,0,0],
    [0,0,0],
    [0,0,0],
    [0,0,0],
    [0.722,0.689],
    [0.556,0.689],
    [0.778,0.464,-0.0363],
    [0.667,0.689],
    [0.444,0.689],
    [0.667,0.689],
    [0.778,0.539,0.0391],
    [0.778,0.539,0.0391],
    [0.778,0.582,0.0817],
    [0.778,0.582,0.0817],
    // 70 - 7F
    [0.222,0.582,0.0817],
    [0.389,0.582,0.0817],
    [0.778,0.582,0.0817],
    [0.778,0.367,-0.133],
    [0.778,0.483,-0.0169],
    [0.778,0.582,0.0817],
    [0.778,0.757,0.262],
    [0.778,0.757,0.262],
    [1,0.431],
    [1,0.431],
    [0.778,0.582,0.0817],
    [0.667,0.431,0,{ic: 0.0403}],
    [0.556,0.689],
    [0.54,0.689],
    [0.54,0.689],
    [0.429,0.431]
  ]

});
jsMath.Setup.EncodeFont('msbm10');

jsMath.Font.Register({
  name: 'msbm10',
  prefix: 'jsMath-',
  // The test used to see if font is available
  test: jsMath.Font.Test1, testChar: 0x5C, testFactor: 2,
  // Can add style, styles, macros here
  tex: function (font,fam) {
    // do browser-specific adjustments here
  },
  fallback: function (font,fam) {
    // set up unicode font here, e.g.
    //    jsMath.Update.TeXfonts({
    //      msbm10: {
    //         '0': {c: '&#x221B;'},  // use code point U221B for character 0
    //        '10': {c: '&#x210C;'}   // use code point U210C for character 10
    //      }
    //    });
  }
});
