mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-06-01 23:38:48 +02:00
feat: font copyright
This commit is contained in:
Binary file not shown.
+1
-9
@@ -16,20 +16,12 @@
|
||||
|
||||
@font-face {
|
||||
font-family: "MiSans";
|
||||
src: url("/fonts/MiSans-VF.ttf") format("truetype");
|
||||
src: url("/fonts/MiSans-Normal.ttf") format("truetype");
|
||||
font-weight: 100 900;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Microsoft YaHei Local";
|
||||
src: url("/fonts/%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91.ttf") format("truetype");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Noto Sans SC";
|
||||
src: url("/fonts/NotoSansSC.ttf") format("truetype");
|
||||
|
||||
@@ -306,6 +306,9 @@ export function SidePanel() {
|
||||
))}
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<p className="text-xs leading-5 text-muted-foreground">
|
||||
{t("typography.font.note")}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* 行高选择 */}
|
||||
|
||||
@@ -331,9 +331,9 @@
|
||||
"title": "Font",
|
||||
"alibaba": "Alibaba PuHuiTi",
|
||||
"misans": "MiSans",
|
||||
"msyahei": "Microsoft YaHei",
|
||||
"notosanssc": "Noto Sans SC",
|
||||
"sourcehanserifsc": "Source Han Serif SC"
|
||||
"sourcehanserifsc": "Source Han Serif SC",
|
||||
"note": "MiSans is used under its free commercial license. Keep MiSans attribution when distributing this project."
|
||||
},
|
||||
"lineHeight": {
|
||||
"title": "Line Height",
|
||||
|
||||
@@ -291,9 +291,9 @@
|
||||
"title": "字体",
|
||||
"alibaba": "阿里巴巴普惠体",
|
||||
"misans": "MiSans",
|
||||
"msyahei": "微软雅黑",
|
||||
"notosanssc": "Noto Sans SC",
|
||||
"sourcehanserifsc": "思源宋体"
|
||||
"sourcehanserifsc": "思源宋体",
|
||||
"note": "MiSans 依据其许可免费商用;使用本项目时请保留 MiSans 字体说明。"
|
||||
},
|
||||
"lineHeight": {
|
||||
"title": "行高",
|
||||
|
||||
+5
-20
@@ -42,11 +42,14 @@ const FONT_DEFINITIONS: FontDefinition[] = [
|
||||
},
|
||||
{
|
||||
labelKey: "misans",
|
||||
value: "\"MiSans\", \"Microsoft YaHei\", \"微软雅黑\", sans-serif",
|
||||
value: "\"MiSans\", sans-serif",
|
||||
aliases: [
|
||||
"\"MiSans\", \"Microsoft YaHei\", \"微软雅黑\", sans-serif",
|
||||
"\"Microsoft YaHei\", \"微软雅黑\", sans-serif",
|
||||
"\"Microsoft YaHei Local\", \"Microsoft YaHei\", \"微软雅黑\", sans-serif",
|
||||
"\"MiSans\", sans-serif",
|
||||
"MiSans, sans-serif"
|
||||
"MiSans, sans-serif",
|
||||
"Microsoft YaHei, sans-serif"
|
||||
],
|
||||
sources: [
|
||||
{
|
||||
@@ -58,24 +61,6 @@ const FONT_DEFINITIONS: FontDefinition[] = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
labelKey: "msyahei",
|
||||
value: "\"Microsoft YaHei Local\", \"Microsoft YaHei\", \"微软雅黑\", sans-serif",
|
||||
aliases: [
|
||||
"\"Microsoft YaHei\", \"微软雅黑\", sans-serif",
|
||||
"\"Microsoft YaHei Local\", \"Microsoft YaHei\", \"微软雅黑\", sans-serif",
|
||||
"Microsoft YaHei, sans-serif"
|
||||
],
|
||||
sources: [
|
||||
{
|
||||
family: "Microsoft YaHei Local",
|
||||
url: "/fonts/%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91.ttf",
|
||||
format: "truetype",
|
||||
weight: "400",
|
||||
style: "normal"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
labelKey: "notosanssc",
|
||||
value: "\"Noto Sans SC\", \"Noto Sans CJK SC\", sans-serif",
|
||||
|
||||
Reference in New Issue
Block a user