Silverlight 4 Font Issues on Client Machine

wint100
wint100 used Ask the Experts™
on
I've developed an SL4 app with various textblocks on the page, in a ViewBox. On my dev machine and home PC, the app looks fine, with text weight and size correct.

On some fresh PC's, with W7 or XP, the Font weight seems to go Bold, and is not fitted into the page correctly. The Viewbox is there to fit the tect into any screen resolution, which works well on most machines, but others seem to distort the text.

I haven't been able to nail it down to any single difference on the machines, but wondered if the lack of .NET 4.0 would have an affect. Is something missing from the SL4 runtime, which is needed for the viewbox to function properly.

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I don't think this is a solution, as I'm using the built in font in VS2010.
Vaughn BighamSr. Software Engineer / Architect

Commented:
I wonder if the texthintingmode can help at all?

http://msdn.microsoft.com/en-us/library/system.windows.media.textoptions.texthintingmode(VS.95).aspx

Also, I had found out that apparently SL renders fonts differently in different browsers, and differently based on windows ClearType setting (SL 3, and 4).  This was very disapointing for me since one of the reasons that I starting using SL was so that it would render the same across browsers and platforms, which for the most part it does except for the fonts being problematic.

I don't know if you will find a really good solution for now but maybe embedding your own font will help since the font you want will be included rather that trying to use whatever the client has that is close to the desired settings.
Commented:
Hi,

I found that the font 'Goudy Old Style' is not present in silverlight. I changed this Times New Roman and the problem went away.

Still unsure why it was ok on some machines though.

Author

Commented:
It seems that you have to 'Embed' the font into the application in blend in order to get it to display properly.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial