Skip to content

feat: update WXFont docs #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Design/WXFont.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ WeChatWASM.WX.GetWXFont(fallbackFont, (font) =>
```

## 系统字体字符集

使用GetWXFont加载的字体集合可以在转换面板进行自定义,以减少加载的字体文件大小:

<img src='../image/WXFont.png' width="500"/>

若需要某些特殊Unicode/仅需要部分Unicode,可以直接将需要的字符全部填入自定义Unicode中。

Unicode集合参考:

```js
// https://unicode.yunser.com/unicode
const unicodeRange = [
Expand Down
Binary file added image/WXFont.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading