(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{397:function(t,e,o){"use strict";o.r(e);var s=o(15),a=Object(s.a)({},(function(){var t=this,e=t._self._c;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"access-local-fonts"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#access-local-fonts"}},[t._v("#")]),t._v(" Access Local Fonts")]),t._v(" "),e("p",[t._v("Foxit PDF SDK for Web uses the "),e("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/Local_Font_Access_API",target:"_blank",rel:"noopener noreferrer"}},[t._v("Local Font Access API"),e("OutboundLink")],1),t._v(" to access local fonts on the user's device. This operation can support more fonts and improve the document display effect on the Web.")]),t._v(" "),e("p",[t._v("It should be noted that this feature can only be used on browsers that support it, such as Chrome 103+ and Edge 103+. Firefox and Safari browsers do not support this. In addition, this feature requires HTTPS to be enabled.")]),t._v(" "),e("h2",{attrs:{id:"authorization"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#authorization"}},[t._v("#")]),t._v(" Authorization")]),t._v(" "),e("p",[t._v("When the user accesses for the first time, the browser will request permission to access local fonts. Users need to manually authorize, otherwise the API will not be able to access local fonts. Foxit PDF SDK for Web will by default pop up a window prompting users to authorize fonts when they first access local fonts. Users can also modify the authorization through the API (PDFviewer#grantQueryLocalFontsPermission), they can choose to prohibit, directly allow access to fonts, or give a pop-up prompt.")])])}),[],!1,null,null,null);e.default=a.exports}}]);