Releases: linkrobins/font-sizer
Release list
v1.6.0
New
- The reading-size slider is back. The control in the aA menu is a live slider again instead of a dropdown: the page rescales as you drag, with the percentage shown beside it. Same range as before. Requested on the extension thread.
Fixed
- Wide screens no longer lose Flarum's bigger post text. Since Flarum 2.0.0-rc.6, core makes post text slightly larger on wide screens (15px instead of 14px). Font Sizer was overriding that back down to 14px even at 100% scale. It now scales whatever size core picks for the screen, so wide-screen readers keep their larger text at every setting. A base size you set in the admin panel still wins everywhere, exactly as before.
No settings change, no migration:
No settings change, no migration — just update the extension.
v1.5.1
Changed
- The package details now point at this extension's own page on linkrobins.com, and list the correct PHP requirement and where to report a problem.
Nothing on your forum changes. This release exists so the information shown on Packagist matches the extension's page.
v1.5.0
What's new
You can now tell Font Sizer what size your forum's text should start at.
The extension's settings page has three new Base Text Sizes inputs: post text, small text, and titles, all in pixels. If your theme's font looks too small at Flarum's standard sizes (common with serif fonts), raise these numbers and the whole forum follows. No Custom CSS needed.
Good to know:
- Changes apply to everyone right away, including visitors who never touch the font size button.
- The font size button in the header works exactly as before, and now scales on top of the sizes you set.
- Leave the settings alone and nothing changes: at the defaults (14 / 12 / 16) your forum looks exactly like it did on v1.4.
- A live preview on the settings page shows the effect as you type.
For theme authors: the sizes are also exposed as CSS variables (--lr-text-base, --lr-text-small, --lr-text-title), so you can set them from Custom CSS instead. Details are in the README.
Thanks to flavour1 on discuss.flarum.org for suggesting this.
How to update
composer update linkrobins/font-sizer
Tested through Flarum 2.0.0-rc.5.
v1.4.1
Under the hood
Maintenance release with no user-facing changes. The source is now prettier-formatted with CI running on every change, and the composer metadata was updated for Flarum 2.0 release-candidate installs. The shipped bundle is byte-identical to v1.4.0.
v1.4.0
This update makes the size controls more reliable and lets them reach more of your forum.
- Size changes now apply through your active theme's own styling, so they look correct on any theme and take effect instantly with no flash.
- Other extensions can now opt their content into the reading-size control, so more than just core posts and titles can grow when a reader increases the size.
- The admin settings page now includes a live preview, so you can see the effect while choosing a default.
- Changing the default sizes saves more smoothly.
v1.3.0
Frontend rewrite and UI modernization, addressing the v1.2.4 code-review findings.
Changed
- Frontend rewritten from ES5 IIFEs to Flarum 2.x TypeScript ES modules (
js/src/*.ts) with realflarum/*imports — built viaflarum-webpack-config. - Forum modal rebuilt as a Mithril component extending core
Modal: a Select dropdown for reading-text size and a Switch for the larger-interface toggle. Close button, Esc, and backdrop dismissal now come from core. - Admin settings use a matching Select dropdown and Switch toggle (previously a slider and button group).
- Shared CSS generation extracted; inline styles moved to LESS compiled via
->css(). - Sitewide defaults read via
app.forum/payload instead of hand-parsing the JSON payload.
Fixed
- Redundant double
loadState/applyAllon every page load.
No changes to settings, cookies, or behavior for existing users.
v1.2.4
Fix: match the Font Sizer button's icon-to-text spacing to native header items (Notifications, Flagged Posts) on mobile, using Flarum's 7px Button-label margin.
v1.2.3
Fix: match the icon-to-text spacing of the Font Sizer button in the mobile drawer so it lines up with neighboring items (Drafts, Notifications).
v1.2.2
Maintenance release: set package author metadata to Karl Bullock karl@linkrobins.com.
v1.2.1
Changes
- Fix: UI-size toggle contrast in the forum modal — now uses Flarum's own
--button-primary-bg/--button-primary-color(and--button-bg/--button-color) variables instead of a hardcoded white, so the active button stays readable on any primary color. - Improve: Header control placement — moved before the profile block. For logged-in users it sits immediately to the left of the avatar; for guests it sits to the left of the Sign Up / Log In buttons without splitting them.
- Security (defense in depth): Clamp the font scale to 100–150 and whitelist the UI value server-side in
serializeToForum; clamp on save in the admin page; remove the onlyinnerHTMLusage in favor oftextContent. - Cleanup: Remove dead PSR-4 autoload for the non-existent
src/directory.