Glyphs.FontUri property

Applies to Windows and Windows Phone

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

Syntax


public Uri FontUri { get; set; }


<Glyphs FontUri="uriString"/>

Property value

Type: System.Uri [.NET] | Windows::Foundation::Uri [C++]

An object describing the 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 it's Build Action to Content in Visual Studio.


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


Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Documents
Windows::UI::Xaml::Documents [C++]

Metadata

Windows.winmd

See also

Glyphs

 

 

Show:
© 2014 Microsoft