mirror of
https://github.com/openharmony/third_party_notofonts.git
synced 2026-07-01 20:04:09 -04:00
!40 merge master into master
SDK预览器字体支持别名 Created-by: ran-zhao-yu Commit-by: ranzhaoyutu Merged-by: openharmony_ci Description: ### 一、内容说明(相关的Issue) https://gitcode.com/openharmony/third_party_notofonts/issues/28 ### 二、建议测试周期和提测地址 不涉及 ### 三、变更内容 * 3.1 关联PR列表 不涉及 * 3.2 数据库和部署说明 不涉及 * 3.4 其他技术优化内容(做了什么,变更了什么) 不涉及 * 3.5 废弃通知(什么字段、方法弃用?) 不涉及 * 3.6 后向不兼容变更(是否有无法向后兼容的变更?) 不涉及 ### 四、研发自测点(自测哪些?冒烟用例全部自测?) 自测测试结论:pass ### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方) 检查点:不涉及 | 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 | |------|------------|----------|---------------| | xxx | 否 | 需要 | 不需要 | | | | | | 接口测试:不涉及 性能测试:不涉及 并发测试:不涉及 其他:不涉及 See merge request: openharmony/third_party_notofonts!40
This commit is contained in:
@@ -52,13 +52,16 @@ ohos_shared_headers("fonts_notofonts") {
|
||||
part_name = "notofonts"
|
||||
}
|
||||
|
||||
ohos_copy("copy_preview_fonts_notofonts") {
|
||||
sources = []
|
||||
foreach(font, notofonts_fonts_list) {
|
||||
sources += [ font.font_path ]
|
||||
preview_sources = []
|
||||
foreach(font, notofonts_fonts_list) {
|
||||
if (font.alias_name == "") {
|
||||
preview_sources += [ font.font_path ]
|
||||
}
|
||||
outputs =
|
||||
[ target_out_dir + "/previewer/common/bin/fonts/{{source_file_part}}" ]
|
||||
}
|
||||
|
||||
ohos_copy("copy_preview_fonts_notofonts") {
|
||||
sources = preview_sources
|
||||
outputs = [ target_out_dir + "/previewer/common/bin/fonts/{{source_file_part}}" ]
|
||||
module_source_dir = target_out_dir + "/previewer/common/bin/"
|
||||
module_install_name = ""
|
||||
subsystem_name = "thirdparty"
|
||||
@@ -66,14 +69,32 @@ ohos_copy("copy_preview_fonts_notofonts") {
|
||||
}
|
||||
|
||||
ohos_copy("copy_preview_fonts_notofonts_ext") {
|
||||
sources = []
|
||||
foreach(font, notofonts_fonts_list) {
|
||||
sources += [ font.font_path ]
|
||||
}
|
||||
outputs =
|
||||
[ target_out_dir + "/previewer/resources/fonts/{{source_file_part}}" ]
|
||||
sources = preview_sources
|
||||
outputs = [ target_out_dir + "/previewer/resources/fonts/{{source_file_part}}" ]
|
||||
module_source_dir = target_out_dir + "/previewer/resources"
|
||||
module_install_name = ""
|
||||
subsystem_name = "thirdparty"
|
||||
part_name = "notofonts"
|
||||
}
|
||||
|
||||
foreach(font, notofonts_fonts_list) {
|
||||
if (font.alias_name != "") {
|
||||
ohos_copy("copy_preview_alias_${font.font_name}") {
|
||||
sources = [ font.font_path ]
|
||||
outputs = [ target_out_dir + "/previewer/common/bin/fonts/${font.alias_name}" ]
|
||||
module_source_dir = target_out_dir + "/previewer/common/bin/"
|
||||
module_install_name = ""
|
||||
subsystem_name = "thirdparty"
|
||||
part_name = "notofonts"
|
||||
}
|
||||
|
||||
ohos_copy("copy_preview_alias_ext_${font.font_name}") {
|
||||
sources = [ font.font_path ]
|
||||
outputs = [ target_out_dir + "/previewer/resources/fonts/${font.alias_name}" ]
|
||||
module_source_dir = target_out_dir + "/previewer/resources"
|
||||
module_install_name = ""
|
||||
subsystem_name = "thirdparty"
|
||||
part_name = "notofonts"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user