Share via


Glyphs.FontUri Property

Definition

Gets or sets the location of the font used for rendering the glyphs.

public:
 property Uri ^ FontUri { Uri ^ get(); void set(Uri ^ value); };
Uri FontUri();

void FontUri(Uri value);
public System.Uri FontUri { get; set; }
var uri = glyphs.fontUri;
glyphs.fontUri = uri;
Public Property FontUri As Uri
<Glyphs FontUri="uriString"/>

Property Value

An object describing the Uniform Resource Identifier (URI) source of the font. The default is null.

Examples

This example shows how to reference a font file that's included in the Assets folder of a project. To embed a font file in a project, set its Build Action to Content in Microsoft Visual Studio.

glyph.FontUri = new Uri("ms-appx:///Assets/segoeui.ttf");

Applies to