How to get web font when iOS is in Lockdown mode for Maui+Blazor?

An Liu 0 Reputation points

We currently use Poppins as the font and bundle the "woff" files locally.

It works well in general mode.

But the URL in src doesn't work when the ios uses Lockdown mode.

How to get Poppin in Lockdown mode?User's image

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,847 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce ( 44,076 Reputation points

    you would download and add the font to the Maui project as a resource. Then edit the Maui app to register the font. Then the Blazor CSS references the font by the installed name not as a web resource. You could also just use a fonts folder and reference locally.

    note: it is probably poor design to require an internet connection to display a Blazor page. I would not use any links that were not local resources.