“Fit text” makes sure that a text fits into its space. If a line is too long, Stylo condenses the type a little and reduces its size if necessary. If there is too much text for the frame, Stylo makes everything smaller until it fits. And if there is room to spare, Stylo can also enlarge the type until the line or the frame is filled. You set this up in the paragraph style, on the Fit text tab.
What fitting is for
Space in ads is tight and the text changes: a name is sometimes short, sometimes long, a price has three digits or four. Without fitting, a long name breaks onto the next line and the layout falls apart. With fitting, the type adapts:
- No unwanted line breaks. A headline stays on one line even when the text gets longer.
- No overset. The text fits into the frame instead of the end being cut off.
- Filled areas. Short text gets bigger so that a badge, a button or a line does not look half empty.
- Ideal for templates. When customers enter their own texts or ads are generated from data, the type adapts without any manual work.
- With limits. You decide how far Stylo may go. The type never becomes illegibly small or distorted.
A typical example: An obituary has one line for the name. “Anna Berg” fits easily, “Maximilian von Hohenstein-Wartenberg” does not. With “Fit text” the long name is set slightly narrower and stays on one line. The short name stays as it is.
More examples:
- a price in a round badge that should look equally good at “€9.99” and at “€1,299.00”,
- a button “Order now” that should fit on one line in every language,
- a text block that has to fit into a frame of fixed height, no matter how much the customer writes,
- a stacked headline such as “SUMMER” ↵ “CLEARANCE”, where every line exactly fills the frame width.
Two means: font width and font size
Stylo adjusts in this order:
- Font width: The letters become narrower (or wider), the height stays the same. Small changes are hardly noticeable. This is the gentler means.
- Font size: If the font width is not enough, the type gets smaller.
When enlarging (“Fill line”, “Fill frame”) it is the other way round: the font size grows first, because larger type looks more natural than type that has been stretched.
You set limits for both. If the limits are not enough either, Stylo goes up to the limit and lets the rest break onto the next line or remain as overset. It never becomes illegibly small.
The word “Sommer” in five versions: original, font width 85% (narrower, same height), font size 70% (smaller), font width 115% (wider, same height), font size 130% (larger)
The text itself and the font size you set do not change. If the text becomes shorter again, Stylo undoes the fitting by itself.
Switching fitting on
The easiest way is the command palette:
- Place the text cursor in the paragraph (or select several paragraphs).
- Press Ctrl+K (Mac: ⌘K), type “fit” and choose one of the two commands:
| Command | Line too long | Line too short |
|---|---|---|
| Fit text (font size + width) | first narrower down to −20%, then smaller down to −40% | first larger up to +80%, then wider up to +40% |
| Fit text (width only) | narrower down to −20% | wider up to +40% |
Both commands bring every section (text up to Shift+Enter or the end of the paragraph) onto one line. To do this they set the target to “Each line on one line” (with “font size + width” also “Fill line”) and set their limits, even if the paragraph style has different ones. With “width only” the font size stays unchanged. A message names the values set, and Adjust … takes you straight to the “Fit text” tab to change them.
If there is not enough room, the line still wraps, and the “Fit text” tab reports that a limit has been reached.
The commands are toggles: the command currently in effect has a check mark in the command palette. Call it again and it switches fitting off; the limits remain. Call the other command and Stylo switches straight to its settings.
For the whole text of a frame there is Fit text to frame (also in the command palette): Stylo adjusts all paragraphs of the text flow so that together they fit into the frame. To do this, Stylo sets the target of every paragraph to “Frame height”, even if the paragraph style has a different target. If you switch it off again, the target “Frame height” remains; only the fitting is off. The command skips frames that grow with the text, because there is no height the text would have to fit into. It also skips chained text frames (see “Frame height” below). If there are only such frames, the command is greyed out and its hint says why.
Both commands work on the individual paragraph, not on the paragraph style. If you then change the paragraph style in the paragraph catalog, these settings on the paragraph may be lost. If fitting should apply to all paragraphs of a style, set it in the paragraph style.
You set everything in detail in the paragraph style: open the “Paragraph” dialog, Fit text tab. The settings there apply to all paragraphs of this style or, on an individual paragraph, only to that paragraph.
The “Fit text” tab
Fit automatically
The checkbox switches fitting on. If no limits have been entered yet, the tab suggests the default when you tick it: font width “max. −” 10%, font size “max. −” 30%. You can change the values right away.
Target
| Target | Effect |
|---|---|
| Each line on one line | Every section of the paragraph should fit on one line. A section ends at the end of the paragraph or at a line break (Shift+Enter). Next to it is the checkbox Fill line. |
| At most … lines | The paragraph may have at most as many lines as you enter in the Lines field (1 to 99). If you choose this target and the field is empty, the tab suggests 2. Without a number, the target works like “Each line on one line”. |
| Frame height | The text should fit into the frame. This only works for frames with a fixed height or a maximum height, and only in a single frame. If the frame grows with the text or is chained to other text frames, the target works like “Each line on one line”; a yellow line on the tab says so. Next to it is the checkbox Fill frame. |
Example headline on two lines: target “At most … lines”, lines 2. A short headline stands on one line at full size, a long one is reduced just enough to fit on two lines.
With line breaks (Shift+Enter) you divide a paragraph under “Each line on one line” into several lines that are each fitted on their own, for example “Big” ↵ “Summer Sale”.
Font width
| Field | Meaning |
|---|---|
| max. − (%) | How much narrower the type may become, e.g. 10% (at most 95%) |
| max. + (%) | How much wider a line that is too short may become so that it fills the width. With “Fill line” the font width only takes the rest that the font size cannot manage. 0 = never wider |
Font size
| Field | Meaning |
|---|---|
| max. − (%) | How much smaller the type may become when the font width is not enough (at most 95%) |
| not below (pt) | Smallest permitted font size, regardless of what the percentage limit allows |
| max. + (%) | Only with “Fill line” or “Fill frame”: how much larger the type may become |
| not above (pt) | Only with “Fill line” or “Fill frame”: largest permitted font size |
For “Font size max. +” and “not above”, 0 (or an empty field) means: no limit. Careful, for “Font width max. +” it is the other way round: there 0 means never wider.
The fields are already called “max. −” and “max. +”: a minus sign you type changes nothing, “−10” in “max. −” also means 10%. If “not below” is larger than “not above”, the dialog reports this when you apply and applies nothing.
Example: font size 24 pt, “max. −” 30%, “not below” 18 pt. By calculation the type could shrink to 16.8 pt, but “not below” holds it at 18 pt.
Fill line
This checkbox is available with the target “Each line on one line”. If a section is shorter than the line, the type gets bigger until it fills the line. First the font size grows up to its limits (“max. +”, “not above”). If that is not enough, the font width takes the rest, up to “Font width max. +”. Sections that are too long are fitted as usual.
Example stacked headline: a paragraph “SUMMER” ↵ “CLEARANCE” ↵ “SALE” with target “Each line on one line” and “Fill line”. Every word becomes just big enough to fill the width of the frame. The short “SALE” becomes much bigger than the long “CLEARANCE”, which creates the typical poster look.
Fill frame
This checkbox is available with the target “Frame height”. Short text gets bigger until it fills the frame. This only works for frames with a fixed height. Only the font size is enlarged, not the font width.
Example badge: a round badge of fixed size with the text “New”. With “Fill frame”, “New” becomes big enough to fill the badge. If “Now new in our range” is in it later, the type gets smaller until everything fits.
Fit group
If you enter the same group name in several paragraphs, they all get the same value, even in different frames. The paragraph that has to be fitted most decides. This also applies when filling: no paragraph of the group gets bigger than the one with the least room to grow.
Example: three buttons side by side, “Info”, “Book” and “Order now”. With the fit group “Buttons” all three have the same font size, instead of “Info” being huge and “Order now” tiny.
Uniform
The checkbox is next to the fit group and applies to the target “Each line on one line” (it is hidden for the other targets). Without it, every line is fitted on its own: short lines stay big, long ones get narrower. With it, all lines of the paragraph get the same value, that of the longest line. This looks calmer, for example for an address over several lines. For the poster look with “Fill line”, leave it off.
Text across several frames or columns
If a fitted paragraph runs across chained text frames or columns of different widths, Stylo adapts every line to the width of the frame it is in. If a line slips into a narrower or wider frame, it is rebroken and refitted there. If it does not fit there, it stays in the previous frame.
The target “Frame height” does not apply in chained frames (see above); “Each line on one line” and “At most … lines” work there as usual.
Examples
The following examples each show the settings on the “Fit text” tab and what happens to the text. The pictures are calculated with the Roboto font: on the left or at the top the text without fitting, on the right with fitting, and below the values reached. The dashed line is the text frame, the red box with “+” shows overset. How strongly the text is fitted depends on the frame width and the font in each case.
1. Single-line headline
| Setting | Value |
|---|---|
| Target | Each line on one line |
| Font width max. − | 15% |
| Font size max. − | 40%, not below 16 pt |
Text: “Huge End-of-Summer Clearance Sale” at 36 pt. Without fitting it breaks onto a second line and is overset. With fitting it first becomes narrower (font width 85%), then smaller (23.8 pt), and stays on one line.
A short text such as “Summer Sale” would stay unchanged. If it should still fill the line, also tick Fill line(see example 2).
2. Stacked headline with “Fill line”
| Setting | Value |
|---|---|
| Target | Each line on one line, Fill line on |
| Font width max. − / max. + | 15% / 10% |
| Font size max. − / max. + | 30% / 200%, not above 120 pt |
| Uniform | off |
Text: “SUMMER” ↵ “CLEARANCE” ↵ “SALE” at 30 pt, with a line break (Shift+Enter) between the lines.
Every line fills the frame width: “SUMMER” grows to 40.2 pt, “SALE” to 71.1 pt, while “CLEARANCE” already fills the width at 30 pt and stays unchanged. If a line reaches “max. +” or “not above”, the font width takes the rest up to +10%; if that is not enough either, the line stays slightly shorter than the frame.
3. Headline on at most two lines
| Setting | Value |
|---|---|
| Target | At most … lines, lines 2 |
| Font width max. − | 10% |
| Font size max. − | 50%, not below 12 pt |
Text: “Bright and spacious top-floor apartment with south-facing balcony” at 28 pt. Without fitting it needs four lines. With fitting it fits on two: font width 90%, size 20.2 pt.
4. Badge with “Fill frame”
A round badge with a fixed height, not chained.
| Setting | Value |
|---|---|
| Target | Frame height, Fill frame on |
| Font size max. − / max. + | 50% / 300%, not below 10 pt, not above 60 pt |
The same badge once with “New” and once with “Now new in our range”, starting size 20 pt.
“New” grows to 40.7 pt until the text frame inside the badge is filled. “Now new in our range” is reduced to 19.7 pt until it fits. The badge itself keeps its size.
5. Buttons with a fit group
Three buttons side by side, each its own text frame of the same width: “Info”, “Book”, “Order now”.
| Setting | Value |
|---|---|
| Target | Each line on one line, Fill line on |
| Font size max. − / max. + | 30% / 50% |
| Fit group | Buttons |
Without a group, “Info” and “Book” grow to 21 pt, while “Order now” reaches only 19.4 pt; the row of buttons looks uneven. With the group all three buttons get 19.4 pt, the size of the button with the longest label.
6. Text block of fixed height
A frame with a fixed height for opening hours, not chained.
| Setting | Value |
|---|---|
| Target | Frame height |
| Font width max. − | 10% |
| Font size max. − | 30%, not below 8 pt |
Text: “Mon–Fri 9 am–6 pm” ↵ “Sat 9 am–2 pm” ↵ “Closed on Sundays and public holidays” at 14 pt.
Without fitting the last line no longer fits. With fitting everything is inside the frame: font width 90%, size 12.9 pt. If the limits are not enough, the tab reports “Text does not fit the frame: limits reached, overset.”, and “Check ad” shows the spot.
Tip for multilingual templates: set the limits for the longest language version and check the template once with each version.
Seeing what happened
- On the “Fit text” tab you see for the paragraph how far it was fitted (with a text selection, for the paragraph at the start of the selection), for example “Fitted: font width 87%” or “Text does not fit the frame: limits reached, overset.” After filling it says “Filled: font size …”; if the font width took over a rest, “, font width …” follows.
- In the status bar you see the values of the line at the text cursor, for example “Font width 87% · Size 10.6 pt”. If Stylo only changed the font size, only “Size …” is shown. A yellow “does not fit” means: the limits are not enough. The tooltip names the limit or, for “Frame height” and “At most … lines”, says that the text does not fit.
- In the paragraph catalog the line with the deviations also names the fit settings, for example the font width limit or the target.
- “Check ad” reports paragraphs that do not fit despite fitting: “Text does not fit despite fitting”.
Frequently asked questions
I ticked “Fit automatically”, but nothing happens. Check the limits: if “max. −” is 0 for font width and font size, Stylo is not allowed to change anything (that is why the tab suggests a default when you tick the box and the fields are empty). For “Frame height” and “At most … lines” only reducing helps; “Font width max. +” alone is not enough there. Or the text already fits.
“Frame height” has no effect. The frame grows with the text (variable height without a maximum height); then there is no limit to fit against, and Stylo fits as with “Each line on one line”. Set a fixed height or a maximum height. Or the frame is chained to other text frames: there “Frame height” never works; remove the link if the text should fit into a single frame. In both cases the “Fit text” tab shows a yellow line.
I called “Fit text” and now fitting is off. The command toggles: if it was already in effect for the paragraph (check mark in the command palette), it switches fitting off. Call it again.
“Fill frame” has no effect. It only works with the target “Frame height”, only with a fixed height and not in chained frames. With a variable height the tab says so.
“Fill line” has no effect. Check “Font size max. +” and “not above”: if the type is already at this limit, it does not grow any further. The rest can then only be taken by the font width, provided “Font width max. +” has a value.
My headline does not quite fill the line. The limits have been reached. Increase “Font size max. +” or “not above”, or leave some room in “Font width max. +” for the rest.
Does my text become smaller permanently? No. The font size you set stays; Stylo only adjusts the display. If the text gets shorter, the type gets bigger again.
Why has the type become wider or bigger? Wider: a value has been entered in “Font width max. +”. Stylo then stretches short lines until they fill the width. Set the value to 0 if you do not want this. Bigger: “Fill line” or “Fill frame” is ticked.
Does fitting also work for graphic text? No, only for text in text frames.
Comments
0 comments
Please sign in to leave a comment.