{"id":13864,"date":"2025-08-14T17:07:27","date_gmt":"2025-08-14T14:07:27","guid":{"rendered":"https:\/\/creativethemes.com\/blocksy\/?post_type=documentation&#038;p=13864"},"modified":"2025-08-14T17:07:39","modified_gmt":"2025-08-14T14:07:39","slug":"force-adobe-fonts-to-load-all-font-variations","status":"publish","type":"documentation","link":"https:\/\/creativethemes.com\/blocksy\/docs\/code-snippets\/force-adobe-fonts-to-load-all-font-variations\/","title":{"rendered":"Force Adobe Fonts to load all font variations"},"content":{"rendered":"\n<p>Adobe\u2019s Fonts service provides a <em>Project ID<\/em>, which can be used in various apps to download fonts from the project. Unfortunately, their API currently has a limitation where variable fonts aren\u2019t fully provided. In such cases, a simple PHP filter can be used to force the download of these variations through a different method.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter('blocksy_ext_adobe_typekit:settings', function ($settings) {\n\tif (empty($settings&#091;'fonts'])) {\n\t\treturn $settings;\n\t}\n\n\tforeach ($settings&#091;'fonts'] as $key =&gt; $font) {\n\t\tif ($font&#091;'slug'] === 'atyp-bl-variable') {\n\t\t\t$settings&#091;'fonts']&#091;$key]&#091;'variations'] = &#091;\n\t\t\t\t'n4',\n\t\t\t\t'n7',\n\t\t\t\t'n8'\n\t\t\t];\n\t\t}\n\t}\n\n\treturn $settings;\n});<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Adobe\u2019s Fonts service provides a Project ID, which can be used in various apps to download fonts from the project. Unfortunately, their API currently has a limitation where variable fonts aren\u2019t fully provided. In such cases, a simple PHP filter can be used to force the download of these variations through a different method.<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_categories":[125],"class_list":["post-13864","documentation","type-documentation","status-publish","hentry","doc_categories-code-snippets"],"blocksy_meta":{"docs_item_badge":"PRO","styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"acf":[],"_links":{"self":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/13864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/types\/documentation"}],"author":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/comments?post=13864"}],"version-history":[{"count":2,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/13864\/revisions"}],"predecessor-version":[{"id":13866,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/documentation\/13864\/revisions\/13866"}],"wp:attachment":[{"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/media?parent=13864"}],"wp:term":[{"taxonomy":"doc_categories","embeddable":true,"href":"https:\/\/creativethemes.com\/blocksy\/wp-json\/wp\/v2\/doc_categories?post=13864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}