diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index dc0880e..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,50 +0,0 @@ -name: Release Package & Attach - -on: - release: - types: [published] - -jobs: - upload-assets: - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - with: - lfs: true - - - name: Pull LFS objects - run: git lfs pull - - - name: Pack Template and Final Zip - id: pack - run: | - # 1. 先把内部 template 文件夹打成 zip - # 进入目录操作是为了避免 zip 包里包含冗余的路径层级 - cd template/template/ - zip -r -9 "../template.zip" . - cd ../../ - - # 2. 清理不需要的文件 - rm -f ./template/README.txt - - # 3. 准备最终 Release 包 - TAG_NAME="${{ github.event.release.tag_name }}" - FILENAME="FontMM-${TAG_NAME}-release.zip" - - # 打包外层,排除掉源码目录 template/template/,保留生成的 template/template.zip - zip -r -9 "$FILENAME" . -x "*.git*" ".github*" "template/template/*" - - echo "ZIP_PATH=$FILENAME" >> $GITHUB_ENV - - - name: Upload Release Asset - uses: softprops/action-gh-release@v2 - with: - # 显式指定 tag_name,直接从 release 事件对象里取 - tag_name: ${{ github.event.release.tag_name }} - files: ${{ env.ZIP_PATH }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/shell-check.yaml b/.github/workflows/shell-check.yaml deleted file mode 100755 index 67cc57d..0000000 --- a/.github/workflows/shell-check.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: ShellCheck - -on: - push: - branches: [ "main", "master" ] - pull_request: - branches: [ "main", "master" ] - workflow_dispatch: - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run ShellCheck - run: | - # 寻找当前目录下所有以 .sh 结尾的文件 - # 并通过 xargs 传给 shellcheck - # -r 参数防止没有文件时报错,-x 支持联动检查 - find . -name "*.sh" -print0 | xargs -0 shellcheck -x --severity=warning diff --git a/.github/workflows/snapshot.yaml b/.github/workflows/snapshot.yaml deleted file mode 100644 index 4c404ea..0000000 --- a/.github/workflows/snapshot.yaml +++ /dev/null @@ -1,53 +0,0 @@ -name: Snapshot Package & Attach - -on: [push] - -jobs: - snapshot: - runs-on: ubuntu-latest - permissions: - contents: read - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - with: - lfs: true - fetch-depth: 0 - - - name: Pull LFS objects - run: git lfs pull - - - name: Pack Template and Final Zip - id: pack - run: | - # 1. 先把内部 template 文件夹打成 zip - # 进入目录操作是为了避免 zip 包里包含冗余的路径层级 - cd template/template/ - zip -r -9 "../template.zip" . - cd ../../ - - # 2. 清理不需要的文件 - rm -f ./template/README.txt - - # 3. 准备 Snapshot 包名 - # 获取最近的 Tag,如果没有则用 v0.0.0-snapshot - TAG_NAME=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0") - LAST_COMMIT=$(git rev-parse --short HEAD) - FILENAME="FontMM-${TAG_NAME}-${LAST_COMMIT}-snapshot.zip" - - echo "Generated Filename: $FILENAME" - - # 4. 清理根目录下可能存在的旧 zip 文件(避免重复打包) - rm -f ./*.zip - - # 5. 打包外层,排除掉源码目录 template/template/,保留生成的 template/template.zip - zip -r -9 "$FILENAME" . -x "*.git*" ".github*" "template/template/*" - - echo "ZIP_PATH=$FILENAME" >> $GITHUB_ENV - - - name: Upload Snapshot Artifact - uses: actions/upload-artifact@v4 - with: - name: ${{ env.ZIP_PATH }} - path: ${{ env.ZIP_PATH }} diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 index 35d610c..c66f55e --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ -/.build/ -/ttf/*.ttf -/MODULE.zip -/template/template.zip -/download/ -/shellcheck* -/WORK/ \ No newline at end of file +node_modules/ +web/node_modules/ +dist/ +src/webroot/ +reasonix.toml +.reasonix/ +.agent/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..99e2f7d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["oxc.oxc-vscode"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..25d3b1b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,17 @@ +{ + // 官方推荐: https://oxc.rs/docs/guide/usage/linter/editors.html + // https://oxc.rs/docs/guide/usage/formatter/editors.html + // 使用 Oxc 扩展 (oxlint --lsp / oxfmt --lsp), 需本地安装 oxlint 与 oxfmt + "editor.defaultFormatter": "oxc.oxc-vscode", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.oxc": "always" + }, + // 显式指定 JavaScript/TypeScript 由 oxfmt 格式化 + "[javascript]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "oxc.oxc-vscode" + } +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..deb1056 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Yule + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md old mode 100755 new mode 100644 index 5260e39..a591dd7 --- a/README.md +++ b/README.md @@ -1,38 +1,224 @@ # FontMM -![](https://image.yule.ink/hero.png) +FontMM 是一个用于在 Android 设备上一键更换系统字体的 **Magisk / KernelSU 模块**,内置 WebUI 字体管理界面,目前适配 **ColorOS 16**。 -FontMM 是一个用于在 Android 设备上一键生成 Magisk 字体模块的工具集 +只需在 WebUI 中挑选一个 `.ttf` 字体文件,点一下「应用字体」,重启即可生效 —— 不需要在电脑上手动解压、改名、打包模块。 -**目前已适配系统:** +> 当前分支为 v26 全新架构(WebUI + 统一 `apply.sh` 安装逻辑),旧版 v1.x 的「解压模板 → 放入 ttf → 运行打包脚本」流程已被取代。 -- ColorOS 16 +## 特性 -## 使用方法 +- 🖥️ **内置 WebUI**:Material Design 3 风格的管理界面,在 KernelSU 管理器(或支持 WebUI 的 Root 管理器)中直接打开 +- 🎯 **三槽位字体**:中文简体 / 中文繁体 / 英文与数字分别独立设置 +- 🔄 **智能回退**:繁体、英文未设置时自动回退到简体,不会出现「缺字」或「没换成功」的情况 +- 📁 **可视化文件选择器**:浏览设备目录、一键过滤非 `.ttf` 文件 +- 🛡️ **安装自检**:刷入时自动校验 ColorOS 版本、KernelSU 元模块、FontLoader 版本 +- ♻️ **更新模式**:覆盖安装/更新模块时自动继承旧版模块中已设置的字体 +- 📦 **统一安装逻辑**:WebUI 换字体与刷机安装共用同一个 `apply.sh`,行为完全一致 -### 如何打包字体模块 +## 支持环境 -1. 在 Release 下载最新版本 +| 项目 | 要求 | +| --- | --- | +| 系统 | ColorOS 16.0+(检测 `ro.build.version.oplus.api` 与 `ro.build.version.oplusrom.display`) | +| Root 环境 | Magisk 20.4+ / KernelSU(KernelSU ≥ 3.0.0 需先安装元模块) | +| 推荐组件 | [FontLoader](https://github.com/KernelSU-Modules-Repo/fontloader) v1.2.3+(提升字体显示效果) | +| 字体格式 | `.ttf`(支持可变字体) | -2. 将下载到的压缩包进行解压,请确保所有文件均被解压 +> 非 ColorOS 系统、ColorOS 版本低于 16 的设备会在安装时被 `customize.sh` 直接拒绝。 -3. 自定义 `module.prop`(可选) +## 快速开始(用户) -4. 在 `ttf/` 里面放入你的字体 +### 1. 安装模块 -- `ch.ttf` -- 中文(简体) -- `tc.ttf` -- 中文(繁体) -- `en.ttf` -- 英文和数字 +1. 在 [Releases](https://github.com/YuleBest/FontMM/releases) 下载最新版 `FontMM_v*.zip` +2. 在 KernelSU / Magisk 管理器中刷入该 zip(无需解压) +3. 安装脚本会自动完成系统检查,并给出「成功 / 失败原因」 -你也可以只放入一个 `ch.ttf` -这样的话,中文(繁体)和英数都会使用 `ch.ttf` +### 2. 通过 WebUI 更换字体 -5. 使用 Root 权限运行 `开始打包.sh` +1. 打开 KernelSU 管理器,进入 FontMM 模块,点击「**打开 WebUI**」(或类似入口) +2. 在三个槽位中分别选择字体: + - **中文简体** —— 必选 + - **中文繁体** —— 可选,未选择时自动使用简体 + - **英文 & 数字** —— 可选,未选择时自动使用简体 +3. 点击底部「**应用字体**」,等待执行完成 +4. 弹窗中会展示完整应用日志(每个系统字体文件的安装结果) +5. **重启设备**后生效 -### 如何便捷地更换字体 +### 3. 手动放置字体(可选) -1. 把新字体放入 `/data/adb/modules/[你的模块ID]/ttf`,规则与上述一致 +不想用 WebUI 时,也可以直接操作文件: -2. 运行 Action(点击 Root 管理器里本模块的「执行」按钮) +1. 把字体放入 `/data/adb/modules/FontMM/FONTS/`,命名规则: + - `hans.ttf` —— 中文简体(必选) + - `hant.ttf` —— 中文繁体(可选) + - `en.ttf` —— 英文与数字(可选) +2. 在 Root 管理器中点击本模块的「**执行**」(Action),或执行 `sh /data/adb/modules/FontMM/apply.sh` +3. 重启设备 -3. 确认更换字体,重启即可生效 +## 字体映射 + +模块把 3 个用户字体槽位映射到 ColorOS 的 8 个系统字体文件: + +| 槽位 | 用户文件 | 覆盖的系统字体文件 | +| --- | --- | --- | +| 中文简体 | `FONTS/hans.ttf` | `SysSans-Hans-Regular.ttf`、`SysFont-Static-Regular.ttf`、`SysFont-Myanmar.ttf`、`SysFont-Hans-Regular.ttf`、`SysFont-Regular.ttf` | +| 中文繁体 | `FONTS/hant.ttf` | `SysSans-Hant-Regular.ttf`、`SysFont-Hant-Regular.ttf` | +| 英文 & 数字 | `FONTS/en.ttf` | `SysSans-En-Regular.ttf` | +| 等宽字体 | `FONTS/mono.ttf` | `DroidSansMono.ttf` | + +**回退规则**:`hant.ttf` / `en.ttf` 缺失时,对应槽位自动使用 `hans.ttf`;`hans.ttf` 缺失时 `apply.sh` 直接报错退出(WebUI 也会禁用「应用」按钮)。`mono.ttf` 未设置时**不覆盖**系统等宽字体(`DroidSansMono.ttf` 保持系统原生)。 + +## 工作原理 + +``` +┌─────────────────────────────────────────────────────────┐ +│ KernelSU 管理器 │ +│ ┌──────────────────────────────┐ │ +│ │ WebUI (web/ 构建产物) │ ksu.exec / toast │ +│ └──────────────┬───────────────┘ │ +└───────────────────┼──────────────────────────────────────┘ + │ sh /data/adb/modules/FontMM/apply.sh + ▼ + ┌───────────────────────┐ cp -f ┌──────────────────────┐ + │ FONTS/ 用户字体 │ ──────────► │ system/fonts/ │ + │ hans.ttf │ │ 8 个 SysFont 文件 │ + │ hant.ttf (可选) │ └──────────────────────┘ + │ en.ttf (可选) │ + └───────────────────────┘ +``` + +1. **安装阶段**(`customize.sh`):系统检查(ColorOS 版本、KernelSU 元模块、FontLoader)→ 更新模式检测与旧字体继承 → 调用 `apply.sh` 完成首次字体安装。 +2. **换字体阶段**(WebUI):选择文件 → 复制到 `FONTS/` → 调用同一个 `apply.sh`,保证两条路径行为一致。 +3. **`apply.sh` 核心逻辑**:按上表的映射关系,把 `FONTS/` 中的字体 `cp` 到 `system/fonts/` 的对应文件,缺繁体/英文时回退简体。 +4. **字体生效**:ColorOS 通过 `/system/etc/fonts.xml`、`fonts_base.xml`、`fonts_ule.xml`、`font_fallback.xml`(及 `/system/system_ext/etc/` 下的对应文件)引用 `SysFont*` / `SysSans*` 字体族 —— 模块内嵌了从 ColorOS 16 提取的这些配置,替换字体文件即可全局生效。 + +## 项目结构 + +``` +FontMM/ +├── src/ # Magisk 模块源(打包时 zip 根 = 模块根) +│ ├── module.prop # 模块元信息(id/version/updateJson) +│ ├── customize.sh # 安装脚本:系统检查 + 更新模式 + 调用 apply.sh +│ ├── apply.sh # 字体应用脚本(安装 & WebUI 共用) +│ ├── FONTS/ # 用户字体目录(hans.ttf 默认字体) +│ ├── META-INF/ # Magisk 安装入口(update-binary / updater-script) +│ ├── system/ +│ │ ├── fonts/ # 8 个字体槽位(0 字节占位,安装时被填充) +│ │ └── etc/ # fonts.xml / fonts_base.xml / fonts_ule.xml / font_fallback.xml +│ ├── system_ext/etc/ # system_ext 分区字体配置(fonts_base.xml / fonts_ule.xml) +│ └── webroot/ # WebUI 构建产物(pnpm build 生成,不入库) +├── web/ # WebUI 前端源码(Vite + TypeScript) +│ ├── index.html +│ ├── vite.config.ts # base './',产物输出到 ../src/webroot +│ └── src/ +│ ├── main.ts # 主界面:三槽位 + 应用按钮 + 日志弹窗 +│ ├── fontPicker.ts # 字体文件选择器(.ttf 过滤、目录导航) +│ ├── ksu.ts # kernelsu exec/toast 封装(DEV 模式内置 mock) +│ ├── theme.scss # Material Design 3 主题变量 +│ └── style.scss # 全局样式 +├── dev/ # 开发脚本 +│ ├── cd.sh # 打包模块 zip(preplace / template 两版)→ dist/ +│ ├── ci.sh # shellcheck + shfmt 检查(在 Termux 中运行) +│ ├── webzip.sh # 仅打包 WebUI 产物 → dist/webroot.zip +│ └── empty_font.sh # 生成 0 字节占位字体 +├── package.json # pnpm workspace 根 +├── web/package.json # WebUI 依赖与脚本 +└── dist/ # 打包产物(构建时生成,不入库) +``` + +## 开发指南 + +### 环境要求 + +- Node.js ≥ 18 + [pnpm](https://pnpm.io/) +- `zip` / `unzip`(打包) +- `shellcheck` + `shfmt`(仅 CI 检查需要) +- Android 设备(Termux)或任意可运行 `ash` 的环境(验证 shell 脚本) + +### 安装依赖 + +```bash +pnpm install # 根 workspace(会联动安装 web/) +``` + +### 本地预览 WebUI + +```bash +pnpm dev +``` + +启动 Vite dev server,浏览器打开后即可预览。`dev` 模式下 `ksu.ts` 使用内置 **mock 文件系统**(`/sdcard`、`/sdcard/Fonts` 等假目录与字体),文件选择、槽位切换、应用字体全流程均可脱离真机调试。 + +### 构建与打包 + +```bash +pnpm build +``` + +依次执行: + +1. `vite build` —— 把 WebUI 构建到 `src/webroot/`(相对路径 `base: './'`,适配本地 WebView 加载) +2. `bash dev/cd.sh` —— 读取 `src/module.prop` 的 `version` 字段,打包出两个版本(zip 根 = 模块根): + - `dist/FontMM_v{VERSION}_preplace.zip` —— 含预置字体 `FONTS/hans.ttf` + - `dist/FontMM_v{VERSION}_template.zip` —— `FONTS/` 为空目录(不含预置字体) + + 产物均校验内含 `module.prop` 防止打包错目录;template 版额外校验 `FONTS/` 下不含字体文件。 + +产物示例:`dist/FontMM_v26.8.0(260800001)_preplace.zip`(注意版本号带括号,shell 中使用请加引号)。 + +### 代码检查 + +```bash +pnpm lint # 前端 oxlint 检查 (web/src) +pnpm fmt # 前端 oxfmt 格式化 +pnpm fmt:check # 前端 oxfmt 格式检查 (CI 用) +bash dev/ci.sh # src/ 下所有 .sh 的 shellcheck + shfmt 检查 +``` + +- 前端 lint/format 由 [oxlint](https://oxc.rs/) 与 [oxfmt](https://oxc.rs/) 提供,配置在 `web/.oxlintrc.json`(`correctness` 类别 + typescript/unicorn/oxc 插件)与 `web/.oxfmtrc.json`(`singleQuote: true`,与代码风格一致) +- `dev/ci.sh` 对 `src/` 下所有 `.sh` 依次执行 `shellcheck` 校验与 `shfmt` 格式检查(`-i 4`)。脚本预设了 Termux 的 PATH/`LD_LIBRARY_PATH`,可在 Android 的 Termux 中直接运行 + +### 占位字体机制 + +`src/system/fonts/` 下的 8 个字体文件是 **0 字节占位文件**,避免把大字体文件提交进仓库;模块安装或应用字体时由 `apply.sh` 用 `FONTS/` 里的真实字体覆盖。 + +- 开发时可用 `dev/empty_font.sh` 重新生成这些占位文件(字体清单与 `apply.sh` 保持一致) +- `src/FONTS/hans.ttf` 是内置默认简体字体(随模块发布),未继承到旧字体时的兜底 + +### 版本号 + +版本号只维护在 `src/module.prop` 中: + +``` +version=26.8.0(260800001) +versionCode=26080001 +``` + +`dev/cd.sh` 会解析 `version` 字段作为 zip 文件名(`_preplace` / `_template` 两个后缀),无需手动改别处。 + +## 常见问题 + +**Q:装完模块后字体没变?** +A:先重启设备;确认系统是 ColorOS 16+;建议安装 [FontLoader](https://github.com/KernelSU-Modules-Repo/fontloader)(v1.2.3+),部分场景下能显著改善字体显示效果。 + +**Q:KernelSU 3.0+ 装不上 / 报元模块错误?** +A:KernelSU ≥ 3.0.0 需要先安装元模块(`/data/adb/metamodule/module.prop`),安装日志会明确提示。 + +**Q:选了繁体 / 英文字体但界面还是简体?** +A:检查对应槽位是否真的选了文件;未选择时按设计会回退到简体。 + +**Q:更新模块会丢失我设置好的字体吗?** +A:不会。`customize.sh` 检测到已安装的 FontMM 时会进入更新模式,从旧模块的 `FONTS/` 目录继承 `hans.ttf` / `hant.ttf` / `en.ttf`。 + +**Q:`system/fonts/` 里的字体文件为什么是 0 字节?** +A:那是占位文件,安装或应用字体时会被真实字体覆盖,详见「占位字体机制」。 + +**Q:zip 文件名里的括号在终端里打不开?** +A:版本号形如 `26.8.0(260800001)`,在 shell 中请用引号包裹:`unzip "FontMM_v26.8.0(260800001)_preplace.zip"`。 + +## 致谢 + +- 字体映射与配置文件参考 ColorOS 16 系统字体体系(`SysFont` / `SysSans` 字体族) +- WebUI 基于 [Material Web](https://github.com/material-components/material-web)(Material Design 3)与 [kernelsu](https://www.npmjs.com/package/kernelsu) SDK 构建 diff --git a/dev/cd.sh b/dev/cd.sh new file mode 100644 index 0000000..c975850 --- /dev/null +++ b/dev/cd.sh @@ -0,0 +1,73 @@ +#!/usr/bin/env bash +set -euo pipefail + +# dev/cd.sh — 打包 FontMM 模块 (preplace / template 两版) +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +SRC_DIR="$ROOT_DIR/src" +DIST_DIR="$ROOT_DIR/dist" +PROP_FILE="$SRC_DIR/module.prop" + +command -v zip >/dev/null 2>&1 || { + echo "[!] 未找到 zip 命令, 请先安装" >&2 + exit 1 +} + +# 1. 从 module.prop 读版本号: version=26.8.0(260800001) -> 完整保留, 不是纯数字 +VERSION="$(sed -n 's/^version=//p' "$PROP_FILE" 2>/dev/null | head -n 1 | tr -d '\r' || true)" +if [ -z "$VERSION" ]; then + echo "[!] 无法从 $PROP_FILE 读取 version 字段" >&2 + exit 1 +fi + +PRE_OUT="$DIST_DIR/FontMM_v${VERSION}_preplace.zip" +TPL_OUT="$DIST_DIR/FontMM_v${VERSION}_template.zip" + +mkdir -p "$DIST_DIR" +rm -f "$PRE_OUT" "$TPL_OUT" # 先删旧的, 防止 zip 增量更新残留已删除的文件 + +# 2. 打包函数: $1=输出路径, $2=额外排除模式 (可选) +# (zip 根 = 模块根, 不含 src 这层目录) +pack() { + local out="$1" extra="${2:-}" + local args=(-r -2 "$out" . -x '*.git*' -x '*.DS_Store' -x '*.swp' -x '*~' -x '*.bak') + if [ -n "$extra" ]; then + args+=(-x "$extra") + fi + ( + cd "$SRC_DIR" + zip "${args[@]}" + ) +} + +echo "[*] 打包 preplace 版 (含预置字体)..." +pack "$PRE_OUT" +echo "[*] 打包 template 版 (FONT 目录为空)..." +pack "$TPL_OUT" 'FONTS/*' +# -x 'FONTS/*' 会连目录条目一起排除, 这里补回空的 FONTS/ 目录 +( + cd "$SRC_DIR" + zip -g "$TPL_OUT" 'FONTS/' +) + +# 3. 产物校验: 必须含 module.prop, 防止打包错目录 +# 注意: 不能用 grep -q, 它匹配后立即退出会使上游 unzip 收到 SIGPIPE (141), +# 在 pipefail 下整个管道被判失败, 产生"缺少 module.prop"的偶发误报 +check() { + local out="$1" + if ! unzip -l "$out" | grep 'module\.prop' >/dev/null; then + echo "[!] 打包产物缺少 module.prop: $out" >&2 + exit 1 + fi +} +check "$PRE_OUT" +check "$TPL_OUT" + +# 4. template 版校验: FONTS 目录必须不含字体文件 (保留空目录) +if unzip -l "$TPL_OUT" | grep 'FONTS/.*\.ttf' >/dev/null; then + echo "[!] template 版不应包含 FONTS 字体文件" >&2 + exit 1 +fi + +echo "[✓] 打包完成:" +echo " preplace: $PRE_OUT ($(du -h "$PRE_OUT" | cut -f1))" +echo " template: $TPL_OUT ($(du -h "$TPL_OUT" | cut -f1))" diff --git a/dev/ci.sh b/dev/ci.sh new file mode 100644 index 0000000..79aed90 --- /dev/null +++ b/dev/ci.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +set -euo pipefail +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +cd "$SCRIPT_DIR" + +# ---------- Termux 兼容 ---------- +# Termux 的 shellcheck / shfmt 安装在 app 私有目录, 需手动加入 PATH 与 LD_LIBRARY_PATH; +# 其他环境 (Linux/macOS 等) 直接使用系统 PATH 中的工具 +if [ -n "${PREFIX:-}" ] && [ -d "$PREFIX/bin" ]; then + export PATH="$PREFIX/bin:${PATH}" + export LD_LIBRARY_PATH="$PREFIX/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" +elif [ -d /data/user/0/com.termux/files/usr/bin ]; then + export PATH="/data/user/0/com.termux/files/usr/bin:${PATH}" + export LD_LIBRARY_PATH="/data/user/0/com.termux/files/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" +fi + +# 工具可用性检查 +command -v shellcheck >/dev/null 2>&1 || { + echo "[!] 未找到 shellcheck, 请先安装" >&2 + exit 1 +} +command -v shfmt >/dev/null 2>&1 || { + echo "[!] 未找到 shfmt, 请先安装" >&2 + exit 1 +} + +shopt -s nullglob globstar +files=("$SCRIPT_DIR/src"/**/*.sh) + +for f in "${files[@]}"; do + echo "> Checking: $f" + shellcheck "$f" || exit 1 +done + +for f in "${files[@]}"; do + echo "> Formatting: $f" + shfmt -i 4 -w -d "$f" +done diff --git a/dev/empty_font.sh b/dev/empty_font.sh new file mode 100644 index 0000000..36bb7cf --- /dev/null +++ b/dev/empty_font.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +FONT_DIR="$SCRIPT_DIR/src/system/fonts" + +# 字体清单(记得和 customize.sh 保持一致) +all_fonts='SysSans-Hans-Regular.ttf +SysFont-Static-Regular.ttf +SysFont-Myanmar.ttf +SysFont-Hans-Regular.ttf +SysFont-Regular.ttf +SysSans-Hant-Regular.ttf +SysFont-Hant-Regular.ttf +SysSans-En-Regular.ttf' + +mkdir -p "$FONT_DIR" + +count=0 +while IFS= read -r font; do + [ -z "$font" ] && continue + : > "$FONT_DIR/$font" + echo "[*] 已生成空字体: $font" + count=$((count + 1)) +done <<< "$all_fonts" + +echo "[✓] 完成,共 $count 个空字体 -> $FONT_DIR" diff --git a/dev/webzip.sh b/dev/webzip.sh new file mode 100644 index 0000000..4d38d06 --- /dev/null +++ b/dev/webzip.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +set -euo pipefail + +# dev/webzip.sh — 仅把构建产物 src/webroot 压缩为 dist/webroot.zip (调试 WebUI 用) + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +SRC="$ROOT_DIR/src/webroot" +OUT="$ROOT_DIR/dist/webroot.zip" + +command -v zip >/dev/null 2>&1 || { + echo "[!] 未找到 zip 命令, 请先安装" >&2 + exit 1 +} + +[ -d "$SRC" ] || { + echo "[!] $SRC 不存在, 请先执行 pnpm -C web build" >&2 + exit 1 +} + +mkdir -p "$(dirname "$OUT")" +rm -f "$OUT" + +# zip 根 = webroot 内容 (不含 webroot 这层目录) +( + cd "$SRC" + zip -r -9 "$OUT" . \ + -x '*.git*' \ + -x '*.DS_Store' +) + +echo "[✓] 已打包: $OUT ($(du -h "$OUT" | cut -f1))" diff --git a/module.prop b/module.prop deleted file mode 100755 index 080c9c3..0000000 --- a/module.prop +++ /dev/null @@ -1,6 +0,0 @@ -id=MyFontModule -name=我的字体模块 -version=1.0 -versionCode=10 -author=Yule -description=我的字体模块 \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..a29693b --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "fontmm", + "private": true, + "scripts": { + "dev": "pnpm -C web dev", + "build": "pnpm -C web build && bash dev/cd.sh", + "build:only-web": "pnpm -C web build && bash dev/webzip.sh", + "lint": "pnpm -C web lint", + "fmt": "pnpm -C web fmt", + "fmt:check": "pnpm -C web fmt:check", + "type-check": "pnpm -C web type-check", + "shellcheck": "find src -name '*.sh' -print0 | xargs -0 shellcheck", + "shfmt": "find src -name '*.sh' -print0 | xargs -0 shfmt -i 4 -w -d" + } +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..9b60ae1 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,9 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: {} diff --git a/template/template/system/fonts/NotoSerifCJK-Regular.ttc b/src/FONTS/hans.ttf old mode 100755 new mode 100644 similarity index 66% rename from template/template/system/fonts/NotoSerifCJK-Regular.ttc rename to src/FONTS/hans.ttf index f31a7da..eb40e6b Binary files a/template/template/system/fonts/NotoSerifCJK-Regular.ttc and b/src/FONTS/hans.ttf differ diff --git a/template/template/META-INF/com/google/android/update-binary b/src/META-INF/com/google/android/update-binary old mode 100755 new mode 100644 similarity index 85% rename from template/template/META-INF/com/google/android/update-binary rename to src/META-INF/com/google/android/update-binary index 0c14f2b..28b48e5 --- a/template/template/META-INF/com/google/android/update-binary +++ b/src/META-INF/com/google/android/update-binary @@ -10,9 +10,9 @@ umask 022 ui_print() { echo "$1"; } require_new_magisk() { - ui_print "********************************" + ui_print "*******************************" ui_print " Please install Magisk v20.4+! " - ui_print "********************************" + ui_print "*******************************" exit 1 } diff --git a/template/template/META-INF/com/google/android/updater-script b/src/META-INF/com/google/android/updater-script old mode 100755 new mode 100644 similarity index 100% rename from template/template/META-INF/com/google/android/updater-script rename to src/META-INF/com/google/android/updater-script diff --git a/src/apply.sh b/src/apply.sh new file mode 100644 index 0000000..d3a5bff --- /dev/null +++ b/src/apply.sh @@ -0,0 +1,66 @@ +#!/system/bin/sh +# shellcheck shell=ash +# FontMM apply.sh — 应用字体: 把 FONTS/ 里的字体安装到 system/fonts +# 用法: apply.sh [模块目录] 默认 /data/adb/modules/FontMM +# 回退逻辑: hant/en 缺失时回退到 hans; mono 缺失时不覆盖系统等宽字体 +MODDIR="${1:-/data/adb/modules/FontMM}" +FONTS_DIR="$MODDIR/FONTS" +SYS_FONT_DIR="$MODDIR/system/fonts" + +hans_fonts='SysSans-Hans-Regular.ttf +SysFont-Static-Regular.ttf +SysFont-Myanmar.ttf +SysFont-Hans-Regular.ttf +SysFont-Regular.ttf' +hant_fonts='SysSans-Hant-Regular.ttf +SysFont-Hant-Regular.ttf' +en_fonts='SysSans-En-Regular.ttf' + +[ -f "$FONTS_DIR/hans.ttf" ] || { + echo "[✗] FONTS/hans.ttf 不存在, 请先在 WebUI 选择字体" + exit 1 +} + +mkdir -p "$SYS_FONT_DIR" + +install_from() { + local src="$1" list="$2" line="" + while IFS= read -r line; do + cp -f "$src" "$SYS_FONT_DIR/$line" || { + echo "[✗] 复制 $line 失败" + exit 1 + } + echo "[*] 安装: $line" + done </dev/null 2>&1; then + abort "$msg" + fi + echo "[✗] $msg" + exit "$code" +} + +log_succ() { + local msg="$1" + echo "[*] $msg" +} + +# ---------- 更新模式 ---------- +# 检测旧版 FontMM 是否已安装 +DETECT_UPDATE_MODE() { + if [ -d /data/adb/modules/FontMM ]; then + UPDATE_MODE=1 + log "检测到已安装的 FontMM, 进入更新模式" + else + log "全新安装" + fi +} + +# 更新模式: 以旧包为主继承字体 +IMPORT_OLD_FONTS() { + [ "$UPDATE_MODE" -eq 1 ] || return 0 + + local old_fonts="/data/adb/modules/FontMM/FONTS" + if [ ! -d "$old_fonts" ]; then + log "注意: 旧模块中没有 FONTS 目录, 将使用新包字体" + return 0 + fi + + mkdir -p "$MOD_WORK_PATH" + local f="" + for f in hans.ttf hant.ttf en.ttf mono.ttf; do + if [ -f "$old_fonts/$f" ]; then + if cp -f "$old_fonts/$f" "$MOD_WORK_PATH/$f"; then + log_succ "已从旧模块继承字体: $f" + else + log_err "继承字体 $f 失败" + fi + else + log "旧包没有 $f, 使用新包字体" + fi + done +} + +# ---------- 系统检查 ---------- +# 仅支持 ColorOS 且版本 >= 16.0, 否则拒绝安装 +CHECK_COLOROS() { + local oplus_api="" + oplus_api="$(getprop ro.build.version.oplus.api 2>/dev/null || true)" + + if [ -z "$oplus_api" ]; then + log_err "当前系统不是 ColorOS, 本模块仅支持 ColorOS 16.0+" + fi + + local oplus_display="" + oplus_display="$(getprop ro.build.version.oplusrom.display 2>/dev/null || true)" + local major="${oplus_display%%.*}" + + if [ "${major:-0}" -lt 16 ] 2>/dev/null; then + log_err "ColorOS 版本过低 (${oplus_display:-未知}), 需要 16.0 及以上" + fi + + log_succ "ColorOS ${oplus_display}" +} + +# ---------- 检查元模块 ---------- +CHECK_META_MODULE() { + if [ ! -f /data/adb/ksud ]; then + log "非 KernelSU 环境, 跳过元模块检查" + return 0 + fi + + local ksud_version="" + ksud_version="$(/data/adb/ksud --version 2>/dev/null | tr -d '\r' || true)" + local ver_num + ver_num="$(printf '%s' "$ksud_version" | + grep -o '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*' | + head -n 1 || true)" + log_succ "KernelSU v${ver_num}" + local major="${ver_num%%.*}" + + if [ "${major:-0}" -lt 3 ] 2>/dev/null; then + log "KernelSU 版本 ${ver_num:-未知} < 3.0.0, 无需元模块" + return 0 + fi + + if [ ! -f /data/adb/metamodule/module.prop ]; then + log "警告: KernelSU >= 3.0.0 需要元模块, 请先安装" + return 1 + fi + + local meta_name="" + meta_name="$(sed -n 's/^name=//p' /data/adb/metamodule/module.prop | head -n 1 || true)" + if [ -n "$meta_name" ]; then + log_succ "元模块已安装: $meta_name" + else + log "元模块已安装 (但读不到 name 字段)" + fi + return 0 +} + +# ---------- 判断 FontLoader ---------- +CHECK_FONTLOADER() { + local fontloader_moddir="/data/adb/modules/fontloader" + local fontloader_github="https://github.com/KernelSU-Modules-Repo/fontloader/releases" + + if [ ! -d "$fontloader_moddir" ]; then + log "注意: 你还没安装 FontLoader, 如果字体显示效果不佳请安装" + log "前往 $fontloader_github 安装 FontLoader" + return 0 + fi + + local prop_file="$fontloader_moddir/module.prop" + local version_code="" + if [ -f "$prop_file" ]; then + version_code="$(sed -n 's/^versionCode=//p' "$prop_file")" + fi + version_code="$(printf '%s' "$version_code" | tr -cd '0-9')" + + if [ -z "$version_code" ]; then + log "注意: 无法读取 FontLoader 版本号, 建议更新到最新版" + log "前往 $fontloader_github 更新 FontLoader" + return 0 + fi + + if [ "$version_code" -lt 33 ] 2>/dev/null; then + log "注意: 你的 FontLoader 版本过低, 建议更新到 v1.2.3+" + log "前往 $fontloader_github 更新 FontLoader" + else + log_succ "FontLoader 版本正常" + fi +} + +# ---------- 主流程 ---------- +MAIN() { + CHECK_COLOROS + if ! CHECK_META_MODULE; then + log_err "元模块检查不通过" + fi + CHECK_FONTLOADER + + echo && log "开始准备字体..." + DETECT_UPDATE_MODE + IMPORT_OLD_FONTS + + echo && log "开始安装字体..." + if sh "$MODPATH/apply.sh" "$MODPATH"; then + echo && log_succ "所有字体安装成功, 重启设备后生效" + else + echo && log_err "字体安装出现问题, 请联系开发者" + fi +} + +MAIN diff --git a/src/module.prop b/src/module.prop new file mode 100644 index 0000000..4273c49 --- /dev/null +++ b/src/module.prop @@ -0,0 +1,6 @@ +id=FontMM +name=FontMM +version=26.8.0(260800001) +versionCode=26080001 +author=Yule +description=ColorOS 16 字体模块模板 diff --git a/template/template/system/etc/font_fallback.xml b/src/system/etc/font_fallback.xml old mode 100755 new mode 100644 similarity index 100% rename from template/template/system/etc/font_fallback.xml rename to src/system/etc/font_fallback.xml diff --git a/template/template/system/etc/fonts.xml b/src/system/etc/fonts.xml old mode 100755 new mode 100644 similarity index 100% rename from template/template/system/etc/fonts.xml rename to src/system/etc/fonts.xml diff --git a/template/template/system/system_ext/etc/fonts_base.xml b/src/system/etc/fonts_base.xml old mode 100755 new mode 100644 similarity index 100% rename from template/template/system/system_ext/etc/fonts_base.xml rename to src/system/etc/fonts_base.xml diff --git a/template/template/system/system_ext/etc/fonts_ule.xml b/src/system/etc/fonts_ule.xml old mode 100755 new mode 100644 similarity index 100% rename from template/template/system/system_ext/etc/fonts_ule.xml rename to src/system/etc/fonts_ule.xml diff --git a/template/template/system/fonts/SysFont-Hans-Regular.ttf b/src/system/fonts/SysFont-Hans-Regular.ttf similarity index 100% rename from template/template/system/fonts/SysFont-Hans-Regular.ttf rename to src/system/fonts/SysFont-Hans-Regular.ttf diff --git a/template/template/system/fonts/SysFont-Hant-Regular.ttf b/src/system/fonts/SysFont-Hant-Regular.ttf similarity index 100% rename from template/template/system/fonts/SysFont-Hant-Regular.ttf rename to src/system/fonts/SysFont-Hant-Regular.ttf diff --git a/template/template/system/fonts/SysFont-Myanmar.ttf b/src/system/fonts/SysFont-Myanmar.ttf similarity index 100% rename from template/template/system/fonts/SysFont-Myanmar.ttf rename to src/system/fonts/SysFont-Myanmar.ttf diff --git a/template/template/system/fonts/SysFont-Regular.ttf b/src/system/fonts/SysFont-Regular.ttf similarity index 100% rename from template/template/system/fonts/SysFont-Regular.ttf rename to src/system/fonts/SysFont-Regular.ttf diff --git a/template/template/system/fonts/SysFont-Static-Regular.ttf b/src/system/fonts/SysFont-Static-Regular.ttf similarity index 100% rename from template/template/system/fonts/SysFont-Static-Regular.ttf rename to src/system/fonts/SysFont-Static-Regular.ttf diff --git a/template/template/system/fonts/SysSans-En-Regular.ttf b/src/system/fonts/SysSans-En-Regular.ttf similarity index 100% rename from template/template/system/fonts/SysSans-En-Regular.ttf rename to src/system/fonts/SysSans-En-Regular.ttf diff --git a/template/template/system/fonts/SysSans-Hans-Regular.ttf b/src/system/fonts/SysSans-Hans-Regular.ttf similarity index 100% rename from template/template/system/fonts/SysSans-Hans-Regular.ttf rename to src/system/fonts/SysSans-Hans-Regular.ttf diff --git a/template/template/system/fonts/SysSans-Hant-Regular.ttf b/src/system/fonts/SysSans-Hant-Regular.ttf similarity index 100% rename from template/template/system/fonts/SysSans-Hant-Regular.ttf rename to src/system/fonts/SysSans-Hant-Regular.ttf diff --git a/src/system/system_ext/etc/fonts_base.xml b/src/system/system_ext/etc/fonts_base.xml new file mode 100644 index 0000000..5f26e30 --- /dev/null +++ b/src/system/system_ext/etc/fonts_base.xml @@ -0,0 +1,1741 @@ + + + + + + Roboto-Regular.ttf + + + + + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + + + + + + + + + + + + + + + + + + + + Roboto-Regular.ttf + + + + + + + + Oplus-Serif.ttf + + + Oplus-Serif.ttf + + + Oplus-Serif.ttf + + + Oplus-Serif.ttf + + + Oplus-Serif.ttf + + + Oplus-Serif.ttf + + + Oplus-Serif.ttf + + + Oplus-Serif.ttf + + + Oplus-Serif.ttf + + + Oplus-Serif.ttf + + + + + + NotoSerif-Regular.ttf + NotoSerif-Bold.ttf + NotoSerif-Italic.ttf + NotoSerif-BoldItalic.ttf + + + + + + + + + + + + + DroidSansMono.ttf + + + + + + CutiveMono.ttf + + + + + + ComingSoon.ttf + + + + DancingScript-Regular.ttf + + + DancingScript-Regular.ttf + + + + + + CarroisGothicSC-Regular.ttf + + + + SourceSansPro-Regular.ttf + SourceSansPro-Italic.ttf + SourceSansPro-SemiBold.ttf + SourceSansPro-SemiBoldItalic.ttf + SourceSansPro-Bold.ttf + SourceSansPro-BoldItalic.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + RobotoFlex-Regular.ttf + + + + + + + + + OSans-Ext-Regular.otf + + + + OSans-RC-Regular.ttf + + + + OSans-Solid-Digits-VF.ttf + + + OSans-Solid-Digits-VF.ttf + + + OSans-Solid-Digits-VF.ttf + + + OSans-Solid-Digits-VF.ttf + + + OSans-Solid-Digits-VF.ttf + + + + + + + NotoNaskhArabic-Regular.ttf + + NotoNaskhArabic-Bold.ttf + + + + NotoNaskhArabicUI-Regular.ttf + + NotoNaskhArabicUI-Bold.ttf + + + + NotoSansEthiopic-VF.ttf + + + + NotoSansEthiopic-VF.ttf + + + + NotoSansEthiopic-VF.ttf + + + + NotoSansEthiopic-VF.ttf + + + NotoSerifEthiopic-VF.ttf + + + NotoSerifEthiopic-VF.ttf + + + NotoSerifEthiopic-VF.ttf + + + NotoSerifEthiopic-VF.ttf + + + + + + NotoSansHebrew-Regular.ttf + + NotoSansHebrew-Bold.ttf + NotoSerifHebrew-Regular.ttf + NotoSerifHebrew-Bold.ttf + + + NotoSansThai-Regular.ttf + + NotoSansThai-Bold.ttf + + NotoSerifThai-Regular.ttf + + NotoSerifThai-Bold.ttf + + + + NotoSansThaiUI-Regular.ttf + + NotoSansThaiUI-Bold.ttf + + + + NotoSansArmenian-VF.ttf + + + + NotoSansArmenian-VF.ttf + + + + NotoSansArmenian-VF.ttf + + + + NotoSansArmenian-VF.ttf + + + NotoSerifArmenian-VF.ttf + + + NotoSerifArmenian-VF.ttf + + + NotoSerifArmenian-VF.ttf + + + NotoSerifArmenian-VF.ttf + + + + + + NotoSansGeorgian-VF.ttf + + + + NotoSansGeorgian-VF.ttf + + + + NotoSansGeorgian-VF.ttf + + + + NotoSansGeorgian-VF.ttf + + + NotoSerifGeorgian-VF.ttf + + + NotoSerifGeorgian-VF.ttf + + + NotoSerifGeorgian-VF.ttf + + + NotoSerifGeorgian-VF.ttf + + + + + + NotoSansDevanagari-VF.ttf + + + + NotoSansDevanagari-VF.ttf + + + + NotoSansDevanagari-VF.ttf + + + + NotoSansDevanagari-VF.ttf + + + NotoSerifDevanagari-VF.ttf + + + NotoSerifDevanagari-VF.ttf + + + NotoSerifDevanagari-VF.ttf + + + NotoSerifDevanagari-VF.ttf + + + + + + NotoSansDevanagariUI-VF.ttf + + + + NotoSansDevanagariUI-VF.ttf + + + + NotoSansDevanagariUI-VF.ttf + + + + NotoSansDevanagariUI-VF.ttf + + + + + + + + NotoSansGujarati-Regular.ttf + + NotoSansGujarati-Bold.ttf + NotoSerifGujarati-VF.ttf + + + NotoSerifGujarati-VF.ttf + + + NotoSerifGujarati-VF.ttf + + + NotoSerifGujarati-VF.ttf + + + + + + NotoSansGujaratiUI-Regular.ttf + + NotoSansGujaratiUI-Bold.ttf + + + + NotoSansGurmukhi-VF.ttf + + + + NotoSansGurmukhi-VF.ttf + + + + NotoSansGurmukhi-VF.ttf + + + + NotoSansGurmukhi-VF.ttf + + + NotoSerifGurmukhi-VF.ttf + + + NotoSerifGurmukhi-VF.ttf + + + NotoSerifGurmukhi-VF.ttf + + + NotoSerifGurmukhi-VF.ttf + + + + + + NotoSansGurmukhiUI-VF.ttf + + + + NotoSansGurmukhiUI-VF.ttf + + + + NotoSansGurmukhiUI-VF.ttf + + + + NotoSansGurmukhiUI-VF.ttf + + + + + + NotoSansTamil-VF.ttf + + + + NotoSansTamil-VF.ttf + + + + NotoSansTamil-VF.ttf + + + + NotoSansTamil-VF.ttf + + + NotoSerifTamil-VF.ttf + + + NotoSerifTamil-VF.ttf + + + NotoSerifTamil-VF.ttf + + + NotoSerifTamil-VF.ttf + + + + + + NotoSansTamilUI-VF.ttf + + + + NotoSansTamilUI-VF.ttf + + + + NotoSansTamilUI-VF.ttf + + + + NotoSansTamilUI-VF.ttf + + + + + + NotoSansMalayalam-VF.ttf + + + + NotoSansMalayalam-VF.ttf + + + + NotoSansMalayalam-VF.ttf + + + + NotoSansMalayalam-VF.ttf + + + NotoSerifMalayalam-VF.ttf + + + NotoSerifMalayalam-VF.ttf + + + NotoSerifMalayalam-VF.ttf + + + NotoSerifMalayalam-VF.ttf + + + + + + NotoSansMalayalamUI-VF.ttf + + + + NotoSansMalayalamUI-VF.ttf + + + + NotoSansMalayalamUI-VF.ttf + + + + NotoSansMalayalamUI-VF.ttf + + + + + + NotoSansBengali-VF.ttf + + + + NotoSansBengali-VF.ttf + + + + NotoSansBengali-VF.ttf + + + + NotoSansBengali-VF.ttf + + + NotoSerifBengali-VF.ttf + + + NotoSerifBengali-VF.ttf + + + NotoSerifBengali-VF.ttf + + + NotoSerifBengali-VF.ttf + + + + + + NotoSansBengaliUI-VF.ttf + + + + NotoSansBengaliUI-VF.ttf + + + + NotoSansBengaliUI-VF.ttf + + + + NotoSansBengaliUI-VF.ttf + + + + + + NotoSansTelugu-VF.ttf + + + + NotoSansTelugu-VF.ttf + + + + NotoSansTelugu-VF.ttf + + + + NotoSansTelugu-VF.ttf + + + NotoSerifTelugu-VF.ttf + + + NotoSerifTelugu-VF.ttf + + + NotoSerifTelugu-VF.ttf + + + NotoSerifTelugu-VF.ttf + + + + + + NotoSansTeluguUI-VF.ttf + + + + NotoSansTeluguUI-VF.ttf + + + + NotoSansTeluguUI-VF.ttf + + + + NotoSansTeluguUI-VF.ttf + + + + + + NotoSansKannada-VF.ttf + + + + NotoSansKannada-VF.ttf + + + + NotoSansKannada-VF.ttf + + + + NotoSansKannada-VF.ttf + + + NotoSerifKannada-VF.ttf + + + NotoSerifKannada-VF.ttf + + + NotoSerifKannada-VF.ttf + + + NotoSerifKannada-VF.ttf + + + + + + NotoSansKannadaUI-VF.ttf + + + + NotoSansKannadaUI-VF.ttf + + + + NotoSansKannadaUI-VF.ttf + + + + NotoSansKannadaUI-VF.ttf + + + + + NotoSansOriya-Regular.ttf + + NotoSansOriya-Bold.ttf + + + + NotoSansOriyaUI-Regular.ttf + + NotoSansOriyaUI-Bold.ttf + + + + NotoSansSinhala-VF.ttf + + + + NotoSansSinhala-VF.ttf + + + + NotoSansSinhala-VF.ttf + + + + NotoSansSinhala-VF.ttf + + + NotoSerifSinhala-VF.ttf + + + NotoSerifSinhala-VF.ttf + + + NotoSerifSinhala-VF.ttf + + + NotoSerifSinhala-VF.ttf + + + + + + NotoSansSinhalaUI-VF.ttf + + + + NotoSansSinhalaUI-VF.ttf + + + + NotoSansSinhalaUI-VF.ttf + + + + NotoSansSinhalaUI-VF.ttf + + + + + + + + NotoSansKhmer-VF.ttf + + + NotoSerifKhmer-Regular.otf + NotoSerifKhmer-Bold.otf + + + NotoSansKhmerUI-Regular.ttf + NotoSansKhmerUI-Bold.ttf + + + + NotoSansLao-Regular.ttf + + NotoSansLao-Bold.ttf + + NotoSerifLao-Regular.ttf + + NotoSerifLao-Bold.ttf + + + NotoSansLaoUI-Regular.ttf + + NotoSansLaoUI-Bold.ttf + + + + + SysFont-Myanmar.ttf + + + + NotoSansMyanmar-Regular.otf + NotoSansMyanmar-Medium.otf + NotoSansMyanmar-Bold.otf + NotoSerifMyanmar-Regular.otf + NotoSerifMyanmar-Bold.otf + + + NotoSansMyanmarUI-Regular.otf + NotoSansMyanmarUI-Medium.otf + NotoSansMyanmarUI-Bold.otf + + + + + NotoSansMyanmar-Regular.otf + NotoSansMyanmar-Medium.otf + NotoSansMyanmar-Bold.otf + NotoSerifMyanmar-Regular.otf + NotoSerifMyanmar-Bold.otf + + + NotoSansMyanmarUI-Regular.otf + NotoSansMyanmarUI-Medium.otf + NotoSansMyanmarUI-Bold.otf + + + NotoSansMyanmar-Regular-ZawDecode.ttf + NotoSansMyanmar-Bold-ZawDecode.ttf + NotoSerifMyanmar-Regular.otf + NotoSerifMyanmar-Bold.otf + + + NotoSansMyanmarUI-Regular-ZawDecode.ttf + NotoSansMyanmarUI-Bold-ZawDecode.ttf + + + MyanmarZg.ttf + + + + + NotoSansThaana-Regular.ttf + + NotoSansThaana-Bold.ttf + + + NotoSansCham-Regular.ttf + + NotoSansCham-Bold.ttf + + + NotoSansAhom-Regular.otf + + + + NotoSansAdlam-VF.ttf + + + + NotoSansAdlam-VF.ttf + + + + NotoSansAdlam-VF.ttf + + + + NotoSansAdlam-VF.ttf + + + + + + NotoSansAvestan-Regular.ttf + + + + + NotoSansBalinese-Regular.ttf + + + + NotoSansBamum-Regular.ttf + + + + NotoSansBatak-Regular.ttf + + + + + NotoSansBrahmi-Regular.ttf + + + + + NotoSansBuginese-Regular.ttf + + + + NotoSansBuhid-Regular.ttf + + + + + NotoSansCanadianAboriginal-Regular.ttf + + + + + NotoSansCarian-Regular.ttf + + + + NotoSansChakma-Regular.otf + + + NotoSansCherokee-Regular.ttf + + + + NotoSansCoptic-Regular.ttf + + + + + NotoSansCuneiform-Regular.ttf + + + + + NotoSansCypriot-Regular.ttf + + + + + NotoSansDeseret-Regular.ttf + + + + + NotoSansEgyptianHieroglyphs-Regular.ttf + + + + NotoSansElbasan-Regular.otf + + + + NotoSansGlagolitic-Regular.ttf + + + + + NotoSansGothic-Regular.ttf + + + + + NotoSansHanunoo-Regular.ttf + + + + + NotoSansImperialAramaic-Regular.ttf + + + + + NotoSansInscriptionalPahlavi-Regular.ttf + + + + + NotoSansInscriptionalParthian-Regular.ttf + + + + NotoSansJavanese-Regular.otf + + + + NotoSansKaithi-Regular.ttf + + + + + NotoSansKayahLi-Regular.ttf + + + + + NotoSansKharoshthi-Regular.ttf + + + + + NotoSansLepcha-Regular.ttf + + + + NotoSansLimbu-Regular.ttf + + + + + NotoSansLinearB-Regular.ttf + + + + NotoSansLisu-Regular.ttf + + + + + NotoSansLycian-Regular.ttf + + + + + NotoSansLydian-Regular.ttf + + + + + NotoSansMandaic-Regular.ttf + + + + + NotoSansMeeteiMayek-Regular.ttf + + + + + NotoSansNewTaiLue-Regular.ttf + + + + NotoSansNKo-Regular.ttf + + + + NotoSansOgham-Regular.ttf + + + + + NotoSansOlChiki-Regular.ttf + + + + + NotoSansOldItalic-Regular.ttf + + + + + NotoSansOldPersian-Regular.ttf + + + + + NotoSansOldSouthArabian-Regular.ttf + + + + + NotoSansOldTurkic-Regular.ttf + + + + NotoSansOsage-Regular.ttf + + + + NotoSansOsmanya-Regular.ttf + + + + + NotoSansPhoenician-Regular.ttf + + + + + NotoSansRejang-Regular.ttf + + + + NotoSansRunic-Regular.ttf + + + + + NotoSansSamaritan-Regular.ttf + + + + + NotoSansSaurashtra-Regular.ttf + + + + + NotoSansShavian-Regular.ttf + + + + + NotoSansSundanese-Regular.ttf + + + + + NotoSansSylotiNagri-Regular.ttf + + + + + + NotoSansSyriacEstrangela-Regular.ttf + + + + + NotoSansSyriacEastern-Regular.ttf + + + + + NotoSansSyriacWestern-Regular.ttf + + + + + NotoSansTagalog-Regular.ttf + + + + + NotoSansTagbanwa-Regular.ttf + + + + + NotoSansTaiTham-Regular.ttf + + + + + NotoSansTaiViet-Regular.ttf + + + + + + + + FZZWXBTOT_Uni.ttf + + + + NotoSansTifinagh-Regular.otf + + + + NotoSansUgaritic-Regular.ttf + + + + NotoSansVai-Regular.ttf + + + + NotoSansSymbols-Regular-Subsetted.ttf + + + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + NotoSerifCJK-Regular.ttc + + + + + NotoSerifHentaigana.ttf + + + + NotoSerifHentaigana.ttf + + + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + + NotoSansCJK-Regular.ttc + + + NotoSerifCJK-Regular.ttc + + + + NotoColorEmojiLegacy.ttf + + + NotoColorEmoji.ttf + + + NotoColorEmojiFlags.ttf + + + NotoSansSymbols-Regular-Subsetted2.ttf + + + + NotoSansTaiLe-Regular.ttf + + + + NotoSansYi-Regular.ttf + + + + NotoSansMongolian-Regular.ttf + + + + + NotoSansPhagsPa-Regular.ttf + + + + NotoSansAnatolianHieroglyphs-Regular.otf + + + NotoSansBassaVah-Regular.otf + + + NotoSansBhaiksuki-Regular.otf + + + NotoSansHatran-Regular.otf + + + NotoSansLinearA-Regular.otf + + + NotoSansManichaean-Regular.otf + + + NotoSansMarchen-Regular.otf + + + NotoSansMeroitic-Regular.otf + + + NotoSansMiao-Regular.otf + + + NotoSansMro-Regular.otf + + + NotoSansMultani-Regular.otf + + + NotoSansNabataean-Regular.otf + + + NotoSansNewa-Regular.otf + + + NotoSansOldNorthArabian-Regular.otf + + + NotoSansOldPermic-Regular.otf + + + NotoSansPahawhHmong-Regular.otf + + + NotoSansPalmyrene-Regular.otf + + + NotoSansPauCinHau-Regular.otf + + + NotoSansSharada-Regular.otf + + + NotoSansSoraSompeng-Regular.otf + + + NotoSansGunjalaGondi-Regular.otf + + + NotoSansHanifiRohingya-Regular.otf + + + NotoSansKhojki-Regular.otf + + + NotoSansMasaramGondi-Regular.otf + + + NotoSansWancho-Regular.otf + + + NotoSansWarangCiti-Regular.otf + + + NotoSansGrantha-Regular.ttf + + + NotoSansModi-Regular.ttf + + + NotoSerifDogra-Regular.ttf + + + + NotoSansMedefaidrin-VF.ttf + + + + NotoSansMedefaidrin-VF.ttf + + + + NotoSansMedefaidrin-VF.ttf + + + + NotoSansMedefaidrin-VF.ttf + + + + + + NotoSansSoyombo-VF.ttf + + + + NotoSansSoyombo-VF.ttf + + + + NotoSansSoyombo-VF.ttf + + + + NotoSansSoyombo-VF.ttf + + + + + + NotoSansTakri-VF.ttf + + + + NotoSansTakri-VF.ttf + + + + NotoSansTakri-VF.ttf + + + + NotoSansTakri-VF.ttf + + + + + + NotoSerifNyiakengPuachueHmong-VF.ttf + + + + NotoSerifNyiakengPuachueHmong-VF.ttf + + + + NotoSerifNyiakengPuachueHmong-VF.ttf + + + + NotoSerifNyiakengPuachueHmong-VF.ttf + + + + + + NotoSerifYezidi-VF.ttf + + + + NotoSerifYezidi-VF.ttf + + + + NotoSerifYezidi-VF.ttf + + + + NotoSerifYezidi-VF.ttf + + + + diff --git a/src/system/system_ext/etc/fonts_ule.xml b/src/system/system_ext/etc/fonts_ule.xml new file mode 100644 index 0000000..f20df4d --- /dev/null +++ b/src/system/system_ext/etc/fonts_ule.xml @@ -0,0 +1,1796 @@ + + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Static-Regular.ttf + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + SysFont-Regular.ttf + + + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + RobotoStatic-Regular.ttf + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + + + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + SysSans-En-Regular.ttf + + + + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + OPSans-En-Regular.ttf + + + + + + + + + + + + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + Roboto-Regular.ttf + + + + + + + + + + NotoSerif-Regular.ttf + NotoSerif-Bold.ttf + NotoSerif-Italic.ttf + NotoSerif-BoldItalic.ttf + + + + + + + + + + + + + DroidSansMono.ttf + + + + + + CutiveMono.ttf + + + + + + ComingSoon.ttf + + + + DancingScript-Regular.ttf + + DancingScript-Bold.ttf + + + + CarroisGothicSC-Regular.ttf + + + + SourceSansPro-Regular.ttf + SourceSansPro-Italic.ttf + SourceSansPro-SemiBold.ttf + SourceSansPro-SemiBoldItalic.ttf + SourceSansPro-Bold.ttf + SourceSansPro-BoldItalic.ttf + + + + + + OSans-Ext-Regular.otf + + + + + NotoNaskhArabic-Regular.ttf + + NotoNaskhArabic-Bold.ttf + + + + NotoNaskhArabicUI-Regular.ttf + + NotoNaskhArabicUI-Bold.ttf + + + + NotoSansEthiopic-VF.ttf + + + + NotoSansEthiopic-VF.ttf + + + + NotoSansEthiopic-VF.ttf + + + + NotoSansEthiopic-VF.ttf + + + NotoSerifEthiopic-VF.ttf + + + NotoSerifEthiopic-VF.ttf + + + NotoSerifEthiopic-VF.ttf + + + NotoSerifEthiopic-VF.ttf + + + + + + NotoSansHebrew-Regular.ttf + + NotoSansHebrew-Bold.ttf + NotoSerifHebrew-Regular.ttf + NotoSerifHebrew-Bold.ttf + + + NotoSansThai-Regular.ttf + + NotoSansThai-Bold.ttf + + NotoSerifThai-Regular.ttf + + NotoSerifThai-Bold.ttf + + + + NotoSansThaiUI-Regular.ttf + + NotoSansThaiUI-Bold.ttf + + + + NotoSansArmenian-VF.ttf + + + + NotoSansArmenian-VF.ttf + + + + NotoSansArmenian-VF.ttf + + + + NotoSansArmenian-VF.ttf + + + NotoSerifArmenian-VF.ttf + + + NotoSerifArmenian-VF.ttf + + + NotoSerifArmenian-VF.ttf + + + NotoSerifArmenian-VF.ttf + + + + + + NotoSansGeorgian-VF.ttf + + + + NotoSansGeorgian-VF.ttf + + + + NotoSansGeorgian-VF.ttf + + + + NotoSansGeorgian-VF.ttf + + + NotoSerifGeorgian-VF.ttf + + + NotoSerifGeorgian-VF.ttf + + + NotoSerifGeorgian-VF.ttf + + + NotoSerifGeorgian-VF.ttf + + + + + + NotoSansDevanagari-VF.ttf + + + + NotoSansDevanagari-VF.ttf + + + + NotoSansDevanagari-VF.ttf + + + + NotoSansDevanagari-VF.ttf + + + NotoSerifDevanagari-VF.ttf + + + NotoSerifDevanagari-VF.ttf + + + NotoSerifDevanagari-VF.ttf + + + NotoSerifDevanagari-VF.ttf + + + + + + NotoSansDevanagariUI-VF.ttf + + + + NotoSansDevanagariUI-VF.ttf + + + + NotoSansDevanagariUI-VF.ttf + + + + NotoSansDevanagariUI-VF.ttf + + + + + + + + NotoSansGujarati-Regular.ttf + + NotoSansGujarati-Bold.ttf + NotoSerifGujarati-VF.ttf + + + NotoSerifGujarati-VF.ttf + + + NotoSerifGujarati-VF.ttf + + + NotoSerifGujarati-VF.ttf + + + + + + NotoSansGujaratiUI-Regular.ttf + + NotoSansGujaratiUI-Bold.ttf + + + + NotoSansGurmukhi-VF.ttf + + + + NotoSansGurmukhi-VF.ttf + + + + NotoSansGurmukhi-VF.ttf + + + + NotoSansGurmukhi-VF.ttf + + + NotoSerifGurmukhi-VF.ttf + + + NotoSerifGurmukhi-VF.ttf + + + NotoSerifGurmukhi-VF.ttf + + + NotoSerifGurmukhi-VF.ttf + + + + + + NotoSansGurmukhiUI-VF.ttf + + + + NotoSansGurmukhiUI-VF.ttf + + + + NotoSansGurmukhiUI-VF.ttf + + + + NotoSansGurmukhiUI-VF.ttf + + + + + + NotoSansTamil-VF.ttf + + + + NotoSansTamil-VF.ttf + + + + NotoSansTamil-VF.ttf + + + + NotoSansTamil-VF.ttf + + + NotoSerifTamil-VF.ttf + + + NotoSerifTamil-VF.ttf + + + NotoSerifTamil-VF.ttf + + + NotoSerifTamil-VF.ttf + + + + + + NotoSansTamilUI-VF.ttf + + + + NotoSansTamilUI-VF.ttf + + + + NotoSansTamilUI-VF.ttf + + + + NotoSansTamilUI-VF.ttf + + + + + + NotoSansMalayalam-VF.ttf + + + + NotoSansMalayalam-VF.ttf + + + + NotoSansMalayalam-VF.ttf + + + + NotoSansMalayalam-VF.ttf + + + NotoSerifMalayalam-VF.ttf + + + NotoSerifMalayalam-VF.ttf + + + NotoSerifMalayalam-VF.ttf + + + NotoSerifMalayalam-VF.ttf + + + + + + NotoSansMalayalamUI-VF.ttf + + + + NotoSansMalayalamUI-VF.ttf + + + + NotoSansMalayalamUI-VF.ttf + + + + NotoSansMalayalamUI-VF.ttf + + + + + + NotoSansBengali-VF.ttf + + + + NotoSansBengali-VF.ttf + + + + NotoSansBengali-VF.ttf + + + + NotoSansBengali-VF.ttf + + + NotoSerifBengali-VF.ttf + + + NotoSerifBengali-VF.ttf + + + NotoSerifBengali-VF.ttf + + + NotoSerifBengali-VF.ttf + + + + + + NotoSansBengaliUI-VF.ttf + + + + NotoSansBengaliUI-VF.ttf + + + + NotoSansBengaliUI-VF.ttf + + + + NotoSansBengaliUI-VF.ttf + + + + + + NotoSansTelugu-VF.ttf + + + + NotoSansTelugu-VF.ttf + + + + NotoSansTelugu-VF.ttf + + + + NotoSansTelugu-VF.ttf + + + NotoSerifTelugu-VF.ttf + + + NotoSerifTelugu-VF.ttf + + + NotoSerifTelugu-VF.ttf + + + NotoSerifTelugu-VF.ttf + + + + + + NotoSansTeluguUI-VF.ttf + + + + NotoSansTeluguUI-VF.ttf + + + + NotoSansTeluguUI-VF.ttf + + + + NotoSansTeluguUI-VF.ttf + + + + + + NotoSansKannada-VF.ttf + + + + NotoSansKannada-VF.ttf + + + + NotoSansKannada-VF.ttf + + + + NotoSansKannada-VF.ttf + + + NotoSerifKannada-VF.ttf + + + NotoSerifKannada-VF.ttf + + + NotoSerifKannada-VF.ttf + + + NotoSerifKannada-VF.ttf + + + + + + NotoSansKannadaUI-VF.ttf + + + + NotoSansKannadaUI-VF.ttf + + + + NotoSansKannadaUI-VF.ttf + + + + NotoSansKannadaUI-VF.ttf + + + + + NotoSansOriya-Regular.ttf + + NotoSansOriya-Bold.ttf + + + + NotoSansOriyaUI-Regular.ttf + + NotoSansOriyaUI-Bold.ttf + + + + NotoSansSinhala-VF.ttf + + + + NotoSansSinhala-VF.ttf + + + + NotoSansSinhala-VF.ttf + + + + NotoSansSinhala-VF.ttf + + + NotoSerifSinhala-VF.ttf + + + NotoSerifSinhala-VF.ttf + + + NotoSerifSinhala-VF.ttf + + + NotoSerifSinhala-VF.ttf + + + + + + NotoSansSinhalaUI-VF.ttf + + + + NotoSansSinhalaUI-VF.ttf + + + + NotoSansSinhalaUI-VF.ttf + + + + NotoSansSinhalaUI-VF.ttf + + + + + + NotoSansKhmer-VF.ttf + + + + + NotoSansKhmer-VF.ttf + + + + + NotoSansKhmer-VF.ttf + + + + + NotoSansKhmer-VF.ttf + + + + + NotoSansKhmer-VF.ttf + + + + + NotoSansKhmer-VF.ttf + + + + + NotoSansKhmer-VF.ttf + + + + + NotoSansKhmer-VF.ttf + + + + + NotoSansKhmer-VF.ttf + + + + NotoSerifKhmer-Regular.otf + NotoSerifKhmer-Bold.otf + + + + NotoSansKhmerUI-Regular.ttf + + NotoSansKhmerUI-Bold.ttf + + + NotoSansLao-Regular.ttf + + NotoSansLao-Bold.ttf + + NotoSerifLao-Regular.ttf + + NotoSerifLao-Bold.ttf + + + NotoSansLaoUI-Regular.ttf + + NotoSansLaoUI-Bold.ttf + + + + + SysFont-Myanmar.ttf + + + + NotoSansMyanmar-Regular.otf + NotoSansMyanmar-Medium.otf + NotoSansMyanmar-Bold.otf + NotoSerifMyanmar-Regular.otf + NotoSerifMyanmar-Bold.otf + + + NotoSansMyanmarUI-Regular.otf + NotoSansMyanmarUI-Medium.otf + NotoSansMyanmarUI-Bold.otf + + + + + NotoSansMyanmar-Regular.otf + NotoSansMyanmar-Medium.otf + NotoSansMyanmar-Bold.otf + NotoSerifMyanmar-Regular.otf + NotoSerifMyanmar-Bold.otf + + + NotoSansMyanmarUI-Regular.otf + NotoSansMyanmarUI-Medium.otf + NotoSansMyanmarUI-Bold.otf + + + NotoSansMyanmar-Regular-ZawDecode.ttf + NotoSansMyanmar-Bold-ZawDecode.ttf + NotoSerifMyanmar-Regular.otf + NotoSerifMyanmar-Bold.otf + + + NotoSansMyanmarUI-Regular-ZawDecode.ttf + NotoSansMyanmarUI-Bold-ZawDecode.ttf + + + MyanmarZg.ttf + + + + + NotoSansThaana-Regular.ttf + + NotoSansThaana-Bold.ttf + + + NotoSansCham-Regular.ttf + + NotoSansCham-Bold.ttf + + + NotoSansAhom-Regular.otf + + + + NotoSansAdlam-VF.ttf + + + + NotoSansAdlam-VF.ttf + + + + NotoSansAdlam-VF.ttf + + + + NotoSansAdlam-VF.ttf + + + + + + NotoSansAvestan-Regular.ttf + + + + + NotoSansBalinese-Regular.ttf + + + + NotoSansBamum-Regular.ttf + + + + NotoSansBatak-Regular.ttf + + + + + NotoSansBrahmi-Regular.ttf + + + + + NotoSansBuginese-Regular.ttf + + + + NotoSansBuhid-Regular.ttf + + + + + NotoSansCanadianAboriginal-Regular.ttf + + + + + NotoSansCarian-Regular.ttf + + + + NotoSansChakma-Regular.otf + + + NotoSansCherokee-Regular.ttf + + + + NotoSansCoptic-Regular.ttf + + + + + NotoSansCuneiform-Regular.ttf + + + + + NotoSansCypriot-Regular.ttf + + + + + NotoSansDeseret-Regular.ttf + + + + + NotoSansEgyptianHieroglyphs-Regular.ttf + + + + NotoSansElbasan-Regular.otf + + + + NotoSansGlagolitic-Regular.ttf + + + + + NotoSansGothic-Regular.ttf + + + + + NotoSansHanunoo-Regular.ttf + + + + + NotoSansImperialAramaic-Regular.ttf + + + + + NotoSansInscriptionalPahlavi-Regular.ttf + + + + + NotoSansInscriptionalParthian-Regular.ttf + + + + NotoSansJavanese-Regular.otf + + + + NotoSansKaithi-Regular.ttf + + + + + NotoSansKayahLi-Regular.ttf + + + + + NotoSansKharoshthi-Regular.ttf + + + + + NotoSansLepcha-Regular.ttf + + + + NotoSansLimbu-Regular.ttf + + + + + NotoSansLinearB-Regular.ttf + + + + NotoSansLisu-Regular.ttf + + + + + NotoSansLycian-Regular.ttf + + + + + NotoSansLydian-Regular.ttf + + + + + NotoSansMandaic-Regular.ttf + + + + + NotoSansMeeteiMayek-Regular.ttf + + + + + NotoSansNewTaiLue-Regular.ttf + + + + NotoSansNKo-Regular.ttf + + + + NotoSansOgham-Regular.ttf + + + + + NotoSansOlChiki-Regular.ttf + + + + + NotoSansOldItalic-Regular.ttf + + + + + NotoSansOldPersian-Regular.ttf + + + + + NotoSansOldSouthArabian-Regular.ttf + + + + + NotoSansOldTurkic-Regular.ttf + + + + NotoSansOsage-Regular.ttf + + + + NotoSansOsmanya-Regular.ttf + + + + + NotoSansPhoenician-Regular.ttf + + + + + NotoSansRejang-Regular.ttf + + + + NotoSansRunic-Regular.ttf + + + + + NotoSansSamaritan-Regular.ttf + + + + + NotoSansSaurashtra-Regular.ttf + + + + + NotoSansShavian-Regular.ttf + + + + + NotoSansSundanese-Regular.ttf + + + + + NotoSansSylotiNagri-Regular.ttf + + + + + + NotoSansSyriacEstrangela-Regular.ttf + + + + + NotoSansSyriacEastern-Regular.ttf + + + + + NotoSansSyriacWestern-Regular.ttf + + + + + NotoSansTagalog-Regular.ttf + + + + + NotoSansTagbanwa-Regular.ttf + + + + + NotoSansTaiTham-Regular.ttf + + + + + NotoSansTaiViet-Regular.ttf + + + + + + + + FZZWXBTOT_Uni.ttf + + + + NotoSansTifinagh-Regular.otf + + + + NotoSansUgaritic-Regular.ttf + + + + NotoSansVai-Regular.ttf + + + + NotoSansSymbols-Regular-Subsetted.ttf + + + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + SysSans-Hans-Regular.ttf + + + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + SysSans-Hant-Regular.ttf + + + + + + + NotoSansCJK-Regular.ttc + + NotoSerifCJK-Regular.ttc + + + + + NotoSansCJK-Regular.ttc + + NotoSerifCJK-Regular.ttc + + + + NotoColorEmojiLegacy.ttf + + + NotoColorEmoji.ttf + + + NotoColorEmojiFlags.ttf + + + NotoSansSymbols-Regular-Subsetted2.ttf + + + + NotoSansTaiLe-Regular.ttf + + + + NotoSansYi-Regular.ttf + + + + NotoSansMongolian-Regular.ttf + + + + + NotoSansPhagsPa-Regular.ttf + + + + NotoSansAnatolianHieroglyphs-Regular.otf + + + NotoSansBassaVah-Regular.otf + + + NotoSansBhaiksuki-Regular.otf + + + NotoSansHatran-Regular.otf + + + NotoSansLinearA-Regular.otf + + + NotoSansManichaean-Regular.otf + + + NotoSansMarchen-Regular.otf + + + NotoSansMeroitic-Regular.otf + + + NotoSansMiao-Regular.otf + + + NotoSansMro-Regular.otf + + + NotoSansMultani-Regular.otf + + + NotoSansNabataean-Regular.otf + + + NotoSansNewa-Regular.otf + + + NotoSansOldNorthArabian-Regular.otf + + + NotoSansOldPermic-Regular.otf + + + NotoSansPahawhHmong-Regular.otf + + + NotoSansPalmyrene-Regular.otf + + + NotoSansPauCinHau-Regular.otf + + + NotoSansSharada-Regular.otf + + + NotoSansSoraSompeng-Regular.otf + + + NotoSansGunjalaGondi-Regular.otf + + + NotoSansHanifiRohingya-Regular.otf + + + NotoSansKhojki-Regular.otf + + + NotoSansMasaramGondi-Regular.otf + + + NotoSansWancho-Regular.otf + + + NotoSansWarangCiti-Regular.otf + + + NotoSansGrantha-Regular.ttf + + + NotoSansModi-Regular.ttf + + + NotoSerifDogra-Regular.ttf + + + + NotoSansMedefaidrin-VF.ttf + + + + NotoSansMedefaidrin-VF.ttf + + + + NotoSansMedefaidrin-VF.ttf + + + + NotoSansMedefaidrin-VF.ttf + + + + + + NotoSansSoyombo-VF.ttf + + + + NotoSansSoyombo-VF.ttf + + + + NotoSansSoyombo-VF.ttf + + + + NotoSansSoyombo-VF.ttf + + + + + + NotoSansTakri-VF.ttf + + + + NotoSansTakri-VF.ttf + + + + NotoSansTakri-VF.ttf + + + + NotoSansTakri-VF.ttf + + + + + + NotoSerifNyiakengPuachueHmong-VF.ttf + + + + NotoSerifNyiakengPuachueHmong-VF.ttf + + + + NotoSerifNyiakengPuachueHmong-VF.ttf + + + + NotoSerifNyiakengPuachueHmong-VF.ttf + + + + + + NotoSerifYezidi-VF.ttf + + + + NotoSerifYezidi-VF.ttf + + + + NotoSerifYezidi-VF.ttf + + + + NotoSerifYezidi-VF.ttf + + + + \ No newline at end of file diff --git a/template/README.txt b/template/README.txt deleted file mode 100755 index 8f85ea8..0000000 --- a/template/README.txt +++ /dev/null @@ -1,5 +0,0 @@ -从 V1.2 版本,不再将打包后的 zip 上传,改为上传解压后的目录 - -若您使用 git clone 克隆了源代码,需要手动将 template/ 打包为 template.zip 才能运行项目 - -如果你是下载的发行版本(压缩包),不用管这个。构建时,Action 会自动进行打包 diff --git a/template/template/action.sh b/template/template/action.sh deleted file mode 100755 index a9fb1c2..0000000 --- a/template/template/action.sh +++ /dev/null @@ -1,47 +0,0 @@ -# shellcheck disable=SC2148 -# shellcheck disable=SC1091 - -# FontMM ColorOS 16 -# Action 脚本 -MODDIR=${0%/*} - -# 音量键选择 -choose() { - local timeout=15 # 设置 15 秒超时,防止用户挂机导致刷入卡死 - local result="" - - echo "请在 $timeout 秒内按音量键选择功能:" - echo " 音量+ : 更换字体(请在 模块目录/ttf 目录放新字体)" - # echo " 音量- : 导出当前字体为模块" - echo " 其他: 退出选择" - echo - - result=$(timeout $timeout /system/bin/getevent -l -c 1 2>/dev/null | grep -m 1 -E "KEY_VOLUMEUP|KEY_VOLUMEDOWN") - - case "$result" in - *KEY_VOLUMEUP*) - echo " 选择: 更换字体" - return 0 - ;; - # *KEY_VOLUMEDOWN*) - # echo " 选择: 导出当前字体为模块" - # return 1 - # ;; - *) - echo " 超时或用户退出" - return 2 - ;; - esac -} - -echo -echo "-------- FontMM 功能 -------" -echo - -choose -choose_mode=$? -case $choose_mode in - 0) . "$MODDIR/tools/replace_font.sh" ;; - # 1) . "$MODDIR/tools/export_module.sh" ;; - 2) exit 1 ;; -esac diff --git a/template/template/customize.sh b/template/template/customize.sh deleted file mode 100755 index e3683f4..0000000 --- a/template/template/customize.sh +++ /dev/null @@ -1,43 +0,0 @@ -# shellcheck disable=SC2148 -# FontMM ColorOS 16 -# 刷入脚本(带完整性校验) - -COPY_WITH_VERIFY() { - src="$1" - dst="$2" - - [ ! -f "$src" ] && abort "源文件不存在: $src" - sha_src=$(sha256sum "$src" | awk '{print $1}') - cp -f "$src" "$dst" || abort "复制失败: $dst" - sha_dst=$(sha256sum "$dst" | awk '{print $1}') - [ "$sha_src" != "$sha_dst" ] && abort "SHA256校验失败: $dst" - chmod 0644 "$dst" || abort "权限设置失败: $dst" - echo "✔ 已校验并安装: $(basename "$dst")" -} - -FLASH_RENAMER() { - # 兜底字体 - [ ! -f "$MODPATH/ttf/ch.ttf" ] && abort "缺少 ch.ttf,终止" - - hans="$MODPATH/ttf/ch.ttf" - hant="$MODPATH/ttf/ch.ttf" - en="$MODPATH/ttf/ch.ttf" - - [ -f "$MODPATH/ttf/tc.ttf" ] && hant="$MODPATH/ttf/tc.ttf" - [ -f "$MODPATH/ttf/en.ttf" ] && en="$MODPATH/ttf/en.ttf" - - # === 开始复制 + 校验 === - COPY_WITH_VERIFY "$hant" "$MODPATH/system/fonts/SysSans-Hant-Regular.ttf" - COPY_WITH_VERIFY "$hans" "$MODPATH/system/fonts/SysSans-Hans-Regular.ttf" - COPY_WITH_VERIFY "$en" "$MODPATH/system/fonts/SysSans-En-Regular.ttf" - - COPY_WITH_VERIFY "$hans" "$MODPATH/system/fonts/SysFont-Static-Regular.ttf" - COPY_WITH_VERIFY "$hans" "$MODPATH/system/fonts/SysFont-Myanmar.ttf" - COPY_WITH_VERIFY "$hant" "$MODPATH/system/fonts/SysFont-Hant-Regular.ttf" - COPY_WITH_VERIFY "$hans" "$MODPATH/system/fonts/SysFont-Hans-Regular.ttf" - COPY_WITH_VERIFY "$hans" "$MODPATH/system/fonts/SysFont-Regular.ttf" - - echo "所有字体复制、校验、权限设置完成" -} - -FLASH_RENAMER diff --git a/template/template/post-fs-data.sh b/template/template/post-fs-data.sh deleted file mode 100755 index b532e15..0000000 --- a/template/template/post-fs-data.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/system/bin/sh -# MODDIR=${0%/*} - -# 删除谷歌商店搜索框字体 -rm -rf /data/data/com.google.android.gms/files/fonts/opentype -touch /data/data/com.google.android.gms/files/fonts/opentype -chmod 444 /data/data/com.google.android.gms/files/fonts/opentype - -# 这个脚本将以 post-fs-data 模式执行(系统启动前执行) diff --git a/template/template/system/fonts/AndroidClock.ttf b/template/template/system/fonts/AndroidClock.ttf deleted file mode 100755 index a955442..0000000 Binary files a/template/template/system/fonts/AndroidClock.ttf and /dev/null differ diff --git a/template/template/system/fonts/CarroisGothicSC-Regular.ttf b/template/template/system/fonts/CarroisGothicSC-Regular.ttf deleted file mode 100755 index c363454..0000000 Binary files a/template/template/system/fonts/CarroisGothicSC-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/ComingSoon.ttf b/template/template/system/fonts/ComingSoon.ttf deleted file mode 100755 index 428f144..0000000 Binary files a/template/template/system/fonts/ComingSoon.ttf and /dev/null differ diff --git a/template/template/system/fonts/CutiveMono.ttf b/template/template/system/fonts/CutiveMono.ttf deleted file mode 100755 index 980fab9..0000000 Binary files a/template/template/system/fonts/CutiveMono.ttf and /dev/null differ diff --git a/template/template/system/fonts/DancingScript-Regular.ttf b/template/template/system/fonts/DancingScript-Regular.ttf deleted file mode 100755 index 9f521e7..0000000 Binary files a/template/template/system/fonts/DancingScript-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/DroidSans-Bold.ttf b/template/template/system/fonts/DroidSans-Bold.ttf deleted file mode 100755 index f608454..0000000 Binary files a/template/template/system/fonts/DroidSans-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/DroidSans.ttf b/template/template/system/fonts/DroidSans.ttf deleted file mode 100755 index 729eda9..0000000 Binary files a/template/template/system/fonts/DroidSans.ttf and /dev/null differ diff --git a/template/template/system/fonts/DroidSansMono.ttf b/template/template/system/fonts/DroidSansMono.ttf deleted file mode 100755 index b7bf5b4..0000000 Binary files a/template/template/system/fonts/DroidSansMono.ttf and /dev/null differ diff --git a/template/template/system/fonts/FZZWXBTOT_Uni.ttf b/template/template/system/fonts/FZZWXBTOT_Uni.ttf deleted file mode 100755 index 21eccbc..0000000 Binary files a/template/template/system/fonts/FZZWXBTOT_Uni.ttf and /dev/null differ diff --git a/template/template/system/fonts/MyanmarZg.ttf b/template/template/system/fonts/MyanmarZg.ttf deleted file mode 100755 index e33081f..0000000 Binary files a/template/template/system/fonts/MyanmarZg.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoColorEmoji.ttf b/template/template/system/fonts/NotoColorEmoji.ttf deleted file mode 100755 index f7ccf83..0000000 Binary files a/template/template/system/fonts/NotoColorEmoji.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoColorEmojiFlags.ttf b/template/template/system/fonts/NotoColorEmojiFlags.ttf deleted file mode 100755 index 6e1642e..0000000 Binary files a/template/template/system/fonts/NotoColorEmojiFlags.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoNaskhArabic-Bold.ttf b/template/template/system/fonts/NotoNaskhArabic-Bold.ttf deleted file mode 100755 index ca75a3e..0000000 Binary files a/template/template/system/fonts/NotoNaskhArabic-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoNaskhArabic-Regular.ttf b/template/template/system/fonts/NotoNaskhArabic-Regular.ttf deleted file mode 100755 index cac2af2..0000000 Binary files a/template/template/system/fonts/NotoNaskhArabic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoNaskhArabicUI-Bold.ttf b/template/template/system/fonts/NotoNaskhArabicUI-Bold.ttf deleted file mode 100755 index f510610..0000000 Binary files a/template/template/system/fonts/NotoNaskhArabicUI-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoNaskhArabicUI-Regular.ttf b/template/template/system/fonts/NotoNaskhArabicUI-Regular.ttf deleted file mode 100755 index 138b375..0000000 Binary files a/template/template/system/fonts/NotoNaskhArabicUI-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansAdlam-VF.ttf b/template/template/system/fonts/NotoSansAdlam-VF.ttf deleted file mode 100755 index 11207b0..0000000 Binary files a/template/template/system/fonts/NotoSansAdlam-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansAhom-Regular.otf b/template/template/system/fonts/NotoSansAhom-Regular.otf deleted file mode 100755 index 2edf458..0000000 Binary files a/template/template/system/fonts/NotoSansAhom-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansAnatolianHieroglyphs-Regular.otf b/template/template/system/fonts/NotoSansAnatolianHieroglyphs-Regular.otf deleted file mode 100755 index 7c1e87a..0000000 Binary files a/template/template/system/fonts/NotoSansAnatolianHieroglyphs-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansArmenian-VF.ttf b/template/template/system/fonts/NotoSansArmenian-VF.ttf deleted file mode 100755 index 769660a..0000000 Binary files a/template/template/system/fonts/NotoSansArmenian-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansAvestan-Regular.ttf b/template/template/system/fonts/NotoSansAvestan-Regular.ttf deleted file mode 100755 index 31eeb5a..0000000 Binary files a/template/template/system/fonts/NotoSansAvestan-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBalinese-Regular.ttf b/template/template/system/fonts/NotoSansBalinese-Regular.ttf deleted file mode 100755 index a15509b..0000000 Binary files a/template/template/system/fonts/NotoSansBalinese-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBamum-Regular.ttf b/template/template/system/fonts/NotoSansBamum-Regular.ttf deleted file mode 100755 index f2de187..0000000 Binary files a/template/template/system/fonts/NotoSansBamum-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBassaVah-Regular.otf b/template/template/system/fonts/NotoSansBassaVah-Regular.otf deleted file mode 100755 index 0b7b7b8..0000000 Binary files a/template/template/system/fonts/NotoSansBassaVah-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBatak-Regular.ttf b/template/template/system/fonts/NotoSansBatak-Regular.ttf deleted file mode 100755 index 882ad96..0000000 Binary files a/template/template/system/fonts/NotoSansBatak-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBengali-VF.ttf b/template/template/system/fonts/NotoSansBengali-VF.ttf deleted file mode 100755 index a034779..0000000 Binary files a/template/template/system/fonts/NotoSansBengali-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBengaliUI-VF.ttf b/template/template/system/fonts/NotoSansBengaliUI-VF.ttf deleted file mode 100755 index a2bd0c3..0000000 Binary files a/template/template/system/fonts/NotoSansBengaliUI-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBhaiksuki-Regular.otf b/template/template/system/fonts/NotoSansBhaiksuki-Regular.otf deleted file mode 100755 index dcf3862..0000000 Binary files a/template/template/system/fonts/NotoSansBhaiksuki-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBrahmi-Regular.ttf b/template/template/system/fonts/NotoSansBrahmi-Regular.ttf deleted file mode 100755 index eb98a65..0000000 Binary files a/template/template/system/fonts/NotoSansBrahmi-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBuginese-Regular.ttf b/template/template/system/fonts/NotoSansBuginese-Regular.ttf deleted file mode 100755 index fd59da6..0000000 Binary files a/template/template/system/fonts/NotoSansBuginese-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansBuhid-Regular.ttf b/template/template/system/fonts/NotoSansBuhid-Regular.ttf deleted file mode 100755 index 756218f..0000000 Binary files a/template/template/system/fonts/NotoSansBuhid-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansCJK-Regular.ttc b/template/template/system/fonts/NotoSansCJK-Regular.ttc deleted file mode 100755 index 9d56636..0000000 Binary files a/template/template/system/fonts/NotoSansCJK-Regular.ttc and /dev/null differ diff --git a/template/template/system/fonts/NotoSansCanadianAboriginal-Regular.ttf b/template/template/system/fonts/NotoSansCanadianAboriginal-Regular.ttf deleted file mode 100755 index c036d94..0000000 Binary files a/template/template/system/fonts/NotoSansCanadianAboriginal-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansCarian-Regular.ttf b/template/template/system/fonts/NotoSansCarian-Regular.ttf deleted file mode 100755 index 8abada1..0000000 Binary files a/template/template/system/fonts/NotoSansCarian-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansChakma-Regular.otf b/template/template/system/fonts/NotoSansChakma-Regular.otf deleted file mode 100755 index d9690ca..0000000 Binary files a/template/template/system/fonts/NotoSansChakma-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansCham-Bold.ttf b/template/template/system/fonts/NotoSansCham-Bold.ttf deleted file mode 100755 index 5f98099..0000000 Binary files a/template/template/system/fonts/NotoSansCham-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansCham-Regular.ttf b/template/template/system/fonts/NotoSansCham-Regular.ttf deleted file mode 100755 index be897d4..0000000 Binary files a/template/template/system/fonts/NotoSansCham-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansCherokee-Regular.ttf b/template/template/system/fonts/NotoSansCherokee-Regular.ttf deleted file mode 100755 index 1dfef8b..0000000 Binary files a/template/template/system/fonts/NotoSansCherokee-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansCoptic-Regular.ttf b/template/template/system/fonts/NotoSansCoptic-Regular.ttf deleted file mode 100755 index d327c79..0000000 Binary files a/template/template/system/fonts/NotoSansCoptic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansCuneiform-Regular.ttf b/template/template/system/fonts/NotoSansCuneiform-Regular.ttf deleted file mode 100755 index 37a4e9e..0000000 Binary files a/template/template/system/fonts/NotoSansCuneiform-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansCypriot-Regular.ttf b/template/template/system/fonts/NotoSansCypriot-Regular.ttf deleted file mode 100755 index bc4083e..0000000 Binary files a/template/template/system/fonts/NotoSansCypriot-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansDeseret-Regular.ttf b/template/template/system/fonts/NotoSansDeseret-Regular.ttf deleted file mode 100755 index c043a54..0000000 Binary files a/template/template/system/fonts/NotoSansDeseret-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansDevanagari-VF.ttf b/template/template/system/fonts/NotoSansDevanagari-VF.ttf deleted file mode 100755 index f871a48..0000000 Binary files a/template/template/system/fonts/NotoSansDevanagari-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansDevanagariUI-VF.ttf b/template/template/system/fonts/NotoSansDevanagariUI-VF.ttf deleted file mode 100755 index 1c023cf..0000000 Binary files a/template/template/system/fonts/NotoSansDevanagariUI-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansEgyptianHieroglyphs-Regular.ttf b/template/template/system/fonts/NotoSansEgyptianHieroglyphs-Regular.ttf deleted file mode 100755 index 62ee897..0000000 Binary files a/template/template/system/fonts/NotoSansEgyptianHieroglyphs-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansElbasan-Regular.otf b/template/template/system/fonts/NotoSansElbasan-Regular.otf deleted file mode 100755 index 1c28397..0000000 Binary files a/template/template/system/fonts/NotoSansElbasan-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansEthiopic-VF.ttf b/template/template/system/fonts/NotoSansEthiopic-VF.ttf deleted file mode 100755 index e2f46a9..0000000 Binary files a/template/template/system/fonts/NotoSansEthiopic-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGeorgian-VF.ttf b/template/template/system/fonts/NotoSansGeorgian-VF.ttf deleted file mode 100755 index 235d6af..0000000 Binary files a/template/template/system/fonts/NotoSansGeorgian-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGlagolitic-Regular.ttf b/template/template/system/fonts/NotoSansGlagolitic-Regular.ttf deleted file mode 100755 index 86237aa..0000000 Binary files a/template/template/system/fonts/NotoSansGlagolitic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGothic-Regular.ttf b/template/template/system/fonts/NotoSansGothic-Regular.ttf deleted file mode 100755 index d653ee1..0000000 Binary files a/template/template/system/fonts/NotoSansGothic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGrantha-Regular.ttf b/template/template/system/fonts/NotoSansGrantha-Regular.ttf deleted file mode 100755 index 3039d73..0000000 Binary files a/template/template/system/fonts/NotoSansGrantha-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGujarati-Bold.ttf b/template/template/system/fonts/NotoSansGujarati-Bold.ttf deleted file mode 100755 index 7b6f05f..0000000 Binary files a/template/template/system/fonts/NotoSansGujarati-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGujarati-Regular.ttf b/template/template/system/fonts/NotoSansGujarati-Regular.ttf deleted file mode 100755 index 7af1329..0000000 Binary files a/template/template/system/fonts/NotoSansGujarati-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGujaratiUI-Bold.ttf b/template/template/system/fonts/NotoSansGujaratiUI-Bold.ttf deleted file mode 100755 index d60a348..0000000 Binary files a/template/template/system/fonts/NotoSansGujaratiUI-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGujaratiUI-Regular.ttf b/template/template/system/fonts/NotoSansGujaratiUI-Regular.ttf deleted file mode 100755 index 1bb407d..0000000 Binary files a/template/template/system/fonts/NotoSansGujaratiUI-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGunjalaGondi-Regular.otf b/template/template/system/fonts/NotoSansGunjalaGondi-Regular.otf deleted file mode 100755 index 4cc0fa3..0000000 Binary files a/template/template/system/fonts/NotoSansGunjalaGondi-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGurmukhi-VF.ttf b/template/template/system/fonts/NotoSansGurmukhi-VF.ttf deleted file mode 100755 index ba48e40..0000000 Binary files a/template/template/system/fonts/NotoSansGurmukhi-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansGurmukhiUI-VF.ttf b/template/template/system/fonts/NotoSansGurmukhiUI-VF.ttf deleted file mode 100755 index 930289f..0000000 Binary files a/template/template/system/fonts/NotoSansGurmukhiUI-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansHanifiRohingya-Regular.otf b/template/template/system/fonts/NotoSansHanifiRohingya-Regular.otf deleted file mode 100755 index f3dc231..0000000 Binary files a/template/template/system/fonts/NotoSansHanifiRohingya-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansHanunoo-Regular.ttf b/template/template/system/fonts/NotoSansHanunoo-Regular.ttf deleted file mode 100755 index 480af34..0000000 Binary files a/template/template/system/fonts/NotoSansHanunoo-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansHatran-Regular.otf b/template/template/system/fonts/NotoSansHatran-Regular.otf deleted file mode 100755 index 1259095..0000000 Binary files a/template/template/system/fonts/NotoSansHatran-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansHebrew-Bold.ttf b/template/template/system/fonts/NotoSansHebrew-Bold.ttf deleted file mode 100755 index 64844fe..0000000 Binary files a/template/template/system/fonts/NotoSansHebrew-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansHebrew-Regular.ttf b/template/template/system/fonts/NotoSansHebrew-Regular.ttf deleted file mode 100755 index c161ce5..0000000 Binary files a/template/template/system/fonts/NotoSansHebrew-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansImperialAramaic-Regular.ttf b/template/template/system/fonts/NotoSansImperialAramaic-Regular.ttf deleted file mode 100755 index 10802e3..0000000 Binary files a/template/template/system/fonts/NotoSansImperialAramaic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansInscriptionalPahlavi-Regular.ttf b/template/template/system/fonts/NotoSansInscriptionalPahlavi-Regular.ttf deleted file mode 100755 index 44d5296..0000000 Binary files a/template/template/system/fonts/NotoSansInscriptionalPahlavi-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansInscriptionalParthian-Regular.ttf b/template/template/system/fonts/NotoSansInscriptionalParthian-Regular.ttf deleted file mode 100755 index bca05aa..0000000 Binary files a/template/template/system/fonts/NotoSansInscriptionalParthian-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansJavanese-Regular.otf b/template/template/system/fonts/NotoSansJavanese-Regular.otf deleted file mode 100755 index e1aa665..0000000 Binary files a/template/template/system/fonts/NotoSansJavanese-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansKaithi-Regular.ttf b/template/template/system/fonts/NotoSansKaithi-Regular.ttf deleted file mode 100755 index 22b8c47..0000000 Binary files a/template/template/system/fonts/NotoSansKaithi-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansKannada-VF.ttf b/template/template/system/fonts/NotoSansKannada-VF.ttf deleted file mode 100755 index 7447a89..0000000 Binary files a/template/template/system/fonts/NotoSansKannada-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansKannadaUI-VF.ttf b/template/template/system/fonts/NotoSansKannadaUI-VF.ttf deleted file mode 100755 index 30b7301..0000000 Binary files a/template/template/system/fonts/NotoSansKannadaUI-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansKayahLi-Regular.ttf b/template/template/system/fonts/NotoSansKayahLi-Regular.ttf deleted file mode 100755 index 75b6b80..0000000 Binary files a/template/template/system/fonts/NotoSansKayahLi-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansKharoshthi-Regular.ttf b/template/template/system/fonts/NotoSansKharoshthi-Regular.ttf deleted file mode 100755 index 1f4a9a6..0000000 Binary files a/template/template/system/fonts/NotoSansKharoshthi-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansKhmer-VF.ttf b/template/template/system/fonts/NotoSansKhmer-VF.ttf deleted file mode 100755 index 4ede67c..0000000 Binary files a/template/template/system/fonts/NotoSansKhmer-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansKhmerUI-Bold.ttf b/template/template/system/fonts/NotoSansKhmerUI-Bold.ttf deleted file mode 100755 index 592414c..0000000 Binary files a/template/template/system/fonts/NotoSansKhmerUI-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansKhmerUI-Regular.ttf b/template/template/system/fonts/NotoSansKhmerUI-Regular.ttf deleted file mode 100755 index 7a11a81..0000000 Binary files a/template/template/system/fonts/NotoSansKhmerUI-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansKhojki-Regular.otf b/template/template/system/fonts/NotoSansKhojki-Regular.otf deleted file mode 100755 index 99146ac..0000000 Binary files a/template/template/system/fonts/NotoSansKhojki-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLao-Bold.ttf b/template/template/system/fonts/NotoSansLao-Bold.ttf deleted file mode 100755 index 4f50a70..0000000 Binary files a/template/template/system/fonts/NotoSansLao-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLao-Regular.ttf b/template/template/system/fonts/NotoSansLao-Regular.ttf deleted file mode 100755 index ff6c6a4..0000000 Binary files a/template/template/system/fonts/NotoSansLao-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLaoUI-Bold.ttf b/template/template/system/fonts/NotoSansLaoUI-Bold.ttf deleted file mode 100755 index 4ca61cf..0000000 Binary files a/template/template/system/fonts/NotoSansLaoUI-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLaoUI-Regular.ttf b/template/template/system/fonts/NotoSansLaoUI-Regular.ttf deleted file mode 100755 index 61d755d..0000000 Binary files a/template/template/system/fonts/NotoSansLaoUI-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLepcha-Regular.ttf b/template/template/system/fonts/NotoSansLepcha-Regular.ttf deleted file mode 100755 index b86dc59..0000000 Binary files a/template/template/system/fonts/NotoSansLepcha-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLimbu-Regular.ttf b/template/template/system/fonts/NotoSansLimbu-Regular.ttf deleted file mode 100755 index b9eca08..0000000 Binary files a/template/template/system/fonts/NotoSansLimbu-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLinearA-Regular.otf b/template/template/system/fonts/NotoSansLinearA-Regular.otf deleted file mode 100755 index 0f791af..0000000 Binary files a/template/template/system/fonts/NotoSansLinearA-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLinearB-Regular.ttf b/template/template/system/fonts/NotoSansLinearB-Regular.ttf deleted file mode 100755 index b741507..0000000 Binary files a/template/template/system/fonts/NotoSansLinearB-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLisu-Regular.ttf b/template/template/system/fonts/NotoSansLisu-Regular.ttf deleted file mode 100755 index 12405b4..0000000 Binary files a/template/template/system/fonts/NotoSansLisu-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLycian-Regular.ttf b/template/template/system/fonts/NotoSansLycian-Regular.ttf deleted file mode 100755 index 30310c2..0000000 Binary files a/template/template/system/fonts/NotoSansLycian-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansLydian-Regular.ttf b/template/template/system/fonts/NotoSansLydian-Regular.ttf deleted file mode 100755 index fc5bf5f..0000000 Binary files a/template/template/system/fonts/NotoSansLydian-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMalayalam-VF.ttf b/template/template/system/fonts/NotoSansMalayalam-VF.ttf deleted file mode 100755 index 8221617..0000000 Binary files a/template/template/system/fonts/NotoSansMalayalam-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMalayalamUI-VF.ttf b/template/template/system/fonts/NotoSansMalayalamUI-VF.ttf deleted file mode 100755 index cf38b96..0000000 Binary files a/template/template/system/fonts/NotoSansMalayalamUI-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMandaic-Regular.ttf b/template/template/system/fonts/NotoSansMandaic-Regular.ttf deleted file mode 100755 index 1a533e1..0000000 Binary files a/template/template/system/fonts/NotoSansMandaic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansManichaean-Regular.otf b/template/template/system/fonts/NotoSansManichaean-Regular.otf deleted file mode 100755 index 8065acb..0000000 Binary files a/template/template/system/fonts/NotoSansManichaean-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMarchen-Regular.otf b/template/template/system/fonts/NotoSansMarchen-Regular.otf deleted file mode 100755 index 983e622..0000000 Binary files a/template/template/system/fonts/NotoSansMarchen-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMasaramGondi-Regular.otf b/template/template/system/fonts/NotoSansMasaramGondi-Regular.otf deleted file mode 100755 index 8833d01..0000000 Binary files a/template/template/system/fonts/NotoSansMasaramGondi-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMedefaidrin-VF.ttf b/template/template/system/fonts/NotoSansMedefaidrin-VF.ttf deleted file mode 100755 index 7dda52d..0000000 Binary files a/template/template/system/fonts/NotoSansMedefaidrin-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMeeteiMayek-Regular.ttf b/template/template/system/fonts/NotoSansMeeteiMayek-Regular.ttf deleted file mode 100755 index 3059a6c..0000000 Binary files a/template/template/system/fonts/NotoSansMeeteiMayek-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMeroitic-Regular.otf b/template/template/system/fonts/NotoSansMeroitic-Regular.otf deleted file mode 100755 index e0f70d5..0000000 Binary files a/template/template/system/fonts/NotoSansMeroitic-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMiao-Regular.otf b/template/template/system/fonts/NotoSansMiao-Regular.otf deleted file mode 100755 index 2facdee..0000000 Binary files a/template/template/system/fonts/NotoSansMiao-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansModi-Regular.ttf b/template/template/system/fonts/NotoSansModi-Regular.ttf deleted file mode 100755 index dd4e340..0000000 Binary files a/template/template/system/fonts/NotoSansModi-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMongolian-Regular.ttf b/template/template/system/fonts/NotoSansMongolian-Regular.ttf deleted file mode 100755 index 760d7e0..0000000 Binary files a/template/template/system/fonts/NotoSansMongolian-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMro-Regular.otf b/template/template/system/fonts/NotoSansMro-Regular.otf deleted file mode 100755 index 78f715b..0000000 Binary files a/template/template/system/fonts/NotoSansMro-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMultani-Regular.otf b/template/template/system/fonts/NotoSansMultani-Regular.otf deleted file mode 100755 index 7804a00..0000000 Binary files a/template/template/system/fonts/NotoSansMultani-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMyanmar-Bold.otf b/template/template/system/fonts/NotoSansMyanmar-Bold.otf deleted file mode 100755 index ddec241..0000000 Binary files a/template/template/system/fonts/NotoSansMyanmar-Bold.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMyanmar-Medium.otf b/template/template/system/fonts/NotoSansMyanmar-Medium.otf deleted file mode 100755 index c6c03db..0000000 Binary files a/template/template/system/fonts/NotoSansMyanmar-Medium.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMyanmar-Regular.otf b/template/template/system/fonts/NotoSansMyanmar-Regular.otf deleted file mode 100755 index f2f7a67..0000000 Binary files a/template/template/system/fonts/NotoSansMyanmar-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMyanmarUI-Bold.otf b/template/template/system/fonts/NotoSansMyanmarUI-Bold.otf deleted file mode 100755 index 6742efd..0000000 Binary files a/template/template/system/fonts/NotoSansMyanmarUI-Bold.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMyanmarUI-Medium.otf b/template/template/system/fonts/NotoSansMyanmarUI-Medium.otf deleted file mode 100755 index af579de..0000000 Binary files a/template/template/system/fonts/NotoSansMyanmarUI-Medium.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansMyanmarUI-Regular.otf b/template/template/system/fonts/NotoSansMyanmarUI-Regular.otf deleted file mode 100755 index 7d912b8..0000000 Binary files a/template/template/system/fonts/NotoSansMyanmarUI-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansNKo-Regular.ttf b/template/template/system/fonts/NotoSansNKo-Regular.ttf deleted file mode 100755 index 091416b..0000000 Binary files a/template/template/system/fonts/NotoSansNKo-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansNabataean-Regular.otf b/template/template/system/fonts/NotoSansNabataean-Regular.otf deleted file mode 100755 index a757da5..0000000 Binary files a/template/template/system/fonts/NotoSansNabataean-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansNewTaiLue-Regular.ttf b/template/template/system/fonts/NotoSansNewTaiLue-Regular.ttf deleted file mode 100755 index bc79a79..0000000 Binary files a/template/template/system/fonts/NotoSansNewTaiLue-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansNewa-Regular.otf b/template/template/system/fonts/NotoSansNewa-Regular.otf deleted file mode 100755 index 4728d2e..0000000 Binary files a/template/template/system/fonts/NotoSansNewa-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOgham-Regular.ttf b/template/template/system/fonts/NotoSansOgham-Regular.ttf deleted file mode 100755 index 8943189..0000000 Binary files a/template/template/system/fonts/NotoSansOgham-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOlChiki-Regular.ttf b/template/template/system/fonts/NotoSansOlChiki-Regular.ttf deleted file mode 100755 index 3326640..0000000 Binary files a/template/template/system/fonts/NotoSansOlChiki-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOldItalic-Regular.ttf b/template/template/system/fonts/NotoSansOldItalic-Regular.ttf deleted file mode 100755 index 4a63a5e..0000000 Binary files a/template/template/system/fonts/NotoSansOldItalic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOldNorthArabian-Regular.otf b/template/template/system/fonts/NotoSansOldNorthArabian-Regular.otf deleted file mode 100755 index f884ae0..0000000 Binary files a/template/template/system/fonts/NotoSansOldNorthArabian-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOldPermic-Regular.otf b/template/template/system/fonts/NotoSansOldPermic-Regular.otf deleted file mode 100755 index 5a0e71e..0000000 Binary files a/template/template/system/fonts/NotoSansOldPermic-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOldPersian-Regular.ttf b/template/template/system/fonts/NotoSansOldPersian-Regular.ttf deleted file mode 100755 index 21166f4..0000000 Binary files a/template/template/system/fonts/NotoSansOldPersian-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOldSouthArabian-Regular.ttf b/template/template/system/fonts/NotoSansOldSouthArabian-Regular.ttf deleted file mode 100755 index 5037bd9..0000000 Binary files a/template/template/system/fonts/NotoSansOldSouthArabian-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOldTurkic-Regular.ttf b/template/template/system/fonts/NotoSansOldTurkic-Regular.ttf deleted file mode 100755 index 1652ad1..0000000 Binary files a/template/template/system/fonts/NotoSansOldTurkic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOriya-Bold.ttf b/template/template/system/fonts/NotoSansOriya-Bold.ttf deleted file mode 100755 index ab6e759..0000000 Binary files a/template/template/system/fonts/NotoSansOriya-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOriya-Regular.ttf b/template/template/system/fonts/NotoSansOriya-Regular.ttf deleted file mode 100755 index 92abe64..0000000 Binary files a/template/template/system/fonts/NotoSansOriya-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOriyaUI-Bold.ttf b/template/template/system/fonts/NotoSansOriyaUI-Bold.ttf deleted file mode 100755 index 1b32205..0000000 Binary files a/template/template/system/fonts/NotoSansOriyaUI-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOriyaUI-Regular.ttf b/template/template/system/fonts/NotoSansOriyaUI-Regular.ttf deleted file mode 100755 index 5738e1d..0000000 Binary files a/template/template/system/fonts/NotoSansOriyaUI-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOsage-Regular.ttf b/template/template/system/fonts/NotoSansOsage-Regular.ttf deleted file mode 100755 index 28f1d94..0000000 Binary files a/template/template/system/fonts/NotoSansOsage-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansOsmanya-Regular.ttf b/template/template/system/fonts/NotoSansOsmanya-Regular.ttf deleted file mode 100755 index dd0b982..0000000 Binary files a/template/template/system/fonts/NotoSansOsmanya-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansPahawhHmong-Regular.otf b/template/template/system/fonts/NotoSansPahawhHmong-Regular.otf deleted file mode 100755 index 26a7440..0000000 Binary files a/template/template/system/fonts/NotoSansPahawhHmong-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansPalmyrene-Regular.otf b/template/template/system/fonts/NotoSansPalmyrene-Regular.otf deleted file mode 100755 index 3ccbf6f..0000000 Binary files a/template/template/system/fonts/NotoSansPalmyrene-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansPauCinHau-Regular.otf b/template/template/system/fonts/NotoSansPauCinHau-Regular.otf deleted file mode 100755 index a5c7d92..0000000 Binary files a/template/template/system/fonts/NotoSansPauCinHau-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansPhagsPa-Regular.ttf b/template/template/system/fonts/NotoSansPhagsPa-Regular.ttf deleted file mode 100755 index bd59e32..0000000 Binary files a/template/template/system/fonts/NotoSansPhagsPa-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansPhoenician-Regular.ttf b/template/template/system/fonts/NotoSansPhoenician-Regular.ttf deleted file mode 100755 index 345a977..0000000 Binary files a/template/template/system/fonts/NotoSansPhoenician-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansRejang-Regular.ttf b/template/template/system/fonts/NotoSansRejang-Regular.ttf deleted file mode 100755 index 3d95fd3..0000000 Binary files a/template/template/system/fonts/NotoSansRejang-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansRunic-Regular.ttf b/template/template/system/fonts/NotoSansRunic-Regular.ttf deleted file mode 100755 index 64a18b1..0000000 Binary files a/template/template/system/fonts/NotoSansRunic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSamaritan-Regular.ttf b/template/template/system/fonts/NotoSansSamaritan-Regular.ttf deleted file mode 100755 index 9fe427c..0000000 Binary files a/template/template/system/fonts/NotoSansSamaritan-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSaurashtra-Regular.ttf b/template/template/system/fonts/NotoSansSaurashtra-Regular.ttf deleted file mode 100755 index 6ca7590..0000000 Binary files a/template/template/system/fonts/NotoSansSaurashtra-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSharada-Regular.otf b/template/template/system/fonts/NotoSansSharada-Regular.otf deleted file mode 100755 index 2c865a2..0000000 Binary files a/template/template/system/fonts/NotoSansSharada-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansShavian-Regular.ttf b/template/template/system/fonts/NotoSansShavian-Regular.ttf deleted file mode 100755 index 265c523..0000000 Binary files a/template/template/system/fonts/NotoSansShavian-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSinhala-VF.ttf b/template/template/system/fonts/NotoSansSinhala-VF.ttf deleted file mode 100755 index cee6ff2..0000000 Binary files a/template/template/system/fonts/NotoSansSinhala-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSinhalaUI-VF.ttf b/template/template/system/fonts/NotoSansSinhalaUI-VF.ttf deleted file mode 100755 index 681e121..0000000 Binary files a/template/template/system/fonts/NotoSansSinhalaUI-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSoraSompeng-Regular.otf b/template/template/system/fonts/NotoSansSoraSompeng-Regular.otf deleted file mode 100755 index 1240506..0000000 Binary files a/template/template/system/fonts/NotoSansSoraSompeng-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSoyombo-VF.ttf b/template/template/system/fonts/NotoSansSoyombo-VF.ttf deleted file mode 100755 index cba7dc0..0000000 Binary files a/template/template/system/fonts/NotoSansSoyombo-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSundanese-Regular.ttf b/template/template/system/fonts/NotoSansSundanese-Regular.ttf deleted file mode 100755 index 5c19cd7..0000000 Binary files a/template/template/system/fonts/NotoSansSundanese-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSylotiNagri-Regular.ttf b/template/template/system/fonts/NotoSansSylotiNagri-Regular.ttf deleted file mode 100755 index 164c217..0000000 Binary files a/template/template/system/fonts/NotoSansSylotiNagri-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSymbols-Regular-Subsetted.ttf b/template/template/system/fonts/NotoSansSymbols-Regular-Subsetted.ttf deleted file mode 100755 index b98dccc..0000000 Binary files a/template/template/system/fonts/NotoSansSymbols-Regular-Subsetted.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSymbols-Regular-Subsetted2.ttf b/template/template/system/fonts/NotoSansSymbols-Regular-Subsetted2.ttf deleted file mode 100755 index 1b5d2a3..0000000 Binary files a/template/template/system/fonts/NotoSansSymbols-Regular-Subsetted2.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSyriacEastern-Regular.ttf b/template/template/system/fonts/NotoSansSyriacEastern-Regular.ttf deleted file mode 100755 index 25ee338..0000000 Binary files a/template/template/system/fonts/NotoSansSyriacEastern-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSyriacEstrangela-Regular.ttf b/template/template/system/fonts/NotoSansSyriacEstrangela-Regular.ttf deleted file mode 100755 index 07a2e04..0000000 Binary files a/template/template/system/fonts/NotoSansSyriacEstrangela-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansSyriacWestern-Regular.ttf b/template/template/system/fonts/NotoSansSyriacWestern-Regular.ttf deleted file mode 100755 index f0f9de1..0000000 Binary files a/template/template/system/fonts/NotoSansSyriacWestern-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTagalog-Regular.ttf b/template/template/system/fonts/NotoSansTagalog-Regular.ttf deleted file mode 100755 index 0aff411..0000000 Binary files a/template/template/system/fonts/NotoSansTagalog-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTagbanwa-Regular.ttf b/template/template/system/fonts/NotoSansTagbanwa-Regular.ttf deleted file mode 100755 index 286cf4c..0000000 Binary files a/template/template/system/fonts/NotoSansTagbanwa-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTaiLe-Regular.ttf b/template/template/system/fonts/NotoSansTaiLe-Regular.ttf deleted file mode 100755 index 88ea3fd..0000000 Binary files a/template/template/system/fonts/NotoSansTaiLe-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTaiTham-Regular.ttf b/template/template/system/fonts/NotoSansTaiTham-Regular.ttf deleted file mode 100755 index faa8ddf..0000000 Binary files a/template/template/system/fonts/NotoSansTaiTham-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTaiViet-Regular.ttf b/template/template/system/fonts/NotoSansTaiViet-Regular.ttf deleted file mode 100755 index 9208fc7..0000000 Binary files a/template/template/system/fonts/NotoSansTaiViet-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTakri-VF.ttf b/template/template/system/fonts/NotoSansTakri-VF.ttf deleted file mode 100755 index 73f5fbe..0000000 Binary files a/template/template/system/fonts/NotoSansTakri-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTamil-VF.ttf b/template/template/system/fonts/NotoSansTamil-VF.ttf deleted file mode 100755 index da4ee1c..0000000 Binary files a/template/template/system/fonts/NotoSansTamil-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTamilUI-VF.ttf b/template/template/system/fonts/NotoSansTamilUI-VF.ttf deleted file mode 100755 index 3cd3c8e..0000000 Binary files a/template/template/system/fonts/NotoSansTamilUI-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTelugu-VF.ttf b/template/template/system/fonts/NotoSansTelugu-VF.ttf deleted file mode 100755 index 11ef910..0000000 Binary files a/template/template/system/fonts/NotoSansTelugu-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTeluguUI-VF.ttf b/template/template/system/fonts/NotoSansTeluguUI-VF.ttf deleted file mode 100755 index cdc4f4e..0000000 Binary files a/template/template/system/fonts/NotoSansTeluguUI-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansThaana-Bold.ttf b/template/template/system/fonts/NotoSansThaana-Bold.ttf deleted file mode 100755 index 9861956..0000000 Binary files a/template/template/system/fonts/NotoSansThaana-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansThaana-Regular.ttf b/template/template/system/fonts/NotoSansThaana-Regular.ttf deleted file mode 100755 index 8fcf561..0000000 Binary files a/template/template/system/fonts/NotoSansThaana-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansThai-Bold.ttf b/template/template/system/fonts/NotoSansThai-Bold.ttf deleted file mode 100755 index 3b5ed28..0000000 Binary files a/template/template/system/fonts/NotoSansThai-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansThai-Regular.ttf b/template/template/system/fonts/NotoSansThai-Regular.ttf deleted file mode 100755 index 552c356..0000000 Binary files a/template/template/system/fonts/NotoSansThai-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansThaiUI-Bold.ttf b/template/template/system/fonts/NotoSansThaiUI-Bold.ttf deleted file mode 100755 index 3bc9a70..0000000 Binary files a/template/template/system/fonts/NotoSansThaiUI-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansThaiUI-Regular.ttf b/template/template/system/fonts/NotoSansThaiUI-Regular.ttf deleted file mode 100755 index 9fe222d..0000000 Binary files a/template/template/system/fonts/NotoSansThaiUI-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansTifinagh-Regular.otf b/template/template/system/fonts/NotoSansTifinagh-Regular.otf deleted file mode 100755 index c8b87c8..0000000 Binary files a/template/template/system/fonts/NotoSansTifinagh-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansUgaritic-Regular.ttf b/template/template/system/fonts/NotoSansUgaritic-Regular.ttf deleted file mode 100755 index dec137d..0000000 Binary files a/template/template/system/fonts/NotoSansUgaritic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansVai-Regular.ttf b/template/template/system/fonts/NotoSansVai-Regular.ttf deleted file mode 100755 index 3ec5fcc..0000000 Binary files a/template/template/system/fonts/NotoSansVai-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansWancho-Regular.otf b/template/template/system/fonts/NotoSansWancho-Regular.otf deleted file mode 100755 index af941de..0000000 Binary files a/template/template/system/fonts/NotoSansWancho-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansWarangCiti-Regular.otf b/template/template/system/fonts/NotoSansWarangCiti-Regular.otf deleted file mode 100755 index 2a3b78a..0000000 Binary files a/template/template/system/fonts/NotoSansWarangCiti-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSansYi-Regular.ttf b/template/template/system/fonts/NotoSansYi-Regular.ttf deleted file mode 100755 index 5bd81f9..0000000 Binary files a/template/template/system/fonts/NotoSansYi-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerif-Bold.ttf b/template/template/system/fonts/NotoSerif-Bold.ttf deleted file mode 100755 index 2ffdf8c..0000000 Binary files a/template/template/system/fonts/NotoSerif-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerif-BoldItalic.ttf b/template/template/system/fonts/NotoSerif-BoldItalic.ttf deleted file mode 100755 index 4a317f8..0000000 Binary files a/template/template/system/fonts/NotoSerif-BoldItalic.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerif-Italic.ttf b/template/template/system/fonts/NotoSerif-Italic.ttf deleted file mode 100755 index 968b46b..0000000 Binary files a/template/template/system/fonts/NotoSerif-Italic.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerif-Regular.ttf b/template/template/system/fonts/NotoSerif-Regular.ttf deleted file mode 100755 index 9d9a347..0000000 Binary files a/template/template/system/fonts/NotoSerif-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifArmenian-VF.ttf b/template/template/system/fonts/NotoSerifArmenian-VF.ttf deleted file mode 100755 index 5525d52..0000000 Binary files a/template/template/system/fonts/NotoSerifArmenian-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifBengali-VF.ttf b/template/template/system/fonts/NotoSerifBengali-VF.ttf deleted file mode 100755 index 24c0774..0000000 Binary files a/template/template/system/fonts/NotoSerifBengali-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifDevanagari-VF.ttf b/template/template/system/fonts/NotoSerifDevanagari-VF.ttf deleted file mode 100755 index bf013a7..0000000 Binary files a/template/template/system/fonts/NotoSerifDevanagari-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifDogra-Regular.ttf b/template/template/system/fonts/NotoSerifDogra-Regular.ttf deleted file mode 100755 index ca5eba9..0000000 Binary files a/template/template/system/fonts/NotoSerifDogra-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifEthiopic-VF.ttf b/template/template/system/fonts/NotoSerifEthiopic-VF.ttf deleted file mode 100755 index 10b5e26..0000000 Binary files a/template/template/system/fonts/NotoSerifEthiopic-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifGeorgian-VF.ttf b/template/template/system/fonts/NotoSerifGeorgian-VF.ttf deleted file mode 100755 index afc8e9c..0000000 Binary files a/template/template/system/fonts/NotoSerifGeorgian-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifGujarati-VF.ttf b/template/template/system/fonts/NotoSerifGujarati-VF.ttf deleted file mode 100755 index 5861501..0000000 Binary files a/template/template/system/fonts/NotoSerifGujarati-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifGurmukhi-VF.ttf b/template/template/system/fonts/NotoSerifGurmukhi-VF.ttf deleted file mode 100755 index 6c104cc..0000000 Binary files a/template/template/system/fonts/NotoSerifGurmukhi-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifHebrew-Bold.ttf b/template/template/system/fonts/NotoSerifHebrew-Bold.ttf deleted file mode 100755 index cdec746..0000000 Binary files a/template/template/system/fonts/NotoSerifHebrew-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifHebrew-Regular.ttf b/template/template/system/fonts/NotoSerifHebrew-Regular.ttf deleted file mode 100755 index 8b69dde..0000000 Binary files a/template/template/system/fonts/NotoSerifHebrew-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifHentaigana.ttf b/template/template/system/fonts/NotoSerifHentaigana.ttf deleted file mode 100755 index 2daa77d..0000000 Binary files a/template/template/system/fonts/NotoSerifHentaigana.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifKannada-VF.ttf b/template/template/system/fonts/NotoSerifKannada-VF.ttf deleted file mode 100755 index c523ad7..0000000 Binary files a/template/template/system/fonts/NotoSerifKannada-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifKhmer-Bold.otf b/template/template/system/fonts/NotoSerifKhmer-Bold.otf deleted file mode 100755 index 4729415..0000000 Binary files a/template/template/system/fonts/NotoSerifKhmer-Bold.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifKhmer-Regular.otf b/template/template/system/fonts/NotoSerifKhmer-Regular.otf deleted file mode 100755 index 204e343..0000000 Binary files a/template/template/system/fonts/NotoSerifKhmer-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifLao-Bold.ttf b/template/template/system/fonts/NotoSerifLao-Bold.ttf deleted file mode 100755 index 1a2b775..0000000 Binary files a/template/template/system/fonts/NotoSerifLao-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifLao-Regular.ttf b/template/template/system/fonts/NotoSerifLao-Regular.ttf deleted file mode 100755 index d6a4ae2..0000000 Binary files a/template/template/system/fonts/NotoSerifLao-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifMalayalam-VF.ttf b/template/template/system/fonts/NotoSerifMalayalam-VF.ttf deleted file mode 100755 index e270f5d..0000000 Binary files a/template/template/system/fonts/NotoSerifMalayalam-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifMyanmar-Bold.otf b/template/template/system/fonts/NotoSerifMyanmar-Bold.otf deleted file mode 100755 index ba21a27..0000000 Binary files a/template/template/system/fonts/NotoSerifMyanmar-Bold.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifMyanmar-Regular.otf b/template/template/system/fonts/NotoSerifMyanmar-Regular.otf deleted file mode 100755 index ec4ed44..0000000 Binary files a/template/template/system/fonts/NotoSerifMyanmar-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifNyiakengPuachueHmong-VF.ttf b/template/template/system/fonts/NotoSerifNyiakengPuachueHmong-VF.ttf deleted file mode 100755 index e87a202..0000000 Binary files a/template/template/system/fonts/NotoSerifNyiakengPuachueHmong-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifSinhala-VF.ttf b/template/template/system/fonts/NotoSerifSinhala-VF.ttf deleted file mode 100755 index 9109b83..0000000 Binary files a/template/template/system/fonts/NotoSerifSinhala-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifTamil-VF.ttf b/template/template/system/fonts/NotoSerifTamil-VF.ttf deleted file mode 100755 index 91acc2b..0000000 Binary files a/template/template/system/fonts/NotoSerifTamil-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifTelugu-VF.ttf b/template/template/system/fonts/NotoSerifTelugu-VF.ttf deleted file mode 100755 index 16a187b..0000000 Binary files a/template/template/system/fonts/NotoSerifTelugu-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifThai-Bold.ttf b/template/template/system/fonts/NotoSerifThai-Bold.ttf deleted file mode 100755 index 10d8afd..0000000 Binary files a/template/template/system/fonts/NotoSerifThai-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifThai-Regular.ttf b/template/template/system/fonts/NotoSerifThai-Regular.ttf deleted file mode 100755 index e4b1c14..0000000 Binary files a/template/template/system/fonts/NotoSerifThai-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifTibetan-VF.ttf b/template/template/system/fonts/NotoSerifTibetan-VF.ttf deleted file mode 100755 index 6090383..0000000 Binary files a/template/template/system/fonts/NotoSerifTibetan-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/NotoSerifYezidi-VF.ttf b/template/template/system/fonts/NotoSerifYezidi-VF.ttf deleted file mode 100755 index fabcbbb..0000000 Binary files a/template/template/system/fonts/NotoSerifYezidi-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/OPSans-En-Regular.ttf b/template/template/system/fonts/OPSans-En-Regular.ttf deleted file mode 100755 index 729eda9..0000000 Binary files a/template/template/system/fonts/OPSans-En-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/OSans-Ext-Regular.otf b/template/template/system/fonts/OSans-Ext-Regular.otf deleted file mode 100755 index 6fe1168..0000000 Binary files a/template/template/system/fonts/OSans-Ext-Regular.otf and /dev/null differ diff --git a/template/template/system/fonts/OSans-RC-Regular.ttf b/template/template/system/fonts/OSans-RC-Regular.ttf deleted file mode 100755 index 0e3b98a..0000000 Binary files a/template/template/system/fonts/OSans-RC-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/OSans-Solid-Digits-VF.ttf b/template/template/system/fonts/OSans-Solid-Digits-VF.ttf deleted file mode 100755 index 3c0c628..0000000 Binary files a/template/template/system/fonts/OSans-Solid-Digits-VF.ttf and /dev/null differ diff --git a/template/template/system/fonts/Oplus-Serif.ttf b/template/template/system/fonts/Oplus-Serif.ttf deleted file mode 100755 index 9efc8db..0000000 Binary files a/template/template/system/fonts/Oplus-Serif.ttf and /dev/null differ diff --git a/template/template/system/fonts/OplusOSUI-XThin.ttf b/template/template/system/fonts/OplusOSUI-XThin.ttf deleted file mode 100755 index 0978ab0..0000000 Binary files a/template/template/system/fonts/OplusOSUI-XThin.ttf and /dev/null differ diff --git a/template/template/system/fonts/Roboto-Regular.ttf b/template/template/system/fonts/Roboto-Regular.ttf deleted file mode 100755 index f608454..0000000 Binary files a/template/template/system/fonts/Roboto-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/RobotoFlex-Regular.ttf b/template/template/system/fonts/RobotoFlex-Regular.ttf deleted file mode 100755 index 0abe2ee..0000000 Binary files a/template/template/system/fonts/RobotoFlex-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/RobotoStatic-Regular.ttf b/template/template/system/fonts/RobotoStatic-Regular.ttf deleted file mode 100755 index b624812..0000000 Binary files a/template/template/system/fonts/RobotoStatic-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/SourceSansPro-Bold.ttf b/template/template/system/fonts/SourceSansPro-Bold.ttf deleted file mode 100755 index f698646..0000000 Binary files a/template/template/system/fonts/SourceSansPro-Bold.ttf and /dev/null differ diff --git a/template/template/system/fonts/SourceSansPro-BoldItalic.ttf b/template/template/system/fonts/SourceSansPro-BoldItalic.ttf deleted file mode 100755 index 5c00b64..0000000 Binary files a/template/template/system/fonts/SourceSansPro-BoldItalic.ttf and /dev/null differ diff --git a/template/template/system/fonts/SourceSansPro-Italic.ttf b/template/template/system/fonts/SourceSansPro-Italic.ttf deleted file mode 100755 index 82e8762..0000000 Binary files a/template/template/system/fonts/SourceSansPro-Italic.ttf and /dev/null differ diff --git a/template/template/system/fonts/SourceSansPro-Regular.ttf b/template/template/system/fonts/SourceSansPro-Regular.ttf deleted file mode 100755 index 278ad8a..0000000 Binary files a/template/template/system/fonts/SourceSansPro-Regular.ttf and /dev/null differ diff --git a/template/template/system/fonts/SourceSansPro-SemiBold.ttf b/template/template/system/fonts/SourceSansPro-SemiBold.ttf deleted file mode 100755 index ac3e0d1..0000000 Binary files a/template/template/system/fonts/SourceSansPro-SemiBold.ttf and /dev/null differ diff --git a/template/template/system/fonts/SourceSansPro-SemiBoldItalic.ttf b/template/template/system/fonts/SourceSansPro-SemiBoldItalic.ttf deleted file mode 100755 index b0737bb..0000000 Binary files a/template/template/system/fonts/SourceSansPro-SemiBoldItalic.ttf and /dev/null differ diff --git a/template/template/tools/replace_font.sh b/template/template/tools/replace_font.sh deleted file mode 100755 index 4f24251..0000000 --- a/template/template/tools/replace_font.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -# FontMM ColorOS 16 -# 更换字体脚本 -MODDIR="$(dirname "$(readlink -f "$0")")" -sleep 1 # 这是必须的,防止上一次选择连续触发 - -# 通用按键选择函数 -choose_option() { - local timeout=15 # 设置 15 秒超时,防止用户挂机导致刷入卡死 - local result="" - - echo "- 请在 $timeout 秒内按音量键选择:" - echo " 音量+ : 是 (YES)" - echo " 音量- : 否 (NO)" - - result=$(timeout $timeout /system/bin/getevent -l -c 1 2>/dev/null | grep -m 1 -E "KEY_VOLUMEUP|KEY_VOLUMEDOWN") - - case "$result" in - *KEY_VOLUMEUP*) - echo " 选择: YES" - return 0 - ;; - *KEY_VOLUMEDOWN*) - echo " 选择: NO" - return 1 - ;; - *) - echo " 超时或错误,使用默认值: NO" - return 1 - ;; - esac -} - -# 兜底字体 -if [ ! -f "$MODDIR/ttf/ch.ttf" ]; then - echo "缺少 ch.ttf,终止" - sleep 2 - exit 1 -fi - -# 存在则用,不存在自动回退 ch.ttf -hans="$MODDIR/ttf/ch.ttf" -hant="$MODDIR/ttf/ch.ttf" -en="$MODDIR/ttf/ch.ttf" - -[ -f "$MODDIR/ttf/tc.ttf" ] && hant="$MODDIR/ttf/tc.ttf" -[ -f "$MODDIR/ttf/en.ttf" ] && en="$MODDIR/ttf/en.ttf" - -echo "------------ FontMM - ColorOS 16 ---------" -echo "---------------- 更换字体 ----------------" -echo - -echo "︎● 字体将更换为以下配置:" -echo "- 中文简体:$hans" -echo "- 中文繁体:$hant" -echo "- 英文数字:$en" -echo - -echo "确认更换吗?" -if choose_option "YES"; then - cp -v "$hant" "$MODDIR/system/fonts/SysSans-Hant-Regular.ttf" - cp -v "$hans" "$MODDIR/system/fonts/SysSans-Hans-Regular.ttf" - cp -v "$en" "$MODDIR/system/fonts/SysSans-En-Regular.ttf" - - cp -v "$hans" "$MODDIR/system/fonts/SysFont-Static-Regular.ttf" - cp -v "$hans" "$MODDIR/system/fonts/SysFont-Myanmar.ttf" - cp -v "$hant" "$MODDIR/system/fonts/SysFont-Hant-Regular.ttf" - cp -v "$hans" "$MODDIR/system/fonts/SysFont-Hans-Regular.ttf" - cp -v "$hans" "$MODDIR/system/fonts/SysFont-Regular.ttf" - echo - echo "字体更换完成,重启生效!" -else - echo "取消更换" -fi diff --git a/ttf/把你的字体放在这里 b/ttf/把你的字体放在这里 deleted file mode 100755 index e69de29..0000000 diff --git a/update.prop b/update.prop deleted file mode 100755 index b3f371b..0000000 --- a/update.prop +++ /dev/null @@ -1,10 +0,0 @@ -nowVersion=V1.3 -nowVersionCode=100310 - -version=V1.3 -versionCode=100310 - -testVersion=V1.3-beta.2 -testVersionCode=100303 - -updateLogs=https://raw.githubusercontent.com/YuleBest/FontMM/refs/heads/main/更新日志.md \ No newline at end of file diff --git a/web/.oxfmtrc.json b/web/.oxfmtrc.json new file mode 100644 index 0000000..bc5a4e0 --- /dev/null +++ b/web/.oxfmtrc.json @@ -0,0 +1,5 @@ +{ + "$schema": "./node_modules/oxfmt/configuration_schema.json", + "singleQuote": true, + "ignorePatterns": [] +} diff --git a/web/.oxlintrc.json b/web/.oxlintrc.json new file mode 100644 index 0000000..31e054f --- /dev/null +++ b/web/.oxlintrc.json @@ -0,0 +1,11 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": ["typescript", "unicorn", "oxc"], + "categories": { + "correctness": "error" + }, + "rules": {}, + "env": { + "builtin": true + } +} diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..13c000c --- /dev/null +++ b/web/index.html @@ -0,0 +1,219 @@ + + + + + + FontMM + + + +
+ FontMM +
+ + info + +
+
+ + +
+
+
+ + +
+
正在加载字体...
+ + +
+ + +
+
+ + arrow_back + + 关于 +
+ + + +
-
+ +
+
+ 版本 + - +
+
+ versionCode + - +
+
+ 作者 + - +
+
+ 模块 ID + - +
+
+
+ + +
开源
+

+ 本项目在 GitHub 开源,遵循 MIT 许可证,欢迎 Star / Issue / PR。 +

+ +
+ + +
致谢
+

+ 界面基于 Material Design 3(Material Web)构建,运行于 KernelSU WebUI; 开发工具链使用 + Oxc(oxlint / oxfmt)。感谢所有开源贡献者。 +

+
+ + +
+ + + + + + +
应用日志
+
+

+      
+
+ 关闭 +
+
+ + + + + + + diff --git a/web/package.json b/web/package.json new file mode 100644 index 0000000..e10e091 --- /dev/null +++ b/web/package.json @@ -0,0 +1,28 @@ +{ + "name": "fontmm-webui", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "lint": "oxlint", + "fmt": "oxfmt", + "fmt:check": "oxfmt --check", + "type-check": "tsc --noEmit" + }, + "dependencies": { + "@material/web": "^2.4.1", + "kernelsu": "^3.0.2", + "material-symbols": "^0.28.0", + "opentype.js": "^2.0.0" + }, + "devDependencies": { + "oxfmt": "^0.61.0", + "oxlint": "^1.76.0", + "sass": "^1.86.0", + "typescript": "^5.8.0", + "vite": "^6.0.11" + } +} diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml new file mode 100644 index 0000000..ae49690 --- /dev/null +++ b/web/pnpm-lock.yaml @@ -0,0 +1,1402 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@material/web': + specifier: ^2.4.1 + version: 2.5.0 + kernelsu: + specifier: ^3.0.2 + version: 3.0.2 + material-symbols: + specifier: ^0.28.0 + version: 0.28.2 + opentype.js: + specifier: ^2.0.0 + version: 2.0.0 + devDependencies: + oxfmt: + specifier: ^0.61.0 + version: 0.61.0 + oxlint: + specifier: ^1.76.0 + version: 1.76.0 + sass: + specifier: ^1.86.0 + version: 1.102.0 + typescript: + specifier: ^5.8.0 + version: 5.9.3 + vite: + specifier: ^6.0.11 + version: 6.4.3(sass@1.102.0) + +packages: + + '@esbuild/aix-ppc64@0.25.12': + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.12': + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.12': + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.12': + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.12': + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.12': + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.12': + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.12': + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.12': + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.12': + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.12': + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.12': + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.12': + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.12': + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.12': + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.12': + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.12': + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.12': + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.12': + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.12': + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.12': + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.25.12': + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.25.12': + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.12': + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.12': + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.12': + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@lit-labs/ssr-dom-shim@1.6.0': + resolution: {integrity: sha512-VHb0ALPMTlgKjM6yIxxoQNnpKyUKLD04VzeQdsiXkMqkvYlAHxq9glGLmgbb889/1GsohSOAjvQYoiBppXFqrQ==} + + '@lit/context@1.1.6': + resolution: {integrity: sha512-M26qDE6UkQbZA2mQ3RjJ3Gzd8TxP+/0obMgE5HfkfLhEEyYE3Bui4A5XHiGPjy0MUGAyxB3QgVuw2ciS0kHn6A==} + + '@lit/reactive-element@2.1.2': + resolution: {integrity: sha512-pbCDiVMnne1lYUIaYNN5wrwQXDtHaYtg7YEFPeW+hws6U47WeFvISGUWekPGKWOP1ygrs0ef0o1VJMk1exos5A==} + + '@material/web@2.5.0': + resolution: {integrity: sha512-x2Uovyq8E/Zc1xHXd9s1eBMXF5pMHVAt70pISKd0fL3Ajj4L6zQaQUY/awcfR2RDAMKXC7i4+vr0arv1YaOR/g==} + + '@oxfmt/binding-android-arm-eabi@0.61.0': + resolution: {integrity: sha512-BaS+1OVvg9sr+Xav0+KdWedQRcAzrdoEcwMZeqoc2F6ieC1s/t5eM35YQoRPQ7vAqkZ+p3tbQb1r9I9mrV5oGA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxfmt/binding-android-arm64@0.61.0': + resolution: {integrity: sha512-of8atAV0M1egGcVOMbgZCvc10sFOP3ayQBNQV5h5G3fNq8gACdEswfFk9bzGrdbM23rtg0Coxi7np7oPLcueNw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxfmt/binding-darwin-arm64@0.61.0': + resolution: {integrity: sha512-7l8+5ov4BGwtAcmpzvEik/TG3bciwyw/S3e6j5GKH7pcQqcgCVxD3AuJeP6upto+SOTBKQ4wrrdbMt0gq8fHSQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxfmt/binding-darwin-x64@0.61.0': + resolution: {integrity: sha512-Fnz4dDDXBb7udk+DmwelNjxbD6yptyxwCqwCH2ebo4RVLxVsRfFsn/AHJC49KIltPrVokamGv4SSOsiV50DTxQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxfmt/binding-freebsd-x64@0.61.0': + resolution: {integrity: sha512-mddOebKNCP+AucmzfNsk3jgbr681qAUvgMqi865GW5gWLJ/AnzXbvjQRrny0e++NAN8aphav/aRSrfFxNsNjpA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxfmt/binding-linux-arm-gnueabihf@0.61.0': + resolution: {integrity: sha512-svx59iYL+DbaZGZUIoice4W0CjRXGExnbz7Re+awIb60rVxBS2KrU7Hnlx+nZYanLGLpjneUEgo/VFEKkSZAyQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm-musleabihf@0.61.0': + resolution: {integrity: sha512-BYK9MPJPCf6d+fLKMTruThmEyCtHzQ1zLcsrTlUVkmnoXIaHAbfpeLYQwX1tkjs7W11dyzoi6HFvKcdnvX1zNg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxfmt/binding-linux-arm64-gnu@0.61.0': + resolution: {integrity: sha512-QUaCNLq2/EC6G5ljOuFanl9Lgw6ZWp4co7rs4+KOMUzbGfA4Lq58FHRjjF9sVIG+93XSbo343MxFATrOU1qctA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-arm64-musl@0.61.0': + resolution: {integrity: sha512-S6uvJ6MXnRXl+zTs0CARNDvkE+cymj0EVWEKKsyKnlLlqTyQJBjw5s4D2pSIOZc+S46cy4STefzcr/sm0VzVPA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-ppc64-gnu@0.61.0': + resolution: {integrity: sha512-6VDlRcytvZG6UlSIdAFKDLbppo9tvPxrWzle6vHldYFMeuDPQEfMKrkwezp7FaBq1wik9ra554ZZeRPsyIkFpg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-gnu@0.61.0': + resolution: {integrity: sha512-KkBTYbzExpbmn15XjKPLu2fRV2PVlq+KWt+brad5rwIa03vdYoaDRWiS7raHII/dCTR6Ro4UpYUCH4t6lif4WQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-riscv64-musl@0.61.0': + resolution: {integrity: sha512-69tzIq7sJLVB9dxYYtvMzcSSsnZHSO+U2U19O2RqDqgj6+Q4O7HjSXdaszbcgqzhsUwzSH7z5kWvk8nmf6BHTg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-linux-s390x-gnu@0.61.0': + resolution: {integrity: sha512-Oqi/N0OvtOVXsPKAOOhKgGH3msRYF8BLJaNBbWiupRiKoKVyc8JRKPCfarkQJC+RgP9U8raUKLe+bNwd0HUMiA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-x64-gnu@0.61.0': + resolution: {integrity: sha512-3TKwv/ed4uwJSemAA8P9XcoqETpjQI4waquF9UilhA9Mn/dhr1PdUEXWlL74mtc6ZNfmKPA9+NEJm01nRF8CVA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxfmt/binding-linux-x64-musl@0.61.0': + resolution: {integrity: sha512-uFso4u4nLkVSlMCpgjyvWV60Gt7GvDQHnk1mmRxHIkZTMB0ljpUKwCD9FYGgN9H97x2wYl0UwEjgRZaPIuhEhw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxfmt/binding-openharmony-arm64@0.61.0': + resolution: {integrity: sha512-keGLkzeOvkMpNmPp4hffXWpfoSsY6e1K8++KXD4mSSfxdvM8q9QUDsYY689TB1k6Co832DZn1MnaaVx6cIBMWQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxfmt/binding-win32-arm64-msvc@0.61.0': + resolution: {integrity: sha512-VzsAISkFxmNhJ5LBDEL9VuH6tJsVJMtqYit2LyIUf/HLnsCe4Pg9SMOjjVQzGWt0bnpyfJ94CrqTqcpNZzK+ug==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxfmt/binding-win32-ia32-msvc@0.61.0': + resolution: {integrity: sha512-xv4t7yzwJoYaLB6Zv28B3W+j7brEjsyv50rLTAQgmxJzddce9fAMCxed8dSAkbWES0zz2J29nYK5FaTuD2YBHg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxfmt/binding-win32-x64-msvc@0.61.0': + resolution: {integrity: sha512-6EZXFkqOwxdDYjIn3TSNnPk3ST5E5GiYd4FiM6UF/mCL/LZSfr6D6UygTfW3R1PCQP2quCKpCEGRlij8E3VYbg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@oxlint/binding-android-arm-eabi@1.76.0': + resolution: {integrity: sha512-ZHIE5Zt9AsPDcY4nOlofXt0YfneEeo+QrKMPcPzLf2Z6Q8VtV2W73d7SFJ920WUwyik783u/doKCs3KXdwG+7w==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@oxlint/binding-android-arm64@1.76.0': + resolution: {integrity: sha512-shm/ngQilHK6bs+ElJWa4oHfNj5vL1Gl/iVEJldTQjpr0/67oSgr0KUpbmcnLig5Fo0v/l6j2567A7TOL89ONA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@oxlint/binding-darwin-arm64@1.76.0': + resolution: {integrity: sha512-rvJmrAPKSQ9aWJ6wIS6CK2tJjwzfW0ApQH9qokq6sfDvmHwoyIHxHFMq7z7i7GiV6fdE6s8qvBqWKPTu8RmT6Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@oxlint/binding-darwin-x64@1.76.0': + resolution: {integrity: sha512-U/zYdb7VYKGY6pA9Vd2rYl9O/HlCylcOlb5PGPvVLtg+oLGsk6H3XGKEMHKyqD3nmmtmlmwb/8SwU2vfSAtvMw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@oxlint/binding-freebsd-x64@1.76.0': + resolution: {integrity: sha512-WvKG9CAriuo0XNiFzpXjDngUZcRGFNpaK2kLyMUsnJlShxkT96u+BpJQ3KqdQwGOrvI14L6V8bAwXwAYNNY6Jg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@oxlint/binding-linux-arm-gnueabihf@1.76.0': + resolution: {integrity: sha512-qJ5+RH99TqFRq3UCDxkW0zJJu9c+OAHFY72vGlxZLEpuO+MpKo3POgqb8sYipL9KYm8XY6ofb0HsOuvY6hQNqQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm-musleabihf@1.76.0': + resolution: {integrity: sha512-PvPCVptkgVARsucgIqFQQcSmJ6xc6GtnVB5bRBekRahTc9eObMtjHfMjy5M+C2tHt5UCMttWM9RuSk/H9NqYeg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@oxlint/binding-linux-arm64-gnu@1.76.0': + resolution: {integrity: sha512-3KeFDx8Bu4HPAXbuHZOr/oHvN+QT+JQhMw/NYPz7Z071xLSsG27Jfh9PIQVEY7hk1I+jr43ExqRIeJ6VKk2yLw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-arm64-musl@1.76.0': + resolution: {integrity: sha512-oPFkkKTgl0K/EIg9fQ8oA3IGcI05/Mq1en04iFa41mmNPT+6KEiByVazTOZZJiHMBBrbsns1YJ2e1Scqwzesjw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-ppc64-gnu@1.76.0': + resolution: {integrity: sha512-gN7yZ0eqflA5Fhf1wvHxGUltIV3FsvmB1zhNMDEK9vSHhc7E6qg9CuPeBgPZab66Tjzq6w6kHAtNEvnTHf4cyw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-gnu@1.76.0': + resolution: {integrity: sha512-S/HqMbn22mQrjtErUxEoS/a55u8kIeXvreIxiJu5G7Le3UecEd6SQZxrDIpuhtgaFnsY/nVra3ytP+pRljDilA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-riscv64-musl@1.76.0': + resolution: {integrity: sha512-ZIga3097VJZolGZk6SrIAUokIGfRkxRlhiHDUznZptGBfwrhD7pNfD1rzEzsCwvk/1DX0A1bLz+liuNh5QKIVQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@oxlint/binding-linux-s390x-gnu@1.76.0': + resolution: {integrity: sha512-ZGiiA7pFzMJSyMWYZTVlPgbTsx+Vl8ihLGMIujPwaslUF7kIPPWAbVmAlTc+9lWDV+DCiB8Ikixu+lSHeOIIWQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-gnu@1.76.0': + resolution: {integrity: sha512-JLiy5WuvEBFTT6ErIFV35SLzi0R7Iri6MKU6dZbTxfIx8pndbbPs3Mj780nMipBFcPkti+okAPOJ9POKkHFEgg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@oxlint/binding-linux-x64-musl@1.76.0': + resolution: {integrity: sha512-z7lgKQtbo/I1NIe8G5NHLesxJDv0tRSUWTpXKb9Pm3E9nKFKfO4IOSDtFroKgXtOYb0jQbcdH+0wzTyMXVes+A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + libc: [musl] + + '@oxlint/binding-openharmony-arm64@1.76.0': + resolution: {integrity: sha512-JOjKymIpb9QcYfEhZsN6h4V9Ivd474W38cNIBRv6bg2TbIvogbMTH0Mg6YWW9TiRDqfcX+/Hyfsbo5vcSE5guQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@oxlint/binding-win32-arm64-msvc@1.76.0': + resolution: {integrity: sha512-pqDWZiwcmByWUEm1NFUBNiT6aentCcaoMWJv0HbXEmuYermJ4sg8ppVrshubYP2MZ6SHccJJcpr6x469PuDFIw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@oxlint/binding-win32-ia32-msvc@1.76.0': + resolution: {integrity: sha512-Ba0O659kgMv6pwO3z9PdO+K3aMxQRaw9HnG+e6AtOfgwcKFvYilciQYBoUBmxfQvOCKZe1SwjMkuB542NkuDMQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ia32] + os: [win32] + + '@oxlint/binding-win32-x64-msvc@1.76.0': + resolution: {integrity: sha512-5qcirPHO8nKfkoowEVWtpAoVTcYDy6g0UT0NGic450Qv8J2NrOqg4uQ8QppRP4MDTC7Xx47lbZnmadTH03CGGA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@parcel/watcher-android-arm64@2.6.0': + resolution: {integrity: sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [android] + + '@parcel/watcher-darwin-arm64@2.6.0': + resolution: {integrity: sha512-Y3QV0gl7Q1zbfueunkWIERICbEojQFCgpyG7YqOGNFLsckXyI1xu9mAIUpKY9QBYzBtSkN8dBPwd3yiAO9ovMw==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [darwin] + + '@parcel/watcher-darwin-x64@2.6.0': + resolution: {integrity: sha512-Ohv6OpzhUfKYD7Beb8kDvG0jbIxORCYY1JRdZnaBtnjjkJxgD7ZVL0nw2sCYd0yTMKTvz3nnTnOF3cDifK+kvw==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [darwin] + + '@parcel/watcher-freebsd-x64@2.6.0': + resolution: {integrity: sha512-5HmXvDgs8VK+74jF9y9/2FE3/OnlcKmc56tjmSrEuZjpSZOGL+fvAu+HKJBdPs9uwoP2hE6TlSUpXZ/C5jUFmQ==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [freebsd] + + '@parcel/watcher-linux-arm-glibc@2.6.0': + resolution: {integrity: sha512-Ps/hui3A+vMbjdqlqAowK2ZL8+BO8dBjxeWXj6npTBs3jx4wWmbPpaLuqwrQrSqIVMCnpWo238bJ1U37GhQOYg==} + engines: {node: '>= 10.0.0'} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@parcel/watcher-linux-arm-musl@2.6.0': + resolution: {integrity: sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==} + engines: {node: '>= 10.0.0'} + cpu: [arm] + os: [linux] + libc: [musl] + + '@parcel/watcher-linux-arm64-glibc@2.6.0': + resolution: {integrity: sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@parcel/watcher-linux-arm64-musl@2.6.0': + resolution: {integrity: sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@parcel/watcher-linux-x64-glibc@2.6.0': + resolution: {integrity: sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@parcel/watcher-linux-x64-musl@2.6.0': + resolution: {integrity: sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@parcel/watcher-win32-arm64@2.6.0': + resolution: {integrity: sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==} + engines: {node: '>= 10.0.0'} + cpu: [arm64] + os: [win32] + + '@parcel/watcher-win32-x64@2.6.0': + resolution: {integrity: sha512-cA+/pXV2YkfxlIcXOQ5fSWqAzzPyD78/x5qbK/I0vUkrlYHA8TIz+MXjAbGouguKVSI4bOmkTSJ1/poVSsgt+A==} + engines: {node: '>= 10.0.0'} + cpu: [x64] + os: [win32] + + '@parcel/watcher@2.6.0': + resolution: {integrity: sha512-7FNeNl8NCE7aINx7WXiKQrPYZWC/hvrTsmk6zmxbI7LTXE7hVek/n8AfVgpe2y82zl3w0HvCHN0bVKMBoJcC0w==} + engines: {node: '>= 10.0.0'} + + '@rollup/rollup-android-arm-eabi@4.62.3': + resolution: {integrity: sha512-c0wdcekXtQvvn5Tsrk/+op/gUArrbWaFduBnTLP2l1cKLSQs4diMWjJw3m6A0DdzT8dAAX95KpkJ3qynCePbmw==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.62.3': + resolution: {integrity: sha512-3YjElDdWN+qXAFbJ/CzPV+0wspLqh54k/I6GfdYtEJRqg7buSgc1yPM3B+93j1M4neobtkATHZTmxK2AMVGfnA==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.62.3': + resolution: {integrity: sha512-Pch2pFNOxxz1hTjypIdPyRTR6riiwRl84+VcN9djS680fw+Co1nAJINrdpqp7KV0NvyuU8ilZXZCjd7ykJl1GQ==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.62.3': + resolution: {integrity: sha512-LEuncFUHFiF8t4yZVZvvZA1wk0pjAscRnsrn1EfTEmN4HXotBi2YtcnLRyaK6UbuczW7xZS5ES+81Rdz8Z0T6g==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.62.3': + resolution: {integrity: sha512-zvBUvsQUpOWALdDsk6qbS8bXf2VxmPisuudNDrY7x0p0jBdsoZl8HsHczIOgkQiZldmcacMKtBzpoGVNeIe2bQ==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.62.3': + resolution: {integrity: sha512-C2KmNrcSem/AMg984H/dev+si0lieQGdXdR/lYGJnuumXnFb9Y7QdiI62obFdLlxRYLBv4P0eUVIDbD4c1vVvw==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.62.3': + resolution: {integrity: sha512-ggXnsTAEzNQx74XpunRsiZ9aBZDsI7XIa0hm2nzR9f4WzH5/f/d73ZSDaC5ejJ8YLY4NW+V3wr0tjOaeCq8hqA==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm-musleabihf@4.62.3': + resolution: {integrity: sha512-2vng+FlzNUhKZxtej3IUqJgbZoQk2M/dwQM20+ULV0R/E/8tr9/P6uEf2iiGIk4HL0zMKh5Jry7mUHdUOvyGgA==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-arm64-gnu@4.62.3': + resolution: {integrity: sha512-LLLFZKt4/Nraf9rxDkhiU8QVgLF4WmCkfr0L4fj0fPfIZFBib0DeiFk1hhaYKd03LFAFJcxHslhDFlNJLylf5Q==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm64-musl@4.62.3': + resolution: {integrity: sha512-WJkdQCvS9sWNOUBJZfQRKpZGFBztRzcowI+nndmflKgU4XY+3a420FgTOSKTsVqJbnzSxeT4vaJalpOaPo2YCQ==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-loong64-gnu@4.62.3': + resolution: {integrity: sha512-PwHXCCS2n64/1Ot6rP1YEYA02MGYBcQlr8CSZZyrUG2O7NH6NklYmvr9v3Jy+5e/eDeNchc/ukmKJi9LuflMIQ==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-loong64-musl@4.62.3': + resolution: {integrity: sha512-vUjxINQu3RC8NZS3ykk1gN65gIz8pAopOq2HXuZhiIxHdx7TFvDG+jgrdSgInu1Eza4/Rfi2VzZgyIgEH4WOaw==} + cpu: [loong64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-ppc64-gnu@4.62.3': + resolution: {integrity: sha512-wzko4aJ13+0G3kGnviCg5gnXFKd40izKsrf2uOw12US4XqprkDrmwOpeW14aSNa37V8bfPcz5Fkob6LZ3BAPmA==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-ppc64-musl@4.62.3': + resolution: {integrity: sha512-8120ue0JUMSwy11stlwnfdX3pPd+WZYGCDBwEHWtIHi6pOpZmsEF5QKB7a/UN+XFdqvobxz98kv8RTqikyCEBw==} + cpu: [ppc64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-riscv64-gnu@4.62.3': + resolution: {integrity: sha512-XLFHnR3tXMjbOCh2vtVJHmxt+995uJsTERQyseFDRA0xxMxyTZPLa3OIUlyFaO4mF/Lu0FjmWHCuPXJT1n/IOg==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-musl@4.62.3': + resolution: {integrity: sha512-se6yXvNGMIl0f+RQzyh7XAmia8/9kplQx424wnG2w0C1oi6XgO6Y8otKhdXFHbHs88Ihavzmvh1NWjuovE76BQ==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-s390x-gnu@4.62.3': + resolution: {integrity: sha512-gNoxRefktVIiGflpONuxWWXZAzIQG++z9qHO3xKwk4WdDMuQja3JHGfE1u0i3PfPDyvhypdk+WrgIJqLhGG7sg==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-gnu@4.62.3': + resolution: {integrity: sha512-V4KtWtQfAFMU7+9/A/VDps/VI8CHd3cYz0L8sgJzz8qK7eY7wI4ruFD82UYIYvW9Z4DtlTfhQcsl4XyPHW5uSg==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-musl@4.62.3': + resolution: {integrity: sha512-LBx9LYXvj2CBkMkjLdNAWLwH0MLMin7do2VcVo9kVPibGLkY0BQQut2fv7NVqkXqZ/CrAu9LqDHVV1xHCMpCPw==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rollup/rollup-openbsd-x64@4.62.3': + resolution: {integrity: sha512-ABVf3Q0RCu7NcyCCOZQI0pJ3GuSdfSl8EXcy88QtdceIMIoCUdfhsJChZ64L9zVM2aJHjde1Bhn5uqSRcX9ySA==} + cpu: [x64] + os: [openbsd] + + '@rollup/rollup-openharmony-arm64@4.62.3': + resolution: {integrity: sha512-+2Cy/ldweGBLlPIKsQLF8U5N44a0KDdbrk1rAjHOM9M2K+kGdIVjHLmmrZIcx+9Ny3ke/1JomCsDI1ocb11+sg==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.62.3': + resolution: {integrity: sha512-dtZvzc8BedpSaFNy75x6uiWwAGTH+aZHDtdrqP6qk+WcLJrfti6sGje1ZJ9UxyzDLF23d/mV+PaMwuC0hL7UVA==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.62.3': + resolution: {integrity: sha512-Rj8Ra4noo+aYy7sKBggCx0407mws34kAb1ySyWuq5DAtFBQdkSwnsjCgPrhPe9cvgBKZIukpE+CVHvORCS93kQ==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.62.3': + resolution: {integrity: sha512-vp7N084ew/odXn2gi/mzm9mUkQu9l6AiN6dt4IeUM2Uvm9o+cVmP+YkqbMOteLbiGgqBBlJZjIMYVCfOOIVbVQ==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.62.3': + resolution: {integrity: sha512-MOG/3gTOn4Fwf574RVOaY61I5o6P90legkFADiTyn1hyjNydT+cerU2rLUwPdZkKKyJ+iT+K9p7WXK4LM1Ka6g==} + cpu: [x64] + os: [win32] + + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + + '@types/trusted-types@2.0.7': + resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + esbuild@0.25.12: + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} + engines: {node: '>=18'} + hasBin: true + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + immutable@5.1.9: + resolution: {integrity: sha512-m8nVez3rwrgmWxtLMt1ZYXB2Lv7OKYn/disyxAlSDYAlKSlFoPPfIAmAM/M5xqL4m4C/wAPw7S2/CNaUii1Hxg==} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + kernelsu@3.0.2: + resolution: {integrity: sha512-3MTGgIbl3TWCzqnJP6Fun9tHv6VULR3O188U3raeGRSMzK+G3pldL9ySwaZWhsHCtI2BTvlQuu/3p10s4a5c3w==} + + lit-element@4.2.2: + resolution: {integrity: sha512-aFKhNToWxoyhkNDmWZwEva2SlQia+jfG0fjIWV//YeTaWrVnOxD89dPKfigCUspXFmjzOEUQpOkejH5Ly6sG0w==} + + lit-html@3.3.3: + resolution: {integrity: sha512-el8M6jK2o3RXBnrSHX3ZKrsN8zEV63pSExTO1wYJz7QndGYZ8353e2a5PPX+qHe2aGayfnchQmkAojaWAREOIA==} + + lit@3.3.3: + resolution: {integrity: sha512-fycuvZg/hkpozL00lm1pEJH5nN/lr9ZXd6mJI2HSN4+Bzc+LDNdEApJ6HFbPkdFNHLvOplIIuJvxkS4XUxqirw==} + + material-symbols@0.28.2: + resolution: {integrity: sha512-JLK+Bgtfg5Dn9V2WYk6lSwmxciNNF2zmqc/V8MLmH0K9LttUhPCaauJzrS1Vw3mJPs/Tyfi/tszynNRX6nWQOA==} + + nanoid@3.3.16: + resolution: {integrity: sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + node-addon-api@7.1.1: + resolution: {integrity: sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==} + + opentype.js@2.0.0: + resolution: {integrity: sha512-kCyjv6xdDY1W/jLWZ/L3QhhTlKUqDZMQ5+Jdlw12b3dXkKNpYBqqlMMj0YDQPShWFTMwgZI1hG14kN3XUDSg/A==} + hasBin: true + + oxfmt@0.61.0: + resolution: {integrity: sha512-DxdHBEMYpcEnHoUHjjOigUqV2TYKsvxLwUPXnVYBjgFdqrcQ/91OtwubtZ2PUodCs3sStI8R5Qw3fKNGK4e8wQ==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + svelte: ^5.0.0 + vite-plus: '*' + peerDependenciesMeta: + svelte: + optional: true + vite-plus: + optional: true + + oxlint@1.76.0: + resolution: {integrity: sha512-6QoFioEU4fNdiUx/2Eo6TRd6NG7H7njnRCz8rhB66cZmMHDTqcm1Rjvl8Wry+ZTQMBAmyb4Mlf62Mk5X+eHSOw==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + oxlint-tsgolint: '>=7.0.2001' + vite-plus: '*' + peerDependenciesMeta: + oxlint-tsgolint: + optional: true + vite-plus: + optional: true + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.5: + resolution: {integrity: sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==} + engines: {node: '>=12'} + + postcss@8.5.25: + resolution: {integrity: sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==} + engines: {node: ^10 || ^12 || >=14} + + readdirp@5.0.0: + resolution: {integrity: sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==} + engines: {node: '>= 20.19.0'} + + rollup@4.62.3: + resolution: {integrity: sha512-Gu0c0iH9FzgX1L1t7ByIbbS3Vmdz+6KHm/EsqmmC71gUQ82yvZRkTK6XzrFObSka91WUVdynqp6nsfilzr5k6Q==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + sass@1.102.0: + resolution: {integrity: sha512-NSOyTnaQF7rTAEOtI2fwb386vL+akyiQLBZu8Na7hXCb+umJy0GAqlcMIaqACZ6Z1VgTBS4K9PG6B3IdjHGJsw==} + engines: {node: '>=20.19.0'} + hasBin: true + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + + tinypool@2.1.0: + resolution: {integrity: sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw==} + engines: {node: ^20.0.0 || >=22.0.0} + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + + vite@6.4.3: + resolution: {integrity: sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + +snapshots: + + '@esbuild/aix-ppc64@0.25.12': + optional: true + + '@esbuild/android-arm64@0.25.12': + optional: true + + '@esbuild/android-arm@0.25.12': + optional: true + + '@esbuild/android-x64@0.25.12': + optional: true + + '@esbuild/darwin-arm64@0.25.12': + optional: true + + '@esbuild/darwin-x64@0.25.12': + optional: true + + '@esbuild/freebsd-arm64@0.25.12': + optional: true + + '@esbuild/freebsd-x64@0.25.12': + optional: true + + '@esbuild/linux-arm64@0.25.12': + optional: true + + '@esbuild/linux-arm@0.25.12': + optional: true + + '@esbuild/linux-ia32@0.25.12': + optional: true + + '@esbuild/linux-loong64@0.25.12': + optional: true + + '@esbuild/linux-mips64el@0.25.12': + optional: true + + '@esbuild/linux-ppc64@0.25.12': + optional: true + + '@esbuild/linux-riscv64@0.25.12': + optional: true + + '@esbuild/linux-s390x@0.25.12': + optional: true + + '@esbuild/linux-x64@0.25.12': + optional: true + + '@esbuild/netbsd-arm64@0.25.12': + optional: true + + '@esbuild/netbsd-x64@0.25.12': + optional: true + + '@esbuild/openbsd-arm64@0.25.12': + optional: true + + '@esbuild/openbsd-x64@0.25.12': + optional: true + + '@esbuild/openharmony-arm64@0.25.12': + optional: true + + '@esbuild/sunos-x64@0.25.12': + optional: true + + '@esbuild/win32-arm64@0.25.12': + optional: true + + '@esbuild/win32-ia32@0.25.12': + optional: true + + '@esbuild/win32-x64@0.25.12': + optional: true + + '@lit-labs/ssr-dom-shim@1.6.0': {} + + '@lit/context@1.1.6': + dependencies: + '@lit/reactive-element': 2.1.2 + + '@lit/reactive-element@2.1.2': + dependencies: + '@lit-labs/ssr-dom-shim': 1.6.0 + + '@material/web@2.5.0': + dependencies: + '@lit/context': 1.1.6 + lit: 3.3.3 + tslib: 2.8.1 + + '@oxfmt/binding-android-arm-eabi@0.61.0': + optional: true + + '@oxfmt/binding-android-arm64@0.61.0': + optional: true + + '@oxfmt/binding-darwin-arm64@0.61.0': + optional: true + + '@oxfmt/binding-darwin-x64@0.61.0': + optional: true + + '@oxfmt/binding-freebsd-x64@0.61.0': + optional: true + + '@oxfmt/binding-linux-arm-gnueabihf@0.61.0': + optional: true + + '@oxfmt/binding-linux-arm-musleabihf@0.61.0': + optional: true + + '@oxfmt/binding-linux-arm64-gnu@0.61.0': + optional: true + + '@oxfmt/binding-linux-arm64-musl@0.61.0': + optional: true + + '@oxfmt/binding-linux-ppc64-gnu@0.61.0': + optional: true + + '@oxfmt/binding-linux-riscv64-gnu@0.61.0': + optional: true + + '@oxfmt/binding-linux-riscv64-musl@0.61.0': + optional: true + + '@oxfmt/binding-linux-s390x-gnu@0.61.0': + optional: true + + '@oxfmt/binding-linux-x64-gnu@0.61.0': + optional: true + + '@oxfmt/binding-linux-x64-musl@0.61.0': + optional: true + + '@oxfmt/binding-openharmony-arm64@0.61.0': + optional: true + + '@oxfmt/binding-win32-arm64-msvc@0.61.0': + optional: true + + '@oxfmt/binding-win32-ia32-msvc@0.61.0': + optional: true + + '@oxfmt/binding-win32-x64-msvc@0.61.0': + optional: true + + '@oxlint/binding-android-arm-eabi@1.76.0': + optional: true + + '@oxlint/binding-android-arm64@1.76.0': + optional: true + + '@oxlint/binding-darwin-arm64@1.76.0': + optional: true + + '@oxlint/binding-darwin-x64@1.76.0': + optional: true + + '@oxlint/binding-freebsd-x64@1.76.0': + optional: true + + '@oxlint/binding-linux-arm-gnueabihf@1.76.0': + optional: true + + '@oxlint/binding-linux-arm-musleabihf@1.76.0': + optional: true + + '@oxlint/binding-linux-arm64-gnu@1.76.0': + optional: true + + '@oxlint/binding-linux-arm64-musl@1.76.0': + optional: true + + '@oxlint/binding-linux-ppc64-gnu@1.76.0': + optional: true + + '@oxlint/binding-linux-riscv64-gnu@1.76.0': + optional: true + + '@oxlint/binding-linux-riscv64-musl@1.76.0': + optional: true + + '@oxlint/binding-linux-s390x-gnu@1.76.0': + optional: true + + '@oxlint/binding-linux-x64-gnu@1.76.0': + optional: true + + '@oxlint/binding-linux-x64-musl@1.76.0': + optional: true + + '@oxlint/binding-openharmony-arm64@1.76.0': + optional: true + + '@oxlint/binding-win32-arm64-msvc@1.76.0': + optional: true + + '@oxlint/binding-win32-ia32-msvc@1.76.0': + optional: true + + '@oxlint/binding-win32-x64-msvc@1.76.0': + optional: true + + '@parcel/watcher-android-arm64@2.6.0': + optional: true + + '@parcel/watcher-darwin-arm64@2.6.0': + optional: true + + '@parcel/watcher-darwin-x64@2.6.0': + optional: true + + '@parcel/watcher-freebsd-x64@2.6.0': + optional: true + + '@parcel/watcher-linux-arm-glibc@2.6.0': + optional: true + + '@parcel/watcher-linux-arm-musl@2.6.0': + optional: true + + '@parcel/watcher-linux-arm64-glibc@2.6.0': + optional: true + + '@parcel/watcher-linux-arm64-musl@2.6.0': + optional: true + + '@parcel/watcher-linux-x64-glibc@2.6.0': + optional: true + + '@parcel/watcher-linux-x64-musl@2.6.0': + optional: true + + '@parcel/watcher-win32-arm64@2.6.0': + optional: true + + '@parcel/watcher-win32-x64@2.6.0': + optional: true + + '@parcel/watcher@2.6.0': + dependencies: + detect-libc: 2.1.2 + is-glob: 4.0.3 + node-addon-api: 7.1.1 + picomatch: 4.0.5 + optionalDependencies: + '@parcel/watcher-android-arm64': 2.6.0 + '@parcel/watcher-darwin-arm64': 2.6.0 + '@parcel/watcher-darwin-x64': 2.6.0 + '@parcel/watcher-freebsd-x64': 2.6.0 + '@parcel/watcher-linux-arm-glibc': 2.6.0 + '@parcel/watcher-linux-arm-musl': 2.6.0 + '@parcel/watcher-linux-arm64-glibc': 2.6.0 + '@parcel/watcher-linux-arm64-musl': 2.6.0 + '@parcel/watcher-linux-x64-glibc': 2.6.0 + '@parcel/watcher-linux-x64-musl': 2.6.0 + '@parcel/watcher-win32-arm64': 2.6.0 + '@parcel/watcher-win32-x64': 2.6.0 + optional: true + + '@rollup/rollup-android-arm-eabi@4.62.3': + optional: true + + '@rollup/rollup-android-arm64@4.62.3': + optional: true + + '@rollup/rollup-darwin-arm64@4.62.3': + optional: true + + '@rollup/rollup-darwin-x64@4.62.3': + optional: true + + '@rollup/rollup-freebsd-arm64@4.62.3': + optional: true + + '@rollup/rollup-freebsd-x64@4.62.3': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.62.3': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.62.3': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.62.3': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.62.3': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.62.3': + optional: true + + '@rollup/rollup-linux-loong64-musl@4.62.3': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.62.3': + optional: true + + '@rollup/rollup-linux-ppc64-musl@4.62.3': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.62.3': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.62.3': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.62.3': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.62.3': + optional: true + + '@rollup/rollup-linux-x64-musl@4.62.3': + optional: true + + '@rollup/rollup-openbsd-x64@4.62.3': + optional: true + + '@rollup/rollup-openharmony-arm64@4.62.3': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.62.3': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.62.3': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.62.3': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.62.3': + optional: true + + '@types/estree@1.0.9': {} + + '@types/trusted-types@2.0.7': {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.0.0 + + detect-libc@2.1.2: + optional: true + + esbuild@0.25.12: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.12 + '@esbuild/android-arm': 0.25.12 + '@esbuild/android-arm64': 0.25.12 + '@esbuild/android-x64': 0.25.12 + '@esbuild/darwin-arm64': 0.25.12 + '@esbuild/darwin-x64': 0.25.12 + '@esbuild/freebsd-arm64': 0.25.12 + '@esbuild/freebsd-x64': 0.25.12 + '@esbuild/linux-arm': 0.25.12 + '@esbuild/linux-arm64': 0.25.12 + '@esbuild/linux-ia32': 0.25.12 + '@esbuild/linux-loong64': 0.25.12 + '@esbuild/linux-mips64el': 0.25.12 + '@esbuild/linux-ppc64': 0.25.12 + '@esbuild/linux-riscv64': 0.25.12 + '@esbuild/linux-s390x': 0.25.12 + '@esbuild/linux-x64': 0.25.12 + '@esbuild/netbsd-arm64': 0.25.12 + '@esbuild/netbsd-x64': 0.25.12 + '@esbuild/openbsd-arm64': 0.25.12 + '@esbuild/openbsd-x64': 0.25.12 + '@esbuild/openharmony-arm64': 0.25.12 + '@esbuild/sunos-x64': 0.25.12 + '@esbuild/win32-arm64': 0.25.12 + '@esbuild/win32-ia32': 0.25.12 + '@esbuild/win32-x64': 0.25.12 + + fdir@6.5.0(picomatch@4.0.5): + optionalDependencies: + picomatch: 4.0.5 + + fsevents@2.3.3: + optional: true + + immutable@5.1.9: {} + + is-extglob@2.1.1: + optional: true + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + optional: true + + kernelsu@3.0.2: {} + + lit-element@4.2.2: + dependencies: + '@lit-labs/ssr-dom-shim': 1.6.0 + '@lit/reactive-element': 2.1.2 + lit-html: 3.3.3 + + lit-html@3.3.3: + dependencies: + '@types/trusted-types': 2.0.7 + + lit@3.3.3: + dependencies: + '@lit/reactive-element': 2.1.2 + lit-element: 4.2.2 + lit-html: 3.3.3 + + material-symbols@0.28.2: {} + + nanoid@3.3.16: {} + + node-addon-api@7.1.1: + optional: true + + opentype.js@2.0.0: {} + + oxfmt@0.61.0: + dependencies: + tinypool: 2.1.0 + optionalDependencies: + '@oxfmt/binding-android-arm-eabi': 0.61.0 + '@oxfmt/binding-android-arm64': 0.61.0 + '@oxfmt/binding-darwin-arm64': 0.61.0 + '@oxfmt/binding-darwin-x64': 0.61.0 + '@oxfmt/binding-freebsd-x64': 0.61.0 + '@oxfmt/binding-linux-arm-gnueabihf': 0.61.0 + '@oxfmt/binding-linux-arm-musleabihf': 0.61.0 + '@oxfmt/binding-linux-arm64-gnu': 0.61.0 + '@oxfmt/binding-linux-arm64-musl': 0.61.0 + '@oxfmt/binding-linux-ppc64-gnu': 0.61.0 + '@oxfmt/binding-linux-riscv64-gnu': 0.61.0 + '@oxfmt/binding-linux-riscv64-musl': 0.61.0 + '@oxfmt/binding-linux-s390x-gnu': 0.61.0 + '@oxfmt/binding-linux-x64-gnu': 0.61.0 + '@oxfmt/binding-linux-x64-musl': 0.61.0 + '@oxfmt/binding-openharmony-arm64': 0.61.0 + '@oxfmt/binding-win32-arm64-msvc': 0.61.0 + '@oxfmt/binding-win32-ia32-msvc': 0.61.0 + '@oxfmt/binding-win32-x64-msvc': 0.61.0 + + oxlint@1.76.0: + optionalDependencies: + '@oxlint/binding-android-arm-eabi': 1.76.0 + '@oxlint/binding-android-arm64': 1.76.0 + '@oxlint/binding-darwin-arm64': 1.76.0 + '@oxlint/binding-darwin-x64': 1.76.0 + '@oxlint/binding-freebsd-x64': 1.76.0 + '@oxlint/binding-linux-arm-gnueabihf': 1.76.0 + '@oxlint/binding-linux-arm-musleabihf': 1.76.0 + '@oxlint/binding-linux-arm64-gnu': 1.76.0 + '@oxlint/binding-linux-arm64-musl': 1.76.0 + '@oxlint/binding-linux-ppc64-gnu': 1.76.0 + '@oxlint/binding-linux-riscv64-gnu': 1.76.0 + '@oxlint/binding-linux-riscv64-musl': 1.76.0 + '@oxlint/binding-linux-s390x-gnu': 1.76.0 + '@oxlint/binding-linux-x64-gnu': 1.76.0 + '@oxlint/binding-linux-x64-musl': 1.76.0 + '@oxlint/binding-openharmony-arm64': 1.76.0 + '@oxlint/binding-win32-arm64-msvc': 1.76.0 + '@oxlint/binding-win32-ia32-msvc': 1.76.0 + '@oxlint/binding-win32-x64-msvc': 1.76.0 + + picocolors@1.1.1: {} + + picomatch@4.0.5: {} + + postcss@8.5.25: + dependencies: + nanoid: 3.3.16 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + readdirp@5.0.0: {} + + rollup@4.62.3: + dependencies: + '@types/estree': 1.0.9 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.62.3 + '@rollup/rollup-android-arm64': 4.62.3 + '@rollup/rollup-darwin-arm64': 4.62.3 + '@rollup/rollup-darwin-x64': 4.62.3 + '@rollup/rollup-freebsd-arm64': 4.62.3 + '@rollup/rollup-freebsd-x64': 4.62.3 + '@rollup/rollup-linux-arm-gnueabihf': 4.62.3 + '@rollup/rollup-linux-arm-musleabihf': 4.62.3 + '@rollup/rollup-linux-arm64-gnu': 4.62.3 + '@rollup/rollup-linux-arm64-musl': 4.62.3 + '@rollup/rollup-linux-loong64-gnu': 4.62.3 + '@rollup/rollup-linux-loong64-musl': 4.62.3 + '@rollup/rollup-linux-ppc64-gnu': 4.62.3 + '@rollup/rollup-linux-ppc64-musl': 4.62.3 + '@rollup/rollup-linux-riscv64-gnu': 4.62.3 + '@rollup/rollup-linux-riscv64-musl': 4.62.3 + '@rollup/rollup-linux-s390x-gnu': 4.62.3 + '@rollup/rollup-linux-x64-gnu': 4.62.3 + '@rollup/rollup-linux-x64-musl': 4.62.3 + '@rollup/rollup-openbsd-x64': 4.62.3 + '@rollup/rollup-openharmony-arm64': 4.62.3 + '@rollup/rollup-win32-arm64-msvc': 4.62.3 + '@rollup/rollup-win32-ia32-msvc': 4.62.3 + '@rollup/rollup-win32-x64-gnu': 4.62.3 + '@rollup/rollup-win32-x64-msvc': 4.62.3 + fsevents: 2.3.3 + + sass@1.102.0: + dependencies: + chokidar: 5.0.0 + immutable: 5.1.9 + source-map-js: 1.2.1 + optionalDependencies: + '@parcel/watcher': 2.6.0 + + source-map-js@1.2.1: {} + + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.5) + picomatch: 4.0.5 + + tinypool@2.1.0: {} + + tslib@2.8.1: {} + + typescript@5.9.3: {} + + vite@6.4.3(sass@1.102.0): + dependencies: + esbuild: 0.25.12 + fdir: 6.5.0(picomatch@4.0.5) + picomatch: 4.0.5 + postcss: 8.5.25 + rollup: 4.62.3 + tinyglobby: 0.2.17 + optionalDependencies: + fsevents: 2.3.3 + sass: 1.102.0 diff --git a/web/pnpm-workspace.yaml b/web/pnpm-workspace.yaml new file mode 100644 index 0000000..24a72ca --- /dev/null +++ b/web/pnpm-workspace.yaml @@ -0,0 +1,3 @@ +allowBuilds: + '@parcel/watcher': true + esbuild: true diff --git a/web/src/fontPicker.ts b/web/src/fontPicker.ts new file mode 100644 index 0000000..e268921 --- /dev/null +++ b/web/src/fontPicker.ts @@ -0,0 +1,187 @@ +import '@material/web/dialog/dialog.js'; +import '@material/web/list/list.js'; +import '@material/web/list/list-item.js'; +import '@material/web/icon/icon.js'; +import '@material/web/iconbutton/icon-button.js'; +import '@material/web/button/text-button.js'; +import { exec } from './ksu'; + +export interface FileItem { + name: string; + isDir: boolean; + size?: string; +} + +export class FontFilePicker { + private currentPath = '/storage/emulated/0'; + private dialogEl!: HTMLElement; + private listEl!: HTMLElement; + private pathEl!: HTMLElement; + private onSelectCallback: (path: string, fileName: string) => void; + + constructor(onSelect: (path: string, fileName: string) => void) { + this.onSelectCallback = onSelect; + this.initDialog(); + } + + private initDialog(): void { + if (document.getElementById('picker-dialog')) { + this.dialogEl = document.getElementById('picker-dialog')!; + this.listEl = document.getElementById('picker-list')!; + this.pathEl = document.getElementById('picker-path')!; + return; + } + + const dialogHTML = ` + +
+
+ + arrow_back + +
+
选择字体文件
+
/storage/emulated/0
+
+
+
+ +
+ +
+ +
+ 取消 +
+
+ `; + document.body.insertAdjacentHTML('beforeend', dialogHTML); + + this.dialogEl = document.getElementById('picker-dialog')!; + this.listEl = document.getElementById('picker-list')!; + this.pathEl = document.getElementById('picker-path')!; + + document.getElementById('picker-back-btn')?.addEventListener('click', () => this.navigateUp()); + document.getElementById('picker-cancel-btn')?.addEventListener('click', () => this.hide()); + } + + public show(initialPath = '/storage/emulated/0'): void { + this.currentPath = initialPath; + (this.dialogEl as any).open = true; + this.loadDirectory(this.currentPath); + } + + public hide(): void { + (this.dialogEl as any).open = false; + } + + private navigateUp(): void { + if (this.currentPath === '/' || this.currentPath === '') return; + const parts = this.currentPath.split('/').filter(Boolean); + parts.pop(); + this.currentPath = parts.length === 0 ? '/' : '/' + parts.join('/'); + this.loadDirectory(this.currentPath); + } + + private async loadDirectory(path: string): Promise { + this.pathEl.textContent = path; + this.listEl.innerHTML = `
正在读取目录...
`; + + try { + const { items, failed } = await this.readDir(path); + if (failed) { + this.listEl.innerHTML = `
无法读取该目录
`; + return; + } + this.renderList(items); + } catch (e) { + this.listEl.innerHTML = `
读取目录异常: ${String(e)}
`; + } + } + + // 用 find 列出目录与文件: 每行一个完整路径, 目录/文件分两次查询 + // (兼容 busybox 与 GNU find, 不解析 ls 的列输出, 路径含空格也安全) + private async readDir(path: string): Promise<{ items: FileItem[]; failed: boolean }> { + const [dirRes, fileRes] = await Promise.all([ + exec(`find "${path}" -maxdepth 1 -mindepth 1 -type d`), + exec(`find "${path}" -maxdepth 1 -mindepth 1 -type f`), + ]); + + if (dirRes.errno !== 0 || fileRes.errno !== 0) { + return { items: [], failed: true }; + } + + const dirs = this.splitLines(dirRes.stdout).map((p) => this.basename(p)); + const files = this.splitLines(fileRes.stdout) + .map((p) => this.basename(p)) + // 仅显示扩展名为 .ttf 的文件 + .filter((name) => name.toLowerCase().endsWith('.ttf')); + + const items: FileItem[] = [ + ...dirs.map((name) => ({ name, isDir: true })), + ...files.map((name) => ({ name, isDir: false })), + ].sort((a, b) => { + if (a.isDir && !b.isDir) return -1; + if (!a.isDir && b.isDir) return 1; + return a.name.localeCompare(b.name); + }); + + return { items, failed: false }; + } + + private splitLines(output: string): string[] { + return output + .split('\n') + .map((line) => line.trim()) + .filter(Boolean); + } + + private basename(path: string): string { + return path.slice(path.lastIndexOf('/') + 1) || path; + } + + private renderList(items: FileItem[]): void { + if (items.length === 0) { + this.listEl.innerHTML = ` +
+ find_in_page + 此目录下没有 .ttf 字体文件 +
`; + return; + } + + this.listEl.innerHTML = items + .map( + (item) => ` + + + ${item.isDir ? 'folder' : 'font_download'} + +
${item.name}
+ ${ + item.isDir + ? `chevron_right` + : `选择` + } +
+ `, + ) + .join(''); + + this.listEl.querySelectorAll('.picker-item').forEach((el) => { + el.addEventListener('click', () => { + const name = (el as HTMLElement).dataset.name!; + const isDir = (el as HTMLElement).dataset.isdir === 'true'; + + if (isDir) { + this.currentPath = this.currentPath === '/' ? `/${name}` : `${this.currentPath}/${name}`; + this.loadDirectory(this.currentPath); + } else { + const fullPath = `${this.currentPath}/${name}`; + this.onSelectCallback(fullPath, name); + this.hide(); + } + }); + }); + } +} diff --git a/web/src/ksu.ts b/web/src/ksu.ts new file mode 100644 index 0000000..ce7e108 --- /dev/null +++ b/web/src/ksu.ts @@ -0,0 +1,109 @@ +import { + exec as ksuExec, + toast as ksuToast, + moduleInfo as ksuModuleInfo, + fullScreen as ksuFullScreen, + enableEdgeToEdge as ksuEnableEdgeToEdge, +} from 'kernelsu'; + +export interface ExecResult { + errno: number; + stdout: string; + stderr: string; +} + +// dev 模式假文件系统 (用于文件选择器, 路径结构与 Android 一致) +const FAKE_FS: Record = { + '/': { dirs: ['storage'], fonts: [], files: [] }, + '/storage': { dirs: ['emulated'], fonts: [], files: [] }, + '/storage/emulated': { dirs: ['0'], fonts: [], files: [] }, + '/storage/emulated/0': { + dirs: ['Download', 'Fonts', 'Documents', '字体'], + fonts: [], + files: ['notes.txt'], + }, + '/storage/emulated/0/Download': { + dirs: [], + fonts: ['HarmonyOS_Sans.ttf', 'MiSans-Bold.ttf'], + files: ['a.pdf'], + }, + '/storage/emulated/0/Fonts': { + dirs: [], + fonts: ['OPPOSans.ttf', 'SourceHanSansCN.ttf'], + files: [], + }, + '/storage/emulated/0/Documents': { dirs: [], fonts: [], files: [] }, + '/storage/emulated/0/字体': { dirs: [], fonts: ['思源黑体.ttf', '霞鹜文楷.ttf'], files: [] }, +}; + +async function mockExec(command: string): Promise { + const fake = (stdout = ''): ExecResult => ({ errno: 0, stdout, stderr: '' }); + const fail = (stderr: string): ExecResult => ({ errno: 1, stdout: '', stderr }); + const slow = (stdout = '') => + new Promise((r) => setTimeout(() => r(fake(stdout)), 200)); + const slowFail = (stderr: string) => + new Promise((r) => setTimeout(() => r(fail(stderr)), 200)); + + // find 命令: 解析路径与类型 (d/f), 返回假目录/文件, 每行一个完整路径 + if (command.startsWith('find ')) { + const m = command.match(/^find ['"]([^'"]*)['"] -maxdepth 1 -mindepth 1 -type ([df])$/); + if (!m) return slow(`(mock 未定义: ${command})`); + const dir = m[1]; + const node = FAKE_FS[dir]; + if (!node) return slowFail(`find: ${dir}: No such file or directory`); + const full = (name: string) => (dir === '/' ? `/${name}` : `${dir}/${name}`); + const lines = m[2] === 'd' ? node.dirs.map(full) : [...node.fonts, ...node.files].map(full); + return slow(lines.join('\n')); + } + + // 字体测试: 模拟 FONT 字体已放入 webroot/fonts-test, 返回可用字体列表 + if (command.includes('fonts-test')) { + return slow('hans.ttf\nhant.ttf\nen.ttf\nmono.ttf'); + } + + if (command.includes('rm -f')) return fake(''); + if (command.includes('cp -f')) return fake(''); + if (command.includes('apply.sh')) { + return fake('[*] 安装: SysSans-Hans-Regular.ttf (模拟)\n[*] 全部完成, 重启后生效 (模拟)'); + } + + if (command.includes('ro.product.model')) return slow('Pixel 8 Pro (模拟设备)'); + return slow(`(mock 未定义: ${command})`); +} + +export async function exec(command: string): Promise { + if (import.meta.env.DEV) return mockExec(command); + return ksuExec(command); +} + +export function toast(msg: string): void { + if (import.meta.env.DEV) console.log('[toast]', msg); + else ksuToast(msg); +} + +// 模块信息 (module.prop 风格文本), dev 模式返回模拟数据 +export function moduleInfo(): string { + if (import.meta.env.DEV) { + return [ + 'id=FontMM', + 'name=FontMM', + 'version=26.8.0(260800001)', + 'versionCode=26080001', + 'author=Yule', + 'description=ColorOS 16 字体模块模板', + ].join('\n'); + } + return ksuModuleInfo(); +} + +// 全屏: 让 WebView 内容延伸到状态栏 / 底部导航栏(小白条) 下方 +export function fullScreen(enabled: boolean): void { + if (import.meta.env.DEV) return; + ksuFullScreen(enabled); +} + +// edge-to-edge: 启用安全区 insets (配合 insets.css 的 --window-inset-* 变量) +export function enableEdgeToEdge(enabled: boolean): void { + if (import.meta.env.DEV) return; + ksuEnableEdgeToEdge(enabled); +} diff --git a/web/src/main.ts b/web/src/main.ts new file mode 100644 index 0000000..a875d77 --- /dev/null +++ b/web/src/main.ts @@ -0,0 +1,539 @@ +import '@material/web/button/outlined-button.js'; +import '@material/web/button/text-button.js'; +import '@material/web/iconbutton/icon-button.js'; +import '@material/web/icon/icon.js'; +import '@material/web/dialog/dialog.js'; +import '@material/web/slider/slider.js'; +import '@material/web/labs/card/elevated-card.js'; +import '@material/web/labs/navigationbar/navigation-bar.js'; +import '@material/web/labs/navigationtab/navigation-tab.js'; +import 'material-symbols/outlined.css'; + +import './theme.scss'; +import './style.scss'; + +import { exec, enableEdgeToEdge, moduleInfo, toast } from './ksu'; +import { FontFilePicker } from './fontPicker'; +import type { FontSlot } from './types'; +import * as opentype from 'opentype.js'; + +// edge-to-edge: 启用安全区 insets, 内容延伸至状态栏/底部小白条区域, +// insets.css 的 --window-inset-* 变量随之生效, 底栏据此避让 +enableEdgeToEdge(true); + +const FONTS_DIR = '/data/adb/modules/FontMM/FONTS'; + +const slots: Record<'hans' | 'hant' | 'en' | 'mono', FontSlot> = { + hans: { + key: 'hans', + title: '中文简体', + path: null, + fileName: '', + }, + hant: { + key: 'hant', + title: '中文繁体', + path: null, + fileName: '', + }, + en: { + key: 'en', + title: '英文 & 数字', + path: null, + fileName: '', + }, + mono: { + key: 'mono', + title: '等宽字体', + path: null, + fileName: '', + }, +}; + +const slotsEl = document.getElementById('slots')!; +const applyBtn = document.getElementById('apply-btn') as HTMLButtonElement; +const logDialog = document.getElementById('log-dialog') as any; +const logContent = document.getElementById('log-content')!; + +document.getElementById('log-close')?.addEventListener('click', () => { + logDialog.open = false; +}); + +let pickingKey: keyof typeof slots = 'hans'; +let applying = false; + +const picker = new FontFilePicker((path, name) => { + const slot = slots[pickingKey]; + slot.path = path; + slot.fileName = name; + renderSlots(); + void refreshSlotInfo(slot); +}); + +// ---------- 字体名称解析 (opentype.js) ---------- +// 从字体名称表提取 family name, 优先中文字体名 +function extractFamilyName(font: any): string | null { + const pick = (table: any): string | null => { + if (!table) return null; + const family = table.fontFamily ?? table.fullName; + if (!family || typeof family !== 'object') return null; + for (const lang of ['zh-CN', 'zh-Hans', 'zh', 'zh-TW', 'zh-Hant', 'en', 'en-US']) { + if (typeof family[lang] === 'string' && family[lang]) return family[lang]; + } + const first = Object.values(family).find((v) => typeof v === 'string' && v); + return first ? String(first) : null; + }; + return pick(font.names?.windows) ?? pick(font.names?.macintosh); +} + +// 读取 fonts-test/ 下字体文件的名称与大小 (WebView 仅能访问 webroot 内文件) +async function readFontInfo(file: string): Promise<{ name?: string; sizeText?: string }> { + try { + const res = await fetch(`fonts-test/${file}`); + if (!res.ok) return {}; + const buf = await res.arrayBuffer(); + const font = opentype.parse(buf); + const name = extractFamilyName(font); + const sizeText = `${(buf.byteLength / 1024 / 1024).toFixed(1)} MB`; + return { name: name ?? undefined, sizeText }; + } catch { + return {}; + } +} + +// 选择新字体后: 复制到 fonts-test 供解析, 更新卡片显示的名称/大小 +async function refreshSlotInfo(slot: FontSlot) { + if (!slot.path) return; + try { + await exec(`cp -f '${slot.path}' '${TEST_FONT_DIR}/${slot.key}.ttf'`); + const info = await readFontInfo(`${slot.key}.ttf`); + if (info.name) slot.fileName = info.name; + if (info.sizeText) slot.sizeText = info.sizeText; + renderSlots(); + } catch { + // 忽略解析失败, 保持选择器返回的文件名 + } +} + +// 打开 WebUI 时: 复制 FONT/ 到 fonts-test, 读取已有字体的名称/大小填充卡片 +async function loadExistingFonts() { + const available = await ensureFontsCopy(); + for (const key of ['hans', 'hant', 'en', 'mono'] as const) { + const file = `${key}.ttf`; + if (!available.includes(file)) continue; + const slot = slots[key]; + const info = await readFontInfo(file); + slot.path = `${FONTS_DIR}/${file}`; + slot.fileName = info.name ?? file; + if (info.sizeText) slot.sizeText = info.sizeText; + } + renderSlots(); +} + +// 未选择时的占位文案: 回退可视化 (WYSIWYG) +function slotPlaceholder(slot: FontSlot): string { + if (slot.path) return slot.fileName; + if (slot.key === 'hans') return '未选择字体文件'; + if (slots.hans.path) { + if (slot.key === 'mono') return '未选择,保持系统等宽字体'; + return `默认使用:${slots.hans.fileName}`; + } + return '未选择字体文件'; +} + +function renderSlots() { + slotsEl.innerHTML = Object.values(slots) + .map((slot) => { + // 选了其他槽位但未选简体时, 简体卡片提示"必选" + const required = + slot.key === 'hans' && + !slot.path && + Object.values(slots).some((s) => s.key !== 'hans' && s.path); + const nameText = required ? '此字体为必选' : slotPlaceholder(slot); + return ` + +
+
+ ${slot.title} +
+
+ + folder_open + ${slot.path ? '更换' : '选择'} + +
+
+ +
+ ${ + slot.path + ? ` + close + ` + : '' + } +
+
${nameText}
+ ${slot.path ? `
${slot.sizeText || '…'} · 字体文件
` : ''} +
+
+
+ `; + }) + .join(''); + + // 绑定事件 + slotsEl.querySelectorAll('.slot-pick').forEach((btn) => { + btn.addEventListener('click', () => { + pickingKey = btn.dataset.key as keyof typeof slots; + picker.show(); + }); + }); + slotsEl.querySelectorAll('.slot-clear').forEach((btn) => { + btn.addEventListener('click', () => { + const slot = slots[btn.dataset.key as keyof typeof slots]; + slot.path = null; + slot.fileName = ''; + renderSlots(); + }); + }); + + if (applyBtn) { + // 未选择简体字体时直接隐藏按钮 (不做半透明禁用) + applyBtn.style.display = !slots.hans.path ? 'none' : ''; + applyBtn.disabled = applying; + } +} + +async function copyFont(src: string, dest: string) { + const { errno, stderr } = await exec(`cp -f '${src}' '${dest}'`); + if (errno !== 0) throw new Error(`复制失败: ${stderr}`); +} + +async function apply() { + if (!slots.hans.path) return; + applying = true; + renderSlots(); + try { + // 启动加载的字体 path 即 FONT/ 内的文件, 无需再复制 + if (slots.hans.path !== `${FONTS_DIR}/hans.ttf`) { + await copyFont(slots.hans.path, `${FONTS_DIR}/hans.ttf`); + } + + if (slots.hant.path) { + if (slots.hant.path !== `${FONTS_DIR}/hant.ttf`) { + await copyFont(slots.hant.path, `${FONTS_DIR}/hant.ttf`); + } + } else { + await exec(`rm -f '${FONTS_DIR}/hant.ttf'`); + } + + if (slots.en.path) { + if (slots.en.path !== `${FONTS_DIR}/en.ttf`) { + await copyFont(slots.en.path, `${FONTS_DIR}/en.ttf`); + } + } else { + await exec(`rm -f '${FONTS_DIR}/en.ttf'`); + } + + if (slots.mono.path) { + if (slots.mono.path !== `${FONTS_DIR}/mono.ttf`) { + await copyFont(slots.mono.path, `${FONTS_DIR}/mono.ttf`); + } + } else { + await exec(`rm -f '${FONTS_DIR}/mono.ttf'`); + } + + const { errno, stdout, stderr } = await exec('sh /data/adb/modules/FontMM/apply.sh'); + if (errno !== 0) throw new Error(stderr || 'apply.sh 执行失败'); + + if (logContent && logDialog) { + logContent.textContent = stdout; + logDialog.open = true; + } + toast('字体已应用,重启后生效'); + } catch (e) { + toast(`应用失败: ${String(e)}`); + } finally { + applying = false; + renderSlots(); + } +} + +applyBtn?.addEventListener('click', apply); +renderSlots(); + +// ---------------- 导航与视图切换 ---------------- +const homeView = document.getElementById('home-view')!; +const testView = document.getElementById('test-view')!; +const aboutView = document.getElementById('about-view')!; + +const views = [homeView, testView, aboutView]; +const navBar = document.getElementById('nav-bar') as any; +// 悬浮应用按钮 (与首页绑定, 仅首页显示) +const applyFab = document.getElementById('apply-btn') as HTMLElement; + +function showView(index: number) { + views.forEach((v, i) => v.classList.toggle('active', i === index)); + // 悬浮应用按钮仅首页显示, 且未选简体字体时不展示 + applyFab.style.display = index === 0 && slots.hans.path ? '' : 'none'; + // 关于页隐藏顶栏 (自身带返回栏) + document.body.classList.toggle('no-top-bar', index === 2); + // 同步底部导航高亮 (仅首页/字体测试两个 tab) + if (index < 2 && navBar) navBar.activeIndex = index; + if (index === 1) loadTestFonts(); + if (index === 2) loadAbout(); +} + +// 悬浮按钮滚动隐藏: 向下滚动移出视口, 向上滚动出现 +let lastScrollY = window.scrollY; +window.addEventListener( + 'scroll', + () => { + const y = window.scrollY; + if (y > lastScrollY + 4) applyFab.classList.add('fab-hidden'); + else if (y < lastScrollY - 4) applyFab.classList.remove('fab-hidden'); + lastScrollY = y; + }, + { passive: true }, +); + +navBar?.addEventListener('navigation-bar-activated', (e: { detail: { activeIndex: number } }) => { + showView(e.detail.activeIndex); +}); + +// 关于入口: 顶栏按钮进入, 关于页返回栏回首页 +document.getElementById('about-btn')?.addEventListener('click', () => showView(2)); +document.getElementById('about-back')?.addEventListener('click', () => showView(0)); + +// ---------------- 关于页 ---------------- +interface ModuleProp { + [key: string]: string; +} + +// 解析 module.prop 风格文本 (key=value 每行一个) +function parseProp(text: string): ModuleProp { + const out: ModuleProp = {}; + for (const line of text.split('\n')) { + const idx = line.indexOf('='); + if (idx > 0) { + const key = line.slice(0, idx).trim(); + if (key) out[key] = line.slice(idx + 1).trim(); + } + } + return out; +} + +async function loadAbout() { + let prop: ModuleProp = {}; + + // 1) 优先从 kernelsu WebUI API 获取模块信息 + try { + prop = { ...prop, ...parseProp(moduleInfo()) }; + } catch { + // dev 或 API 不可用时忽略, 走下方兜底 + } + + // 2) 兜底: 通过 kernelsu exec 读取模块的 module.prop + try { + const { errno, stdout } = await exec('cat /data/adb/modules/FontMM/module.prop'); + if (errno === 0) prop = { ...prop, ...parseProp(stdout) }; + } catch { + // 忽略读取失败 + } + + const set = (id: string, value: string) => { + const el = document.getElementById(id); + if (el) el.textContent = value; + }; + set('about-version', prop.version || '未知'); + set('about-version-code', prop.versionCode || '未知'); + set('about-author', prop.author || '未知'); + set('about-id', prop.id || 'FontMM'); + set('about-desc', prop.description || 'ColorOS 16 字体模块'); +} + +// ---------------- 字体测试页 ---------------- +const WEBROOT_DIR = '/data/adb/modules/FontMM/webroot'; +const TEST_FONT_DIR = `${WEBROOT_DIR}/fonts-test`; + +const testStatus = document.getElementById('test-status')!; +const testContent = document.getElementById('test-content')!; + +type TestSlot = 'hans' | 'hant' | 'en'; + +const TEST_FONTS: { slot: TestSlot; file: string; family: string }[] = [ + { slot: 'hans', file: 'hans.ttf', family: 'FontMM-Hans' }, + { slot: 'hant', file: 'hant.ttf', family: 'FontMM-Hant' }, + { slot: 'en', file: 'en.ttf', family: 'FontMM-En' }, +]; + +async function registerFont(family: string, file: string): Promise { + try { + // 声明完整字重范围: 否则 FontFace 默认只覆盖 weight 400, + // CSS font-weight 100-900 将无法匹配到该字体 (真机表现: 100-400 无变化) + const font = new FontFace(family, `url('fonts-test/${file}')`, { weight: '100 900' }); + await font.load(); + document.fonts.add(font); + return true; + } catch { + return false; + } +} + +// 复制 FONT/ 到 webroot/fonts-test, 供页面加载与名称解析 +// (WebView 无法直接访问模块外部目录, 符号链接在真机也不可靠, 直接复制) +async function ensureFontsCopy(): Promise { + const copyCmd = [ + `rm -rf '${TEST_FONT_DIR}'`, + `mkdir -p '${TEST_FONT_DIR}'`, + `cp -f '${FONTS_DIR}'/*.ttf '${TEST_FONT_DIR}'/ 2>/dev/null`, + ].join('\n'); + try { + const { errno } = await exec(copyCmd); + if (errno !== 0) return []; + } catch { + return []; + } + return listFontsDir(); +} + +// 列出 fonts-test/ 下的字体文件 (每行一个完整路径) +async function listFontsDir(): Promise { + try { + const { errno, stdout } = await exec(`find '${TEST_FONT_DIR}' -maxdepth 1 -mindepth 1 -type f`); + if (errno !== 0) return []; + return stdout + .split('\n') + .map((s) => s.trim()) + .filter(Boolean) + .map((p) => p.slice(p.lastIndexOf('/') + 1)); + } catch { + return []; + } +} + +async function loadTestFonts(): Promise { + testStatus.hidden = false; + testContent.hidden = true; + testStatus.textContent = '正在加载字体...'; + + // 字体已在 WebUI 打开时复制到 fonts-test, 此处直接读取 + const available = await listFontsDir(); + + // 注册字体, 记录每个槽位是否加载成功 + const loaded = new Map(); + for (const tf of TEST_FONTS) { + loaded.set( + tf.slot, + available.includes(tf.file) ? await registerFont(tf.family, tf.file) : false, + ); + } + + // fallback 逻辑: hant/en 缺失回退 hans + const hans = loaded.get('hans') ? 'FontMM-Hans' : 'sans-serif'; + const hant = loaded.get('hant') ? 'FontMM-Hant' : hans; + const en = loaded.get('en') ? 'FontMM-En' : hans; + + // 显示字体名称 (解析出的 family name; 未解析到时为文件名) + const slotLabel = (key: TestSlot): string => slots[key].fileName; + const hasFont = (key: TestSlot): boolean => available.includes(`${key}.ttf`); + const hansLabel = hasFont('hans') ? slotLabel('hans') : null; + + const setTag = (id: string, text: string) => { + const el = document.getElementById(id); + if (el) el.textContent = text; + }; + setTag('hans-tag', hasFont('hans') ? slotLabel('hans') : '未设置, 使用系统字体'); + setTag( + 'hant-tag', + hasFont('hant') ? slotLabel('hant') : hansLabel ? `回退 ${hansLabel}` : '未设置, 使用系统字体', + ); + setTag( + 'en-tag', + hasFont('en') ? slotLabel('en') : hansLabel ? `回退 ${hansLabel}` : '未设置, 使用系统字体', + ); + setTag('weight-tag', `使用 ${hansLabel ?? '系统字体'}`); + setTag('var-tag', `使用 ${hansLabel ?? '系统字体'}`); + + const setFamily = (id: string, family: string, fallback: string) => { + const el = document.getElementById(id); + if (el) el.style.fontFamily = `'${family}', ${fallback}`; + }; + setFamily('test-hans', hans, 'sans-serif'); + setFamily('test-hant', hant, `'${hans}', sans-serif`); + setFamily('test-en', en, `'${hans}', sans-serif`); + // 字重 / 可变字体测试: 用完整 fallback 链渲染 (Hans → Hant → En 按用户选择顺序, + // 浏览器逐字形回退, 所见即所得地体现系统真实 fallback) + const fallbackChain = [...new Set([hans, hant, en])].map((f) => `'${f}'`).join(', '); + const fullChain = `${fallbackChain}, sans-serif`; + document.querySelectorAll('.test-w-text').forEach((el) => { + el.style.fontFamily = fullChain; + }); + const vp = document.getElementById('test-var-preview'); + if (vp) vp.style.fontFamily = fullChain; + applyWght(400); // 与滑条初始值保持一致 + + testStatus.textContent = + available.length === 0 + ? '未找到已设置的字体 (FONTS 为空), 当前使用系统字体预览' + : '字体已加载, 下方为预览效果 (按 fallback 逻辑)'; + testContent.hidden = false; +} + +// 可变字体滑动条: 滑动中只更新数值显示, 停止 250ms 后才应用字重 (省性能) +const wghtSlider = document.getElementById('wght-slider') as any; +const wghtValue = document.getElementById('wght-value')!; +const varPreview = document.getElementById('test-var-preview') as HTMLElement | null; + +let wghtTimer: number | undefined; +function applyWght(weight: number) { + if (varPreview) varPreview.style.fontVariationSettings = `'wght' ${weight}`; +} + +// 字重档位名称 (与字重测试区一致) +const WEIGHT_NAMES: Record = { + 100: '淡体 Thin', + 200: '特细 ExtraLight', + 300: '细体 Light', + 400: '标准 Regular', + 500: '适中 Medium', + 600: '次粗 SemiBold', + 700: '粗体 Bold', + 800: '特粗 ExtraBold', + 900: '浓体 Black', +}; + +function updateVarPreview(weight: number) { + if (!varPreview) return; + const key = Math.round(weight / 100) * 100; + const name = WEIGHT_NAMES[key] ?? String(weight); + varPreview.textContent = `${weight} - ${name}`; +} + +wghtSlider?.addEventListener('input', (e: Event) => { + const value = Number((e.target as any).value); + wghtValue.textContent = String(value); + updateVarPreview(value); + window.clearTimeout(wghtTimer); + wghtTimer = window.setTimeout(() => applyWght(value), 250); +}); +// 松手时立即应用最终值, 避免防抖延迟 +wghtSlider?.addEventListener('change', (e: Event) => { + const value = Number((e.target as any).value); + wghtValue.textContent = String(value); + updateVarPreview(value); + applyWght(value); +}); + +// 字号滑条: 直接应用 (12-40px), 设置 style 开销小无需防抖 +const sizeSlider = document.getElementById('size-slider') as any; +const sizeValue = document.getElementById('size-value')!; +sizeSlider?.addEventListener('input', (e: Event) => { + const value = Number((e.target as any).value); + sizeValue.textContent = String(value); + if (varPreview) varPreview.style.fontSize = `${value}px`; +}); + +// 打开 WebUI 时读取 FONT/ 已有字体并填充卡片 (置于文件末尾, 确保常量均已初始化) +void loadExistingFonts(); diff --git a/web/src/style.scss b/web/src/style.scss new file mode 100644 index 0000000..20a07ee --- /dev/null +++ b/web/src/style.scss @@ -0,0 +1,571 @@ +@use './theme.scss'; + +* { + box-sizing: border-box; + -webkit-tap-highlight-color: transparent; +} + +body { + margin: 0; + padding: 0; + background-color: var(--md-sys-color-background); + color: var(--md-sys-color-on-surface); + font-family: + system-ui, + -apple-system, + sans-serif; + user-select: none; +} + +// ---------------- 1. Top App Bar ---------------- +.top-app-bar { + // 随页面滚动 (非 fixed) + display: flex; + align-items: center; + height: calc(64px + var(--top-inset, 0px)); + padding: var(--top-inset, 0px) 24px 0 24px; + // 无边框无背景: 顶栏直接融入页面 (与内容区同底色) + background-color: transparent; + + .top-app-bar__title { + font-size: var(--md-sys-typescale-title-large-size); + font-weight: var(--md-sys-typescale-title-large-weight); + line-height: var(--md-sys-typescale-title-large-line-height); + letter-spacing: var(--md-sys-typescale-title-large-tracking); + color: var(--md-sys-color-on-surface); + } + + .top-app-bar__actions { + display: flex; + align-items: center; + gap: 4px; + margin-left: auto; + } +} + +// 关于页隐藏顶栏 (自身带返回栏), 内容区相应缩减顶部留白 +body.no-top-bar { + .top-app-bar { + display: none; + } + + .view-about { + padding-top: calc(var(--top-inset, 0px) + 16px); + } +} + +// ---------------- 2. 视图容器 ---------------- +.view { + display: none; + + &.active { + display: block; + } +} + +.view-home, +.view-test, +.view-about { + max-width: 600px; + margin: 0 auto; + // 顶栏已在文档流中占位, 顶部仅留少量呼吸间距; + // 底部预留导航栏 + 吸底 CTA, 确保最后一张卡片能完整滑出不被遮挡 + padding: 16px 16px calc(var(--bottom-inset, 0px) + 176px) 16px; +} + +#slots { + display: flex; + flex-direction: column; + gap: 16px; +} + +// ---------------- 3. 首页槽位卡片 ---------------- +md-elevated-card.slot-card { + display: block; + padding: 16px; + overflow: hidden; + border: 1px solid var(--md-sys-color-outline-variant); + transition: + border-color var(--md-duration-standard) var(--md-easing-standard), + border-width var(--md-duration-standard) var(--md-easing-standard); + --md-elevated-card-container-color: var(--md-sys-color-surface-container-low); + --md-elevated-card-container-shape: var(--md-shape-corner-medium); + --md-elevated-card-container-elevation: 1; + + // 已选择状态: 仅通过边框高亮区分 (不再使用 Badge / 图标) + &.selected { + border-color: var(--md-sys-color-primary); + border-width: 1.5px; + } + + // 中文简体为必选: 边框恒用强调色 (tertiary) + &.slot-hans { + border-color: var(--md-sys-color-tertiary); + border-width: 1.5px; + } + + .slot-header { + display: flex; + justify-content: space-between; + align-items: flex-start; + gap: 8px; + margin-bottom: 12px; + + .slot-title-group { + display: flex; + flex-direction: column; + gap: 2px; + min-width: 0; + } + + .slot-title { + font-size: var(--md-sys-typescale-title-medium-size); + font-weight: var(--md-sys-typescale-title-medium-weight); + line-height: var(--md-sys-typescale-title-medium-line-height); + color: var(--md-sys-color-on-surface); + } + + // 选择/更换按钮位于卡片右上角 + .slot-actions { + flex-shrink: 0; + + md-outlined-button { + --md-outlined-button-container-shape: var(--md-shape-corner-small); + height: 40px; + } + } + } + + // 取消 Card-in-Card: 文件名区域直接作为卡片内容, 不再嵌套浅色容器 + .slot-file { + display: flex; + align-items: center; + gap: 4px; + min-width: 0; + + // 清除按钮位于字体名称左侧 + .slot-clear { + flex-shrink: 0; + } + + .slot-file-text { + flex: 1; + min-width: 0; + + .slot-name { + font-size: var(--md-sys-typescale-title-medium-size); + font-weight: 600; + color: var(--md-sys-color-on-surface); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + + &.placeholder { + font-weight: 400; + color: var(--md-sys-color-on-surface-variant); + opacity: 0.75; // 半透明: 直观表达"回退/继承"状态 + } + + // 简体必选提醒: 强调色 + &.required { + font-weight: 600; + color: var(--md-sys-color-tertiary); + opacity: 1; + } + } + + .slot-meta { + margin-top: 2px; + font-size: var(--md-sys-typescale-body-small-size); + color: var(--md-sys-color-outline); + } + } + } +} + +// ---------------- 4. 悬浮应用按钮 (Extended FAB) ---------------- +.fab { + position: fixed; + right: 16px; + bottom: calc(var(--bottom-inset, 0px) + 96px); // 位于底部导航栏上方 + z-index: 9; + display: inline-flex; + align-items: center; + gap: 8px; + height: 56px; + padding: 0 20px; + border: none; + border-radius: var(--md-shape-corner-large); + background-color: var(--md-sys-color-primary-container); + color: var(--md-sys-color-on-primary-container); + box-shadow: + 0 2px 6px rgba(0, 0, 0, 0.25), + 0 6px 12px rgba(0, 0, 0, 0.2); + font-size: var(--md-sys-typescale-label-large-size); + font-weight: var(--md-sys-typescale-label-large-weight); + cursor: pointer; + -webkit-tap-highlight-color: transparent; + transition: + transform var(--md-duration-standard) var(--md-easing-standard), + opacity var(--md-duration-standard) var(--md-easing-standard), + box-shadow var(--md-duration-standard) var(--md-easing-standard); + + // 向下滚动时移出视口 + &.fab-hidden { + transform: translateY(calc(100% + 24px)); + opacity: 0; + pointer-events: none; + } + + &:disabled { + // 应用进行中短暂禁用: 保持不透明外观, 仅禁止点击 + pointer-events: none; + } + + &:not(:disabled):active { + box-shadow: + 0 1px 3px rgba(0, 0, 0, 0.3), + 0 3px 6px rgba(0, 0, 0, 0.25); + } +} + +// ---------------- 5. 底部导航栏 ---------------- +.bottom-nav { + position: fixed; + bottom: 0; + left: 0; + right: 0; + z-index: 11; + background-color: var(--md-sys-color-surface-container); + border-top: 1px solid var(--md-sys-color-outline-variant); + padding-bottom: var(--bottom-inset, 0px); + + md-navigation-bar { + width: 100%; + height: 80px; + --md-navigation-bar-container-color: var(--md-sys-color-surface-container); + // 去掉底栏阴影, 与页面融为一体 + --md-navigation-bar-container-elevation: 0; + box-shadow: none; + } +} + +// ---------------- 6. 对话框 ---------------- +md-dialog { + --md-dialog-container-shape: var(--md-shape-corner-extra-large); +} + +// ---------------- 7. 通用信息卡片 (关于 / 测试共用) ---------------- +.about-card, +.test-card { + display: block; + padding: 20px; + border: 1px solid var(--md-sys-color-outline-variant); + --md-elevated-card-container-color: var(--md-sys-color-surface-container-low); + --md-elevated-card-container-shape: var(--md-shape-corner-medium); +} + +// ---------------- 8. 关于视图 ---------------- +.view-topbar { + display: flex; + align-items: center; + gap: 4px; + + .view-topbar-title { + font-size: var(--md-sys-typescale-title-medium-size); + font-weight: var(--md-sys-typescale-title-medium-weight); + color: var(--md-sys-color-on-surface); + } +} + +.view-about { + gap: 16px; + + &.active { + display: flex; + flex-direction: column; + } + + .about-logo { + font-size: var(--md-sys-typescale-title-large-size); + font-weight: 700; + letter-spacing: -0.02em; + color: var(--md-sys-color-primary); + } + + .about-desc { + margin-top: 4px; + font-size: var(--md-sys-typescale-body-medium-size); + color: var(--md-sys-color-on-surface-variant); + } + + .about-list { + display: flex; + flex-direction: column; + gap: 10px; + margin-top: 16px; + + .about-row { + display: flex; + justify-content: space-between; + align-items: center; + + .about-row-label { + font-size: var(--md-sys-typescale-body-small-size); + color: var(--md-sys-color-on-surface-variant); + } + + .about-row-value { + font-size: var(--md-sys-typescale-body-medium-size); + font-weight: 600; + color: var(--md-sys-color-on-surface); + } + } + } + + .about-section-title { + margin-bottom: 8px; + font-size: var(--md-sys-typescale-title-small-size); + font-weight: var(--md-sys-typescale-title-small-weight); + color: var(--md-sys-color-primary); + } + + .about-section-text { + margin: 0 0 12px 0; + font-size: var(--md-sys-typescale-body-small-size); + line-height: 1.6; + color: var(--md-sys-color-on-surface-variant); + } + + .about-link { + display: flex; + align-items: center; + gap: 8px; + padding: 10px 12px; + border-radius: var(--md-shape-corner-medium); + background: var(--md-sys-color-surface-container-low); + font-size: var(--md-sys-typescale-body-medium-size); + color: var(--md-sys-color-on-surface); + + md-icon { + color: var(--md-sys-color-primary); + } + + a { + margin-left: auto; + color: var(--md-sys-color-primary); + text-decoration: none; + font-weight: 600; + } + } + + .about-footer { + margin-top: 4px; + text-align: center; + font-size: var(--md-sys-typescale-label-small-size); + color: var(--md-sys-color-outline); + } +} + +// ---------------- 9. 字体测试视图 ---------------- +.view-test { + gap: 16px; + + &.active { + display: flex; + flex-direction: column; + } + + .test-status { + font-size: var(--md-sys-typescale-body-small-size); + color: var(--md-sys-color-on-surface-variant); + } + + .test-content { + display: flex; + flex-direction: column; + gap: 16px; + } + + .test-section-title { + display: flex; + align-items: center; + gap: 8px; + margin-bottom: 12px; + font-size: var(--md-sys-typescale-title-small-size); + font-weight: var(--md-sys-typescale-title-small-weight); + color: var(--md-sys-color-on-surface); + } + + .test-tag { + padding: 1px 8px; + border-radius: var(--md-shape-corner-extra-small); + background: var(--md-sys-color-secondary-container); + color: var(--md-sys-color-on-secondary-container); + font-size: var(--md-sys-typescale-label-small-size); + font-weight: var(--md-sys-typescale-label-small-weight); + white-space: nowrap; + } + + .test-sample { + font-size: var(--md-sys-typescale-body-large-size); + line-height: 1.7; + color: var(--md-sys-color-on-surface); + } + + .test-var-note { + margin-bottom: 10px; + font-size: var(--md-sys-typescale-body-small-size); + color: var(--md-sys-color-outline); + } + + .test-w-row { + display: flex; + align-items: center; + padding: 6px 0; + border-bottom: 1px dashed var(--md-sys-color-outline-variant); + + &:last-child { + border-bottom: none; + } + + .test-w-text { + font-size: var(--md-sys-typescale-body-medium-size); + color: var(--md-sys-color-on-surface); + } + } + + .test-wght-row { + display: flex; + align-items: center; + gap: 12px; + margin-bottom: 14px; + + .test-wght-label { + flex-shrink: 0; + font-size: var(--md-sys-typescale-body-small-size); + color: var(--md-sys-color-on-surface-variant); + } + + md-slider { + flex: 1; + min-width: 0; + } + + .test-wght-value { + flex-shrink: 0; + min-width: 3ch; + text-align: right; + font-size: var(--md-sys-typescale-label-large-size); + font-weight: var(--md-sys-typescale-label-large-weight); + font-variant-numeric: tabular-nums; + color: var(--md-sys-color-primary); + } + } + + .test-var-preview { + font-size: var(--md-sys-typescale-body-large-size); + line-height: 1.7; + color: var(--md-sys-color-on-surface); + } +} + +// ---------------- 10. 文件选择器 Dialog ---------------- +.font-picker-dialog { + --md-dialog-container-shape: var(--md-shape-corner-extra-large); + --md-dialog-container-color: var(--md-sys-color-surface); + max-width: 560px; + width: 90vw; + + &::part(headline) { + padding: 20px 24px 12px 24px; + text-align: left; + } + + .picker-header { + display: flex; + flex-direction: column; + gap: 12px; + width: 100%; + text-align: left; + + .picker-title-bar { + display: flex; + align-items: center; + gap: 12px; + width: 100%; + + .picker-back { + margin-left: -8px; + flex-shrink: 0; + } + + .picker-path-group { + display: flex; + flex-direction: column; + align-items: flex-start; + text-align: left; + min-width: 0; + flex: 1; + + .picker-subtitle { + font-size: var(--md-sys-typescale-label-medium-size); + color: var(--md-sys-color-primary); + font-weight: var(--md-sys-typescale-label-medium-weight); + } + + .picker-path-text { + width: 100%; + font-size: var(--md-sys-typescale-title-medium-size); + font-weight: 700; + color: var(--md-sys-color-on-surface); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } + } + } + + .picker-content { + padding: 8px 0; + max-height: 50vh; + overflow-y: auto; + + .picker-list { + background: transparent; + padding: 0; + + .picker-item { + border-radius: var(--md-shape-corner-medium); + margin-bottom: 4px; + cursor: pointer; + + .item-icon { + color: var(--md-sys-color-primary); + } + + &.is-file .item-icon { + color: var(--md-sys-color-tertiary); + } + + .item-name { + font-size: var(--md-sys-typescale-body-medium-size); + font-weight: 500; + } + } + } + + .picker-empty, + .picker-loading, + .picker-error { + display: flex; + flex-direction: column; + align-items: center; + padding: 32px 16px; + gap: 8px; + color: var(--md-sys-color-outline); + font-size: var(--md-sys-typescale-body-small-size); + } + } +} diff --git a/web/src/theme.scss b/web/src/theme.scss new file mode 100644 index 0000000..a1593d0 --- /dev/null +++ b/web/src/theme.scss @@ -0,0 +1,176 @@ +@import url('https://mui.kernelsu.org/internal/insets.css'); +@import url('https://mui.kernelsu.org/internal/colors.css'); + +:root { + --top-inset: var(--window-inset-top, 0px); + --bottom-inset: var(--window-inset-bottom, 0px); + + --md-focus-ring-color: transparent; + + // ============ MD3 形状 tokens ============ + --md-shape-corner-none: 0px; + --md-shape-corner-extra-small: 4px; + --md-shape-corner-small: 8px; + --md-shape-corner-medium: 12px; + --md-shape-corner-large: 16px; + --md-shape-corner-extra-large: 28px; + --md-shape-corner-full: 9999px; + + // ============ MD3 动效 tokens ============ + --md-duration-standard: 300ms; + --md-duration-standard-decelerate: 250ms; + --md-duration-standard-accelerate: 200ms; + --md-duration-emphasized: 500ms; + --md-easing-standard: cubic-bezier(0.2, 0, 0, 1); + --md-easing-emphasized: cubic-bezier(0.2, 0, 0, 1); + --md-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1); + --md-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15); + + // ============ MD3 字阶 tokens ============ + --md-sys-typescale-title-large-size: 1.375rem; // 22sp + --md-sys-typescale-title-large-weight: 400; + --md-sys-typescale-title-large-line-height: 1.75rem; // 28sp + --md-sys-typescale-title-large-tracking: 0em; + + --md-sys-typescale-title-medium-size: 1rem; // 16sp + --md-sys-typescale-title-medium-weight: 500; + --md-sys-typescale-title-medium-line-height: 1.5rem; // 24sp + --md-sys-typescale-title-medium-tracking: 0.0094em; + + --md-sys-typescale-title-small-size: 0.875rem; // 14sp + --md-sys-typescale-title-small-weight: 500; + --md-sys-typescale-title-small-line-height: 1.25rem; // 20sp + --md-sys-typescale-title-small-tracking: 0.0063em; + + --md-sys-typescale-body-large-size: 1rem; // 16sp + --md-sys-typescale-body-large-weight: 400; + --md-sys-typescale-body-large-line-height: 1.5rem; // 24sp + --md-sys-typescale-body-large-tracking: 0.0313em; + + --md-sys-typescale-body-medium-size: 0.875rem; // 14sp + --md-sys-typescale-body-medium-weight: 400; + --md-sys-typescale-body-medium-line-height: 1.25rem; // 20sp + --md-sys-typescale-body-medium-tracking: 0.0156em; + + --md-sys-typescale-body-small-size: 0.75rem; // 12sp + --md-sys-typescale-body-small-weight: 400; + --md-sys-typescale-body-small-line-height: 1rem; // 16sp + --md-sys-typescale-body-small-tracking: 0.025em; + + --md-sys-typescale-label-large-size: 0.875rem; // 14sp + --md-sys-typescale-label-large-weight: 500; + --md-sys-typescale-label-large-line-height: 1.25rem; // 20sp + --md-sys-typescale-label-large-tracking: 0.0063em; + + --md-sys-typescale-label-medium-size: 0.75rem; // 12sp + --md-sys-typescale-label-medium-weight: 500; + --md-sys-typescale-label-medium-line-height: 1rem; // 16sp + --md-sys-typescale-label-medium-tracking: 0.0313em; + + --md-sys-typescale-label-small-size: 0.6875rem; // 11sp + --md-sys-typescale-label-small-weight: 500; + --md-sys-typescale-label-small-line-height: 1rem; // 16sp + --md-sys-typescale-label-small-tracking: 0.0313em; + + // ============ MD3 颜色 tokens - Light ============ + --md-sys-color-primary: var(--primary, #6750a4); + --md-sys-color-on-primary: var(--onPrimary, #ffffff); + --md-sys-color-primary-container: var(--primaryContainer, #eaddff); + --md-sys-color-on-primary-container: var(--onPrimaryContainer, #21005d); + + --md-sys-color-secondary: var(--secondary, #625b71); + --md-sys-color-on-secondary: var(--onSecondary, #ffffff); + --md-sys-color-secondary-container: var(--secondaryContainer, #e8def8); + --md-sys-color-on-secondary-container: var(--onSecondaryContainer, #1d192b); + + --md-sys-color-tertiary: var(--tertiary, #7d5260); + --md-sys-color-on-tertiary: var(--onTertiary, #ffffff); + --md-sys-color-tertiary-container: var(--tertiaryContainer, #ffd8e4); + --md-sys-color-on-tertiary-container: var(--onTertiaryContainer, #31111d); + + --md-sys-color-error: #b3261e; + --md-sys-color-on-error: #ffffff; + --md-sys-color-error-container: #f9dedc; + --md-sys-color-on-error-container: #410e0b; + + --md-sys-color-background: var(--background, #fef7ff); + --md-sys-color-on-background: var(--onBackground, #1d1b20); + + --md-sys-color-surface: var(--surface, #fef7ff); + --md-sys-color-on-surface: var(--onSurface, #1d1b20); + --md-sys-color-surface-variant: var(--surfaceVariant, #e7e0ec); + --md-sys-color-on-surface-variant: var(--onSurfaceVariant, #49454f); + + --md-sys-color-surface-dim: #ded8e1; + --md-sys-color-surface-bright: #fef7ff; + --md-sys-color-surface-container-lowest: #ffffff; + --md-sys-color-surface-container-low: var(--surfaceContainerLow, #f7f2fa); + --md-sys-color-surface-container: var(--surfaceContainer, #f3edf7); + --md-sys-color-surface-container-high: var(--surfaceContainerHigh, #ece6f0); + --md-sys-color-surface-container-highest: #e6e0e9; + + --md-sys-color-inverse-surface: #322f35; + --md-sys-color-inverse-on-surface: #f5eff7; + --md-sys-color-inverse-primary: #d0bcff; + + --md-sys-color-outline: var(--outline, #79747e); + --md-sys-color-outline-variant: var(--outlineVariant, #cac4d0); + --md-sys-color-shadow: #000000; + --md-sys-color-scrim: #000000; +} + +// ============ MD3 深色颜色 tokens ============ +// 跟随 KernelSU 注入的壁纸动态色 (Material You 取色) +@mixin dark-tokens { + --md-sys-color-primary: var(--primary, #d0bcff); + --md-sys-color-on-primary: var(--onPrimary, #381e72); + --md-sys-color-primary-container: var(--primaryContainer, #4f378b); + --md-sys-color-on-primary-container: var(--onPrimaryContainer, #eaddff); + + --md-sys-color-secondary: var(--secondary, #ccc2dc); + --md-sys-color-on-secondary: var(--onSecondary, #332d41); + --md-sys-color-secondary-container: var(--secondaryContainer, #4a4458); + --md-sys-color-on-secondary-container: var(--onSecondaryContainer, #e8def8); + + --md-sys-color-tertiary: var(--tertiary, #efb8c8); + --md-sys-color-on-tertiary: var(--onTertiary, #492532); + --md-sys-color-tertiary-container: var(--tertiaryContainer, #633b48); + --md-sys-color-on-tertiary-container: var(--onTertiaryContainer, #ffd8e4); + + --md-sys-color-error: #f2b8b5; + --md-sys-color-on-error: #601410; + --md-sys-color-error-container: #8c1d18; + --md-sys-color-on-error-container: #f9dedc; + + --md-sys-color-background: var(--background, #141218); + --md-sys-color-on-background: var(--onBackground, #e6e0e9); + + --md-sys-color-surface: var(--surface, #141218); + --md-sys-color-on-surface: var(--onSurface, #e6e0e9); + --md-sys-color-surface-variant: var(--surfaceVariant, #49454f); + --md-sys-color-on-surface-variant: var(--onSurfaceVariant, #cac4d0); + + --md-sys-color-surface-dim: #141218; + --md-sys-color-surface-bright: #3b383e; + --md-sys-color-surface-container-lowest: #0f0d13; + --md-sys-color-surface-container-low: var(--surfaceContainerLow, #1d1b20); + --md-sys-color-surface-container: var(--surfaceContainer, #211f26); + --md-sys-color-surface-container-high: var(--surfaceContainerHigh, #2b2930); + --md-sys-color-surface-container-highest: #36343b; + + --md-sys-color-inverse-surface: #e6e0e9; + --md-sys-color-inverse-on-surface: #322f35; + --md-sys-color-inverse-primary: #6750a4; + + --md-sys-color-outline: var(--outline, #938f99); + --md-sys-color-outline-variant: var(--outlineVariant, #49454f); + --md-sys-color-shadow: #000000; + --md-sys-color-scrim: #000000; +} + +// 跟随系统深浅色 +@media (prefers-color-scheme: dark) { + :root { + @include dark-tokens; + } +} diff --git a/web/src/types.ts b/web/src/types.ts new file mode 100644 index 0000000..5e180a6 --- /dev/null +++ b/web/src/types.ts @@ -0,0 +1,8 @@ +export interface FontSlot { + key: 'hans' | 'hant' | 'en' | 'mono'; + title: string; + path: string | null; + fileName: string; + /** 字体大小展示文本 (如 "12.5 MB"), 异步获取 */ + sizeText?: string; +} diff --git a/web/src/vite-env.d.ts b/web/src/vite-env.d.ts new file mode 100644 index 0000000..44bbf8d --- /dev/null +++ b/web/src/vite-env.d.ts @@ -0,0 +1,6 @@ +/// + +declare module 'opentype.js' { + /** 解析字体二进制, 返回字体对象 (名称表: names.windows/macintosh) */ + export function parse(buffer: ArrayBuffer): any; +} diff --git a/web/tsconfig.json b/web/tsconfig.json new file mode 100644 index 0000000..dc9952c --- /dev/null +++ b/web/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ESNext", + "moduleResolution": "bundler", + "strict": true, + "jsx": "preserve", + "skipLibCheck": true, + "esModuleInterop": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"] + }, + "include": ["src/**/*.ts", "src/**/*.vue"] +} diff --git a/web/vite.config.ts b/web/vite.config.ts new file mode 100644 index 0000000..e1a7042 --- /dev/null +++ b/web/vite.config.ts @@ -0,0 +1,12 @@ +import { defineConfig } from 'vite'; + +export default defineConfig({ + // WebView 从本地加载 webroot, 资源必须相对路径 + base: './', + build: { + // 构建产物直接进模块的 webroot + outDir: '../src/webroot', + // outDir 在项目根之外, 必须显式开启清空 + emptyOutDir: true, + }, +}); diff --git a/功能/TTC文件拆分.sh b/功能/TTC文件拆分.sh deleted file mode 100644 index f7d20d5..0000000 --- a/功能/TTC文件拆分.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# FontMM -# TTC 文件拆分 -# By Yule -# shellcheck disable=SC2154 - -# 配置 -SCRIPT_DIR="$(dirname "$(dirname "$(readlink -f "$0")")")" -WORK_DIR="$SCRIPT_DIR/WORK" -. "$SCRIPT_DIR/功能/bin/configurer.sh" -clear - -# shellcheck disable=SC2329 -cleanup() { - echo "清理临时文件,请稍后..." - rm -rf "/data/adb/local/tmp/fontmm" - exit -} -trap 'cleanup' EXIT - -# 环境检查 -if ! command -v fonttool-rs >/dev/null 2>&1; then - echo -e "${re}[错误] 缺少 fonttool-rs,请检查环境${res}" - exit 1 -fi - -mkdir -p "$WORK_DIR/ttc_separated" - -echo -en "- 输入一个 TTC 文件完整路径:" -read -r ttc_file - -if [ ! -f "$ttc_file" ]; then - echo "! $ttc_file 文件不存在" - exit 1 -fi - -if ! file "$ttc_file" | grep -q "TrueType font collection"; then - echo "! 这不是一个 TTC 文件" - exit 2 -fi - -echo "~ 正在使用 fonttool 拆分 TTC..." -if fonttool-rs split -i "$ttc_file" -o "$WORK_DIR/ttc_separated"; then - echo "~ 拆分成功" - echo "$WORK_DIR/ttc_separated" - exit 0 -else - echo "! 拆分失败" - exit 3 -fi diff --git a/功能/bin/README.md b/功能/bin/README.md deleted file mode 100755 index cdeeeb0..0000000 --- a/功能/bin/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# 开源许可证相关 -## yq -- MIT license -- https://github.com/mikefarah/yq/releases/tag/v4.52.2 -## fonttool-rs -- MIT license -- https://github.com/YuleBest/fonttool-rs \ No newline at end of file diff --git a/功能/bin/configurer.sh b/功能/bin/configurer.sh deleted file mode 100644 index d4ff632..0000000 --- a/功能/bin/configurer.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash -# FontMM 环境配置脚本 -# use `. "configurer.sh"` - -# 配置 -C_NOW_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" -BIN_DIR="$C_NOW_DIR" -LIB_DIR="$(dirname "$C_NOW_DIR")/lib" -TERGET_BIN_DIR="/data/adb/local/tmp/fontmm/bin" -TERGET_LIB_DIR="/data/adb/local/tmp/fontmm/lib" - -copy() { - local src_dir="$1" - local dest_dir="$2" - - mkdir -p "$dest_dir" - find "$src_dir" -maxdepth 1 -type f -exec cp -t "$dest_dir" {} + -} - -rm -rf $TERGET_BIN_DIR; rm -rf $TERGET_LIB_DIR -mkdir -p $TERGET_BIN_DIR; mkdir -p $TERGET_LIB_DIR; - -copy "$BIN_DIR" "$TERGET_BIN_DIR" -if export PATH="$PATH:$TERGET_BIN_DIR"; then - chmod -R 755 "$TERGET_BIN_DIR" - echo "[OK] 1/2" -else - echo "[ERROR] 环境配置失败,部分功能无法使用" -fi - -copy "$LIB_DIR" "$TERGET_LIB_DIR" -if export LD_LIBRARY_PATH=$TERGET_LIB_DIR:$LD_LIBRARY_PATH; then - chmod -R 755 "$TERGET_LIB_DIR" - echo "[OK] 2/2" -else - echo "[ERROR] 环境配置失败,部分功能无法使用" - sleep 2 -fi - -echo "[OK] 环境配置结束" diff --git a/功能/bin/fonttool-rs b/功能/bin/fonttool-rs deleted file mode 100755 index 245b39b..0000000 Binary files a/功能/bin/fonttool-rs and /dev/null differ diff --git a/功能/bin/fonttool-rs.sha256 b/功能/bin/fonttool-rs.sha256 deleted file mode 100644 index 95de9f5..0000000 --- a/功能/bin/fonttool-rs.sha256 +++ /dev/null @@ -1 +0,0 @@ -0daa07cbb20dadb057119391712985f1e697a7cd4b78e37838cc9585f54435d0 \ No newline at end of file diff --git a/功能/bin/yq b/功能/bin/yq deleted file mode 100755 index 3cc176b..0000000 Binary files a/功能/bin/yq and /dev/null differ diff --git a/功能/bin/yq.sha256 b/功能/bin/yq.sha256 deleted file mode 100755 index 747cb75..0000000 --- a/功能/bin/yq.sha256 +++ /dev/null @@ -1 +0,0 @@ -c82856ac30da522f50dcdd4f53065487b5a2927e9b87ff637956900986f1f7c2 \ No newline at end of file diff --git a/功能/lib/README.txt b/功能/lib/README.txt deleted file mode 100644 index 98facc2..0000000 --- a/功能/lib/README.txt +++ /dev/null @@ -1 +0,0 @@ -修复部分环境下 `zip` 命令提示缺失 `libbz2` 的问题 \ No newline at end of file diff --git a/功能/lib/libbz2.so b/功能/lib/libbz2.so deleted file mode 100755 index 879b554..0000000 Binary files a/功能/lib/libbz2.so and /dev/null differ diff --git a/功能/lib/libbz2.so.1.0 b/功能/lib/libbz2.so.1.0 deleted file mode 100755 index 879b554..0000000 Binary files a/功能/lib/libbz2.so.1.0 and /dev/null differ diff --git a/功能/lib/libbz2.so.1.0.8 b/功能/lib/libbz2.so.1.0.8 deleted file mode 100755 index 879b554..0000000 Binary files a/功能/lib/libbz2.so.1.0.8 and /dev/null differ diff --git a/功能/从小米国际版主题商店下载字体.sh b/功能/从小米国际版主题商店下载字体.sh deleted file mode 100755 index 611050a..0000000 --- a/功能/从小米国际版主题商店下载字体.sh +++ /dev/null @@ -1,150 +0,0 @@ -#!/bin/bash -# FontMM -# 下载小米国际版主题商店字体脚本 -# By Yule - -# 配置 -SCRIPT_DIR="$(dirname "$(dirname "$(readlink -f "$0")")")" -DOWN_DIR="$SCRIPT_DIR/download" -. "$SCRIPT_DIR/功能/bin/configurer.sh" - -cleanup() { - echo "清理临时文件,请稍后..." - rm -rf "/data/adb/local/tmp/fontmm" - exit -} -trap 'cleanup' EXIT - -mkdir -p "$DOWN_DIR" >/dev/null 2>&1 -gr='\033[0;32m' -ye='\033[1;33m' -re='\033[0;31m' -bl='\033[0;36m' -res='\033[0m' -clear - -# 环境检查 -if ! command -v yq >/dev/null 2>&1; then - echo -e "${re}[错误] 缺少 yq,请安装后重试${res}" - exit 1 -fi -if ! command -v wget >/dev/null 2>&1; then - echo -e "${re}[错误] 缺少 wget,请安装后重试${res}" - exit 1 -fi - -# 直接打包 -PACKUP() { - cp -v "$DOWN_DIR/$TITLE.ttf" "$SCRIPT_DIR/ttf/ch.ttf" - bash "$SCRIPT_DIR/开始打包.sh" -} - -# 解包 -UNPACK() { - local choice="n" - if unzip -j "${SAVE_PATH}" "fonts/Roboto-Regular.ttf" -d "$DOWN_DIR"; then - mv "$DOWN_DIR/Roboto-Regular.ttf" "$DOWN_DIR/$TITLE.ttf" - echo -e "${gr}OK 解包成功:$DOWN_DIR/$TITLE${res}" - rm -f "${SAVE_PATH}" - - echo -en "\n${bl}是否直接打包下载好的字体,请确保你选择的字体支持中文 (y/N)" - read -r choice - case $choice in - y|Y) PACKUP ;; - *) exit 0 ;; - esac - else - exit 1 - fi -} - -# 欢迎 -echo -e "${bl}FontMM - 下载小米国际版主题字体${res}" -echo -e "By 酷安 @于乐Yule" -echo -e "\n----------\n" - -# 关键词输入 -echo -ne "${ye}请输入字体关键词: ${res}" -read -r KEYWORD -[[ -z "$KEYWORD" ]] && echo -e "${re}输入不能为空,程序退出${res}" && exit 1 - -NOW_PAGE=0 -while true; do - echo -e "\n${ye}>>> 正在请求搜索接口(第 $((NOW_PAGE+1)) 页)...${res}" - # 使用 curl 的 urlencode 处理关键词,防止 yq 解析路径时出错 - SEARCH_API="https://thm.market.intl.xiaomi.com/thm/search/npage?category=Font&keywords=${KEYWORD}&page=${NOW_PAGE}" - resp=$(curl -s "$SEARCH_API") - - # [yq 改动] 获取标题和链接 - # yq 获取列表需要用 [],且为了保持输出干净,使用 -o=props 或 -o=json - mapfile -t titles < <(echo "$resp" | yq -p json '.apiData.cards[].items[].schema.clicks[].title') - mapfile -t links < <(echo "$resp" | yq -p json '.apiData.cards[].items[].schema.clicks[].link') - - count=${#titles[@]} - if [ "$count" -eq 0 ]; then - echo -e "${re}- 未找到相关字体,换个关键词试试?${res}" - exit 1 - fi - - echo -e "${gr}字体列表:${res}" - for i in "${!titles[@]}"; do - printf " ${ye}%2d${res}. %s\n" "$((i + 1))" "${titles[$i]}" - done - - echo -ne "${ye}请输入序号下载,或输入 n(下一页)/p(上一页)/q(退出): ${res}" - read -r input - - if [[ "$input" =~ ^[0-9]+$ ]]; then - INDEX=$((input - 1)) - if [[ "$INDEX" -lt 0 || "$INDEX" -ge "$count" ]]; then - echo -e "${re}无效序号,请重新输入${res}" - continue - fi - - TITLE="${titles[$INDEX]}" - A_ID="${links[$INDEX]}" - echo -e "\n${gr}你选择了:${ye}$TITLE${res}${gr}(ID: ${ye}$A_ID${res}${gr})${res}" - - DETAILS_API="https://api.zhuti.intl.xiaomi.com/app/v9/uipages/theme/${A_ID}" - echo -e "${ye}\n>>> 获取字体详情...${res}" - detail=$(curl -s "$DETAILS_API") - - # [yq 改动] 获取下载链接 - DOWN_URL=$(echo "$detail" | yq -p json '.apiData.extraInfo.themeDetail.downloadUrl') - - if [[ "$DOWN_URL" == "null" || -z "$DOWN_URL" ]]; then - echo -e "${re}[错误] 获取下载链接失败${res}" - echo "$detail" | yq -p json '.' - continue - fi - - # ENCODED_TITLE=$(printf '%s' "$TITLE" | xxd -p | tr -d '\n' | sed 's/../%\1/g') - # DL_URL="https://f17.market.xiaomi.com/issue/${DOWN_URL}/${ENCODED_TITLE}.mtz" - DL_URL="https://f17.market.xiaomi.com/issue/${DOWN_URL}/${TITLE}.mtz" - SAVE_PATH="${DOWN_DIR}/${TITLE}.mtz" - - echo -e "${bl}下载链接:${res}${DL_URL}" - echo -e "${bl}保存路径:${res}${SAVE_PATH}" - - echo -e "${ye}\n>>> 开始下载,请稍候...${res}" - if wget -q --show-progress -O "$SAVE_PATH" "$DL_URL"; then - echo "" - echo -e "- 下载完成" - UNPACK "${SAVE_PATH}" - else - echo "" - echo -e "${re}>_< 下载失败,请检查网络或链接${res}" - fi - - exit 0 - elif [[ "$input" == "n" ]]; then - ((NOW_PAGE++)) - elif [[ "$input" == "p" && "$NOW_PAGE" -gt 0 ]]; then - ((NOW_PAGE--)) - elif [[ "$input" == "q" ]]; then - echo -e "${gr}已退出程序,感谢使用!${res}" - exit 0 - else - echo -e "${re}无效输入,请重新输入${res}" - fi -done diff --git a/功能/反馈.sh b/功能/反馈.sh deleted file mode 100755 index df1b9b7..0000000 --- a/功能/反馈.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash -# FontMM - ColorOS 16 反馈脚本 -# By Yule -SCRIPT_DIR="$(dirname "$(dirname "$(readlink -f "$0")")")" - -# while [ "$(stty size | cut -d' ' -f2)" -le 80 ]; do - # clear - # current_cols=$(stty size | cut -d' ' -f2) - # echo "当前列数: $current_cols" - # echo "----------------------------------------" - # echo "检测到窗口过窄,请缩小屏幕..." - # echo "(列数需 > 80 才能继续运行)" - # echo "----------------------------------------" - # sleep 1 -# done -clear - -WELCOME() { - echo -e "======================================" - echo -e " FontMM - ColorOS 16 反馈脚本" - echo -e " Author: 于乐 Yule" - echo -e " 您的反馈会令这个项目更好" - echo -e "======================================" - echo "" -} -WELCOME - -echo "手机型号:$(getprop ro.product.brand) | $(getprop ro.product.model) | $(getprop ro.vendor.oplus.market.enname)" -echo "系统版本:$(getprop ro.build.display.full_id)" -echo "安卓版本: $(getprop ro.build.version.release)" -echo "SELINUX 状态:$(getenforce)" -echo - -echo -n "当前Root管理器:" -if [ -d "/data/adb/magisk" ]; then - echo "Magisk (/data/adb/magisk)" -elif [ -d "/data/adb/ksu" ]; then - echo "KernelSU (/data/adb/ksu)" -elif [ -d "/data/adb/apatch" ]; then - echo "APatch (/data/adb/apatch)" -elif [ -f "/data/adb/ksu/bin/ksud" ]; then - echo "KernelSU (/data/adb/ksu/bin/ksud)" -else - echo "未检测到 Root 环境" -fi - -echo -n "- 元模块:$(cat /data/adb/metamodule/module.prop | grep name)" - -echo -echo -echo "FontMM 文件列表:" -ls -R "$SCRIPT_DIR" - -echo -echo "已安装模块列表:" -ls /data/adb/modules/ - -echo -echo "系统 fonts 列表 (筛选):" -# ls -s -k /system/fonts/ | grep Sys -find "/system/fonts/" -name "*Sys*" -printf "%s %p\n" - -echo -echo "模块 fonts 列表 (筛选):" -mod_id_line="$(cat "$SCRIPT_DIR/module.prop" | grep id)" -mod_id="${mod_id_line#*=}" -# ls -s -k "/data/adb/modules/$mod_id/system/fonts/" | grep Sys -find "/data/adb/modules/$mod_id/system/fonts/" -name "*Sys*" -printf "%s %p\n" - -echo -echo "系统 fonts.xml SHA256:$(sha256sum "/system/etc/fonts.xml" | cut -f1 -d" ")" -echo "模块 fonts.xml SHA256:$(sha256sum "/data/adb/modules/$mod_id/system/etc/fonts.xml" | cut -f1 -d" ")" - -echo -echo "[请缩小屏幕截图以上信息给开发者,感谢您的支持!]" diff --git a/功能/备份模块.sh b/功能/备份模块.sh deleted file mode 100755 index 110d96b..0000000 --- a/功能/备份模块.sh +++ /dev/null @@ -1,106 +0,0 @@ -#!/bin/bash -# FontMM ColorOS 16 -# 备份模块脚本 - -# --- 配置 --- -SCRIPT_DIR="$(dirname "$(dirname "$(readlink -f "$0")")")" -COMP_LEVEL="5" -TMP_DIR="$SCRIPT_DIR/.tmp" -MODDIR_BASE="/data/adb/modules" -# ----------- - -clear -time=$(date +'%Y%m%d_%H%M%S') -mod_id_line="$(cat "$SCRIPT_DIR/module.prop" | grep id)" -mod_name_line="$(cat "$SCRIPT_DIR/module.prop" | grep name)" - -mod_id="${mod_id_line#*=}" -mod_name="${mod_name_line#*=}" - -# 复制指定目录第一层文件的函数 - -copy() { - local src_dir="$1" - local dest_dir="$2" - - mkdir -p "$dest_dir" - find "$src_dir" -maxdepth 1 -type f -exec cp -t "$dest_dir" {} + -} - - -# 备份 - -BACKUP() { - local MODDIR="$1" - local filename="MODULE_Backup_$time.zip" - - if [ ! -d "$MODDIR" ] || [[ -z "$MODDIR" ]]; then - echo "! 模块目录 $MODDIR 不存在,请确认" - exit 1 - fi - - rm -rf "$TMP_DIR" - mkdir -p "$TMP_DIR" - copy "$MODDIR" "$TMP_DIR" # / - copy "$MODDIR/ttf" "$TMP_DIR/ttf" # /ttf/ - copy "$MODDIR/tools" "$TMP_DIR/tools" # /tools/ - copy "$MODDIR/system" "$TMP_DIR/system" # /system/ - copy "$MODDIR/system/etc" "$TMP_DIR/system/etc" # /system/etc/ - copy "$MODDIR/system/fonts" "$TMP_DIR/system/fonts" # /system/fonts/ - copy "$MODDIR/system/system_ext/etc" "$TMP_DIR/system/system_ext/etc" # /system/system_ext/etc/ - - # 需要删掉由刷入模块负责的 Sys*.ttf - find "${TMP_DIR}/system/fonts" -maxdepth 1 -name "Sys*.ttf" -delete - # 已刷入的模块没有刷入脚本,所以需要从模板包中提取 - unzip -o "$SCRIPT_DIR/template/template.zip" "customize.sh" "META-INF/com/google/android/update-binary" "META-INF/com/google/android/updater-script" -d "$TMP_DIR/" # 竟然是updater-script,不要忘记加r - - # 压缩 - cd "$TMP_DIR" || exit 1 - zip -r -"$COMP_LEVEL" "$filename" . - if [ -f "./$filename" ]; then - mv "./$filename" "/sdcard/" - else - echo "! 备份失败,请反馈给开发者" - exit 2 - fi - - rm -rf "$TMP_DIR" - echo -e "\nOK,备份成功:/sdcard/$filename" -} - -CHOICE() { - local input - - echo -n "请输入一个模块完整路径 或者模块ID:" - read -r input - - # 模块 id 不含斜杠 - if echo "$input" | grep "/" > /dev/null; then - BACKUP "$input" - else - # 模块目录名字就是 id - BACKUP "$MODDIR_BASE/$input" - fi -} - -echo -echo "此脚本用于备份当前已安装的字体模块" -echo -echo "- 正在读取本地 prop..." -echo -echo "- 请核对信息:" -echo "模块名字:$mod_name" -echo "模块 ID :$mod_id" -echo - -echo -n "请问以上信息正确吗?(y/N) " -read -r confirm - -case $confirm in - y|Y) - BACKUP "$MODDIR_BASE/$mod_id" - ;; - *) - CHOICE - ;; -esac diff --git a/功能/检查更新.sh b/功能/检查更新.sh deleted file mode 100755 index 39b7cea..0000000 --- a/功能/检查更新.sh +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash - -echo " -=============================================== - FontMM 检查更新 -=============================================== -" - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[0;33m' -BLUE='\033[0;34m' -PURPLE='\033[0;35m' -CYAN='\033[0;36m' -BOLD='\033[1m' -NC='\033[0m' - -# 获取项目根目录 -ROOT_DIR="$(dirname "$(dirname "$(readlink -f "$0")")")" -LOCAL_PROP="$ROOT_DIR/update.prop" -REMOTE_PROP_URL="https://raw.githubusercontent.com/YuleBest/FontMM/main/update.prop" -BASE_WEB_URL="https://github.com/YuleBest/FontMM/releases/tag" - -# UI 组件 -draw_line() { echo -e "${BLUE}--------------------------------------------------${NC}"; } - -# 提取函数 -get_vc_pure() { grep "^${1}=" "$2" | cut -d'=' -f2- | tr -cd '0-9'; } -get_prop() { grep "^${1}=" "$2" | cut -d'=' -f2- | tr -d '\r' | xargs; } - -# 环境准备 - -echo -e "${YELLOW}[*] 正在检索云端最新版本...${NC}" - -if [ ! -f "$LOCAL_PROP" ]; then - echo -e "${RED}[!] 错误: 找不到本地 update.prop${NC}" - echo -e "${RED} 路径: $LOCAL_PROP${NC}" - exit 1 -fi - -TEMP_PROP=$(mktemp) -if ! curl -sL --connect-timeout 10 "$REMOTE_PROP_URL" -o "$TEMP_PROP"; then - echo -e "${RED}[!] 错误: 无法连接至 GitHub (raw.githubusercontent.com)。${NC}" - rm -f "$TEMP_PROP" - exit 1 -fi - -# 解析版本信息 -LOCAL_NOW_VC=$(get_vc_pure "nowVersionCode" "$LOCAL_PROP") -LOCAL_NOW_VC=${LOCAL_NOW_VC:-0} - -LOCAL_NOW_VER=$(get_prop "nowVersion" "$LOCAL_PROP") -LOCAL_NOW_VER=${LOCAL_NOW_VER:-0} - -REMOTE_VC=$(get_vc_pure "versionCode" "$TEMP_PROP") -REMOTE_VER=$(get_prop "version" "$TEMP_PROP") - -TEST_VC=$(get_vc_pure "testVersionCode" "$TEMP_PROP") -TEST_VER=$(get_prop "testVersion" "$TEMP_PROP") - -HAS_STABLE=false -HAS_TEST=false -[ -n "$REMOTE_VC" ] && [ "$REMOTE_VC" -gt "$LOCAL_NOW_VC" ] && HAS_STABLE=true -[ -n "$TEST_VC" ] && [ "$TEST_VC" -gt "$LOCAL_NOW_VC" ] && HAS_TEST=true - -# 信息展示 -echo -e "${GREEN}[+] 本地当前版本: ${BOLD}$LOCAL_NOW_VER($LOCAL_NOW_VC)${NC}" -draw_line - -show_link() { - local ver=$1 - echo -e "\n${CYAN}>>> 请手动下载更新包:${NC}" - echo -e "GitHub:${BOLD}${UNDERLINE}${BASE_WEB_URL}/${ver}${NC}" - echo -e "123网盘:https://www.123912.com/s/3ygsvd-AtCl" - echo -e "${YELLOW}(复制到浏览器打开)${NC}\n" -} - -if $HAS_STABLE && $HAS_TEST; then - echo -e "${PURPLE}发现多个更新版本可用:${NC}" - echo -e " 1) ${GREEN}正式版${NC}: $REMOTE_VER (Code: $REMOTE_VC)" - echo -e " 2) ${YELLOW}测试版${NC}: $TEST_VER (Code: $TEST_VC)" - echo -e " 3) 暂时不更新" - echo - read -rp "选择查看的版本 [1-3]: " choice - case $choice in - 1) show_link "$REMOTE_VER" ;; - 2) show_link "$TEST_VER" ;; - *) echo -e "${BLUE}操作取消。${NC}" ;; - esac -elif $HAS_STABLE; then - echo -e "${GREEN}[!] 发现新正式版: ${BOLD}$REMOTE_VER${NC} (Code: $REMOTE_VC)" - read -rp "是否查看下载链接?(y/n): " choice - [[ "$choice" =~ ^[Yy]$ ]] && show_link "$REMOTE_VER" -elif $HAS_TEST; then - echo -e "${YELLOW}[!] 发现新测试版: ${BOLD}$TEST_VER${NC} (Code: $TEST_VC)" - read -rp "是否查看下载链接?(y/n): " choice - [[ "$choice" =~ ^[Yy]$ ]] && show_link "$TEST_VER" -else - echo -e "${CYAN}[~] 当前已是最新版,无需更新。${NC}" -fi - -# 清理 -rm -f "$TEMP_PROP" -draw_line diff --git a/功能/转换工具/json转xml.sh b/功能/转换工具/json转xml.sh deleted file mode 100755 index 3620ccb..0000000 --- a/功能/转换工具/json转xml.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# FontMM -# 将 json 转换为 xml -# By Yule -# shellcheck disable=SC2154 - -# 配置 -SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" -WORK_DIR="$SCRIPT_DIR/WORK" -. "$SCRIPT_DIR/功能/bin/configurer.sh" - -cleanup() { - echo "清理临时文件,请稍后..." - rm -rf "/data/adb/local/tmp/fontmm" - exit -} -trap 'cleanup' EXIT -clear - -# 环境检查 -if ! command -v yq >/dev/null 2>&1; then - echo -e "${re}[错误] 缺少 yq,请安装后重试${res}" - exit 1 -fi - -mkdir -p "$WORK_DIR/xml" -mkdir -p "$WORK_DIR/json" -mkdir -p "$WORK_DIR/tmp" - -# 转换函数 - -conversion() { - # local mode="json2xml" - local input="$2" - local output="$1" - - yq -p json -o xml "$input" > "$output" -} - -# 对每一个进行转换 - -conversion "$WORK_DIR/xml/fonts.xml" "$WORK_DIR/json/fonts.json" -conversion "$WORK_DIR/xml/font_fallback.xml" "$WORK_DIR/json/font_fallback.json" -conversion "$WORK_DIR/xml/fonts_base.xml" "$WORK_DIR/json/fonts_base.json" -conversion "$WORK_DIR/xml/fonts_ule.xml" "$WORK_DIR/json/fonts_ule.json" - -echo "完成:$WORK_DIR/xml" \ No newline at end of file diff --git a/功能/转换工具/xml转json(将丢失注释).sh b/功能/转换工具/xml转json(将丢失注释).sh deleted file mode 100755 index 0d72aba..0000000 --- a/功能/转换工具/xml转json(将丢失注释).sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash -# FontMM -# 将 fonts.xml 转换为 json -# By Yule -# shellcheck disable=SC2154 - -# 配置 -SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" -WORK_DIR="$SCRIPT_DIR/WORK" -. "$SCRIPT_DIR/功能/bin/configurer.sh" - -cleanup() { - echo "清理临时文件,请稍后..." - rm -rf "/data/adb/local/tmp/fontmm" - exit -} -trap 'cleanup' EXIT -clear - -# 环境检查 -if ! command -v yq >/dev/null 2>&1; then - echo -e "${re}[错误] 缺少 yq,请安装后重试${res}" - exit 1 -fi - -mkdir -p "$WORK_DIR/xml" -mkdir -p "$WORK_DIR/json" -mkdir -p "$WORK_DIR/tmp" - -# 转换函数 - -conversion() { - # local mode="xml2json" - local input="$1" - local output="$2" - - yq -p xml -o json "$input" > "$output" -} - -# 提取所有 fonts.xml - -unzip -oj "$SCRIPT_DIR/template/template.zip" \ - "system/etc/fonts.xml" \ - "system/etc/font_fallback.xml" \ - "system/system_ext/etc/fonts_base.xml" \ - "system/system_ext/etc/fonts_ule.xml" \ - -d "$WORK_DIR/tmp/" - -# 对每一个进行转换 - -conversion "$WORK_DIR/tmp/fonts.xml" "$WORK_DIR/json/fonts.json" -conversion "$WORK_DIR/tmp/font_fallback.xml" "$WORK_DIR/json/font_fallback.json" -conversion "$WORK_DIR/tmp/fonts_base.xml" "$WORK_DIR/json/fonts_base.json" -conversion "$WORK_DIR/tmp/fonts_ule.xml" "$WORK_DIR/json/fonts_ule.json" - -echo -echo "完成:$WORK_DIR/json" \ No newline at end of file diff --git a/功能/转换工具/xml转yaml.sh b/功能/转换工具/xml转yaml.sh deleted file mode 100755 index 8376aad..0000000 --- a/功能/转换工具/xml转yaml.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash -# FontMM -# 将 fonts.xml 转换为 yaml -# By Yule -# shellcheck disable=SC2154 - -# 配置 -SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" -WORK_DIR="$SCRIPT_DIR/WORK" -. "$SCRIPT_DIR/功能/bin/configurer.sh" - -cleanup() { - echo "清理临时文件,请稍后..." - rm -rf "/data/adb/local/tmp/fontmm" - exit -} -trap 'cleanup' EXIT -clear - -# 环境检查 -if ! command -v yq >/dev/null 2>&1; then - echo -e "${re}[错误] 缺少 yq,请安装后重试${res}" - exit 1 -fi - -mkdir -p "$WORK_DIR/xml" -mkdir -p "$WORK_DIR/yaml" -mkdir -p "$WORK_DIR/tmp" - -# 转换函数 - -conversion() { - # local mode="xml2yaml" - local input="$1" - local output="$2" - - yq -p xml -o yaml "$input" > "$output" -} - -# 提取所有 fonts.xml - -unzip -oj "$SCRIPT_DIR/template/template.zip" \ - "system/etc/fonts.xml" \ - "system/etc/font_fallback.xml" \ - "system/system_ext/etc/fonts_base.xml" \ - "system/system_ext/etc/fonts_ule.xml" \ - -d "$WORK_DIR/tmp/" - -# 对每一个进行转换 - -conversion "$WORK_DIR/tmp/fonts.xml" "$WORK_DIR/yaml/fonts.yaml" -conversion "$WORK_DIR/tmp/font_fallback.xml" "$WORK_DIR/yaml/font_fallback.yaml" -conversion "$WORK_DIR/tmp/fonts_base.xml" "$WORK_DIR/yaml/fonts_base.yaml" -conversion "$WORK_DIR/tmp/fonts_ule.xml" "$WORK_DIR/yaml/fonts_ule.yaml" - -echo -echo "完成:$WORK_DIR/yaml" \ No newline at end of file diff --git a/功能/转换工具/yaml转xml.sh b/功能/转换工具/yaml转xml.sh deleted file mode 100755 index 24d1ce1..0000000 --- a/功能/转换工具/yaml转xml.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# FontMM -# 将 yaml 转换为 xml -# By Yule -# shellcheck disable=SC2154 - -# 配置 -SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" -WORK_DIR="$SCRIPT_DIR/WORK" -. "$SCRIPT_DIR/功能/bin/configurer.sh" - -cleanup() { - echo "清理临时文件,请稍后..." - rm -rf "/data/adb/local/tmp/fontmm" - exit -} -trap 'cleanup' EXIT -clear - -# 环境检查 -if ! command -v yq >/dev/null 2>&1; then - echo -e "${re}[错误] 缺少 yq,请安装后重试${res}" - exit 1 -fi - -mkdir -p "$WORK_DIR/xml" -mkdir -p "$WORK_DIR/yaml" -mkdir -p "$WORK_DIR/tmp" - -# 转换函数 - -conversion() { - # local mode="yaml2xml" - local input="$2" - local output="$1" - - yq -p yaml -o xml "$input" > "$output" -} - -# 对每一个进行转换 - -conversion "$WORK_DIR/xml/fonts.xml" "$WORK_DIR/yaml/fonts.yaml" -conversion "$WORK_DIR/xml/font_fallback.xml" "$WORK_DIR/yaml/font_fallback.yaml" -conversion "$WORK_DIR/xml/fonts_base.xml" "$WORK_DIR/yaml/fonts_base.yaml" -conversion "$WORK_DIR/xml/fonts_ule.xml" "$WORK_DIR/yaml/fonts_ule.yaml" - -echo "完成:$WORK_DIR/xml" \ No newline at end of file diff --git a/开始打包.sh b/开始打包.sh deleted file mode 100755 index 6218415..0000000 --- a/开始打包.sh +++ /dev/null @@ -1,239 +0,0 @@ -#!/bin/bash -# FontMM - ColorOS 16 打包脚本 -# By Yule -# shellcheck disable=SC2086 -set -euo pipefail - -# --- 配置 --- -COMP_LEVEL="9" # 模块压缩级别 -USE_FONT_META="1" # 尝试使用中文简体字体元信息的名称作为模块的 name 和文件名,开启后,module.prop 的自定义可能不生效。未成功解析时会自动返回到您的配置。设置为 1 开启,0 关闭。 -SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" -TEMP_DIR="$SCRIPT_DIR/template" -TTF_DIR="$SCRIPT_DIR/ttf" -BUILD_DIR="$SCRIPT_DIR/.build" -MODULE_FILE="$SCRIPT_DIR/MODULE.zip" # 若开启 USE_FONT_META,则模块名会根据字体名自动生成 - -# --- 颜色定义 --- -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[0;33m' -BLUE='\033[0;34m' -PURPLE='\033[0;35m' -CYAN='\033[0;36m' -NC='\033[0m' -BOLD='\033[1m' - -# --- 环境配置 --- -# shellcheck disable=SC1091 -. "$SCRIPT_DIR/功能/bin/configurer.sh" - -# --- 计时开始 --- -START_TIME=$(date +%s.%N) - -# --- 辅助函数 --- -log_info() { echo -e "${BLUE}[INFO]${NC} $1"; } -log_succ() { echo -e "${GREEN}[OK]${NC} $1"; } -log_warn() { echo -e "${YELLOW}[WAIT]${NC} $1"; } -log_err() { echo -e "${RED}[ERROR]${NC} $1"; } - -# --- 异常/退出清理函数 --- -cleanup() { - log_info "清理临时文件,请稍后..." - rm -rf "/data/adb/local/tmp/fontmm" - exit -} -trap 'cleanup' EXIT - -extract_ttf_name() { - local FONT_FILE="$1" - - log_info "已开启使用字体名功能,正在提取字体 name 表..." - mapfile -t NAMES < <(fonttool-rs getname --input "$FONT_FILE" | sed '/^\s*$/d') - COUNT=${#NAMES[@]} - - if [ "$COUNT" -eq 0 ]; then - log_err "错误:未能在字体文件中找到任何名称信息,跳过提取" - return 1 # 退出函数 - elif [ "$COUNT" -eq 1 ]; then - SELECTED_NAME="${NAMES[0]}" - log_info "匹配到唯一名称: $SELECTED_NAME" - else - log_warn "\n检测到 $COUNT 个结果,请选择一个:" - for i in "${!NAMES[@]}"; do - printf "[%d] %s\n" "$((i+1))" "${NAMES[$i]}" - done - - while true; do - read -r -p "请输入序号 (1-$COUNT): " CHOICE - if [[ "$CHOICE" =~ ^[0-9]+$ ]] && [ "$CHOICE" -ge 1 ] && [ "$CHOICE" -le "$COUNT" ]; then - SELECTED_NAME="${NAMES[$((CHOICE-1))]}" - break - else - log_err "输入无效,请输入 1 到 $COUNT 之间的数字。\n" - fi - done - fi - - log_info "你选择了: ${SELECTED_NAME}\n" - # prop 操作 - cp "$SCRIPT_DIR/module.prop" "$SCRIPT_DIR/module.prop.base" - sed -i "s/^name=.*$/name=$SELECTED_NAME/" "$SCRIPT_DIR/module.prop" - - MODULE_FILE="${SELECTED_NAME}.zip" # 更改模块文件名 - return 0 # 成功 -} - -CHECK_ENVIRONMENT() { - local ARCH - local MUST_TOOLS=("zip" "yq" "fonttool-rs") - ARCH=$(uname -m) - - if ! command -v bash >/dev/null 2>&1; then - log_err "请使用 Bash 环境运行(例如 MT 管理器 - 扩展包)" - exit 1 - fi - - echo -e "${CYAN}>>${NC} 检查运行环境..." - if [ "$EUID" -ne 0 ]; then - log_err "请授权 Root 权限后运行" - exit 1 - fi - - if [ "$ARCH" != "arm64" ] && [ "$ARCH" != "aarch64" ]; then - log_error "$ARCH" - exit 1 - fi - - for tool in "${MUST_TOOLS[@]}"; do - if ! command -v "$tool" >/dev/null 2>&1; then - log_err "未找到 $tool 工具" - exit 1 - fi - done - - log_succ "环境就绪" -} - -WELCOME() { - clear - echo -e "${PURPLE}${BOLD}======================================" - echo -e " FontMM - ColorOS 16 打包脚本" - echo -e " Author: 于乐 Yule" - echo -e "======================================"${NC} - echo "" -} - -SETUP_BUILD_ENV() { - log_warn "清理并准备构建目录..." - rm -rf "$BUILD_DIR" - rm -f "$MODULE_FILE" - mkdir -p "$BUILD_DIR" - cp "$TEMP_DIR/template.zip" "$BUILD_DIR/" >/dev/null - log_succ "构建环境已初始化" -} - -SHOW_MODULE_INFO() { - local PROP_FILE="$SCRIPT_DIR/module.prop" - - if [ ! -f "$PROP_FILE" ]; then - log_err "未找到 module.prop,跳过信息展示" - return 1 - fi - - echo - echo -e "${YELLOW}${BOLD}------------- 模块信息预览 ------------${NC}" - echo - # 逐行读取 module.prop - while IFS= read -r line || [ -n "$line" ]; do - # 跳过空行和注释 - [[ -z "$line" || "$line" =~ ^# ]] && continue - - # 以第一个等号为界分割 Key 和 Value - local key="${line%%=*}" - local value="${line#*=}" - - # 渲染输出:Key 用灰色,Value 用高亮青色 - # %-12s 是为了让等号左边对齐,看起来更整齐 - printf "\033[0;90m%-12s\033[0m = \033[1;36m%s\033[0m\n" "$key" "$value" - - done < "$PROP_FILE" - echo -} - -SHOW_FONT_INFO() { - local hans hant en - - echo - # 字体检查 - if [ ! -f "$TTF_DIR/ch.ttf" ]; then - echo "" - log_err "致命错误: 缺少核心字体 ch.ttf" - exit 1 - fi - hans="$TTF_DIR/ch.ttf" - - echo -e "${YELLOW}${BOLD}------------- 字体配置预览 ------------${NC}" - echo - echo -e "${BOLD}中文简体:${NC}$hans" - [ -f "$TTF_DIR/tc.ttf" ] && hant="$TTF_DIR/tc.ttf" && echo -e "${BOLD}中文繁体:${NC}$hant" || echo -e "${BOLD}中文繁体:${NC}跟随「中文简体」" - [ -f "$TTF_DIR/en.ttf" ] && en="$TTF_DIR/en.ttf" && echo -e "${BOLD}英文数字:${NC}$en" || echo -e "${BOLD}英文数字:${NC}跟随「中文简体」" - echo - echo -e "${YELLOW}${BOLD}----------------------------------------${NC}" - echo -} - -PACKER() { - local TARGET_ZIP="$BUILD_DIR/template.zip" - - log_warn "正在同步字体文件..." - mkdir -p "$BUILD_DIR/ttf" - cp "$TTF_DIR/ch.ttf" "$BUILD_DIR/ttf/" - [ -f "$TTF_DIR/tc.ttf" ] && cp "$TTF_DIR/tc.ttf" "$BUILD_DIR/ttf/" - [ -f "$TTF_DIR/en.ttf" ] && cp "$TTF_DIR/en.ttf" "$BUILD_DIR/ttf/" - - if [ "$USE_FONT_META" -eq 1 ]; then - extract_ttf_name "$TTF_DIR/ch.ttf" # v1.3-beta - fi - - log_warn "正在封包 (Level: $COMP_LEVEL)..." - ( - cd "$BUILD_DIR" || exit - zip -"${COMP_LEVEL}"urq "template.zip" "ttf" - zip -"${COMP_LEVEL}"ujq "template.zip" "$SCRIPT_DIR/module.prop" - ) - - rm -rf "$BUILD_DIR/ttf" - mv "$TARGET_ZIP" "$MODULE_FILE" - log_succ "资源已成功注入压缩包" - log_info "清理构建目录..." - rm -rf "$BUILD_DIR" -} - -CALC_TIME() { - local END_TIME - END_TIME=$(date +%s.%N) - # 计算差值并保留两位小数 - local DURATION - DURATION="$(echo "$END_TIME - $START_TIME" | bc 2>/dev/null | awk '{printf "%.2f", $0}' || echo "0")" - - # prop 处理 - [ -f "$SCRIPT_DIR/module.prop.base" ] && mv "$SCRIPT_DIR/module.prop.base" "$SCRIPT_DIR/module.prop" - - echo "" - echo -e "${PURPLE}--------------------------------------${NC}" - echo -e "${GREEN}${BOLD}打包完成!${NC}" - echo -e "${CYAN}累计耗时: ${NC}${DURATION}s" - echo -e "${CYAN}输出路径: ${NC}${BOLD}$SCRIPT_DIR/MODULE.zip${NC}" - echo -e "${PURPLE}--------------------------------------${NC}" -} - -MAIN() { - WELCOME - CHECK_ENVIRONMENT - SETUP_BUILD_ENV - SHOW_MODULE_INFO; SHOW_FONT_INFO - PACKER - CALC_TIME -} - -MAIN diff --git a/更新日志.md b/更新日志.md deleted file mode 100755 index 74d07d2..0000000 --- a/更新日志.md +++ /dev/null @@ -1,52 +0,0 @@ -# FontMM 更新日志 - -## V1.3 -- 新功能:解析中文简体字体的名称作为模块的名称(可关闭) -- 新功能:搜索、下载并解包小米国际版主题的字体 -- 新功能:xml 和 json/yaml 的互转 -- 新功能:拆分 TTC 字体文件 -- 新功能:现在刷入时会自动检查文件,并设置权限 -- 重构:使用自制的 fonttool-rs 工具代替 fonttool(https://github.com/YuleBest/fonttool-rs) -- 优化:环境处理,确保权限正确 -- 优化:加入 libbz2 动态库解决部分环境(如虚拟机)无法运行 zip -- 修复:部分情况下字体不生效/消失的问题 -- 修复:一些环境下无法运行可执行程序的问题 -- 修复:部分环境泄露问题 -- 修复:代码语法错误 -- 修复:计时器取两位小数不生效的问题 - -## V1.3 Beta -- 新功能:尝试解析 `ch.ttf` 字体的元信息,使用字体名作为模块的 `name`(需在 `开始打包.sh` 文件内配置 `USE_FONT_META="1"`) -- 修复:部分环境泄露问题 (dff1ae9) -### V1.3 Beta.2 -- 重构:使用自制的 fonttool-rs 工具代替 fonttool(https://github.com/YuleBest/fonttool-rs) - - 修改代码适应此更改 - - 优化环境处理,确保权限正确 - - 修复了一些环境下无法运行可执行程序的问题 - -## V1.3 Alpha -- 新功能:搜索、下载并解包小米国际版主题的字体 -- 新功能:xml 和 json/yaml 的互转 -- 新功能:拆分 TTC 字体文件 -- 新功能:现在刷入时会自动检查文件,并设置权限 -- 修复:部分情况下字体不生效/消失的问题 -- 修复:代码语法错误 -> TTC 是一种字体集合格式,它将多个相关的 TTF 字体打包进同一个文件,现在你可以方便地对此类字体进行拆分 - -## V1.2:快捷更换字体,一键备份模块 -- 新功能:使用 Action 直接更换字体,无需重新打包 (alpha) -- 新功能:备份当前已安装的模块 -- 新功能:检查更新脚本 (beta) -- 新功能:反馈脚本,运行后截图给开发者,帮助改进项目 (alpha) - -## V1.2 Beta -- 新功能:添加检查更新脚本 -- 优化:字体更换移动到 Action 二级目录 - -## V1.2 Alpha -- 新功能:使用 Action 直接更换字体,无需重新打包 -- 新功能:增加反馈脚本 - -## V1.1:打包更快,模块更小 -- 由原来的全文件压缩改为追加压缩,大幅降低打包时间,现在最快只需 3 秒即可完成打包! -- 把复制 N 个文件流程放到了模块的刷入脚本,大幅减小模块的体积(小于 150 MB!)