feat: 更新鸿蒙应用配置与功能优化

- 添加鸿蒙分层图标配置和生成脚本
- 修复数据导出JSON解析问题
- 优化关于页面和团队信息展示
- 更新应用版本至1.4.1
- 清理代码警告和冗余文件
- 添加字体和二维码测试脚本
- 完善鸿蒙适配文档和指南
This commit is contained in:
Developer
2026-04-25 09:52:06 +08:00
parent 3c90407bb5
commit 4ec348b28e
63 changed files with 4538 additions and 1818 deletions

22
scripts/check_font.py Normal file
View File

@@ -0,0 +1,22 @@
from fontTools.ttLib import TTFont
import os
font_path = os.path.join(os.path.dirname(__file__), "..", "assets", "fonts", "NotoSansSC-Regular.ttf")
font = TTFont(font_path)
print("Tables:", list(font.keys()))
has_glyf = "glyf" in font
has_cff = "CFF " in font
print(f"Has glyf (TrueType): {has_glyf}")
print(f"Has CFF: {has_cff}")
if has_glyf:
print("TRUE TYPE FONT - OK for dart_pdf!")
elif has_cff:
print("CFF FONT - will FAIL with dart_pdf!")
cmap = font.getBestCmap()
test_chars = ["", "", "", "", "", "", "", ""]
for c in test_chars:
cp = ord(c)
found = cp in cmap
print(f" {c} (U+{cp:04X}): {'FOUND' if found else 'MISSING'}")
font.close()