惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
G
Google Developers Blog
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
博客园 - 叶小钗
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
D
DataBreaches.Net
P
Palo Alto Networks Blog
C
Cisco Blogs
H
Hackread – Cybersecurity News, Data Breaches, AI and More
NISL@THU
NISL@THU
Forbes - Security
Forbes - Security
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
Schneier on Security
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
N
News and Events Feed by Topic
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Engineering at Meta
Engineering at Meta
Last Week in AI
Last Week in AI
AWS News Blog
AWS News Blog
Security Latest
Security Latest
H
Heimdal Security Blog
小众软件
小众软件
Cyberwarzone
Cyberwarzone
The Hacker News
The Hacker News
P
Privacy International News Feed
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
Scott Helme
Scott Helme
博客园 - 【当耐特】
Latest news
Latest news
Microsoft Azure Blog
Microsoft Azure Blog
Y
Y Combinator Blog
Jina AI
Jina AI
Spread Privacy
Spread Privacy
量子位
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
雷峰网
雷峰网

博客园 - 为敢技术

iConsole隐私政策 iConsole用户协议 iCapture隐私政策 iCapture用户协议 上传文件中的.DS_Store问题 iROM用户协议 iROM隐私政策 iConsole请求麦克风权限 博文阅读密码验证 - 博客园 创建图像分类器模型 DevEco Studio:在Windows电脑上启动模拟器,提示未开启Hyper-V iMac / MacBook设置U盘启动 RK3588开发板入门教程 DevEco Testing教程 DevEco Studio实用技巧 鸿蒙知识点 Mac系统安装Node.js及配置环境变量 HarmonyOS:使用本地真机运行应用/服务 HarmonyOS:应用隐私保护 HarmonyOS:应用数据安全
HarmonyOS:如何使用系统自带图标
为敢技术 · 2024-11-06 · via 博客园 - 为敢技术

★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
➤博客园地址:为敢技术(https://www.cnblogs.com/strengthen/ 
➤GitHub地址:https://github.com/strengthen
➤原文地址:https://www.cnblogs.com/strengthen/p/18529700
➤如果链接不是为敢技术的博客园地址,则可能是爬取作者的文章。
➤原文已修改更新!强烈建议点击原文地址阅读!支持作者!支持原创!
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★

1、查看Harmony官方系统默认图标文档:

https://developer.huawei.com/consumer/cn/design/harmonyos-symbol/ 

2、找到钟意的图标,点击右上角,复制图标名称,比如:bell_fill

3、代码中使用:

Text(){
    SymbolSpan($r(sys.symbol.bell_fill))
}

4、导入外部字体图标。

import font from '@ohos.font';
aboutToAppear() {
    font.registerFont({
        familyName: 'iconfont',
        familySrc: $rawfile('iconfont.ttf')
    })
}
build(){
    Column(){
        Text('\uxxxx').fontFamily('iconfont')
    }
}