PageSourceSearch

https://openmuseum.tw/auth-assets-7q2k9x4m/fonts.js

js openmuseum.tw collected 2026-10-02 10:30:40 UTC 4,063 bytes, 49 lines download raw bytes

1/* 字體登錄表 — 依「目前語系」只列該語系適用的字體,且依 OS 只列本機實際有的字型。
2   script: TC/SC/JP/KR/thai/latin;label 用該語系 native 名(精簡);stack 含 CJK+拉丁 fallback。
3   🔴 pre-auth 認證閘:只用使用者「本機既有」字型,CSP 維持 'self',絕不外連載字型(無 Google Fonts/開源網路字型)。 */
4window.__FONT_LANG_SCRIPTS__ = {
5  "zh-Hant": ["TC"], "zh-Hans": ["SC"], "ja": ["JP"], "ko": ["KR"], "th": ["thai"],
6  "en": ["latin"], "es": ["latin"], "fr": ["latin"], "de": ["latin"], "nl": ["latin"],
7  "pt": ["latin"], "ru": ["latin"], "vi": ["latin"], "id": ["latin"], "ms": ["latin"], "fil": ["latin"]
8};
9
10window.__FONTS__ = [
11  { id: "system", group: "sys" },
12
13  /* ===== 繁體中文 TC ===== */
14  { id: "jhenghei",     os: "win", script: "TC", label: "微軟正黑體", stack: '"Microsoft JhengHei UI","Microsoft JhengHei","Segoe UI",sans-serif' },
15  { id: "pmingliu",     os: "win", script: "TC", label: "新細明體(宋)", stack: '"PMingLiU","MingLiU",Georgia,serif' },
16  { id: "dfkai",        os: "win", script: "TC", label: "標楷體", stack: '"DFKai-SB","BiauKai","KaiTi",serif' },
17  { id: "pingfang",     os: "mac", script: "TC", label: "蘋方", stack: '"PingFang TC",-apple-system,sans-serif' },
18  { id: "songti",       os: "mac", script: "TC", label: "宋體", stack: '"Songti TC","STSong",Georgia,serif' },
19  { id: "heiti",        os: "mac", script: "TC", label: "黑體", stack: '"Heiti TC",-apple-system,sans-serif' },
20  { id: "kaiti",        os: "mac", script: "TC", label: "楷體", stack: '"Kaiti TC","STKaiti",serif' },
21
22  /* ===== 简体中文 SC ===== */
23  { id: "yahei",        os: "win", script: "SC", label: "微软雅黑", stack: '"Microsoft YaHei UI","Microsoft YaHei","Segoe UI",sans-serif' },
24  { id: "simsun",       os: "win", script: "SC", label: "宋体", stack: '"SimSun","NSimSun",Georgia,serif' },
25  { id: "pingfang-sc",  os: "mac", script: "SC", label: "苹方", stack: '"PingFang SC",-apple-system,sans-serif' },
26  { id: "songti-sc",    os: "mac", script: "SC", label: "宋体", stack: '"Songti SC","STSong",Georgia,serif' },
27
28  /* ===== 日本語 JP ===== */
29  { id: "yugothic",     os: "win", script: "JP", label: "游ゴシック", stack: '"Yu Gothic UI","Yu Gothic","Segoe UI",sans-serif' },
30  { id: "yumincho",     os: "win", script: "JP", label: "游明朝", stack: '"Yu Mincho","YuMincho","MS Mincho",serif' },
31  { id: "meiryo",       os: "win", script: "JP", label: "メイリオ", stack: '"Meiryo","MS PGothic",sans-serif' },
32  { id: "hiragino",     os: "mac", script: "JP", label: "ヒラギノ角ゴ", stack: '"Hiragino Sans","Hiragino Kaku Gothic ProN",-apple-system,sans-serif' },
33  { id: "hiraminc",     os: "mac", script: "JP", label: "ヒラギノ明朝", stack: '"Hiragino Mincho ProN",serif' },
34
35  /* ===== 한국어 KR ===== */
36  { id: "malgun",       os: "win", script: "KR", label: "맑은 고딕", stack: '"Malgun Gothic","Segoe UI",sans-serif' },
37  { id: "batang",       os: "win", script: "KR", label: "바탕", stack: '"Batang","Gulim",serif' },
38  { id: "applesd",      os: "mac", script: "KR", label: "애플 SD 산돌고딕", stack: '"Apple SD Gothic Neo","AppleGothic",-apple-system,sans-serif' },
39
40  /* ===== ไทย Thai ===== */
41  { id: "leelawadee",   os: "win", script: "thai", label: "Leelawadee UI", stack: '"Leelawadee UI","Segoe UI",sans-serif' },
42  { id: "thonburi",     os: "mac", script: "thai", label: "Thonburi", stack: '"Thonburi",-apple-system,sans-serif' },
43
44  /* ===== Latin(en/fr/de/es/…) ===== */
45  { id: "segoe",        os: "win", script: "latin", label: "Segoe UI", stack: '"Segoe UI",Tahoma,Arial,sans-serif' },
46  { id: "georgia-win",  os: "win", script: "latin", label: "Georgia", stack: 'Georgia,"Times New Roman",serif' },
47  { id: "sf",           os: "mac", script: "latin", label: "San Francisco", stack: '-apple-system,"SF Pro Text","Helvetica Neue",sans-serif' },
48  { id: "georgia-mac",  os: "mac", script: "latin", label: "Georgia", stack: 'Georgia,"Times New Roman",serif' }
49];

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.