wint100
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
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
http://www.dotnetspark.com/kb/1730-font-embedding-silverlight-3-application.aspx
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It seems that you have to 'Embed' the font into the application in blend in order to get it to display properly.