Caligraphic-Bold.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/CommonHTML/fonts/TeX/Caligraphic-Bold.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_Caligraphic-Bold';
  22. CHTML.FONTDATA.FONTS[font] = {
  23. className: CHTML.FONTDATA.familyName(font),
  24. centerline: 315, ascent: 840, descent: 211,
  25. weight: 'bold',
  26. skew: {
  27. 0x41: 0.224,
  28. 0x42: 0.16,
  29. 0x43: 0.16,
  30. 0x44: 0.0958,
  31. 0x45: 0.128,
  32. 0x46: 0.128,
  33. 0x47: 0.128,
  34. 0x48: 0.128,
  35. 0x49: 0.0319,
  36. 0x4A: 0.192,
  37. 0x4B: 0.0639,
  38. 0x4C: 0.16,
  39. 0x4D: 0.16,
  40. 0x4E: 0.0958,
  41. 0x4F: 0.128,
  42. 0x50: 0.0958,
  43. 0x51: 0.128,
  44. 0x52: 0.0958,
  45. 0x53: 0.16,
  46. 0x54: 0.0319,
  47. 0x55: 0.0958,
  48. 0x56: 0.0319,
  49. 0x57: 0.0958,
  50. 0x58: 0.16,
  51. 0x59: 0.0958,
  52. 0x5A: 0.16
  53. },
  54. 0x20: [0,0,250,0,0], // SPACE
  55. 0x30: [460,17,575,46,528], // DIGIT ZERO
  56. 0x31: [461,0,575,80,494], // DIGIT ONE
  57. 0x32: [460,0,575,51,517], // DIGIT TWO
  58. 0x33: [461,211,575,48,525], // DIGIT THREE
  59. 0x34: [469,194,575,32,542], // DIGIT FOUR
  60. 0x35: [461,211,575,57,517], // DIGIT FIVE
  61. 0x36: [660,17,575,48,526], // DIGIT SIX
  62. 0x37: [476,211,575,64,558], // DIGIT SEVEN
  63. 0x38: [661,17,575,48,526], // DIGIT EIGHT
  64. 0x39: [461,210,575,48,526], // DIGIT NINE
  65. 0x41: [751,49,921,39,989], // LATIN CAPITAL LETTER A
  66. 0x42: [705,17,748,40,740], // LATIN CAPITAL LETTER B
  67. 0x43: [703,20,613,20,599], // LATIN CAPITAL LETTER C
  68. 0x44: [686,0,892,20,885], // LATIN CAPITAL LETTER D
  69. 0x45: [703,16,607,37,627], // LATIN CAPITAL LETTER E
  70. 0x46: [686,30,814,17,930], // LATIN CAPITAL LETTER F
  71. 0x47: [703,113,682,50,671], // LATIN CAPITAL LETTER G
  72. 0x48: [686,48,987,20,946], // LATIN CAPITAL LETTER H
  73. 0x49: [686,0,642,-27,746], // LATIN CAPITAL LETTER I
  74. 0x4A: [686,114,779,53,937], // LATIN CAPITAL LETTER J
  75. 0x4B: [703,17,871,40,834], // LATIN CAPITAL LETTER K
  76. 0x4C: [703,17,788,41,751], // LATIN CAPITAL LETTER L
  77. 0x4D: [703,49,1378,38,1353], // LATIN CAPITAL LETTER M
  78. 0x4E: [840,49,937,-24,1105], // LATIN CAPITAL LETTER N
  79. 0x4F: [703,17,906,63,882], // LATIN CAPITAL LETTER O
  80. 0x50: [686,67,810,20,846], // LATIN CAPITAL LETTER P
  81. 0x51: [703,146,939,120,905], // LATIN CAPITAL LETTER Q
  82. 0x52: [686,17,990,20,981], // LATIN CAPITAL LETTER R
  83. 0x53: [703,16,696,25,721], // LATIN CAPITAL LETTER S
  84. 0x54: [720,69,644,38,947], // LATIN CAPITAL LETTER T
  85. 0x55: [686,24,715,-10,771], // LATIN CAPITAL LETTER U
  86. 0x56: [686,77,737,25,774], // LATIN CAPITAL LETTER V
  87. 0x57: [686,77,1169,25,1206], // LATIN CAPITAL LETTER W
  88. 0x58: [686,-1,817,56,906], // LATIN CAPITAL LETTER X
  89. 0x59: [686,164,759,36,797], // LATIN CAPITAL LETTER Y
  90. 0x5A: [686,0,818,46,853], // LATIN CAPITAL LETTER Z
  91. 0xA0: [0,0,250,0,0] // NO-BREAK SPACE
  92. };
  93. CHTML.fontLoaded("TeX/"+font.substr(8));
  94. })(MathJax.OutputJax.CommonHTML);