--- title: DeprecatedFontsOnSettingsData description: >- A validation that warns against using deprecated fonts in the settings_data.json file. source_url: html: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-settings-data md: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-settings-data.md --- # Warns against using deprecated fonts in `config/settings_data.json`. *** ## Validation on deprecated fonts You'll get a warning if you use a deprecated font in your `settings_data.json` 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, the deprecated font `helvetica_n4` is used in the live `current` settings, in a preset's top-level settings, and in a deeply nested preset block setting. ```json { "current": { "heading_font": "helvetica_n4", "blocks": { "block-id-1": { "type": "header", "settings": { "heading_font": "helvetica_n4" } } } }, "presets": { "Default": { "heading_font": "helvetica_n4", "body_font": "agmena_n4" } } } ``` This example is not exhaustive. The check applies to any string value in `config/settings_data.json` that matches a deprecated font handle. *** ## Options The following example contains the default configuration for this check: ```yaml DeprecatedFontsOnSettingsData: 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 fonts in `settings_data.json` 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. ***