-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
95 additions
and
23 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,49 @@ | ||
export const builtinFontsMap: { [name: string]: string } = { | ||
"REEJI Taiko Magic": "font/REEJI-TaikoMagicGB-Flash_Regular.json", | ||
// "REEJI Taiko Magic": "font/REEJI-TaikoMagicGB-Flash_Regular.json", | ||
"汉仪力量黑(简)": "font/HYLiLiangHeiJ_Regular.json", | ||
"Minecraft Ten": "font/Minecraft_Ten_Regular.json", | ||
"Fusion Pixel 8px": "font/Fusion_Pixel_8px_Proportional_zh_hans_Regular.json", | ||
"Fusion Pixel 10px": "font/Fusion_Pixel_10px_Proportional_zh_hans_Regular.json", | ||
"得意黑": "font/Smiley_Sans_Oblique_Regular.json" | ||
}; | ||
|
||
export const builtinFontsTextureYOffset: { [name: string]: number } = { | ||
"REEJI Taiko Magic": 0.1, | ||
"汉仪力量黑(简)": 0.18, | ||
"Fusion Pixel 8px": 0.15, | ||
"Fusion Pixel 10px": 0.115, | ||
} | ||
|
||
export interface FontLicenceInfo { | ||
tagColor: string; | ||
tag: string; | ||
tagTooltip: string; | ||
} | ||
|
||
export const builtinFontsLicence: { [name: string]: FontLicenceInfo } = { | ||
"汉仪力量黑(简)": { | ||
tagColor: "orange", | ||
tag: "fontLicence.netease", | ||
tagTooltip: "fontLicence.neteaseTooltip", | ||
}, | ||
"Minecraft Ten": { | ||
tagColor: "success", | ||
tag: "fontLicence.sil", | ||
tagTooltip: "fontLicence.minecraftTenTooltip", | ||
}, | ||
"Fusion Pixel 8px": { | ||
tagColor: "success", | ||
tag: "fontLicence.sil", | ||
tagTooltip: "fontLicence.fusionPixelTooltip", | ||
}, | ||
"Fusion Pixel 10px": { | ||
tagColor: "success", | ||
tag: "fontLicence.sil", | ||
tagTooltip: "fontLicence.fusionPixelTooltip", | ||
}, | ||
"得意黑": { | ||
tagColor: "success", | ||
tag: "fontLicence.sil", | ||
tagTooltip: "fontLicence.smileyTooltip", | ||
} | ||
} |