Search code examples
silverlightwindows-phone-7webbrowser-controlcustom-font

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.


Solution

  • 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.