{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Rocket font asset.json spec",
    "description": "Specification for the asset.json file for rocket fonts",
    "type": "object",
    "properties": {
        "asset_type": {
            "type": "string",
            "pattern": "rocket_font"
        },
        "font_file": {
            "type": "string",
            "description": "path to a ttf or otf font file"
        },
        "rcss_name": {
            "description": "The name of the font family to use in RCSS, extracted from the file by default.",
            "type": "string"
        },
        "font_style": {
            "type": "string",
            "pattern": "normal|italic",
            "description": "The overrided font style. Required if rcss_name is supplied."
        },
        "font_weight": {
            "type": "string",
            "pattern": "normal|bold",
            "description": "The overrided font weight. Required if rcss_name is supplied."
        }
    },
    "required": [
        "asset_type",
        "font_file"
    ]
}