defaultFontFamilies.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.platformToFontFamilies = void 0;
  6. /**
  7. * Copyright (c) Microsoft Corporation.
  8. *
  9. * Licensed under the Apache License, Version 2.0 (the "License");
  10. * you may not use this file except in compliance with the License.
  11. * You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing, software
  16. * distributed under the License is distributed on an "AS IS" BASIS,
  17. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. * See the License for the specific language governing permissions and
  19. * limitations under the License.
  20. */
  21. // DO NOT EDIT: this map is generated from Chromium source code by utils/generate_chromium_default_font_families.js
  22. const platformToFontFamilies = exports.platformToFontFamilies = {
  23. 'linux': {
  24. 'fontFamilies': {
  25. 'standard': 'Times New Roman',
  26. 'fixed': 'Monospace',
  27. 'serif': 'Times New Roman',
  28. 'sansSerif': 'Arial',
  29. 'cursive': 'Comic Sans MS',
  30. 'fantasy': 'Impact'
  31. }
  32. },
  33. 'mac': {
  34. 'fontFamilies': {
  35. 'standard': 'Times',
  36. 'fixed': 'Courier',
  37. 'serif': 'Times',
  38. 'sansSerif': 'Helvetica',
  39. 'cursive': 'Apple Chancery',
  40. 'fantasy': 'Papyrus'
  41. },
  42. 'forScripts': [{
  43. 'script': 'jpan',
  44. 'fontFamilies': {
  45. 'standard': 'Hiragino Kaku Gothic ProN',
  46. 'fixed': 'Osaka-Mono',
  47. 'serif': 'Hiragino Mincho ProN',
  48. 'sansSerif': 'Hiragino Kaku Gothic ProN'
  49. }
  50. }, {
  51. 'script': 'hang',
  52. 'fontFamilies': {
  53. 'standard': 'Apple SD Gothic Neo',
  54. 'serif': 'AppleMyungjo',
  55. 'sansSerif': 'Apple SD Gothic Neo'
  56. }
  57. }, {
  58. 'script': 'hans',
  59. 'fontFamilies': {
  60. 'standard': ',PingFang SC,STHeiti',
  61. 'serif': 'Songti SC',
  62. 'sansSerif': ',PingFang SC,STHeiti',
  63. 'cursive': 'Kaiti SC'
  64. }
  65. }, {
  66. 'script': 'hant',
  67. 'fontFamilies': {
  68. 'standard': ',PingFang TC,Heiti TC',
  69. 'serif': 'Songti TC',
  70. 'sansSerif': ',PingFang TC,Heiti TC',
  71. 'cursive': 'Kaiti TC'
  72. }
  73. }]
  74. },
  75. 'win': {
  76. 'fontFamilies': {
  77. 'standard': 'Times New Roman',
  78. 'fixed': 'Consolas',
  79. 'serif': 'Times New Roman',
  80. 'sansSerif': 'Arial',
  81. 'cursive': 'Comic Sans MS',
  82. 'fantasy': 'Impact'
  83. },
  84. 'forScripts': [{
  85. 'script': 'cyrl',
  86. 'fontFamilies': {
  87. 'standard': 'Times New Roman',
  88. 'fixed': 'Courier New',
  89. 'serif': 'Times New Roman',
  90. 'sansSerif': 'Arial'
  91. }
  92. }, {
  93. 'script': 'arab',
  94. 'fontFamilies': {
  95. 'fixed': 'Courier New',
  96. 'sansSerif': 'Segoe UI'
  97. }
  98. }, {
  99. 'script': 'grek',
  100. 'fontFamilies': {
  101. 'standard': 'Times New Roman',
  102. 'fixed': 'Courier New',
  103. 'serif': 'Times New Roman',
  104. 'sansSerif': 'Arial'
  105. }
  106. }, {
  107. 'script': 'jpan',
  108. 'fontFamilies': {
  109. 'standard': ',Meiryo,Yu Gothic',
  110. 'fixed': 'MS Gothic',
  111. 'serif': ',Yu Mincho,MS PMincho',
  112. 'sansSerif': ',Meiryo,Yu Gothic'
  113. }
  114. }, {
  115. 'script': 'hang',
  116. 'fontFamilies': {
  117. 'standard': 'Malgun Gothic',
  118. 'fixed': 'Gulimche',
  119. 'serif': 'Batang',
  120. 'sansSerif': 'Malgun Gothic',
  121. 'cursive': 'Gungsuh'
  122. }
  123. }, {
  124. 'script': 'hans',
  125. 'fontFamilies': {
  126. 'standard': 'Microsoft YaHei',
  127. 'fixed': 'NSimsun',
  128. 'serif': 'Simsun',
  129. 'sansSerif': 'Microsoft YaHei',
  130. 'cursive': 'KaiTi'
  131. }
  132. }, {
  133. 'script': 'hant',
  134. 'fontFamilies': {
  135. 'standard': 'Microsoft JhengHei',
  136. 'fixed': 'MingLiU',
  137. 'serif': 'PMingLiU',
  138. 'sansSerif': 'Microsoft JhengHei',
  139. 'cursive': 'DFKai-SB'
  140. }
  141. }]
  142. }
  143. };