1
votes

I want to apply multiple font family, where one font is on the server and another is installed on local machine.

For instance I want to use Times New Roman (installed on local machine) with my uri of custom font

 textblock.FontFamily=new FontFamily(new Uri("Protocol://Path-of-Custom-Font"),"")

where should I place Times New Roman so that I can use multiple fontfamily???????

thankyou

1
What was your requirement, is it need to apply different fonts for a single Textblock?Sankarann
yes what i required is, if a font family is not in custom url then locally installed font is appliedAmrit Pal Singh

1 Answers

0
votes

Simple: It won't work.

MSDN documentation states that

WPF applications do not allow a font reference to an http or ftp uniform resource identifier (URI).