#265 – Specifying Values for FontStyle

You can specify a number of different values for the FontStyle property of a Control, to indicate whether you want an italic (slanted letters) style.

The different possible values for FontStyle are:

  • Normal – Regular text, not slanted
  • Italic – Standard italic font
  • Oblique – Slant the letters so that they appear italic.

The Oblique choice is typically used when the font being used doesn’t have an italic variant.

The three font style choices are shown below, for the Arial typeface.  (Arial does have an italic variant).

Here’s another example, for the Georgia typeface.  Notice that the Italic version looks a little more professional, while the Oblique variant just slants the letters, relative to the Normal style.

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: