Scott Hanselman

Making awesome Wedding documents using OpenType Ligatures and Stylistic Sets in Microsoft Word 2010 and Gabriola

August 2, '11 Comments [20] Posted in Tools
Sponsored By

ligaturesmallMy brother-in-law is getting married in a few weeks and  since I'm the default IT guy for the family, I'm making CDs with CD-TEXT for the guests amongst other things. One of those other things is doing the Agenda for the day as well as the Menus that appear on the guests' tables. Anyone can bang out a simple document in word and/or pick a wacky font, but I wanted to try something a little different.

Microsoft Word 2010 includes advanced support for OpenType Fonts, not just TrueType fonts. One of the cool things in OpenType and Word is the support for ligatures. From Wikipedia:

"In writing and typography, a ligature occurs where two or more graphemes are joined as a single glyph."

For example, here's lowercase "fi" and lowercase "fl" first without ligatures, and then with:

The characters fi and fl without ligatures, then with

See how the two letters flow together with ligatures? Here's more examples with words like "office," "afflict," and "fine flavor."

More fi and fl words with ligatures applied

Open Ligatures are really visible (and mind-blowing if you've expected fonts to work a certain way for 20 years like me) in complex scripts like Gabriola, one of the many new fonts that comes with Windows 7. The Gabriola font is filled with advanced Open Type features.

The letterforms will change based on the context of the other letters around them. For example, notice how the second m in the word murmur gets out of the way of the r that would otherwise encroach on its space? It's different from the first m.

The word "murmur" in Gabriola

This is just the default behavior, but with Word 2010 you can control it from the Advanced Tab in the Font Menu. For example, I wanted to create a wedding menu so here's the first few lines with the defaults for Gabriola:

image

Now, I'll right click on Menu and select Font, then Advanced. There are a number of Stylistic Sets, depending on which font you're using. I liked the look of Set 6.

The Advanced Font Menu in Word 2010

Next,  for the second and third lines I changed to Stylistic Set 5 with Contextual Alternates to give me more options. Compare the two side by side! So much has changed, some subtle, some not. Notice the captial S's, the lowered C, the additions to the L and the tail on the small n and p?

The menu with the default sets The same menu lines with a nicer stylistic set

 

There's a lot of choices that you can make to get the look you want, and of course, this is just the Gabriola font we've see so far!

Magic Unicorns

The font will even change based on where it appears on a line, for example, the word amazon at the start, middle and end (taken from this article by John Hudson, the font designer):

 

Amazon in three styles

Additionally, this all happens as you type. You have to see it to believe it. I made an animated GIF at the top for you to get the idea. This might seem very weird to English/Latin speakers, but if you have ever typed in Hindi or Arabic you're already used to dynamic ligatures as you type.

Word 2010 also support different modes for numbering, like Old-Style Number Forms. Notice how the numbers' baselines are different on the second line and their sizes have been adjusted?

1234567 first aligned to the top, then along a baseline. Note the smaller "2"

All very cool stuff just sitting there in Word 2010 for you to use. Enjoy!

All very cool stuff just sitting there in Word 2010 for you to use. Enjoy!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. I am a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web
Tuesday, August 02, 2011 7:09:31 PM UTC
Damn it Scott! It's my wedding on Saturday and I've just done guillotining and sticking all of the table names. Why couldn't you have blogged this 3 days ago! ;-).
Tuesday, August 02, 2011 8:14:10 PM UTC
Very cool stuff, but the Making CDs link appears to be dead. 0_o
Tuesday, August 02, 2011 9:34:50 PM UTC
Arcond - Fixed that link, thanks!

Adam - ;)
Tuesday, August 02, 2011 10:48:15 PM UTC
Awesome! I had no idea. Thanks for yet another great article!
Tuesday, August 02, 2011 10:58:19 PM UTC
w00t! Thank you sir!
Tuesday, August 02, 2011 11:33:29 PM UTC
Awesome. I am so surprised I am so interested in fonts. I want to get a hold of the documentary film <a @href="http://en.wikipedia.org/wiki/Helvetica_(film)">Helvetica</a>.
Wednesday, August 03, 2011 1:15:27 AM UTC
Cool this is one of those articles I know at some point I will be searching for again to make use of.
Wednesday, August 03, 2011 3:51:33 AM UTC
Great article, but I'm on Windows 7 with Word 2010, and I only have Gabriola installed as a TrueType font. Did I mess something up?
Wednesday, August 03, 2011 4:22:57 AM UTC
Who knew magic unicorns could look so good?
Wednesday, August 03, 2011 4:35:23 AM UTC
Never mind; my document needed to be upgraded from Word 2007 to 2010 compatibility. Thanks for the article!
Wednesday, August 03, 2011 4:48:49 AM UTC
Very cool! Let's hope this won't be abused like how Comic Sans has changed the world. ;-)
Wednesday, August 03, 2011 8:33:07 AM UTC
Is there like a font browser or an index where you can find which fonts have great "subsets"?
Wednesday, August 03, 2011 11:49:34 AM UTC
I'm fairly certain this is the first time I've tagged a particular web page on delicious.com with both the tags "fonts" and "romance". :-)
Wednesday, August 03, 2011 12:23:50 PM UTC
Cool! There's even CSS support!

http://dev.w3.org/csswg/css3-fonts/#font-variant-ligatures-prop

https://hacks.mozilla.org/2010/11/firefox-4-font-feature-support/

There goes my weekend...
Wednesday, August 03, 2011 7:41:45 PM UTC
Does this work in any other software besides Word? Photoshop or Gimp for example?
Wednesday, August 03, 2011 7:44:46 PM UTC
Adam - The magic is in two places, first the OpenType fonts, and second the software. If PhotoShop and Gimp support OpenType, then yes. It's not Word magic, it's OpenType magic...the user of the typeface has to support the extended feature set though.
Wednesday, August 03, 2011 9:39:41 PM UTC
Phong Lê, Gabriola is an OpenType font in TrueType ‘flavour’. This is a little confusing, I know, but a font with OpenType Layout capabilities can have either a .ttf or .otf file extension. OpenType is essentially an extension of the TrueType file format, but can contain either TrueType or PostScript outline data.
___

Scott, it looks like in a couple of your examples you have applied a bold setting to Gabriola. Please don't do this: Gabriola is a single weight typeface, which means that if you apply Word's bold function to it what you get is a fake bold which distorts the proper relationship of thick and thin strokes in the design. To differentiate different text elements, I recommend using different sizes or different stylistic sets.

Glad you like the font, and thanks for posting this information about it. It is always interesting to see how my typefaces are used and how word of them spreads. Oh, and congrats to your brother-in-law.
Tuesday, August 09, 2011 2:57:50 PM UTC
Seriously, I just got married last month and we did all the printing ourselves. Knowing this stuff would have saved me hours of "this font is cool but doesn't look quite right". Had I known about stylistic sets and ligatures...
Thursday, August 25, 2011 1:30:50 AM UTC
I love all things fonts and typography, but I detest Microsoft Word. And darnit, now your post has given me a reason to start liking Word again! Perhaps. ;)
Sunday, January 01, 2012 10:18:21 PM UTC
very nice article, I have no idea
Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.