There are three font size modes: Inherit, Responsive (Fluid), and Fit to width. Inherit uses the theme’s size. The other two are for display type.
Responsive (Fluid) sizing
Set three values: minimum, preferred, and maximum. The size then changes smoothly between them as the viewport changes. The plugin writes a CSS clamp(), so the browser does the scaling. There is no JavaScript, and there are no breakpoints.
The names of the three controls are different in each panel. The inline panel uses Minimum Size (mobile), Preferred Size (tablet), and Maximum Size (desktop). In the block, the Quick Feature Toggles use Mobile (320px+), Intermediate, and Large (1920px). The sidebar uses Mobile (320px and up), Intermediate, and Large (up to 1920px).
- Minimum: This size applies at 320px and below.
- Preferred: This size controls the range between, in viewport units.
- Maximum: This size applies at 1920px and above.
The three controls are independent. The plugin does not change their order.
Which unit does the plugin write?
You always enter sizes in px. New content writes them in rem: the px value divided by 16. A heading then grows when a reader sets a larger default font size in the browser. For a size in rem, the sliders show both values, for example 24px (1.5rem).
Content that you saved before version 2.3.2 keeps px and looks the same, also after you edit it. If your theme changes the root font size, for example html { font-size: 62.5% }, rem sizes are smaller than the px values that you enter. Then go to Settings → Typography Stylist → Options and select Write new font sizes in px. The setting applies only to new content.
Why does a size grow more slowly than I set?
Browser zoom makes the viewport narrower in CSS pixels, so the viewport part of a responsive size gets smaller. Without a limit, some sizes do not double at 500% zoom. For a new size in rem, the plugin limits how fast the size grows. At 500% zoom, the size is then at least two times its size at 100%, in windows from 320 to 1920px wide with a 16px root font size.
When the plugin limits a size, a note under the sliders tells you. The note gives the size in a 1920px window, and the Intermediate size that reaches your Large size. The default 16 / 32 / 64 is not limited. For a size in px, the note tells you when the size does not double at 500% zoom, and which values fix it. With Write new font sizes in px on, new sizes keep the slope that you set.
Why does the editor warn about out-of-order values?
clamp() does not sort its arguments. clamp(min, val, max) calculates max(min, min(val, max)). If the minimum is larger than the maximum, the result is always the minimum. The text then stays at a size that you did not want.
The plugin shows a warning and does not correct the values. It cannot know which of the two numbers you wanted to change.
Fit-to-width
Fit-to-width sizes each line so that it fills its container. Use it for a headline whose edges align with the column at all screen widths.
The block measures each line and writes a size for each line in container query units. The fit stays correct when the container changes width.
In a new block, a line of two or more words also grows when a reader zooms in. When zoom makes the container narrower than 32rem (512px), the line grows and wraps between its words. It stops at the size that it has in a 32rem container, or when its widest word fills the container, so no word breaks. A line of one word cannot wrap, so it keeps filling its container. The editor always shows the lines as they are at 100% zoom. In a landscape window narrower than 782px, lines of several words in a container narrower than 512px wrap also at 100% zoom. With Write new font sizes in px on, fit lines keep the same size on screen at every zoom level.
To limit how large short lines get on wide screens, turn on Maximum font size and set Maximum size (px).
Fit-to-width measures whole lines, so only the block has it. Part of a line has no width to fill. The inline panel does not offer it. If a selection has a fit paragraph style, the menu shows Fit to Width (blocks only) as unavailable. The text then uses the style’s responsive size.
Styling inside a fitted line
Two controls are for this. They show in the Quick Feature Toggles when the block uses Fit to width:
- Relative size (for selected text): This control scales a selection from 10% to 100% of the fitted size. The value is in
em, so it changes with the line at every width. The plugin includes these spans when it measures the line, so the line still fills the width. - Vertical shift (for selected text): This control moves a selection up or down, from −1 to 1 em. It does not change the width of the selection, so it does not change the fit.
Use these controls, not a font size. Fit mode ignores inline font sizes.
Which should I use?
- Inherit: Use this for body text, or when the theme controls the size.
- Responsive (Fluid): Use this for most display type. It is predictable, and it works well at all sizes.
- Fit to width: Use this when the headline is the layout and its edges must align.