Access Local Fonts ​
Foxit PDF SDK for Web uses the Local Font Access API to access fonts installed on the user’s device. This supports more fonts and improves document display in the browser.
Note that this feature is only available in supported browsers such as Chrome 103+ and Edge 103+. Firefox and Safari do not support it. HTTPS is also required.
Authorization ​
On first use, the browser prompts the user to grant permission to access local fonts. The user must approve manually; otherwise the API cannot read local fonts. The SDK shows a default prompt on first access. You can also change authorization through PDFviewer#grantQueryLocalFontsPermission, choosing to block access, allow fonts directly, or show a confirmation dialog.