BoxDrawing.js (2521B)
1 /************************************************************* 2 * 3 * MathJax/fonts/HTML-CSS/TeX/png/AMS/Regular/BoxDrawing.js 4 * 5 * Defines the image size data needed for the HTML-CSS OutputJax 6 * to display mathematics using fallback images when the fonts 7 * are not availble to the client browser. 8 * 9 * --------------------------------------------------------------------- 10 * 11 * Copyright (c) 2009-2013 The MathJax Consortium 12 * 13 * Licensed under the Apache License, Version 2.0 (the "License"); 14 * you may not use this file except in compliance with the License. 15 * You may obtain a copy of the 16 * 17 * http://www.apache.org/licenses/LICENSE-2.0 18 * 19 * Unless required by applicable law or agreed to in writing, software 20 * distributed under the License is distributed on an "AS IS" BASIS, 21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 * See the License for the specific language governing permissions and 23 * limitations under the License. 24 * 25 */ 26 27 MathJax.OutputJax["HTML-CSS"].defineImageData({ 28 "MathJax_AMS": { 29 0x250C: [ // BOX DRAWINGS LIGHT DOWN AND RIGHT 30 [4,3,-2],[4,4,-2],[5,4,-3],[6,5,-3],[7,6,-4],[8,7,-5],[9,8,-6],[11,10,-7], 31 [13,12,-8],[15,13,-10],[18,17,-11],[21,19,-14],[25,23,-16],[30,26,-20] 32 ], 33 0x2510: [ // BOX DRAWINGS LIGHT DOWN AND LEFT 34 [4,3,-2],[4,4,-2],[5,4,-3],[6,5,-3],[7,6,-4],[8,7,-5],[9,9,-5],[11,10,-7], 35 [13,12,-8],[15,13,-10],[18,17,-11],[21,19,-14],[25,23,-16],[30,26,-20] 36 ], 37 0x2514: [ // BOX DRAWINGS LIGHT UP AND RIGHT 38 [4,3,0],[4,4,0],[5,4,0],[6,6,1],[7,6,1],[8,7,1],[9,8,1],[11,10,1], 39 [13,11,1],[15,13,1],[18,16,1],[21,19,1],[25,23,2],[30,27,2] 40 ], 41 0x2518: [ // BOX DRAWINGS LIGHT UP AND LEFT 42 [4,4,1],[4,4,1],[5,5,1],[6,6,1],[7,6,1],[8,7,1],[9,8,1],[11,10,1], 43 [13,11,1],[15,13,1],[18,16,1],[21,18,1],[25,23,2],[30,26,2] 44 ], 45 0x2571: [ // BOX DRAWINGS LIGHT DIAGONAL UPPER RIGHT TO LOWER LEFT 46 [6,7,2],[8,8,2],[9,9,2],[11,12,3],[12,13,3],[15,16,4],[17,18,4],[20,22,5], 47 [24,26,6],[29,30,7],[34,36,8],[40,43,10],[48,50,11],[57,59,13] 48 ], 49 0x2572: [ // BOX DRAWINGS LIGHT DIAGONAL UPPER LEFT TO LOWER RIGHT 50 [6,7,2],[8,8,2],[9,9,2],[11,12,3],[12,13,3],[15,16,4],[17,18,4],[20,22,5], 51 [24,26,6],[29,30,7],[34,36,8],[40,43,10],[48,50,11],[57,59,13] 52 ] 53 } 54 }); 55 56 MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].imgDir+"/AMS/Regular"+ 57 MathJax.OutputJax["HTML-CSS"].imgPacked+"/BoxDrawing.js");