locked
Silverlight FontWeight Issue RRS feed

  • Question

  • Hi,

    I am using "Trebuchet MS" font and fontsize 11 for my HyperlinkButtons. But the font weight looks too heavy as compared to the way it looks on a standard HTML page. I was wondering if there is any way to make the font size look thinner.

    I am using Silverlight 2 and I have already tried FontWeight="Thin" and FontWight="Light" but it did not have any impact on the heavyness of the font.

    Please Help.

    - Sach

    Friday, January 9, 2009 1:48 AM

Answers

  •  Hi Sach,

    You can try to JavaScript API for Silverlight: Run to represent a discrete section of formatted or unformatted text.

    The more you can refer this MSDN article: http://msdn.microsoft.com/en-us/library/bb980106(VS.95).aspx

     

     

    Tuesday, January 13, 2009 4:30 AM

All replies

  •  Hi,

    I checkd out fontweight issue, yeah, its only worked out Bold, ExtraBold. Other things are nothing changed. May be these links are help to you, http://silverlight.net/forums/p/31387/101596.aspx#101596, http://silverlight.net/forums/p/5904/18366.aspx#18366.

    Thanks

    Elango

    Friday, January 9, 2009 4:17 AM
  • Thanks Elango for your response

    I saw the resolution suggested in the links given and found that utlimately the FontWeight property is being set using various values of FontWeights enum  (e.g FontWeights.Thin, FontWeights.Light etc.)

    I've already tried using "FontWeights" enum values, but it had no impact on the link content.

    Is there any other way to make the font look thinner.

    Thanks
    Sach

    Monday, January 12, 2009 12:29 AM
  •  Hi Sach,

    You can try to JavaScript API for Silverlight: Run to represent a discrete section of formatted or unformatted text.

    The more you can refer this MSDN article: http://msdn.microsoft.com/en-us/library/bb980106(VS.95).aspx

     

     

    Tuesday, January 13, 2009 4:30 AM