bricks_set_adobe_fonts
Overview
Configures Adobe Fonts (formerly Typekit) integration in Bricks Builder. Provide your Adobe Fonts project ID and the font families included in the project to load them from Adobe’s CDN.
After configuration, the specified fonts become available in Bricks typography font-family dropdowns and can be used in theme styles, global classes, and inline typography settings — just like custom uploaded fonts or Google Fonts.
Adobe Fonts are loaded via a JavaScript embed from Adobe’s CDN, which handles font delivery, caching, and subsetting automatically.
Key Features
When to Use
When you have an Adobe Creative Cloud subscription with fonts.adobe.com access
When the client has already set up an Adobe Fonts project and provided the project ID
When you need high-quality commercial fonts without self-hosting
The project ID from the Adobe Fonts web project settings
Knowledge of the CSS font-family names and available weights for each font in the project
When NOT to Use
When you have downloadable font files (use bricks_upload_font for self-hosting)
When the client does not have an Adobe Creative Cloud subscription
When GDPR compliance requires avoiding third-party CDN font loading
Parameters
project_idstringREQUIREDfontsarrayREQUIREDCode Examples
Configure Adobe Fonts with two families
Set up an Adobe Fonts project with Source Sans Pro and Source Serif Pro.
{
"project_id": "abc1def",
"fonts": [
{
"family": "source-sans-pro",
"weights": ["400", "600", "700"],
"styles": ["normal", "italic"]
},
{
"family": "source-serif-pro",
"weights": ["400", "700"],
"styles": ["normal"]
}
]
}{
"success": true,
"project_id": "abc1def",
"fonts_count": 2,
"message": "Adobe Fonts configured with 2 font families."
}Common Mistakes
Warning: Undefined array key "fix_description" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 47
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-includes/kses.php on line 2018
Warning: Undefined array key "wrong_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 48
Warning: Undefined array key "right_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 49
Warning: Undefined array key "fix_description" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 47
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-includes/kses.php on line 2018
Warning: Undefined array key "wrong_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 48
Warning: Undefined array key "right_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 49
Warning: Undefined array key "fix_description" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 47
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-includes/kses.php on line 2018
Warning: Undefined array key "wrong_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 48
Warning: Undefined array key "right_code" in /var/www/vhosts/mcpbricksbuilder.wecode.swiss/httpdocs/wp-content/themes/bricks/includes/elements/code.php(236) : eval()'d code on line 49
Tips & Warnings
Tip: Find your project ID at fonts.adobe.com/my_fonts under the « Web Projects » section. The project ID is the short alphanumeric code shown next to each project.
Tip: After configuring Adobe Fonts, reference them in theme styles: typographyBody: { "font-family": "source-sans-pro" }.
Warning: Adobe Fonts are loaded from a third-party CDN. For GDPR compliance in the EU, ensure you have proper consent mechanisms or consider self-hosting fonts instead using bricks_upload_font.
Warning: Calling this tool again with a different project_id will replace the entire Adobe Fonts configuration. There is no merge — the previous project fonts will be removed.