From 0480597abb3bacb7bc9c0d88e4ef529e4fc08e1a Mon Sep 17 00:00:00 2001 From: PankajBhojwani Date: Fri, 27 Aug 2021 13:42:15 -0700 Subject: [PATCH] doc: add font features/axes to the schema (#11066) Add entries to the schema for font features and axes * [x] Closes #11058 (cherry picked from commit e4c5e8bd2a3354b04e753dedd81481e1362867b1) --- doc/cascadia/profiles.schema.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/cascadia/profiles.schema.json b/doc/cascadia/profiles.schema.json index 9d5bd545686..b2e293c761d 100644 --- a/doc/cascadia/profiles.schema.json +++ b/doc/cascadia/profiles.schema.json @@ -215,6 +215,22 @@ "type": "integer" } ] + }, + "features": { + "description": "Sets the DWrite font features for the given font. For example, { \"ss01\": 1, \"liga\":0 } will enable ss01 and disable ligatures.", + "type": "object", + "patternProperties": { + "^(([A-Za-z0-9]){4})$": { "type": "integer" } + }, + "additionalProperties": false + }, + "axes": { + "description": "Sets the DWrite font axes for the given font. For example, { \"wght\": 200 } will set the font weight to 200.", + "type": "object", + "patternProperties": { + "^([A-Za-z]{4})$": { "type": "number" } + }, + "additionalProperties": false } }, "type": "object"