juliamono
juliamono copied to clipboard
Add Anchors to U+25CC DOTTED CIRCLE for Proper Rendering of Combining Diacritical Marks.
The character U+25CC DOTTED CIRCLE (Wikipedia - Dotted circle) is often used as a neutral character to represent combining diacritical marks (Wikipedia - Combining character).
The Unicode standard allows, for example, writing U+25CCU+0327, which should render [image].
However, no anchor is currently present on the DOTTED CIRCLE to achieve a correct rendering.
An ugly hack that works in VS Code is to type, for example, U+0327U+025CC, but the result depends on the editor...
Is it possible/desirable to add anchors to the DOTTED CIRCLE character to properly render the combined diacritical marks alone?
Thanks.
I'd like to see the [image] in your comment.
This is what I see:
In VSCode :
In Kwrite:
In Word:
In LibreOffice:
Noto Sans Mono have anchors on the dotted circle:
Yes, it's very variable depending on environment. On my Mac:
| works OK | doesn’t work |
|---|---|
| BBEdit | Kitty |
| Jupyter Notebook | Wezterm |
| Terminal | Alacritty |
| iTerm | VS-Code |
| Pages |
I can add anchors easily, although I can't say if this will fix it in all these applications.
I can add anchors easily, although I can't say if this will fix it in all these applications.
Yes... At least with anchors, it will work consistently across applications that correctly implement Unicode.
If you need more information or want to test the behavior, feel free to reach out, I'm available to assist!
I'm not an expert in font creation, but the issue lies in the different interpretations of text editors when a combining character is displayed alone. For example, VS Code combines it with the preceding character by adding a space, which is confusing.
There may be rules to introduce directly into the GPOS table of the font to make the behavior more predictable without needing to add anchors to characters that shouldn't have them. ??
Edit: Another observation, "Noto Sans Mono" has chosen to use zero width for diacritical characters, I'm not sure if it's a good practice. For instance, they have chosen a double advance width for a certain arrow, which is not always desirable for a Mono font...
VS-Code seems happy with the anchors I added on 25CC.
Thanks a bunch!
This issue has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.