I am building an app block for which I have written the code as below. The problem is that when I choose the font from shopify theme editor it does not get applied. I am not able to identify the issue nor could I find any resources to help me understand why this is not working
{{ block.settings.announcements }}
{{ block.settings.announcements }}
Selected Font: {{ block.settings.announcement_font_type.family }}
{% schema %}
{
"name": "Announcement Banner",
"target": "section",
"settings": [
{
"type": "color",
"id": "background_color",
"label": "Background Color",
"default": "#DC2020"
},
{
"type": "text",
"id": "announcements",
"label": "Announcements",
"info": "To add multiple announcements, use the delimitor //"
},
{
"type": "color",
"id": "announcement_font_color",
"label": "Font Color",
"default": "#ffffff"
},
{
"type": "number",
"id": "announcement_bar_height",
"label": "Height",
"default": 40
},
{
"type": "font_picker",
"id": "announcement_font_type",
"label": "Font",
"default": "helvetica_n4"
}
]
}
{% endschema %}