Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set custom font to web browser control, windows phone 7/ 7.5

For my windows phone application i need to load a web page(a blog post). So i used a web browser control and set url. Then i needed to add custom font for the web page content. I'm stuck with it. I tried adding "FontFamily" property to the web browser control, but nothing happened. Anybody knows how to do this.

like image 274
Yasas Karunarathna Avatar asked Nov 20 '25 07:11

Yasas Karunarathna


1 Answers

Internet Explorer on Windows Phone 7 and 7.5 does not support custom fonts such as EOT, TTF/OTF and WOFF fonts.

Source on MSDN:

Unsupported Features in Internet Explorer Mobile:
...
Downloadable fonts such as EOT, TTF/OTF and WOFF fonts

Maybe you should download the blog post content and display it in a Silverlight control like the RichTextBox.

like image 137
Olivier Payen Avatar answered Nov 23 '25 18:11

Olivier Payen