Within my application, I am utilizing a UIWebView to display HTML content. This content is retrieved from a server and then saved in the iPad's local file system to support offline access. The HTML content includes specialized fonts declared with @font-face in its CSS stylesheet:
@font-face {font-family: 'CustomFont'; src: url(Custom-Font.otf);}
In order for this functionality to function properly, the font file with a .otf extension must also be downloaded and stored within the iPad's file system.
An issue arises when considering the accessibility of the font file on the iPad's file system, which can pose legal concerns as many font providers restrict unauthorized distribution of their fonts (which may occur using this method).
My inquiry pertains to whether there exists a means by which I can encrypt these fonts within the file system and decrypt them as needed during the loading process within the UIWebView?