Main.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/Main.js
  4. *
  5. * Copyright (c) 2009-2019 The MathJax Consortium
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. */
  20. MathJax.OutputJax['HTML-CSS'].FONTDATA.FONTS['STIXNonUnicode'] = {
  21. directory: 'NonUnicode/Regular',
  22. family: 'STIXNonUnicode',
  23. Ranges: [
  24. [0x20,0x20,"All"],
  25. [0xA0,0xA0,"All"],
  26. [0xE000,0xF8FF,"PrivateUse"]
  27. ],
  28. 0xE000: [610,25,1184,829,895], // stix-radical symbol vertical extender
  29. 0xE001: [667,-41,1184,829,1211], // stix-radical symbol top corner piece
  30. 0xE138: [634,-584,480,-10,490], // stix-horizontal extender for multiple character over accent arrows, harpoons, line
  31. 0xE139: [-127,177,480,-10,490], // stix-horizontal extender for multiple character under accent arrows, harpoons, line
  32. 0xE13B: [955,-512,897,-25,908], // stix-left end of extensible overbrace (CMEX10 x3A rotated 90deg)
  33. 0xE13C: [955,-512,897,-11,922], // stix-right end of extensible overbrace (CMEX10 x38 rotated 90deg)
  34. 0xE13D: [182,261,897,-25,908], // stix-left end of extensible underbrace (CMEX10 x3B rotated 90deg)
  35. 0xE13E: [182,261,897,-11,922], // stix-right end of extensible underbrace (CMEX10 x39 rotated 90deg)
  36. 0xE140: [1218,-820,1844,-10,1854], // stix-center of extensible overbrace (CMEX10 x3C rotated 90deg)
  37. 0xE141: [-126,524,1844,-10,1854], // stix-center of extensible underbrace (CMEX10 x3D rotated 90deg)
  38. 0xE14A: [955,-820,633,-1,634], // stix-extensible horizontal for over paren or square bracket (CMEX10 x42 rotated 90deg)
  39. 0xE14B: [-126,261,633,-1,634], // stix-extensible horizontal for under paren or square bracket (CMEX10 x43 rotated 90deg)
  40. 0xE261: [422,10,523,41,481], // stix-old style digit 0
  41. 0xE265: [421,0,523,127,405], // stix-old style digit 1
  42. 0xE269: [421,0,523,68,455], // stix-old style digit 2
  43. 0xE26D: [424,198,523,47,463], // stix-old style digit 3
  44. 0xE271: [420,198,523,58,480], // stix-old style digit 4
  45. 0xE275: [421,198,523,66,457], // stix-old style digit 5
  46. 0xE279: [612,8,523,37,486], // stix-old style digit 6
  47. 0xE27D: [421,198,523,25,490], // stix-old style digit 7
  48. 0xE281: [606,12,523,47,477], // stix-old style digit 8
  49. 0xE285: [421,200,523,41,483], // stix-old style digit 9
  50. 0xE28F: [135,0,325,-1,326], // stix-short horizontal extender at baseline
  51. 0xE290: [135,0,633,-1,634] // stix-long horizontal extender at baseline
  52. };
  53. MathJax.OutputJax["HTML-CSS"].initFont("STIXNonUnicode");
  54. MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].fontDir + "/NonUnicode/Regular/Main.js");