-
notofonts提供全球所有语言字库合集(CJK和表情符号除外)。
在OpenHarmony系统中,为构建全球化语言字库能力,覆盖全球国家和地区,需引入该三方库来丰富语言字库合集。
docs/ 文档
fonts/ 字体文件
scripts/ 脚本
README README说明
在OpenHarmony中,开发者通过BUILD.gn编译脚本预置字体文件。
notofonts的编译入口在其根目录下的BUILD.gn中。简单示意如下:
ohos_prebuilt_etc("NotoSansBengali") {
source = "fonts/NotoSansBengali/googlefonts/variable-ttf/NotoSansBengali[wdth,wght].ttf"
module_install_dir = "fonts"
subsystem_name = "thirdparty"
part_name = "notofonts"
}
group("fonts_notofonts") {
deps = [
":NotoSansBengali",
]
}
在需要使用notofonts的模块构建配置中,增加对应依赖。