diff --git a/.gitignore b/.gitignore index c66f55e..cb2a220 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ src/webroot/ reasonix.toml .reasonix/ .agent/ + +.ref/ diff --git a/README.md b/README.md index f7cead9..95ae63c 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,20 @@ FontMM 是一个用于在 Android 设备上一键更换系统字体的 **Magisk **回退规则**:`hant.ttf` / `en.ttf` 缺失时,对应槽位自动使用 `hans.ttf`;`hans.ttf` 缺失时 `apply.sh` 直接报错退出(WebUI 也会禁用「应用」按钮)。`mono.ttf` 未设置时**不覆盖**系统等宽字体(`DroidSansMono.ttf` 保持系统原生)。 +### 补充字库 + +模块内置一组补充字体(OFL-1.1 / MIT 许可),作为 `fonts.xml` 末尾的全局 fallback,兜底用户字体与系统字体未覆盖的字形(CJK 扩展区生僻字、最新 Unicode 字符、小篆等): + +| 字体 | 说明 | +| --- | --- | +| `PlangothicP1/P2.ttf` | CJK 扩展区覆盖(Ext-B、G/H、**I、J** 等生僻字与新汉字) | +| `PlanschriftSeal-Regular.ttf` | **Seal(小篆)区块 11328 字符全覆盖**(Unicode 18 新增,子集化 34M;MIT/OFL 双许可,源自 [Planschrift_Project](https://github.com/Fitzgerald-Porthmouth-Koenigsegg/Planschrift_Project)) | +| `NotoSansPro.otf` | 多 Noto 家族合并,覆盖广泛语言字形 | +| `Unicode16/17/18-new.ttf` | Unicode 最新版本已定义字符覆盖 | +| `ZUno-Number.ttf` | 保留符号 / 私用区未定义符号显示编码信息 | + +补充字库不参与用户槽位替换(`SysFont*` / `SysSans*` 槽位规则不变),仅在缺字形时按顺序兜底。字体来源与许可详见模块内 `system/fonts/LICENSE-*` 及 [MakeFontsGreatAgain](https://github.com/Numbersf/MakeFontsGreatAgain) 的 LICENSES。 + ## 工作原理 ``` @@ -122,6 +136,8 @@ FontMM/ │ ├── cd.sh # 打包模块 zip(preplace / template 两版)→ dist/ │ ├── ci.sh # shellcheck + shfmt 检查(在 Termux 中运行) │ ├── webzip.sh # 仅打包 WebUI 产物 → dist/webroot.zip +│ ├── sync-fonts-xml.sh # 以 fonts.xml 为唯一源生成派生字体配置 +│ ├── check-unicode-coverage.py # 本地模拟字体 fallback, 统计 Unicode 区块覆盖 │ └── empty_font.sh # 生成 0 字节占位字体 ├── package.json # pnpm workspace 根 ├── web/package.json # WebUI 依赖与脚本 @@ -180,6 +196,15 @@ 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 中直接运行 +### Unicode 覆盖测试 + +```bash +python3 dev/check-unicode-coverage.py # 全部区块 +python3 dev/check-unicode-coverage.py "Archaic" "Seal" # 只测指定区块 +``` + +本地模拟 `fonts.xml` 的 fallback 链(fontTools 读取 `src/system/fonts/` 各字体 cmap),对照 Unicode Blocks.txt 统计每个区块覆盖率(首次运行自动下载 Blocks.txt 缓存到 `dev/`)。改字体或映射后无需真机即可回归验证。 + ### 占位字体机制 `src/system/fonts/` 下的 8 个字体文件是 **0 字节占位文件**,避免把大字体文件提交进仓库;模块安装或应用字体时由 `apply.sh` 用 `FONTS/` 里的真实字体覆盖。 diff --git a/changelog.md b/changelog.md index 17966b5..3e9d30d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +- **补充字库**:内置 OFL-1.1 许可的 NotoSansPro / Unicode16-18 / ZUno-Number 及 Plangothic(CJK 扩展 I/J)、PlanschriftSeal(**Seal 小篆区块 11328 字符 100% 覆盖**,MIT/OFL 双许可),在 `fonts.xml` 末尾作为全局 fallback +- **单一源字体配置**:`fonts.xml` 为唯一源,开发阶段自动生成 `fonts_base.xml` / `fonts_ule.xml` / `font_fallback.xml` +- **Unicode 覆盖测试**:新增 `dev/check-unicode-coverage.py`,本地模拟 fallback 链统计各区块覆盖率 + ## v26.8.0-beta.1 全新 v26 架构重构: diff --git a/dev/Blocks.txt b/dev/Blocks.txt new file mode 100644 index 0000000..f40566f --- /dev/null +++ b/dev/Blocks.txt @@ -0,0 +1,391 @@ +# Blocks-18.0.0.txt +# Date: 2026-02-03 +# © 2026 Unicode®, Inc. +# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries. +# For terms of use and license, see https://www.unicode.org/terms_of_use.html +# +# Unicode Character Database +# For documentation, see https://www.unicode.org/reports/tr44/ +# +# Format: +# Start Code..End Code; Block Name + +# ================================================ + +# Note: When comparing block names, casing, whitespace, hyphens, +# and underbars are ignored. +# For example, "Latin Extended-A" and "latin extended a" are equivalent. +# For more information on the comparison of property values, +# see UAX #44: https://www.unicode.org/reports/tr44/ +# +# All block ranges start with a value where (cp MOD 16) = 0, +# and end with a value where (cp MOD 16) = 15. In other words, +# the last hexadecimal digit of the start of range is ...0 +# and the last hexadecimal digit of the end of range is ...F. +# This constraint on block ranges guarantees that allocations +# are done in terms of whole columns, and that code chart display +# never involves splitting columns in the charts. +# +# All code points not explicitly listed for Block +# have the value No_Block. + +# Property: Block +# +# @missing: 0000..10FFFF; No_Block + +0000..007F; Basic Latin +0080..00FF; Latin-1 Supplement +0100..017F; Latin Extended-A +0180..024F; Latin Extended-B +0250..02AF; IPA Extensions +02B0..02FF; Spacing Modifier Letters +0300..036F; Combining Diacritical Marks +0370..03FF; Greek and Coptic +0400..04FF; Cyrillic +0500..052F; Cyrillic Supplement +0530..058F; Armenian +0590..05FF; Hebrew +0600..06FF; Arabic +0700..074F; Syriac +0750..077F; Arabic Supplement +0780..07BF; Thaana +07C0..07FF; NKo +0800..083F; Samaritan +0840..085F; Mandaic +0860..086F; Syriac Supplement +0870..089F; Arabic Extended-B +08A0..08FF; Arabic Extended-A +0900..097F; Devanagari +0980..09FF; Bengali +0A00..0A7F; Gurmukhi +0A80..0AFF; Gujarati +0B00..0B7F; Oriya +0B80..0BFF; Tamil +0C00..0C7F; Telugu +0C80..0CFF; Kannada +0D00..0D7F; Malayalam +0D80..0DFF; Sinhala +0E00..0E7F; Thai +0E80..0EFF; Lao +0F00..0FFF; Tibetan +1000..109F; Myanmar +10A0..10FF; Georgian +1100..11FF; Hangul Jamo +1200..137F; Ethiopic +1380..139F; Ethiopic Supplement +13A0..13FF; Cherokee +1400..167F; Unified Canadian Aboriginal Syllabics +1680..169F; Ogham +16A0..16FF; Runic +1700..171F; Tagalog +1720..173F; Hanunoo +1740..175F; Buhid +1760..177F; Tagbanwa +1780..17FF; Khmer +1800..18AF; Mongolian +18B0..18FF; Unified Canadian Aboriginal Syllabics Extended +1900..194F; Limbu +1950..197F; Tai Le +1980..19DF; New Tai Lue +19E0..19FF; Khmer Symbols +1A00..1A1F; Buginese +1A20..1AAF; Tai Tham +1AB0..1AFF; Combining Diacritical Marks Extended +1B00..1B7F; Balinese +1B80..1BBF; Sundanese +1BC0..1BFF; Batak +1C00..1C4F; Lepcha +1C50..1C7F; Ol Chiki +1C80..1C8F; Cyrillic Extended-C +1C90..1CBF; Georgian Extended +1CC0..1CCF; Sundanese Supplement +1CD0..1CFF; Vedic Extensions +1D00..1D7F; Phonetic Extensions +1D80..1DBF; Phonetic Extensions Supplement +1DC0..1DFF; Combining Diacritical Marks Supplement +1E00..1EFF; Latin Extended Additional +1F00..1FFF; Greek Extended +2000..206F; General Punctuation +2070..209F; Superscripts and Subscripts +20A0..20CF; Currency Symbols +20D0..20FF; Combining Diacritical Marks for Symbols +2100..214F; Letterlike Symbols +2150..218F; Number Forms +2190..21FF; Arrows +2200..22FF; Mathematical Operators +2300..23FF; Miscellaneous Technical +2400..243F; Control Pictures +2440..245F; Optical Character Recognition +2460..24FF; Enclosed Alphanumerics +2500..257F; Box Drawing +2580..259F; Block Elements +25A0..25FF; Geometric Shapes +2600..26FF; Miscellaneous Symbols +2700..27BF; Dingbats +27C0..27EF; Miscellaneous Mathematical Symbols-A +27F0..27FF; Supplemental Arrows-A +2800..28FF; Braille Patterns +2900..297F; Supplemental Arrows-B +2980..29FF; Miscellaneous Mathematical Symbols-B +2A00..2AFF; Supplemental Mathematical Operators +2B00..2BFF; Miscellaneous Symbols and Arrows +2C00..2C5F; Glagolitic +2C60..2C7F; Latin Extended-C +2C80..2CFF; Coptic +2D00..2D2F; Georgian Supplement +2D30..2D7F; Tifinagh +2D80..2DDF; Ethiopic Extended +2DE0..2DFF; Cyrillic Extended-A +2E00..2E7F; Supplemental Punctuation +2E80..2EFF; CJK Radicals Supplement +2F00..2FDF; Kangxi Radicals +2FF0..2FFF; Ideographic Description Characters +3000..303F; CJK Symbols and Punctuation +3040..309F; Hiragana +30A0..30FF; Katakana +3100..312F; Bopomofo +3130..318F; Hangul Compatibility Jamo +3190..319F; Kanbun +31A0..31BF; Bopomofo Extended +31C0..31EF; CJK Strokes +31F0..31FF; Katakana Phonetic Extensions +3200..32FF; Enclosed CJK Letters and Months +3300..33FF; CJK Compatibility +3400..4DBF; CJK Unified Ideographs Extension A +4DC0..4DFF; Yijing Hexagram Symbols +4E00..9FFF; CJK Unified Ideographs +A000..A48F; Yi Syllables +A490..A4CF; Yi Radicals +A4D0..A4FF; Lisu +A500..A63F; Vai +A640..A69F; Cyrillic Extended-B +A6A0..A6FF; Bamum +A700..A71F; Modifier Tone Letters +A720..A7FF; Latin Extended-D +A800..A82F; Syloti Nagri +A830..A83F; Common Indic Number Forms +A840..A87F; Phags-pa +A880..A8DF; Saurashtra +A8E0..A8FF; Devanagari Extended +A900..A92F; Kayah Li +A930..A95F; Rejang +A960..A97F; Hangul Jamo Extended-A +A980..A9DF; Javanese +A9E0..A9FF; Myanmar Extended-B +AA00..AA5F; Cham +AA60..AA7F; Myanmar Extended-A +AA80..AADF; Tai Viet +AAE0..AAFF; Meetei Mayek Extensions +AB00..AB2F; Ethiopic Extended-A +AB30..AB6F; Latin Extended-E +AB70..ABBF; Cherokee Supplement +ABC0..ABFF; Meetei Mayek +AC00..D7AF; Hangul Syllables +D7B0..D7FF; Hangul Jamo Extended-B +D800..DB7F; High Surrogates +DB80..DBFF; High Private Use Surrogates +DC00..DFFF; Low Surrogates +E000..F8FF; Private Use Area +F900..FAFF; CJK Compatibility Ideographs +FB00..FB4F; Alphabetic Presentation Forms +FB50..FDFF; Arabic Presentation Forms-A +FE00..FE0F; Variation Selectors +FE10..FE1F; Vertical Forms +FE20..FE2F; Combining Half Marks +FE30..FE4F; CJK Compatibility Forms +FE50..FE6F; Small Form Variants +FE70..FEFF; Arabic Presentation Forms-B +FF00..FFEF; Halfwidth and Fullwidth Forms +FFF0..FFFF; Specials +10000..1007F; Linear B Syllabary +10080..100FF; Linear B Ideograms +10100..1013F; Aegean Numbers +10140..1018F; Ancient Greek Numbers +10190..101CF; Ancient Symbols +101D0..101FF; Phaistos Disc +10280..1029F; Lycian +102A0..102DF; Carian +102E0..102FF; Coptic Epact Numbers +10300..1032F; Old Italic +10330..1034F; Gothic +10350..1037F; Old Permic +10380..1039F; Ugaritic +103A0..103DF; Old Persian +10400..1044F; Deseret +10450..1047F; Shavian +10480..104AF; Osmanya +104B0..104FF; Osage +10500..1052F; Elbasan +10530..1056F; Caucasian Albanian +10570..105BF; Vithkuqi +105C0..105FF; Todhri +10600..1077F; Linear A +10780..107BF; Latin Extended-F +10800..1083F; Cypriot Syllabary +10840..1085F; Imperial Aramaic +10860..1087F; Palmyrene +10880..108AF; Nabataean +108E0..108FF; Hatran +10900..1091F; Phoenician +10920..1093F; Lydian +10940..1095F; Sidetic +10980..1099F; Meroitic Hieroglyphs +109A0..109FF; Meroitic Cursive +10A00..10A5F; Kharoshthi +10A60..10A7F; Old South Arabian +10A80..10A9F; Old North Arabian +10AC0..10AFF; Manichaean +10B00..10B3F; Avestan +10B40..10B5F; Inscriptional Parthian +10B60..10B7F; Inscriptional Pahlavi +10B80..10BAF; Psalter Pahlavi +10C00..10C4F; Old Turkic +10C80..10CFF; Old Hungarian +10D00..10D3F; Hanifi Rohingya +10D40..10D8F; Garay +10E60..10E7F; Rumi Numeral Symbols +10E80..10EBF; Yezidi +10EC0..10EFF; Arabic Extended-C +10F00..10F2F; Old Sogdian +10F30..10F6F; Sogdian +10F70..10FAF; Old Uyghur +10FB0..10FDF; Chorasmian +10FE0..10FFF; Elymaic +11000..1107F; Brahmi +11080..110CF; Kaithi +110D0..110FF; Sora Sompeng +11100..1114F; Chakma +11150..1117F; Mahajani +11180..111DF; Sharada +111E0..111FF; Sinhala Archaic Numbers +11200..1124F; Khojki +11280..112AF; Multani +112B0..112FF; Khudawadi +11300..1137F; Grantha +11380..113FF; Tulu-Tigalari +11400..1147F; Newa +11480..114DF; Tirhuta +11580..115FF; Siddham +11600..1165F; Modi +11660..1167F; Mongolian Supplement +11680..116CF; Takri +116D0..116FF; Myanmar Extended-C +11700..1174F; Ahom +11800..1184F; Dogra +118A0..118FF; Warang Citi +11900..1195F; Dives Akuru +119A0..119FF; Nandinagari +11A00..11A4F; Zanabazar Square +11A50..11AAF; Soyombo +11AB0..11ABF; Unified Canadian Aboriginal Syllabics Extended-A +11AC0..11AFF; Pau Cin Hau +11B00..11B5F; Devanagari Extended-A +11B60..11B7F; Sharada Supplement +11BC0..11BFF; Sunuwar +11C00..11C6F; Bhaiksuki +11C70..11CBF; Marchen +11D00..11D5F; Masaram Gondi +11D60..11DAF; Gunjala Gondi +11DB0..11DEF; Tolong Siki +11DF0..11DFF; Bengali Supplement +11EE0..11EFF; Makasar +11F00..11F5F; Kawi +11FB0..11FBF; Lisu Supplement +11FC0..11FFF; Tamil Supplement +12000..123FF; Cuneiform +12400..1247F; Cuneiform Numbers and Punctuation +12480..1254F; Early Dynastic Cuneiform +12550..1268F; Archaic Cuneiform Numerals +12F90..12FFF; Cypro-Minoan +13000..1342F; Egyptian Hieroglyphs +13430..1345F; Egyptian Hieroglyph Format Controls +13460..143FF; Egyptian Hieroglyphs Extended-A +14400..1467F; Anatolian Hieroglyphs +16100..1613F; Gurung Khema +16800..16A3F; Bamum Supplement +16A40..16A6F; Mro +16A70..16ACF; Tangsa +16AD0..16AFF; Bassa Vah +16B00..16B8F; Pahawh Hmong +16D40..16D7F; Kirat Rai +16D80..16DAF; Chisoi +16E40..16E9F; Medefaidrin +16EA0..16EDF; Beria Erfe +16F00..16F9F; Miao +16FE0..16FFF; Ideographic Symbols and Punctuation +17000..187FF; Tangut +18800..18AFF; Tangut Components +18B00..18CFF; Khitan Small Script +18D00..18D7F; Tangut Supplement +18D80..18DFF; Tangut Components Supplement +18E00..1919F; Jurchen +191A0..191DF; Jurchen Radicals +1AFF0..1AFFF; Kana Extended-B +1B000..1B0FF; Kana Supplement +1B100..1B12F; Kana Extended-A +1B130..1B16F; Small Kana Extension +1B170..1B2FF; Nushu +1BC00..1BC9F; Duployan +1BCA0..1BCAF; Shorthand Format Controls +1CC00..1CEBF; Symbols for Legacy Computing Supplement +1CEC0..1CEFF; Miscellaneous Symbols Supplement +1CF00..1CFCF; Znamenny Musical Notation +1D000..1D0FF; Byzantine Musical Symbols +1D100..1D1FF; Musical Symbols +1D200..1D24F; Ancient Greek Musical Notation +1D250..1D28F; Musical Symbols Supplement +1D2C0..1D2DF; Kaktovik Numerals +1D2E0..1D2FF; Mayan Numerals +1D300..1D35F; Tai Xuan Jing Symbols +1D360..1D37F; Counting Rod Numerals +1D400..1D7FF; Mathematical Alphanumeric Symbols +1D800..1DAAF; Sutton SignWriting +1DB00..1DBFF; Miscellaneous Symbols and Arrows Extended +1DF00..1DFFF; Latin Extended-G +1E000..1E02F; Glagolitic Supplement +1E030..1E08F; Cyrillic Extended-D +1E100..1E14F; Nyiakeng Puachue Hmong +1E290..1E2BF; Toto +1E2C0..1E2FF; Wancho +1E4D0..1E4FF; Nag Mundari +1E5D0..1E5FF; Ol Onal +1E6C0..1E6FF; Tai Yo +1E7E0..1E7FF; Ethiopic Extended-B +1E800..1E8DF; Mende Kikakui +1E900..1E95F; Adlam +1EC70..1ECBF; Indic Siyaq Numbers +1ED00..1ED4F; Ottoman Siyaq Numbers +1EE00..1EEFF; Arabic Mathematical Alphabetic Symbols +1F000..1F02F; Mahjong Tiles +1F030..1F09F; Domino Tiles +1F0A0..1F0FF; Playing Cards +1F100..1F1FF; Enclosed Alphanumeric Supplement +1F200..1F2FF; Enclosed Ideographic Supplement +1F300..1F5FF; Miscellaneous Symbols and Pictographs +1F600..1F64F; Emoticons +1F650..1F67F; Ornamental Dingbats +1F680..1F6FF; Transport and Map Symbols +1F700..1F77F; Alchemical Symbols +1F780..1F7FF; Geometric Shapes Extended +1F800..1F8FF; Supplemental Arrows-C +1F900..1F9FF; Supplemental Symbols and Pictographs +1FA00..1FA6F; Chess Symbols +1FA70..1FAFF; Symbols and Pictographs Extended-A +1FB00..1FBFF; Symbols for Legacy Computing +20000..2A6DF; CJK Unified Ideographs Extension B +2A700..2B73F; CJK Unified Ideographs Extension C +2B740..2B81F; CJK Unified Ideographs Extension D +2B820..2CEAF; CJK Unified Ideographs Extension E +2CEB0..2EBEF; CJK Unified Ideographs Extension F +2EBF0..2EE5F; CJK Unified Ideographs Extension I +2F800..2FA1F; CJK Compatibility Ideographs Supplement +30000..3134F; CJK Unified Ideographs Extension G +31350..323AF; CJK Unified Ideographs Extension H +323B0..3347F; CJK Unified Ideographs Extension J +3D000..3FC3F; Seal +E0000..E007F; Tags +E0100..E01EF; Variation Selectors Supplement +F0000..FFFFF; Supplementary Private Use Area-A +100000..10FFFF; Supplementary Private Use Area-B + +# EOF diff --git a/dev/cd.sh b/dev/cd.sh index d39cd26..7110bc2 100644 --- a/dev/cd.sh +++ b/dev/cd.sh @@ -29,6 +29,9 @@ TPL_OUT="$DIST_DIR/FontMM_v${FILE_VERSION}_template.zip" mkdir -p "$DIST_DIR" rm -f "$PRE_OUT" "$TPL_OUT" # 先删旧的, 防止 zip 增量更新残留已删除的文件 +# 0. 同步派生字体配置 (fonts.xml 为唯一源, 复制生成 fonts_base/ule/font_fallback 等) +bash "$ROOT_DIR/dev/sync-fonts-xml.sh" + # 2. 打包函数: $1=输出路径, $2=额外排除模式 (可选) # (zip 根 = 模块根, 不含 src 这层目录) pack() { diff --git a/dev/check-unicode-coverage.py b/dev/check-unicode-coverage.py new file mode 100644 index 0000000..c4ad262 --- /dev/null +++ b/dev/check-unicode-coverage.py @@ -0,0 +1,120 @@ +#!/usr/bin/env python3 +"""check-unicode-coverage.py — 本地模拟 Android 字体 fallback 链, 统计 Unicode 区块覆盖率. + +原理: 按 fonts.xml 中 family 的声明顺序构成 fallback 链, 逐字形检查覆盖; + 用 fontTools 读取各字体 cmap, 对照 Unicode Blocks.txt 统计每个区块的覆盖率. + +用法: + python3 dev/check-unicode-coverage.py # 全部区块 (自动获取 Blocks.txt 缓存到 dev/) + python3 dev/check-unicode-coverage.py --blocks-file Blocks.txt + python3 dev/check-unicode-coverage.py Hebrew "Archaic" # 只测匹配的区块名 (子串) +""" +import argparse +import os +import urllib.request +import xml.etree.ElementTree as ET + +from fontTools.ttLib import TTFont + +ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +FONTS_DIR = os.path.join(ROOT, 'src', 'system', 'fonts') +FONTS_XML = os.path.join(ROOT, 'src', 'system', 'etc', 'fonts.xml') +BLOCKS_URL = 'https://www.unicode.org/Public/draft/ucd/Blocks.txt' + + +def load_chain(xml_path): + """按 fonts.xml 声明顺序提取 fallback 链 (全部 font 文件名, 去重).""" + root = ET.parse(xml_path).getroot() + chain, seen = [], set() + for family in root.iter('family'): + for font in family.iter('font'): + name = (font.text or '').strip() + if name and name not in seen: + seen.add(name) + chain.append(name) + return chain + + +def load_cmaps(fonts_dir, chain): + cmaps, missing = {}, [] + for name in chain: + path = os.path.join(fonts_dir, name) + if not os.path.exists(path): + missing.append(name) + continue + try: + cmaps[name] = TTFont(path, lazy=True).getBestCmap() + except Exception as exc: # 解析失败 (如特殊字体) 跳过 + missing.append(f'{name} ({exc})') + return cmaps, missing + + +def load_blocks(path): + blocks = [] + with open(path, encoding='utf-8') as fh: + for line in fh: + line = line.strip() + if not line or line.startswith('#') or '..' not in line: + continue + rng, name = line.split(';') + start, end = (int(x, 16) for x in rng.strip().split('..')) + blocks.append((name.strip(), start, end)) + return blocks + + +def fetch_blocks(dest): + print(f'[i] 获取 Blocks.txt: {BLOCKS_URL}') + urllib.request.urlretrieve(BLOCKS_URL, dest) + return dest + + +def main(): + ap = argparse.ArgumentParser(description='本地 Unicode 覆盖测试 (模拟 fonts.xml fallback 链)') + ap.add_argument('blocks', nargs='*', help='只测试匹配的区块名 (子串, 如 Hebrew)') + ap.add_argument('--blocks-file', help='本地 Blocks.txt 路径 (默认自动下载缓存到 dev/Blocks.txt)') + args = ap.parse_args() + + chain = load_chain(FONTS_XML) + print(f'[i] fallback 链: {len(chain)} 个字体 ({FONTS_XML})') + cmaps, missing = load_cmaps(FONTS_DIR, chain) + if missing: + print(f'[!] 缺失/无法解析的字体: {missing}') + if not cmaps: + print('[!] 无可用字体, 退出', file=os.sys.stderr) + return 1 + + # 合并全部 cmap 为并集, 快速判字形 + union = set() + for cm in cmaps.values(): + union.update(cm) + print(f'[i] 可用字体 {len(cmaps)} 个, 字形码位并集 {len(union):,}') + + blocks_file = args.blocks_file + if not blocks_file: + blocks_file = os.path.join(ROOT, 'dev', 'Blocks.txt') + if not os.path.exists(blocks_file): + fetch_blocks(blocks_file) + blocks = load_blocks(blocks_file) + if args.blocks: + blocks = [b for b in blocks if any(k.lower() in b[0].lower() for k in args.blocks)] + + print(f'\n{"Block":<42}{"Covered":>9}{"Total":>8}{"Pct":>9} Status') + print('-' * 76) + failed = [] + for name, start, end in blocks: + total = end - start + 1 + covered = sum(1 for cp in range(start, end + 1) if cp in union) + pct = covered / total * 100 if total else 0 + status = 'PASS' if covered == total else ('FAIL' if pct < 95 else '') + if status == 'FAIL': + failed.append(name) + print(f'{name:<42}{covered:>9}{total:>8}{pct:>8.2f}% {status}') + + print(f'\n[=] 共 {len(blocks)} 个区块, FAIL (<95%): {len(failed)} 个') + for name in failed: + print(f' - {name}') + return 1 if failed else 0 + + +if __name__ == '__main__': + raise SystemExit(main()) diff --git a/dev/sync-fonts-xml.sh b/dev/sync-fonts-xml.sh new file mode 100644 index 0000000..e564a44 --- /dev/null +++ b/dev/sync-fonts-xml.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +set -euo pipefail + +# dev/sync-fonts-xml.sh — 以 fonts.xml 为唯一源, 复制生成各派生字体配置 +# ColorOS 在不同场景加载 fonts.xml / fonts_base.xml / fonts_ule.xml / font_fallback.xml, +# 参考 MakeFontsGreatAgain 的做法, 开发阶段直接复制, 避免维护多份几乎重复的 XML + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +SRC="$ROOT_DIR/src/system/etc/fonts.xml" + +[ -f "$SRC" ] || { + echo "[!] 找不到源文件: $SRC" >&2 + exit 1 +} + +DEST=( + "$ROOT_DIR/src/system/etc/fonts_base.xml" + "$ROOT_DIR/src/system/etc/fonts_ule.xml" + "$ROOT_DIR/src/system/etc/font_fallback.xml" + "$ROOT_DIR/src/system/system_ext/etc/fonts_base.xml" + "$ROOT_DIR/src/system/system_ext/etc/fonts_ule.xml" +) + +for f in "${DEST[@]}"; do + cp -f "$SRC" "$f" + echo "[✓] 已同步: $f" +done + +echo "[✓] 完成, 共 ${#DEST[@]} 个派生文件" diff --git a/src/system/etc/font_fallback.xml b/src/system/etc/font_fallback.xml index 8eab599..08760ea 100644 --- a/src/system/etc/font_fallback.xml +++ b/src/system/etc/font_fallback.xml @@ -1,577 +1,1860 @@ - - - - Roboto-Regular.ttf - - - - - CarroisGothicSC-Regular.ttf - - - ComingSoon.ttf - - - CutiveMono.ttf - - - DancingScript-Regular.ttf - - - DroidSansMono.ttf - - - - Roboto-Regular.ttf - - - - - - Roboto-Regular.ttf - - - - - - RobotoFlex-Regular.ttf - - - - - SourceSansPro-Regular.ttf - SourceSansPro-Italic.ttf - SourceSansPro-SemiBold.ttf - SourceSansPro-SemiBoldItalic.ttf - SourceSansPro-Bold.ttf - SourceSansPro-BoldItalic.ttf - - - NotoSerif-Regular.ttf - NotoSerif-Bold.ttf - NotoSerif-Italic.ttf - NotoSerif-BoldItalic.ttf - - - NotoNaskhArabic-Regular.ttf - NotoNaskhArabic-Bold.ttf - - - NotoNaskhArabicUI-Regular.ttf - NotoNaskhArabicUI-Bold.ttf - - - NotoSansEthiopic-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 - NotoSerifArmenian-VF.ttf - - - NotoSansGeorgian-VF.ttf - NotoSerifGeorgian-VF.ttf - - - NotoSansDevanagari-VF.ttf - NotoSerifDevanagari-VF.ttf - - - NotoSansDevanagariUI-VF.ttf - - - NotoSansGujarati-Regular.ttf - NotoSansGujarati-Bold.ttf - NotoSerifGujarati-VF.ttf - - - NotoSansGujaratiUI-Regular.ttf - NotoSansGujaratiUI-Bold.ttf - - - NotoSansGurmukhi-VF.ttf - NotoSerifGurmukhi-VF.ttf - - - NotoSansGurmukhiUI-VF.ttf - - - NotoSansTamil-VF.ttf - NotoSerifTamil-VF.ttf - - - NotoSansTamilUI-VF.ttf - - - NotoSansMalayalam-VF.ttf - NotoSerifMalayalam-VF.ttf - - - NotoSansMalayalamUI-VF.ttf - - - NotoSansBengali-VF.ttf - NotoSerifBengali-VF.ttf - - - NotoSansBengaliUI-VF.ttf - - - NotoSansTelugu-VF.ttf - NotoSerifTelugu-VF.ttf - - - NotoSansTeluguUI-VF.ttf - - - NotoSansKannada-VF.ttf - NotoSerifKannada-VF.ttf - - - NotoSansKannadaUI-VF.ttf - - - NotoSansOriya-Regular.ttf - NotoSansOriya-Bold.ttf - - - NotoSansOriyaUI-Regular.ttf - NotoSansOriyaUI-Bold.ttf - - - NotoSansSinhala-VF.ttf - NotoSerifSinhala-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 - - - NotoSansMyanmar-Regular.otf - NotoSansMyanmar-Medium.otf - NotoSansMyanmar-Bold.otf - NotoSerifMyanmar-Regular.otf - NotoSerifMyanmar-Bold.otf - - - NotoSansMyanmarUI-Regular.otf - NotoSansMyanmarUI-Medium.otf - NotoSansMyanmarUI-Bold.otf - - - NotoSansThaana-Regular.ttf - NotoSansThaana-Bold.ttf - - - NotoSansCham-Regular.ttf - NotoSansCham-Bold.ttf - - - NotoSansAhom-Regular.otf - - - 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 - - - NotoSerifTibetan-VF.ttf - - - NotoSansTifinagh-Regular.otf - - - NotoSansUgaritic-Regular.ttf - - - NotoSansVai-Regular.ttf - - - NotoSansSymbols-Regular-Subsetted.ttf - - - NotoSansCJK-Regular.ttc - NotoSerifCJK-Regular.ttc - - - NotoSansCJK-Regular.ttc - NotoSerifCJK-Regular.ttc - - - NotoSansCJK-Regular.ttc - NotoSerifCJK-Regular.ttc - - - - NotoSerifHentaigana.ttf - - - - - NotoSansCJK-Regular.ttc - NotoSerifCJK-Regular.ttc - - - 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 - - - NotoSansSoyombo-VF.ttf - - - NotoSansTakri-VF.ttf - - - NotoSerifNyiakengPuachueHmong-VF.ttf - - - NotoSerifYezidi-VF.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 + + + + + + + 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 + + + + + + + PlangothicP1.ttf + + + PlangothicP2.ttf + + + PlanschriftSeal-Regular.ttf + + + MFGA.ttf + + + BraillePatterns.ttf + + + NotoSansPro.otf + + + UnicodiaFunky.ttf + + + ArchaicCuneiformNumerals.ttf + + + Unicode18-new.ttf + + + Unicode17-new.ttf + + + SatisarSharada-Regular.ttf + + + Unicode16-new.ttf + + + Unknown-symbol-supplementRegular.ttf + + + NotoUnicode.otf + + + Tibetan-Regular.ttf + + + Private-UseTest.ttf + + + ZUno-Number.ttf + + + + + NotoColorEmoji.ttf + diff --git a/src/system/etc/fonts.xml b/src/system/etc/fonts.xml index 9ce1ae5..08760ea 100644 --- a/src/system/etc/fonts.xml +++ b/src/system/etc/fonts.xml @@ -1797,4 +1797,64 @@ + + + + PlangothicP1.ttf + + + PlangothicP2.ttf + + + PlanschriftSeal-Regular.ttf + + + MFGA.ttf + + + BraillePatterns.ttf + + + NotoSansPro.otf + + + UnicodiaFunky.ttf + + + ArchaicCuneiformNumerals.ttf + + + Unicode18-new.ttf + + + Unicode17-new.ttf + + + SatisarSharada-Regular.ttf + + + Unicode16-new.ttf + + + Unknown-symbol-supplementRegular.ttf + + + NotoUnicode.otf + + + Tibetan-Regular.ttf + + + Private-UseTest.ttf + + + ZUno-Number.ttf + + + + + NotoColorEmoji.ttf + diff --git a/src/system/etc/fonts_base.xml b/src/system/etc/fonts_base.xml index 5f26e30..08760ea 100644 --- a/src/system/etc/fonts_base.xml +++ b/src/system/etc/fonts_base.xml @@ -1,5 +1,17 @@ + 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 @@ -1738,4 +1797,64 @@ + + + + PlangothicP1.ttf + + + PlangothicP2.ttf + + + PlanschriftSeal-Regular.ttf + + + MFGA.ttf + + + BraillePatterns.ttf + + + NotoSansPro.otf + + + UnicodiaFunky.ttf + + + ArchaicCuneiformNumerals.ttf + + + Unicode18-new.ttf + + + Unicode17-new.ttf + + + SatisarSharada-Regular.ttf + + + Unicode16-new.ttf + + + Unknown-symbol-supplementRegular.ttf + + + NotoUnicode.otf + + + Tibetan-Regular.ttf + + + Private-UseTest.ttf + + + ZUno-Number.ttf + + + + + NotoColorEmoji.ttf + diff --git a/src/system/etc/fonts_ule.xml b/src/system/etc/fonts_ule.xml index f20df4d..08760ea 100644 --- a/src/system/etc/fonts_ule.xml +++ b/src/system/etc/fonts_ule.xml @@ -1,5 +1,17 @@ @@ -229,37 +117,46 @@ 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 - + + + + + + + @@ -272,100 +169,46 @@ - 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 - - - - + 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 @@ -395,13 +238,16 @@ - ComingSoon.ttf + ComingSoon.ttf - DancingScript-Regular.ttf - - DancingScript-Bold.ttf + DancingScript-Regular.ttf + + + DancingScript-Regular.ttf + + @@ -418,11 +264,126 @@ + + 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 @@ -1019,61 +980,22 @@ + + - + 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-Regular.ttf NotoSansKhmerUI-Bold.ttf + NotoSansLao-Regular.ttf @@ -1503,81 +1425,163 @@ --> - 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 + postScriptName="OPPO_Sans_4.0_SC">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-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 + postScriptName="OPPO_Sans_4.0_TC">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 + 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 @@ -1793,4 +1797,64 @@ - \ No newline at end of file + + + + PlangothicP1.ttf + + + PlangothicP2.ttf + + + PlanschriftSeal-Regular.ttf + + + MFGA.ttf + + + BraillePatterns.ttf + + + NotoSansPro.otf + + + UnicodiaFunky.ttf + + + ArchaicCuneiformNumerals.ttf + + + Unicode18-new.ttf + + + Unicode17-new.ttf + + + SatisarSharada-Regular.ttf + + + Unicode16-new.ttf + + + Unknown-symbol-supplementRegular.ttf + + + NotoUnicode.otf + + + Tibetan-Regular.ttf + + + Private-UseTest.ttf + + + ZUno-Number.ttf + + + + + NotoColorEmoji.ttf + + diff --git a/src/system/fonts/ArchaicCuneiformNumerals.ttf b/src/system/fonts/ArchaicCuneiformNumerals.ttf new file mode 100644 index 0000000..1e62e39 Binary files /dev/null and b/src/system/fonts/ArchaicCuneiformNumerals.ttf differ diff --git a/src/system/fonts/BraillePatterns.ttf b/src/system/fonts/BraillePatterns.ttf new file mode 100644 index 0000000..80e88f3 Binary files /dev/null and b/src/system/fonts/BraillePatterns.ttf differ diff --git a/src/system/fonts/LICENSE-MIT b/src/system/fonts/LICENSE-MIT new file mode 100644 index 0000000..78e93c9 --- /dev/null +++ b/src/system/fonts/LICENSE-MIT @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2018–2022 Cyano Hao +Copyright (c) 2022 Shiroki Satsuki + +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. \ No newline at end of file diff --git a/src/system/fonts/LICENSE-MIT-Planschrift b/src/system/fonts/LICENSE-MIT-Planschrift new file mode 100644 index 0000000..7749515 --- /dev/null +++ b/src/system/fonts/LICENSE-MIT-Planschrift @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Losketch + +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/src/system/fonts/LICENSE-OFL b/src/system/fonts/LICENSE-OFL new file mode 100644 index 0000000..2db76e6 --- /dev/null +++ b/src/system/fonts/LICENSE-OFL @@ -0,0 +1,94 @@ +Copyright 2025 The Noto Project Authors (https://github.com/notofonts) +Copyright 2025 Mercury13 (https://github.com/Mercury13/unicodia) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/src/system/fonts/LICENSE-OFL-Planschrift b/src/system/fonts/LICENSE-OFL-Planschrift new file mode 100644 index 0000000..77b1731 --- /dev/null +++ b/src/system/fonts/LICENSE-OFL-Planschrift @@ -0,0 +1,91 @@ +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/src/system/fonts/MFGA.ttf b/src/system/fonts/MFGA.ttf new file mode 100644 index 0000000..72fbd4f Binary files /dev/null and b/src/system/fonts/MFGA.ttf differ diff --git a/src/system/fonts/NotoColorEmoji.ttf b/src/system/fonts/NotoColorEmoji.ttf new file mode 100644 index 0000000..5d7a86f Binary files /dev/null and b/src/system/fonts/NotoColorEmoji.ttf differ diff --git a/src/system/fonts/NotoSansPro.otf b/src/system/fonts/NotoSansPro.otf new file mode 100644 index 0000000..a37c8e3 Binary files /dev/null and b/src/system/fonts/NotoSansPro.otf differ diff --git a/src/system/fonts/NotoUnicode.otf b/src/system/fonts/NotoUnicode.otf new file mode 100644 index 0000000..84892d4 Binary files /dev/null and b/src/system/fonts/NotoUnicode.otf differ diff --git a/src/system/fonts/PlangothicP1.ttf b/src/system/fonts/PlangothicP1.ttf new file mode 100644 index 0000000..a44abba Binary files /dev/null and b/src/system/fonts/PlangothicP1.ttf differ diff --git a/src/system/fonts/PlangothicP2.ttf b/src/system/fonts/PlangothicP2.ttf new file mode 100644 index 0000000..b5e71bf Binary files /dev/null and b/src/system/fonts/PlangothicP2.ttf differ diff --git a/src/system/fonts/PlanschriftSeal-Regular.ttf b/src/system/fonts/PlanschriftSeal-Regular.ttf new file mode 100644 index 0000000..89c1674 Binary files /dev/null and b/src/system/fonts/PlanschriftSeal-Regular.ttf differ diff --git a/src/system/fonts/Private-UseTest.ttf b/src/system/fonts/Private-UseTest.ttf new file mode 100644 index 0000000..e67acae Binary files /dev/null and b/src/system/fonts/Private-UseTest.ttf differ diff --git a/src/system/fonts/SatisarSharada-Regular.ttf b/src/system/fonts/SatisarSharada-Regular.ttf new file mode 100644 index 0000000..66dc4bc Binary files /dev/null and b/src/system/fonts/SatisarSharada-Regular.ttf differ diff --git a/src/system/fonts/Tibetan-Regular.ttf b/src/system/fonts/Tibetan-Regular.ttf new file mode 100644 index 0000000..e4f7de3 Binary files /dev/null and b/src/system/fonts/Tibetan-Regular.ttf differ diff --git a/src/system/fonts/Unicode16-new.ttf b/src/system/fonts/Unicode16-new.ttf new file mode 100644 index 0000000..7e24b81 Binary files /dev/null and b/src/system/fonts/Unicode16-new.ttf differ diff --git a/src/system/fonts/Unicode17-new.ttf b/src/system/fonts/Unicode17-new.ttf new file mode 100644 index 0000000..e877906 Binary files /dev/null and b/src/system/fonts/Unicode17-new.ttf differ diff --git a/src/system/fonts/Unicode18-new.ttf b/src/system/fonts/Unicode18-new.ttf new file mode 100644 index 0000000..4314ad3 Binary files /dev/null and b/src/system/fonts/Unicode18-new.ttf differ diff --git a/src/system/fonts/UnicodiaFunky.ttf b/src/system/fonts/UnicodiaFunky.ttf new file mode 100644 index 0000000..f267326 Binary files /dev/null and b/src/system/fonts/UnicodiaFunky.ttf differ diff --git a/src/system/fonts/Unknown-symbol-supplementRegular.ttf b/src/system/fonts/Unknown-symbol-supplementRegular.ttf new file mode 100644 index 0000000..38747a5 Binary files /dev/null and b/src/system/fonts/Unknown-symbol-supplementRegular.ttf differ diff --git a/src/system/fonts/ZUno-Number.ttf b/src/system/fonts/ZUno-Number.ttf new file mode 100644 index 0000000..997705a Binary files /dev/null and b/src/system/fonts/ZUno-Number.ttf differ diff --git a/src/system/system_ext/etc/fonts_base.xml b/src/system/system_ext/etc/fonts_base.xml index 5f26e30..08760ea 100644 --- a/src/system/system_ext/etc/fonts_base.xml +++ b/src/system/system_ext/etc/fonts_base.xml @@ -1,5 +1,17 @@ + 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 @@ -1738,4 +1797,64 @@ + + + + PlangothicP1.ttf + + + PlangothicP2.ttf + + + PlanschriftSeal-Regular.ttf + + + MFGA.ttf + + + BraillePatterns.ttf + + + NotoSansPro.otf + + + UnicodiaFunky.ttf + + + ArchaicCuneiformNumerals.ttf + + + Unicode18-new.ttf + + + Unicode17-new.ttf + + + SatisarSharada-Regular.ttf + + + Unicode16-new.ttf + + + Unknown-symbol-supplementRegular.ttf + + + NotoUnicode.otf + + + Tibetan-Regular.ttf + + + Private-UseTest.ttf + + + ZUno-Number.ttf + + + + + NotoColorEmoji.ttf + diff --git a/src/system/system_ext/etc/fonts_ule.xml b/src/system/system_ext/etc/fonts_ule.xml index f20df4d..08760ea 100644 --- a/src/system/system_ext/etc/fonts_ule.xml +++ b/src/system/system_ext/etc/fonts_ule.xml @@ -1,5 +1,17 @@ @@ -229,37 +117,46 @@ 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 - + + + + + + + @@ -272,100 +169,46 @@ - 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 - - - - + 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 @@ -395,13 +238,16 @@ - ComingSoon.ttf + ComingSoon.ttf - DancingScript-Regular.ttf - - DancingScript-Bold.ttf + DancingScript-Regular.ttf + + + DancingScript-Regular.ttf + + @@ -418,11 +264,126 @@ + + 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 @@ -1019,61 +980,22 @@ + + - + 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-Regular.ttf NotoSansKhmerUI-Bold.ttf + NotoSansLao-Regular.ttf @@ -1503,81 +1425,163 @@ --> - 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 + postScriptName="OPPO_Sans_4.0_SC">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-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 + postScriptName="OPPO_Sans_4.0_TC">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 + 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 @@ -1793,4 +1797,64 @@ - \ No newline at end of file + + + + PlangothicP1.ttf + + + PlangothicP2.ttf + + + PlanschriftSeal-Regular.ttf + + + MFGA.ttf + + + BraillePatterns.ttf + + + NotoSansPro.otf + + + UnicodiaFunky.ttf + + + ArchaicCuneiformNumerals.ttf + + + Unicode18-new.ttf + + + Unicode17-new.ttf + + + SatisarSharada-Regular.ttf + + + Unicode16-new.ttf + + + Unknown-symbol-supplementRegular.ttf + + + NotoUnicode.otf + + + Tibetan-Regular.ttf + + + Private-UseTest.ttf + + + ZUno-Number.ttf + + + + + NotoColorEmoji.ttf + +