优化字体

This commit is contained in:
RimuruChan 2022-02-09 11:50:47 +08:00
parent 770a4f749d
commit f2cd8bf6d6
No known key found for this signature in database
GPG Key ID: F6E1836BEE44BC49
7 changed files with 6 additions and 20 deletions

3
.gitignore vendored
View File

@ -114,3 +114,6 @@ dist
# TernJS port file
.tern-port
workspace.code-workspace
# IntelliJ IDEA project files
/.idea/*

View File

@ -10,6 +10,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="description" content="MCSManager Panel" />
<link rel="icon" href="favicon.ico" />
<link rel="preload" as="font" href="./static/FiraCode-Regular.ttf" type="font/ttf" crossorigin="anonymous">
<link rel="stylesheet" href="./static/fonts.css">
<title>控制面板 | MCSManager</title>
</head>

View File

@ -33,7 +33,6 @@ import "../assets/css/common.css";
import "../assets/css/tools.css";
import "../assets/css/responsive.css";
import "../assets/css/action.css";
import "../assets/css/fonts.css";
import App from "./App.vue";
import "./service/protocol";

View File

@ -55,7 +55,7 @@ export function initTerminalWindow(elem, fontSize = 14) {
cursorStyle: "underline",
cursorBlink: true,
fontSize: fontSize,
fontFamily: "'Fira Code', monospace",
fontFamily: "Fira Code",
theme: {
background: "#1e1e1e"
}

View File

@ -1,18 +0,0 @@
/* latin-ext */
@font-face {
font-family: 'Fira Code';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(../fonts/fira_code_latin_ext.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Fira Code';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(../fonts/fira_code_latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}