marekskopal / typo3-google-font
Includes Google Font in your TYPO3 website.
Package info
github.com/marekskopal/typo3-google-font
Language:TypeScript
Type:typo3-cms-extension
pkg:composer/marekskopal/typo3-google-font
v1.2.2
2026-03-15 11:02 UTC
Requires
- php: >=8.2
- typo3/cms-core: ^13.4 || ^14.0
- typo3/cms-frontend: ^13.4 || ^14.0
Requires (Dev)
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^2.0
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^12.0
- shipmonk/phpstan-rules: ^4.0
- slevomat/coding-standard: ^8.14
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Description
This TYPO3 extension includes Google Font in your TYPO3 website.
Unlike regular TypoScript adding, this extension adds Google Font in an asynchronous, non-blocking way. It also performs a preconnect for maximum loading efficiency
Installation
Add the extension to your project using Composer:
composer require marekskopal/typo3-google-font
Configuration
-
Add the static template to your TypoScript template:
- Go to WEB > Template module.
- Select your root page.
- Click on Info/Modify.
- Click on Edit the whole template record.
- Go to the Includes tab.
- Add Google Font from the Available Items to the Selected Items.
-
Add you Google Font to the TypoScript configuration:
plugin.tx_msgooglefont {
settings {
fontSrc {
1 = https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap
}
}
}