Curved Text
Also known as: Text on a Path, Type on a Path
What Is Curved Text?
Curved text is type whose baseline follows a circle, an arch, a wave or any other path instead of a straight line, as on round badges, seals and logos. Design tools set it in one of two ways: wrapping turns each letter to follow the curve and keeps its shape, while warping bends the letters themselves along with the line.
See where the extra room goes on a curve
Switch between wrapping and warping, then compare the letter tops with their feet on each line. To curve text in a real editor, open the Design Editor demo, select a text block and pick Path in the inspector bar.
Room at the letter tops, compared with their feet
- Top line
- 15% more room
- Bottom line
- 13% less room
What you see: The letters keep their shape, so the gaps open at the tops of the top line and close up on the bottom line.
In CE.SDK: Two text blocks on one circle path, the bottom one flipped and slid halfway round.
Why Does Curved Text Look Unevenly Spaced?
Curved text looks unevenly spaced because the top and the foot of each letter sit on circles of different sizes. When the letters point away from the center of the curve, the circle through their tops is longer than the one through their feet, and when they point toward the center it is shorter. The difference has to go somewhere: into the gaps between the letters when the text is wrapped, or into the letters themselves when it is warped.
Gaps open toward the tops when letters point outward
On the top line of a badge, the letters stand on the circle and their tops reach out past it. With the cap height at 15% of the circle’s radius, the medium size in the tool above, the tops get 15% more room than the feet, so each gap widens toward the outer edge like a wedge.
Letter tops crowd together when they point inward
A bottom line flipped to read upright hangs below the circle with its tops pointing in, toward the center. At the same size its tops get 13% less room than its feet, so they close up while the feet spread apart.
Warped letters stretch instead
Warping keeps the length of the baseline and stretches everything above it, so a letter pointing outward widens toward its top and its strokes get thicker. The Google Fonts guide to curved type shows this on the stems of an E and a D and keeps warping for logo work.
How Do You Keep Curved Text Even?
Keep curved text even by fitting the letter spacing, the text size and the path to the curve, and by splitting a full circle into two lines that both read upright. The Google Fonts guide suggests trying different tracking for each curve and size, because no single value suits all of them.
-
Open the spacing where the tops crowd
Add a little letter spacing to text whose tops point toward the center of a curve, such as the flipped bottom line of a badge, so its letter tops do not run together.
-
Set short lines in capitals
Capitals share one height and similar shapes, so the gaps between them change evenly around a curve.
-
Flip the bottom line of a circle
One line set all the way around a circle ends up upside down along the lower half. Split it in two and flip the bottom half so it runs the other way round.
-
Keep the text shorter than the path
Text longer than its path runs off the end or, in some apps, wraps back along the other side, so shorten the words or enlarge the curve.
-
Match the text size to the curve
Bigger text and a tighter curve both widen the difference between tops and feet. In the tool above it grows from 8% to 24% between the small and large sizes.
-
Keep the path smooth
Tight bends squeeze the letters on their inside. Esri's map software smooths out the bends of a river before it sets the river's name along it.
When Should You Use Curved Text?
Use curved text when the words should follow a shape, such as the edge of a round label or the line of a river on a map. A coffee roaster’s round sticker label, for example, can run the shop name in capitals around the top and ROASTED DAILY flipped along the bottom.
| Use | Why | |
|---|---|---|
| A round badge, seal or sticker label | Two lines on a circle, the bottom one flipped | Both lines read left to right, the right way up |
| A name arched over a logo or icon | An arch | The words frame the mark without covering it |
| A playful title | A wave | The words rise and fall instead of sitting level |
| A river or coastline on a map | A smooth path along the feature | The name follows what it labels |
| A logo with a bent, stylized look | Warped text | The letters bend, so the shape becomes part of the look |
How Curved Text Works in CE.SDK
CE.SDK sets any text block along a single SVG path, and your users curve text from the Path control in the web, iOS and Android editors. It offers ready-made curves such as Circle, Arch and Wave, a Path Position of Top, Center or Bottom, a Direction setting that flips which way the text runs, and an Offset that slides it along. Each letter turns to follow the path and keeps its shape, and the words stay editable text.
Set the top line on a circle
Give a text block a circle path, then set its size, since the path scales with the block. Top alignment stands the letters on the outside of the circle, centered over the top.
// A circle 600 units across, starting at its bottom and running clockwise.
const circle = 'M 300,600 A 300,300 0 1,1 300.01,600 Z';
const top = engine.block.create('text');
engine.block.appendChild(page, top);
engine.block.replaceText(top, 'NORTHBANK COFFEE');
engine.block.setTextFontSize(top, 18);
engine.block.setTextOnPath(top, circle);
// The path scales with the block, so size the block after setting the path.
engine.block.setWidth(top, 600);
engine.block.setHeight(top, 600);
engine.block.setPositionX(top, 100);
engine.block.setPositionY(top, 100);
// Center the words at the top, standing on the outside of the circle.
engine.block.setEnum(top, 'text/horizontalAlignment', 'Center');
engine.block.setEnum(top, 'text/verticalAlignment', 'Top'); Flip a copy along the bottom
A copy keeps the circle, the size and the position. Flipping it reverses its direction so it reads upright, an offset of 0.5 slides it halfway round to the bottom, and a little letter spacing opens up the tops that crowd together there.
// A copy keeps the circle, size and position. Give it its own words.
const bottom = engine.block.duplicate(top);
engine.block.replaceText(bottom, 'ROASTED DAILY');
// Flip it so it reads left to right, then slide it halfway round.
engine.block.setTextOnPathFlipped(bottom, true);
engine.block.setTextOnPathOffset(bottom, 0.5);
engine.block.setEnum(bottom, 'text/verticalAlignment', 'Bottom');
// The tops of these letters crowd together, so open the spacing a little.
engine.block.setFloat(bottom, 'text/letterSpacing', 0.05); FAQs
No. Curved text usually means wrapped text, where each letter turns to follow the curve and keeps its shape. Warped text bends the letters themselves, so their strokes widen or narrow with the curve. CE.SDK text on a path wraps.
Set the text on a circle path. A single line reads upright over the top of the circle and upside down along its lower half, so round badges usually split the words into two lines: one around the top and one flipped along the bottom.
The top and the foot of each letter sit on circles of different sizes. When the letters point away from the center of the curve, the tops get more room than the feet, so the gaps open toward the tops. When they point toward the center, the tops get less room and crowd together.
Put the bottom words in a second line and flip it, so it runs the other way round the circle and reads the right way up. In CE.SDK, your users set that line’s Direction to Reversed and slide it round to the bottom with Offset.
Yes. In CE.SDK the words stay live text on the path, so your users can retype them or change their size and the letters follow the curve. Line breaks turn into spaces while the text sits on a path.
Links
Documentation and references for this concept.
Text on a Path
Curve text along a preset shape or your own SVG path, then flip it or slide it along the curve.
Creative Editor SDK
Gives your users a Path control for curving any text block in the editor.
Design Editor Demo
Try the Curved Text presets in the Text panel of the Design Editor in your browser.
Related Terms
Text Effects
Visual treatments that change how type looks without changing the words: shadows, outlines, glows, boxes behind the text…
Kerning vs Tracking
The two settings for the space between letters. Kerning adjusts a single pair whose shapes leave a gap, like W and A, us…
Shape
The geometric boundary and clipping area of a graphic block: one of several types: Rect (optionally with rounded corners…



