#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.

About these ads

About Sean
Software developer in the Twin Cities area, passionate about .NET technologies. Equally passionate about my own personal projects related to family history and preservation of family stories and photos.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 374 other followers

%d bloggers like this: