未验证 提交 ff2ccf14 编写于 作者: 冯醒醒 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-font.md.

Signed-off-by: N冯醒醒 <fengsumei@huawei.com>
上级 4d7d6d52
...@@ -64,7 +64,7 @@ struct FontExample { ...@@ -64,7 +64,7 @@ struct FontExample {
``` ```
## font.getSystemFontList ## font.getSystemFontList
getSystemFontList(): Array\<string>; getSystemFontList(): Array\<string>
获取系统支持的字体名称列表。 获取系统支持的字体名称列表。
...@@ -74,7 +74,7 @@ getSystemFontList(): Array\<string>; ...@@ -74,7 +74,7 @@ getSystemFontList(): Array\<string>;
| 类型 | 说明 | | 类型 | 说明 |
| -------------------- | ----------------- | | -------------------- | ----------------- |
| Array\<string> | 系统的字体名列表 | | Array\<string> | 系统的字体名列表 |
## 示例 ## 示例
...@@ -128,7 +128,7 @@ getFontByName(fontName: string): FontInfo; ...@@ -128,7 +128,7 @@ getFontByName(fontName: string): FontInfo;
| fullName | string | 系统字体的名称。 | | fullName | string | 系统字体的名称。 |
| family | string | 系统字体的字体家族。 | | family | string | 系统字体的字体家族。 |
| subfamily | string | 系统字体的子字体家族。 | | subfamily | string | 系统字体的子字体家族。 |
| weight | number | 系统字体的字重。 | | weight | number | 系统字体的粗细程度。 |
| width | number | 系统字体的宽窄风格属性。 | | width | number | 系统字体的宽窄风格属性。 |
| italic | boolean | 系统字体是否倾斜。 | | italic | boolean | 系统字体是否倾斜。 |
| monoSpace | boolean | 系统字体是否紧凑。 | | monoSpace | boolean | 系统字体是否紧凑。 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册