mFonts - Use Google fonts easily within your app
Overview
mFonts will give you a wide range of Google font options to use within your project, without relying on Google API calls or custom code. Roboto is selected as the default font, however you can change this within the styling files. Want to use a different font for a specific text? That’s also possible with a new option within Appearance!
Current selection of fonts:
- Lato
- Lora
- Montserrat
- Nunito Sans
- Oswald
- Poppins
- Raleway
- Roboto
- Roboto Condensed
- Roboto Mono
- Roboto Slab
For more goodness, please read the documentation. Missing some fonts? Please let me know or add them yourself in _m-google-fonts-variables.scss.
Check out my other UI Modules:
- mInputs – Material Design Inputs: https://marketplace.mendix.com/link/component/207980
- mSnackbar - Material Design Messages (Toast): https://marketplace.mendix.com/link/component/227741
- mIcons - Material Icons and Symbols: https://marketplace.mendix.com/link/component/205995
- mFonts - Use Google fonts easily within your app: https://marketplace.mendix.com/link/component/206063
- mAnimations - Animate almost every widget: https://marketplace.mendix.com/link/component/209256
- mFlex – CSS Flex Options: https://marketplace.mendix.com/link/component/205993
- mGrid – CCS Grid Options: https://marketplace.mendix.com/link/component/205994
- mDataGrids - Sticky Columns & More for Data Grid (2): https://marketplace.mendix.com/link/component/212219
Connect with me on LinkedIn! https://www.linkedin.com/in/mauritspdekoning/
Documentation
Description
mGoogle Font will give you a wide range of Google font options to use within your project, without relying on Google API calls or custom code. Roboto is selected as the default font, however you can change this within the styling files. Want to use a different font for a specific text? That’s also possible with a new option within Appearance!
Current selection of fonts:
- Lato
- Lora
- Montserrat
- Nunito
- Nunito Sans
- Oswald
- Poppins
- Raleway
- Roboto
- Roboto Condensed
- Roboto Mono
- Roboto Slab
Typical usage scenario
For using Google Fonts within your project or individual text widgets without the code hassle. No Google API calls required and 100% suitable for offline use.
Features and limitations
- For web
- Supports Google Fonts application wide.
- Supports Google Fonts for individual text widgets (via Appearance).
- No Google API calls.
Dependencies
- Mendix 9.18.0. and up.
Installation
Just download and install this UI Module. Rerun your Mendix Studio Pro application and behold all the font and options within Appearance.
Configuration
No configuration needed. It’s just plug & play. At default the style will be set to ‘Roboto’. If you would like to change this or add your own font, please go to _m-google-fonts-variables.scss
Known bugs
- None
Legal notice
Copyright (c) 2024 Maurits de Koning.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.