Hello,
Welcome to our Microsoft Q&A platform!
Where is your html page? In local storage or Assets folders?
Here is the step to load custom font in webview.:
- create fonts folder in
Assets
folder and put yourfont(ttf,otf)
file inAssets/fonts
folder. - Build action of font file :
AndroidAsset
, Copy to output directory: Always copy - initialize html string for webview i.e You can refer to this thread: https://forums.xamarin.com/discussion/33404/set-custom-font-in-webview
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.