Skip to content

Commit

Permalink
doc: add font features/axes to the schema (#11066)
Browse files Browse the repository at this point in the history
Add entries to the schema for font features and axes

* [x] Closes #11058

(cherry picked from commit e4c5e8b)
  • Loading branch information
PankajBhojwani authored and DHowett committed Aug 27, 2021
1 parent d9ff7d6 commit 0480597
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/cascadia/profiles.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0480597

Please sign in to comment.