Adds support for users to be able to set font features and axes (see the spec for more details!)
## Detailed Description
**CustomTextLayout**
- Asks the `DxFontRenderData` for the font features when getting glyphs
- _If any features have been set/updated, we always skip the "isTextSimple" shortcut_
- Asks the `_formatInUse` for any font axes when mapping characters in `_AnalyzeFontFallback`
**DxFontRenderData**
- Stores a map of font features (initialized to the [standard feature list])
- Stores a map of font axes
- Has methods to add font features/axes to the map or update existing ones
- Has methods to retrieve the font features/axes
- Sets the font axes in the `IDWriteTextFormat` when creating it
## Validation Steps Performed
It works!
[standard feature list]:
|
||
---|---|---|
.. | ||
allow.txt | ||
apis.txt | ||
chinese.txt | ||
colors.txt | ||
fonts.txt | ||
japanese.txt | ||
math.txt | ||
microsoft.txt | ||
names.txt | ||
README.md |
Allow files are lists of words to accept unconditionally
While check spelling will complain about an expected word which is no longer present, you can include things here even if they are not otherwise present in the repository.
E.g., you could include a list of system APIs here, or potential contributors (so that if a future commit includes their name, it'll be accepted).
Files
File | Description |
---|---|
Allow | Supplements to the dictionary |
Chinese | Chinese words |
Japanese | Japanese words |
Microsoft | Microsoft brand items |
Fonts | Font names |
Names | Names of people |
Colors | Names of color |