Yasas Karunarathna
Yasas Karunarathna

Reputation: 391

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.

Upvotes: 3

Views: 1109

Answers (2)

ColinE
ColinE

Reputation: 70142

The list of fonts supported by the Windows Phone IE browser can be found here. These are the only fonts available to you, there is not way to specify or load different fonts. The font used to render the page is dictated by the HTML / CSS, not the FontFamily property of the WebBrowser control.

Upvotes: 1

Olivier Payen
Olivier Payen

Reputation: 15268

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.

Upvotes: 1

Related Questions