• Home
Name Date Size #Lines LOC

..--

figures/22-Oct-2025-

frameworks/fontmgr/22-Oct-2025-4,6344,005

interfaces/js/kits/22-Oct-2025-449348

sa_profile/22-Oct-2025-3229

service/22-Oct-2025-805585

test/fuzztest/22-Oct-2025-437264

LICENSED22-Oct-20259.9 KiB177150

OAT.xmlD22-Oct-20254.5 KiB7326

README.mdD22-Oct-20251.7 KiB4733

README_zh.mdD22-Oct-20251.7 KiB5033

bundle.jsonD22-Oct-20251.8 KiB7979

README.md

1# Font Manager
2## Introduction
3
4The font management module provides the ability to install and uninstall fonts for system applications.
5
6**Figure 1**   Architecture of the font management component
7
8![](figures/font_manager_en.png)
9
10The font management component architecture is described as follows:
11
12- Font management module, which provides third-party font installation and uninstallation interfaces for system applications.
13- Font management Napi layer (font_manager_napi) is responsible for registering and converting ArkTS interfaces to C++ interfaces.
14- The font management client (font_manager_client) interacts with the server for preliminary parameter check.
15- The font management server (font_manager_server) interacts with the client, verifies permission, and installs and uninstalls font.
16## Directory Structure
17
18The directory structure of the fontmanager module is as follows:
19
20```
21/base/global/
22├── font_manager            # Code repository for the Resmgr module
23│   ├── frameworks          # Core code
24│   │   ├── fontmgr         # Core code
25│   │   │   ├── include     # Header files
26│   │   │   ├── src         # Implementation code
27│   │   │   └── test        # Test code
28│   ├── interfaces          # APIs
29│   │   └── js/kits         # ArkTS APIs
30│   ├── sa_profile          # SystemAbility configuration files
31│   ├── service             # client,server
32│   │   └── include         # Header files
33│   │   └── src             # Implementation code
34```
35
36## Constraints
37
38**Development language**:ArkTS
39
40## Repositories Involved
41
42Globalization subsystem
43
44global\_i18n\_standard
45
46**global/font_manager**
47

README_zh.md

1# 字体管理组件
2
3
4## 简介
5
6字体管理组件为系统应用提供了安装、卸载三方字体的能力。
7
8**图 1**  字体管理组件架构图
9
10![](figures/font_manager.png)
11
12字体管理组件架构图说明:
13
14- 字体管理模块,面向系统应用提供安装与卸载三方字体接口。
15- 字体管理Napi层(font_manager_napi)负责ArkTS接口到C++接口的注册与转换。
16- 字体管理客户端(font_manager_client)负责与服务端交互,进行初步参数检查。
17- 字体管理服务端(font_manager_server)负责与客户端进行交互,进行权限校验与字体的安装卸载。
18
19## 目录
20
21字体管理组件源代码目录结构如下所示:
22
23```
24/base/global/
25├── font_manager            # 字体管理代码仓
26│   ├── frameworks          # 字体管理核心代码
27│   │   ├── fontmgr         # 字体管理核心代码
28│   │   │   ├── include     # 字体管理头文件
29│   │   │   ├── src         # 字体管理实现代码
30│   │   │   └── test        # 字体管理测试代码
31│   ├── interfaces          # 字体管理接口
32│   │   └── js/kits         # 字体管理ArkTS接口
33│   ├── sa_profile          # 字体管理SystemAbility配置文件定义目录
34│   ├── service             # 字体管理服务端、客户端结构
35│   │   └── include         # 字体管理服务端、客户端头文件
36│   │   └── src             # 字体管理服务端、客户端实现代码
37```
38
39## 约束
40
41**语言限制**:ArkTS语言
42
43## 相关仓
44
45全球化子系统
46
47global\_i18n\_standard
48
49**global/font_manager**
50