1# 三方开源软件notofonts 2## notofonts简介 3 4- notofonts提供全球所有语言字库合集(CJK和表情符号除外)。 5 6- [参考官方文档](https://github.com/notofonts/notofonts.github.io) 7 8## 引入背景简述 9在OpenHarmony系统中,为构建全球化语言字库能力,覆盖全球国家和地区,需引入该三方库来丰富语言字库合集。 10 11## 目录结构 12 13``` 14docs/ 文档 15fonts/ 字体文件 16scripts/ 脚本 17README README说明 18``` 19 20## OpenHarmony如何使用notofonts 21 22在OpenHarmony中,开发者通过BUILD.gn编译脚本预置字体文件。 23 24### 1. notofonts的编译 25 26notofonts的编译入口在其根目录下的BUILD.gn中。简单示意如下: 27 28``` 29ohos_prebuilt_etc("NotoSansBengali") { 30 source = "fonts/NotoSansBengali/googlefonts/variable-ttf/NotoSansBengali[wdth,wght].ttf" 31 module_install_dir = "fonts" 32 subsystem_name = "thirdparty" 33 part_name = "notofonts" 34} 35 36group("fonts_notofonts") { 37 deps = [ 38 ":NotoSansBengali", 39 ] 40} 41``` 42 43### 2. 使用notofonts 44 45在需要使用notofonts的模块构建配置中,增加对应依赖。 46 47## 相关仓 48 49[global_system_resources](https://gitee.com/openharmony/global_system_resources) 50 51[third_party_noto-cjk](https://gitee.com/openharmony/third_party_noto-cjk) 52 53## License 54 55- [Apache License Version 2.0](LICENSE) 56- [SIL OPEN FONT LICENSE Version 1.1](fonts/LICENSE) 57 58## 参与贡献 59[如何贡献](https://gitee.com/openharmony/docs/blob/HEAD/zh-cn/contribute/参与贡献.md) 60 61[Commit message规范](https://gitee.com/openharmony/device_qemu/wikis/Commit%20message%E8%A7%84%E8%8C%83) 62