-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I have some general concerns about the SS02 stylistic set of the font.
Its goal is to provide an alternative way to strike numbers (as well as spaces and math/dividers symbols). Instead of showing the line overlapping the glyphs, there is a small transparent padding between the line and the glyph
My understanding is that the font file can only define the position and the tickness of the line-through, but it cannot define this "padding" style, nor change the line depending on the glyph it is on.
For those reasons, I assume this has been implemented in a "hacky", or at least controversial, way. Using a stylistic set completely replaces the glyphs with striked ones, but this has nothing to do with the text being actually striked trhough via markup semantics.
This leads to a number of issues:
- if the stylistic set is active and the text is semantically striked, there will be 2 overlapping lines visible
- if the stylistic set is enabled, and the text is not semantically striked, there may be a need to adjust accessibility roles to match what is visually shown with the intent
- if numbers with SS02 and regular striked text are next to each other, the "fake" line and the real one are not perfectly aligned
- standard markups will not be able to show the custom strike-through style, the stylistic set will need to be manually enabled on every text needing it
I wonder if this practice is acceptable for a public font, or if there are better alternatives to consider? Can kernings rules for example be aware of the presence of a strike-thorugh semantic and instead of operating on the line (not possible?) show glyphs with an empty horizontal space so that the line can fall in the middle of it leaving some space?
cc @afemartin
