File size: 4,607 Bytes
676a3be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>VvvebJs - 本地字体替代方案</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>

        /* 本地字体系统 - 替代 Google Fonts */

        .font-system {

            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

        }

        

        .font-serif {

            font-family: Georgia, "Times New Roman", Times, serif;

        }

        

        .font-mono {

            font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;

        }

        

        .font-display {

            font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

            font-weight: 600;

        }

    </style>
</head>
<body>
    <div class="container mt-5">
        <div class="row">
            <div class="col-md-8 mx-auto">
                <h1 class="mb-4 font-display">🎨 VvvebJs 本地字体方案</h1>
                
                <div class="alert alert-info">
                    <h5>✅ 问题已解决</h5>
                    <p>Google 字体插件已被禁用,编辑器现在使用系统默认字体,避免了网络加载问题。</p>
                </div>

                <div class="card mb-4">
                    <div class="card-header">
                        <h3>📝 可用字体系统</h3>
                    </div>
                    <div class="card-body">
                        <div class="mb-3">
                            <h5 class="font-system">系统字体 (System Font)</h5>
                            <p class="font-system">这是默认的系统字体,适用于大部分内容。在不同操作系统上会显示为最适合的字体。</p>
                        </div>
                        
                        <div class="mb-3">
                            <h5 class="font-serif">衬线字体 (Serif Font)</h5>
                            <p class="font-serif">适用于正式文档和传统风格的内容,提供更好的可读性。</p>
                        </div>
                        
                        <div class="mb-3">
                            <h5 class="font-mono">等宽字体 (Monospace Font)</h5>
                            <p class="font-mono">适用于代码显示和需要对齐的内容。</p>
                        </div>
                        
                        <div class="mb-3">
                            <h5 class="font-display">标题字体 (Display Font)</h5>
                            <p class="font-display">适用于标题和重要内容的显示。</p>
                        </div>
                    </div>
                </div>

                <div class="card mb-4">
                    <div class="card-header">
                        <h3>🔧 技术说明</h3>
                    </div>
                    <div class="card-body">
                        <ul>
                            <li><strong>禁用了 Google 字体插件</strong> - 避免网络加载问题</li>
                            <li><strong>使用系统字体栈</strong> - 确保在所有环境下都能正常显示</li>
                            <li><strong>保持编辑器功能</strong> - 所有其他功能正常工作</li>
                            <li><strong>提高加载速度</strong> - 无需等待外部字体资源</li>
                        </ul>
                    </div>
                </div>

                <div class="card">
                    <div class="card-header">
                        <h3>🚀 继续使用编辑器</h3>
                    </div>
                    <div class="card-body text-center">
                        <p>Google 字体加载问题已解决,您可以正常使用编辑器了。</p>
                        <div class="mt-3">
                            <a href="editor.html" class="btn btn-primary btn-lg">
                                🎨 返回编辑器
                            </a>
                            <a href="config.php" class="btn btn-secondary">
                                ⚙️ 查看配置
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>