#334 – Specifying Values for FontFamily

The FontFamily property of a Control indicates what typeface the control’s text should be rendered in.  The value of the property can be the name of any of the fonts currently installed on the system where a WPF application is running.  In Windows 7, there are a number of fonts installed by default that can be assumed to always be present.

        <TextBlock Margin="20,20,20,0" FontSize="18" FontFamily="Candara" TextWrapping="Wrap">
            Freedom is never voluntarily given by the oppressor; it must be demanded by the oppressed.<LineBreak/>
            --Martin Luther King, Jr.
        </TextBlock>

        <TextBlock Margin="20,40,20,0" FontSize="18" FontFamily="Constantia" TextWrapping="Wrap">
            Freedom is never dear at any price. It is the breath of life. What would a man not pay for living?<LineBreak/>
            --Mohandas Gandhi
        </TextBlock>

Advertisements

About Sean
Software developer in the Twin Cities area, passionate about software development and sailing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: