Skip to content
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

[zh-CN]: sync translation for Local Font Access API #23627

Merged
merged 1 commit into from
Sep 18, 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
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/fontdata/blob/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: FontData:blob() 方法
slug: Web/API/FontData/blob
l10n:
sourceCommit: 4458494807b6f4898d504b6c0af0a45f8031cbf3
sourceCommit: d7143e171b5f18fb37a686a7d4947db417fd74f3
---

{{APIRef("Local Font Access API")}}{{SeeCompatTable}}
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/fontdata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: FontData
slug: Web/API/FontData
l10n:
sourceCommit: 4458494807b6f4898d504b6c0af0a45f8031cbf3
sourceCommit: d7143e171b5f18fb37a686a7d4947db417fd74f3
---

{{APIRef("Local Font Access API")}}{{SeeCompatTable}}
Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/web/api/local_font_access_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Local Font Access API
slug: Web/API/Local_Font_Access_API
l10n:
sourceCommit: 4458494807b6f4898d504b6c0af0a45f8031cbf3
sourceCommit: d7143e171b5f18fb37a686a7d4947db417fd74f3
---

{{SeeCompatTable}}{{DefaultAPISidebar("Local Font Access API")}}
Expand All @@ -24,7 +24,7 @@ Local Font Access API 的创建就是为了解决这些问题。
在隐私和安全方面:

- 本地字体访问 API 旨在仅提供对解决上述问题所需的数据的访问。它既不要求浏览器提供可用本地字体的完整列表,也不要求按照磁盘上出现的顺序提供数据。
- 当调用 {{domxref("Window.queryLocalFonts()")}} 时,系统会请求用户授予访问其本地字体的权限。此权限的状态可以通过 {{domxref("Permissions API")}}(`local-fonts` 权限)查询。
- 当调用 {{domxref("Window.queryLocalFonts()")}} 时,系统会请求用户授予访问其本地字体的权限。此权限的状态可以通过 [Permissions API](/zh-CN/docs/Web/API/Permissions_API)(`local-fonts` 权限)查询。
- 你可以使用 {{httpheader("Permissions-Policy/local-fonts", "local-fonts")}} [权限策略](/zh-CN/docs/Web/HTTP/Permissions_Policy)控制对此特性的访问。

## 接口
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/window/querylocalfonts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Window:queryLocalFonts() 方法
slug: Web/API/Window/queryLocalFonts
l10n:
sourceCommit: 89c435da452257b944b403cc9e45036fcb22590e
sourceCommit: d7143e171b5f18fb37a686a7d4947db417fd74f3
---

{{APIRef("Local Font Access API")}}{{SeeCompatTable}}{{SecureContext_Header}}
Expand Down