User:CBM2/jsMath/fonts/msam10/def.js

/* * msam10/def.js * * This file loads the  font into jsMath. To do this use *  *      jsMath.Font.Load("msam10") * * after loading jsMath.js itself. The user will need to have * the msam10.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{msam10}{nn} to access * any character in the font. In addition, the \msam10 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,{

msam10: [ // 00 - 0F [0.778,0.675],   [0.778,0.675],    [0.778,0.675],    [0.778,0.675],    [0.778,0.675],    [0.278,0.55],    [0.667,0.692,0.111],    [0.667,0.692,0.111],    [0.778,0.582,0.082],    [0.778,0.582,0.082],    [1,0.522,0.0135],    [1,0.522,0.0135],    [0.778,0.675],    [0.722,0.692],    [0.889,0.692],    [0.611,0.692],    // 10 - 1F [1,0.522,0.0135],   [1,0.522,0.0135],    [1,0.675,0.181],    [1,0.675,0.181],    [0.833,0.692,0.194],    [0.833,0.692,0.194],    [0.417,0.692,0.194],    [0.417,0.692,0.194],    [0.417,0.692,0.194],    [0.417,0.692,0.194],    [1.11,0.522,0.0135],    [1.11,0.522,0.0135],    [1,0.675,0.181],    [1,0.675,0.181],    [0.5,0.692],    [0.5,0.692],    // 20 - 2F [1,0.378,-0.133],   [1.39,0.378,-0.133],    [1,0.55],    [1,0.55],    [0.778,0.73,0.23],    [0.778,0.73,0.23],    [0.778,0.73,0.23],    [0.778,0.756,0.256],    [1.11,0.55],    [0.667,0.692],    [0.667,0.692],    [0.778,0.582,0.082],    [0.778,0.917,0.082],    [0.778,0.73,0.23],    [0.778,0.73,0.23],    [0.778,0.756,0.256],    // 30 - 3F [0.778,0.637,0.137],   [0.778,0.637,0.137],    [0.778,0.637,0.137],    [0.778,0.637,0.137],    [0.778,0.637,0.137],    [0.778,0.756,0.256],    [0.778,0.637,0.137],    [0.778,0.675,0.181],    [0.275,0.55],    [0.5,0.464,-0.036],    [0.778,0.582,0.082],    [0.778,0.582,0.082],    [0.778,0.637,0.137],    [0.778,0.756,0.256],    [0.778,0.637,0.137],    [0.778,0.675,0.181],    // 40 - 4F [0.778,0.55,0.0352],   [0.778,0.55,0.0352],    [0.778,0.55,0.0352],    [0.778,0.55,0.0352],    [0.778,0.637,0.137],    [0.778,0.637,0.137],    [0.944,0.692,0.194],    [0.5,0.756,0.256],    [0.722,0.55],    [0.778,0.55,0.0352],    [0.778,0.55,0.0352],    [0.5,0.464,-0.036],    [0.5,0.464,-0.036],    [0.722,0.55],    [0.722,0.55],    [0.722,0.55],    // 50 - 5F [0.778,0.692],   [0.778,0.886,0.386],    [0.778,0.886,0.386],    [0.778,0.983,0.483],    [0.778,0.983,0.483],    [0.75,0.675,0,{ic: 0.025}], [1,0.637,0.137],   [1,0.637,0.137],    [0.833,0.692],    [0.611,0.692,0.194],    [0.611,0.692,0.194],    [0.611,0.756,0.194],    [0.722,0.692],    [0.722,0.692],    [0.722,0.522,0.0352],    [0.778,0.692],    // 60 - 6F [0.778,0.692,0.194],   [0.778,0.692,0.194],    [0.778,0.55,0.0352],    [0.778,0.55,0.0352],    [0.667,0.55],    [0.667,0.55],    [0.76,0.55],    [0.76,0.55],    [0.778,0.692],    [0.778,0.692],    [0.778,0.756,0.256],    [0.778,0.756,0.256],    [0.778,0.55,0.0606],    [0.778,0.55,0.0606],    [1.33,0.55,0.0352],    [1.33,0.55,0.0352],    // 70 - 7F [0.5,0.692],   [0.5,0.692],    [0.947,0.692,0.156],    [0.902,0.692,0.156],    [0.667,0.692],    [0.778,0.692,0.082],    [0.778,0.378,-0.133],    [0.778,0.464,-0.036],    [0.5,0.378],    [0.5,0.378],    [0.833,0.692],    [0.5,0.825],    [0.556,0.431,0.194],    [0.778,0.582,0.082],    [0.778,0.582,0.082],    [0.778,0.582,0.082]  ]

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

jsMath.Font.Register({ name: 'msam10',  prefix: 'jsMath-',  // The test used to see if font is available  test: jsMath.Font.Test1, testChar: 0x27, testFactor: 2,  // Can add style, styles, macros here  tex: function (font,fam) {    // do browser-specific adjustments here  },  fallback: function (font,fam) {    jsMath.Update.TeXfontCodes({ msam10: [ '&#x22A1;', '&#x229E;', '&#x22A0;', '&#x25FB;', '&#x25FC;', '&#x25AA;', '&#x25C7;', '&#x25C6;', '&#x21BB;', '&#x21BA;', '&#x21CC;', '&#x21CB;', '&#x229F;', '&#x22A9;', '&#x22AA;', '&#x22A8;',

'&#x21A0;', '&#x219E;', '&#x21C7;', '&#x21C9;', '&#x21C8;', '&#x21CA;', '&#x21BE;', '&#x21C2;', '&#x21BF;', '&#x21C3;', '&#x21A3;', '&#x21A2;', '&#x21C6;', '&#x21C4;', '&#x21B0;', '&#x21B1;',

'&#x21DD;', '&#x21AD;', '&#x21AB;', '&#x21AC;', '&#x2257;', '&#x227F;', '&#x2273;', '&#x28A6;', '&#x22B8;', '&#x2234;', '&#x2235;', '&#x2251;', '&#x225C;', '&#x227E;', '&#x2272;', '&#x2A85;', '&#x22DC;', '&#x22DD;', '&#x22DE;', '&#x22DF;', '&#x227C;', '&#x2266;', '&#x2264;', '&#x2276;', '&#x2035;', '&#x2212;', '&#x2253;', '&#x2252;', '&#x227D;', '&#x2267;', '&#x2265;', '&#x2277;', '&#x228F;', '&#x2290;', '&#x22B3;', '&#x22B2;', '&#x22B5;', '&#x22B4;', '&#x22C6;', '&#x226C;', '&#x25BE;', '&#x25B8;', '&#x25C2;', '&#xFFEB;', '&#xFFE9;', '&#x25B5;', '&#x25B4;', '&#x25BF;', '&#x2256;', '&#x2ADA;', '&#x2ADB;', '&#x2A8B;', '&#x2A8B;', '&#x00A5;', '&#x21DB;', '&#x21DA;', '&#x2713;', '&#x22BB;', '&#x22BC;', '&#x2306;', '&#x2220;', '&#x2221;', '&#x2222;', '&#x221D;', '&#x2323;', '&#x2322;', '&#x22D0;', '&#x22D1;', '&#x22D3;', '&#x22D2;', '&#x22CF;', '&#x22CE;', '&#x22CB;', '&#x22CC;', '&#x2AC5;', '&#x2AC6;', '&#x224F;', '&#x224E;', '&#x22D8;', '&#x22D9;', '&#x250C;', '&#x2510;', '&#x24C7;', '&#x24C8;', '&#x22D4;', '&#x2214;', '&#x223D;', '&#x22CD;', '&#x2514;', '&#x2518;', '&#x2720;', '&#x2201;', '&#x22BA;', '&#x229A;', '&#x229B;', '&#x229D;' ]   });  } });