Script-Regular.js 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/CommonHTML/fonts/TeX/Script-Regular.js
  4. *
  5. * Copyright (c) 2015-2017 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. (function (CHTML) {
  21. var font = 'MathJax_Script';
  22. CHTML.FONTDATA.FONTS[font] = {
  23. className: CHTML.FONTDATA.familyName(font),
  24. centerline: 211, ascent: 735, descent: 314,
  25. skew: {
  26. 0x41: 0.389,
  27. 0x42: 0.194,
  28. 0x43: 0.278,
  29. 0x44: 0.111,
  30. 0x45: 0.139,
  31. 0x46: 0.222,
  32. 0x47: 0.25,
  33. 0x48: 0.333,
  34. 0x49: 0.333,
  35. 0x4A: 0.417,
  36. 0x4B: 0.361,
  37. 0x4C: 0.306,
  38. 0x4D: 0.444,
  39. 0x4E: 0.389,
  40. 0x4F: 0.167,
  41. 0x50: 0.222,
  42. 0x51: 0.278,
  43. 0x52: 0.194,
  44. 0x53: 0.333,
  45. 0x54: 0.222,
  46. 0x55: 0.25,
  47. 0x56: 0.222,
  48. 0x57: 0.25,
  49. 0x58: 0.278,
  50. 0x59: 0.194,
  51. 0x5A: 0.306
  52. },
  53. 0x20: [0,0,250,0,0], // SPACE
  54. 0x41: [717,8,803,35,1016], // LATIN CAPITAL LETTER A
  55. 0x42: [708,28,908,31,928], // LATIN CAPITAL LETTER B
  56. 0x43: [728,26,666,26,819], // LATIN CAPITAL LETTER C
  57. 0x44: [708,31,774,68,855], // LATIN CAPITAL LETTER D
  58. 0x45: [707,8,562,46,718], // LATIN CAPITAL LETTER E
  59. 0x46: [735,36,895,39,990], // LATIN CAPITAL LETTER F
  60. 0x47: [717,37,610,12,738], // LATIN CAPITAL LETTER G
  61. 0x48: [717,36,969,29,1241], // LATIN CAPITAL LETTER H
  62. 0x49: [717,17,809,59,946], // LATIN CAPITAL LETTER I
  63. 0x4A: [717,314,1052,92,1133], // LATIN CAPITAL LETTER J
  64. 0x4B: [717,37,914,29,1204], // LATIN CAPITAL LETTER K
  65. 0x4C: [717,17,874,14,1035], // LATIN CAPITAL LETTER L
  66. 0x4D: [721,50,1080,30,1216], // LATIN CAPITAL LETTER M
  67. 0x4E: [726,36,902,29,1208], // LATIN CAPITAL LETTER N
  68. 0x4F: [707,8,738,96,805], // LATIN CAPITAL LETTER O
  69. 0x50: [716,37,1013,90,1031], // LATIN CAPITAL LETTER P
  70. 0x51: [717,17,883,54,885], // LATIN CAPITAL LETTER Q
  71. 0x52: [717,17,850,-2,887], // LATIN CAPITAL LETTER R
  72. 0x53: [708,36,868,29,1016], // LATIN CAPITAL LETTER S
  73. 0x54: [735,37,747,92,996], // LATIN CAPITAL LETTER T
  74. 0x55: [717,17,800,55,960], // LATIN CAPITAL LETTER U
  75. 0x56: [717,17,622,56,850], // LATIN CAPITAL LETTER V
  76. 0x57: [717,17,805,46,1026], // LATIN CAPITAL LETTER W
  77. 0x58: [717,17,944,103,1131], // LATIN CAPITAL LETTER X
  78. 0x59: [716,17,710,57,959], // LATIN CAPITAL LETTER Y
  79. 0x5A: [717,16,821,83,1032], // LATIN CAPITAL LETTER Z
  80. 0xA0: [0,0,250,0,0] // NO-BREAK SPACE
  81. };
  82. CHTML.fontLoaded("TeX/"+font.substr(8));
  83. })(MathJax.OutputJax.CommonHTML);