Link to home
Start Free TrialLog in
Avatar of wint100
wint100Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Silverlight 4 Font Issues on Client Machine

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
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Avatar of wint100

ASKER

I don't think this is a solution, as I'm using the built in font in VS2010.
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.
ASKER CERTIFIED SOLUTION
Avatar of wint100
wint100
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wint100

ASKER

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