--- title: DeprecatedFontsOnSectionsAndBlocks description: >- A validation that warns against using deprecated fonts in section and blocks schemas. source_url: html: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-sections-and-blocks md: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-sections-and-blocks.md --- ExpandOn this page * [Validation on deprecated fonts](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-sections-and-blocks.md#validation-on-deprecated-fonts) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-sections-and-blocks.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-sections-and-blocks.md#disabling-this-check) # DeprecatedFontsOnSectionsAndBlocks Warns against using deprecated fonts in section and blocks schemas. *** ## Validation on deprecated fonts This section describes the validation that warns against the of use deprecated fonts in schema settings. To resolve the warning, use a handle for a [font from Shopify's library](https://shopify.dev/docs/storefronts/themes/architecture/settings/fonts#shopify-font-library). ### ✗ Fail In the following example, there are three uses of a deprecated font: the default setting, the preset setting, and the preset block setting. ```liquid {% schema %} { "name": "Section with Deprecated Font", "settings": [ { "type": "font_picker", "id": "title", "label": "Title", "default": "helvetica_n4" } ], "presets": [ { "name": "My preset with invalid font" "settings": { "title": "helvetica_n4" } "blocks": { "text-1": { "type": "text", "settings": { "text_font": "helvetica" } } } } ] } {% endschema %} ``` This example is not exhaustive. The check applies to any font setting value in the block and section schemas. *** ## Options The following example contains the default configuration for this check: ```yaml DeprecatedFontsOnSectionsAndBlocks: enabled: true severity: warning ``` | Parameter | Description | | - | - | | `enabled` | Whether this check is enabled. | | `severity` | The [severity](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration#check-severity) of the check. | *** ## Disabling this check Disabling this check isn't recommended because using deprecated font settings on sections and blocks may lead to unexpected behavior in future Shopify updates. These deprecated font settings are being phased out in favor of the new font system, and themes that continue to use them may experience styling issues or broken functionality when the deprecated features are eventually removed. *** * [Validation on deprecated fonts](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-sections-and-blocks.md#validation-on-deprecated-fonts) * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-sections-and-blocks.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-sections-and-blocks.md#disabling-this-check)