Does FontStretch work

I don't see any difference after FontStretch is applied
Any clue

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<StackPanel>
<TextBlock>Hello</TextBlock>
<TextBlock FontStretch='Condensed'>Hello</TextBlock>
</StackPanel>
</Page>


Answer this question

Does FontStretch work

  • ssouki

    No it was not intentional.

    No, you cannot assign FontStretch = "1.9"

    Thanks



  • KathyKam

    FontStretch is an enum so u can assign values like "0" ,"1".... not decimals.


  • Markus Wos

    Try this:

    <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
    <StackPanel>
    <TextBlock FontFamily="Arial" FontSize="48">Hello</TextBlock>
    <TextBlock FontFamily="Arial" FontSize="48" FontStretch='UltraCondensed'>Hello</TextBlock>
    </StackPanel>
    </Page>

    Not all Font's support FontStretch property.



  • Yang.

    Great,
    Thanks for the answer.

    I noticed your example does not word for UltraExpanded [1]. Is it intentional
    Also, will it be possible to specify a numeric value for stretch
    as in

    FontStretch = "1.9"

    Thanks


    [1]
    <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
    <StackPanel>
    <TextBlock FontFamily="Arial" FontSize="48">Hello</TextBlock>
    <TextBlock FontFamily="Arial" FontSize="48" FontStretch='UltraExpanded' >Hello</TextBlock>
    </StackPanel>
    </Page>

  • Does FontStretch work