BoxDrawing.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 available 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. MathJax.OutputJax["HTML-CSS"].defineImageData({
  27. "MathJax_AMS": {
  28. 0x250C: [ // BOX DRAWINGS LIGHT DOWN AND RIGHT
  29. [4,3,-2],[4,4,-2],[5,4,-3],[6,5,-3],[7,6,-4],[8,7,-5],[9,8,-6],[11,10,-7],
  30. [13,12,-8],[15,13,-10],[18,17,-11],[21,19,-14],[25,23,-16],[30,26,-20]
  31. ],
  32. 0x2510: [ // BOX DRAWINGS LIGHT DOWN AND LEFT
  33. [4,3,-2],[4,4,-2],[5,4,-3],[6,5,-3],[7,6,-4],[8,7,-5],[9,9,-5],[11,10,-7],
  34. [13,12,-8],[15,13,-10],[18,17,-11],[21,19,-14],[25,23,-16],[30,26,-20]
  35. ],
  36. 0x2514: [ // BOX DRAWINGS LIGHT UP AND RIGHT
  37. [4,3,0],[4,4,0],[5,4,0],[6,6,1],[7,6,1],[8,7,1],[9,8,1],[11,10,1],
  38. [13,11,1],[15,13,1],[18,16,1],[21,19,1],[25,23,2],[30,27,2]
  39. ],
  40. 0x2518: [ // BOX DRAWINGS LIGHT UP AND LEFT
  41. [4,4,1],[4,4,1],[5,5,1],[6,6,1],[7,6,1],[8,7,1],[9,8,1],[11,10,1],
  42. [13,11,1],[15,13,1],[18,16,1],[21,18,1],[25,23,2],[30,26,2]
  43. ],
  44. 0x2571: [ // BOX DRAWINGS LIGHT DIAGONAL UPPER RIGHT TO LOWER LEFT
  45. [6,7,2],[8,8,2],[9,9,2],[11,12,3],[12,13,3],[15,16,4],[17,18,4],[20,22,5],
  46. [24,26,6],[29,30,7],[34,36,8],[40,43,10],[48,50,11],[57,59,13]
  47. ],
  48. 0x2572: [ // BOX DRAWINGS LIGHT DIAGONAL UPPER LEFT TO LOWER RIGHT
  49. [6,7,2],[8,8,2],[9,9,2],[11,12,3],[12,13,3],[15,16,4],[17,18,4],[20,22,5],
  50. [24,26,6],[29,30,7],[34,36,8],[40,43,10],[48,50,11],[57,59,13]
  51. ]
  52. }
  53. });
  54. MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].imgDir+"/AMS/Regular"+
  55. MathJax.OutputJax["HTML-CSS"].imgPacked+"/BoxDrawing.js");