www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Script-Regular.js (3197B)


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