As designers and developers, we know that great typography is more than just choosing a pleasant font. But what are the practical techniques we can use to take our text to the next level? And how do we execute those techniques in a design tool like Sketch, or implement them on a website?
In this article, I’m going to cover three techniques to boost your typography game: text on a path, hidden OpenType font features, and special characters. These techniques are exciting because few people know how to use them in Sketch, and they can help make your work look more professional. I’ve accompanied this article with a dedicated web page of resources and a gallery of beautiful examples for you to pull inspiration and code from.
Text on a path
These tips are part of Peter Nowell’s Sketch Master courses – take look if you want to further your skills ‘Text on a path’ is when a string of text no longer sits on a flat line but instead wraps around a custom line or shape. This is most effective when the path is a perfect circle or a very subtle arc. The more complex or curved your path is, the more likely your text will look childish – it’s easy to overdo this feature!
In Sketch, text on a path is an old and slightly finicky feature that can be confusing to figure out on your own. The key is to understand how vector paths work under the hood, which applies to both lines and closed shapes. Every vector path has a start point and an end point, and a direction for the computer
to move in while drawing that path.
When you use Sketch’s Vector tool (aka the Pen tool), it’s easy to remember where you began drawing and in which direction you drew your custom path. But for shapes like a circle – which appear to be a continuous path – there’s no obvious way to know the start point or path direction.
Enter Edit mode by selecting the path layer, then hitting the return key. Sketch automatically selects a vector point along the path, and that’s your start point. If you hit the tab key, Sketch will select the next vector point, moving along (and therefore revealing) the path’s direction.
This is important for text on a path because the direction of the path is the direction your text moves in. If the path isn’t moving left-to-right, your text will appear upside down. To reverse the direction of your path, go to ‘Layer > Paths > Reverse Order’ in the menu bar.
Now your path is ready, it’s time to connect it with your text layer. The text layer must be directly above the path layer in the Layers list, and I suggest grouping the two layers to ensure this doesn’t change. Select your text layer, then go to ‘Type > Text on Path’. Next, drag to reposition the text layer around your canvas until the text sits exactly where you’d like it to along the path.
This can take a little time, as the position of the text layer can seem to have little relation to where it appears along the path. Furthermore, Sketch’s rendering engine can stumble when working with text on a path, appearing to crop the text in strange places. A quick zoom in and out again will typically fix this rendering bug.
One last tip for working with Text on a Path: I’ve found that the feature performs best when the path is open like a line, instead of being closed and continuous like a circle. Sketch’s Scissors tool will help you there, and I’ve written a whole article about how to use it.
On your website, you can implement text on a path by using SVG’s element. Sketch doesn’t currently support this feature in exported SVGs, but it couldn’t be easier to add the element yourself. On the resources page you’ll find a CodePen template that will make this easy.
Fancy font features
Within the macOS Fonts panel there’s a hidden menu option to show the Typography panel, providing access to extra font features When you choose a font and start typing, you’re only seeing a fraction of what the font is capable of. Small caps, discretionary ligatures and alternate characters – often known as OpenType features – are just a few of the hidden capabilities.
Most people don’t know that OpenType features are available in Sketch, and even other apps on macOS like iWork. Using Sketch, enter Edit mode on your text layer and ‘Select All’. Next, open the default macOS Fonts panel by going up ‘View > Show Fonts’. The toolbar within the Fonts panel contains a gear icon menu near the left, featuring a mysteriously named ‘Typography...’ option. That’s where the magic happens!
The Typography panel reveals which fancy font features are available for your selected text. For example, at the top you’ll often find a checkbox for ‘Rare Ligatures’ that enables more ornamental letter combinations like ‘Qu' or 'ity'.
There are tons of exciting typographic features that can be included in a font, but here is one more of my favourites: small caps. Small caps are a set of miniature capital letters that are typically the same height as a lowercase letter ‘x’. Using the Typography panel you can convert all lower case letters into small caps, which look great for short captions or the first line of an article.
Things to remember
Although these font features are accessible from within Sketch, they can be slightly finicky. Here’s what you need to be aware of: First, when you are turning features on and off in the Typography panel, you may need to wait a moment or hover over the selected text before the changes take place.
Second, if you change the font size or weight using Sketch’s Inspector, any fancy typographic features will be reset to their defaults; I suggest adjusting these two attributes in the Fonts panel instead. Changing other font-related attributes (such as colour, character spacing or line height) in Sketch’s Inspector won’t affect your typographic features.
Implementing these fancy font features on your website is as easy as adding a few CSS properties, now supported by all major browsers.