CompassFont · Course fonts and colours for MoodleFree
Set the fonts and colours for a course, in one block.
Admins, managers, course creators and editing teachers choose the font type, font size and text colour for a course, and the colour of section titles and activity names. Everyone on the course sees the saved settings, on the course page and inside activities, and nobody else gets extra controls. It is free and open source.
Version 1.1.0 · Moodle 4.5 to 5.3 · Free, GNU GPL v3 or later · Moodle Marketplace listing coming after review
What a learner sees: the saved colours, and nothing else. Demo course and demo data.
What it does
A block you add to a course page. People with permission pick a font type, a font size and text colours, preview the result on the page, and save it for the course. Everyone on the course then sees it, including inside activities.
Who sees what
- Admins, managers, course creators and editing teachers see the block and its controls
- Learners and non-editing teachers do not see the block. They see the settings saved for the course
- To stop editing teachers using the controls, take the permission away from the Teacher role
Course settings
- Font type, font size and text colour, plus a section font colour and an activity font colour. A colour only applies while its Use this colour tick is on
- The page previews the change straight away
- Nothing is saved until Save course settings is pressed, and the settings are stored on the block, not per person
- Reset puts the form back to the defaults. Press Save course settings to store that
Where it applies
- On the course page and inside activities: paragraphs, lists, tables, labels, quiz questions and answers, feedback, forum posts and the written content of a page or book
- Section and activity colours also show in the course index and in section and activity page titles
- H5P and SCORM packages served from your own site get the same font and text colour. Frames from other sites, such as YouTube, Vimeo and LTI tools, keep their own look
See it
Shown with a demo course and demo data.
The CompassFont block in the side drawer, with the course colours applied to the page.
Font type and size, three colour pickers with tick boxes, Save course settings and Reset.
Install in minutes
- Download block_compassfont_1.1.0.zip.
- In Moodle go to Site administration > Plugins > Install plugins and upload the zip.
- Finish the install with Site administration > Notifications.
- Turn editing on in a course, add the CompassFont block, set the fonts and colours and press Save course settings.
Or copy the compassfont folder to blocks/compassfont (public/blocks on Moodle 5.1 and later).
Key information to check
Compatibility
- Block
block_compassfont, version 1.1.0 - Moodle 4.5 (long-term support) to 5.3
- Course pages only (not the Dashboard), one block per course
- Built with Moodle’s default Boost theme in mind
Testing
- 8 PHPUnit tests and a smoke test on a real site, on Moodle 4.5, 5.0, 5.1, 5.2 and 5.3 with MariaDB
- Moodle Code Checker: no errors or warnings
- Automated axe-core checks of the controls (WCAG 2.2 AA) found no issues. Not yet tested with a real screen reader
- Not yet tested: themes other than Boost
Limits
- Elements that set their own font or colour (code blocks, some buttons and links, activities with their own styling) may not change
- Font size sets body text. Headings and page titles keep their size
- Colours apply to the whole course, so check the contrast against your theme’s background
Data and privacy
- No personal data is stored. The saved settings belong to the course, not to a person
- Implements Moodle’s Privacy API as a null provider
Licence and support
- Free. GNU GPL v3 or later. Created by Michael Williams
- Independent, not an official Moodle product
- Report bugs and ask questions on the GitHub issue tracker
- Free plugin: support is best effort and is not part of the paid Course Compass support terms
Get CompassFont, free
Free download
Version 1.1.0 · Licence: GNU GPL v3 or later · Source code on GitHub · Release notes
Questions: support@coursecompassplugin.com