feat(font): use the full Noto Sans SC font and enlarge the disk
- FontDemo points at /FONTS/FONT.TTF - build.py installs NotoSansSC-6.ttf as disk/fonts/font.ttf - grow disk.img from 64 MiB to 256 MiB
This commit is contained in:
1 parent
e6e5763ded
commit
faab22c40e
3 files changed
+11
-2
No files matched your search
@@ -6,7 +6,7 @@ import vpsdk.fonttools.fonttools as fonttools
|
||||
import string
|
||||
from stdint import *
|
||||
|
||||
define FONT_PATH = "/FONTS/DEMO.TTF"
|
||||
define FONT_PATH = "/FONTS/FONT.TTF"
|
||||
define WIN_X = 1000
|
||||
define WIN_Y = 500
|
||||
define WIN_W = 720
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ $DISK_IMG = Join-Path $PROJECT_DIR "disk.img"
|
||||
$DISK_DIR = Join-Path $PROJECT_DIR "disk"
|
||||
$MOUNT_LETTER = "Z:"
|
||||
|
||||
$IMAGE_SIZE = 64 * 1024 * 1024
|
||||
$IMAGE_SIZE = 256 * 1024 * 1024
|
||||
|
||||
Write-Host "=== Creating disk image ===" -ForegroundColor Cyan
|
||||
|
||||
|
||||
@@ -89,6 +89,14 @@ def CopyBrotliDict():
|
||||
shutil.copy(src, "./disk/libs/brotli.dict")
|
||||
|
||||
|
||||
def CopyFonts():
|
||||
"""Install the full Source Han Sans / Noto Sans SC font for FontDemo."""
|
||||
os.makedirs("./disk/fonts", exist_ok=True)
|
||||
src = "NotoSansSC/NotoSansSC-6.ttf"
|
||||
if os.path.exists(src):
|
||||
shutil.copy(src, "./disk/fonts/font.ttf")
|
||||
|
||||
|
||||
def BuildLibs():
|
||||
"""编译 Libs/ 下的动态库(应用运行期经 LOAD_SO 加载)。"""
|
||||
os.makedirs("./disk/libs", exist_ok=True)
|
||||
@@ -244,6 +252,7 @@ else:
|
||||
print("[build] 跳过内核编译(--app 或 --nokernel)")
|
||||
BuildApps()
|
||||
BuildBootloader()
|
||||
CopyFonts()
|
||||
BuildDisk()
|
||||
|
||||
RunQemu()
|
||||
Reference in new issue
Block a user