Open
Description
Please complete the following tasks
Valid word
wdth
Incorrect correction
width
Justification
When I test with typos 1.32.0, it flags wdth
as a typo and suggests width
.
However, wdth
is a design-variation axes and the tag in OpenType 1.8 spec, meaning Width
. This tag is also widely used by web developers in CSS, for example, with the font-variation-settings
property.
- OpenType definition: https://github.com/microsoft/OpenTypeDesignVariationAxisTags/blob/5ea229006014c614654242a29f49424c1d0659fa/BackgroundOnAxes.md?plain=1#L20-L25
- Italic (tag:
ital
) - Optical size (tag:
opsz
) - Slant (tag:
slnt
) - Weight (tag:
wght
) - Width (tag:
wdth
)
- Italic (tag:
- CSS usage example: https://github.com/mdn/content/blob/d80455b193a5e5f1789e4c941aaaecaae3034d5b/files/en-us/web/css/font-variation-settings/index.md?plain=1#L90-L121
- typos started detecting wdth after a request in: Non-critical corrections - June 2024 Edition #1024 (comment).
Notes
wdth
is mostly used in CSS and HTML files. It's not common in general text.
My suggestion is to allow wdth
only in files like .css
and .html
. This way, typos can avoid false positives while still catching real typos in other files.