---
title: DeprecatedFontsOnSettingsSchema
description: >-
  A validation that warns against using deprecated fonts in the
  settings_schema.json.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-settings-schema
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/deprecated-fonts-on-settings-schema.md
---

# Warns against using deprecated fonts in section and blocks schemas.

***

## Validation on deprecated fonts

You'll get a warning if you use a deprecated font in your `settings_schema.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, there is a single use of a deprecated font (`helvetica_n4`) as the default value for a setting of type `font_picker`.

```liquid
{% schema %}
[
  ...
  {
    "name": "t:names.typography",
    "settings": [
      {
        "type": "header",
        "content": "Fonts"
      },
      {
        "type": "font_picker",
        "id": "type_primary_font",
        "default": "helvetica_n4",
        "label": "t:settings.primary_font"
      }
    ]
  }
]
{% endschema %}
```

This example is not exhaustive. The check applies to the default value of any setting of type `font_picker` in `settings_schema.json`.

***

## Options

The following example contains the default configuration for this check:

```yaml
DeprecatedFontsOnSettingsSchema:
  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_schema.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.

***
