While font embedding is restricted to fonts located within your app’s XAP file, the
FontSource property of the
PasswordBox allows you to download the font using an external data source, such as a cloud service.
FontSource class requires a
Stream of font data. The following example takes the same embedded font used in the previous example and provides it to a
FontSource property via a
Stream, using the
Application.GetResourceStream method as shown:
Uri fontUri = new Uri("ControlExamples/Fonts/orbitron-medium.ttf", UriKind.Relative);StreamResourceInfo resourceInfo = ...