Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Anchors to U+25CC DOTTED CIRCLE for Proper Rendering of Combining Diacritical Marks. #211

Open
AlexpFr opened this issue Jun 6, 2024 · 9 comments
Labels
fixed? might be fixed, needs to be checked by issue author stale

Comments

@AlexpFr
Copy link

AlexpFr commented Jun 6, 2024

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.

@cormullion
Copy link
Owner

cormullion commented Jun 6, 2024

I'd like to see the [image] in your comment.

This is what I see:

Screenshot 2024-06-06 at 10 08 23

@AlexpFr
Copy link
Author

AlexpFr commented Jun 6, 2024

In VSCode :
image

In Kwrite:
image

In Word:
image

In LibreOffice:
image

@AlexpFr
Copy link
Author

AlexpFr commented Jun 6, 2024

Noto Sans Mono have anchors on the dotted circle:

image

@cormullion
Copy link
Owner

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.

@AlexpFr
Copy link
Author

AlexpFr commented Jun 6, 2024

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!

@AlexpFr
Copy link
Author

AlexpFr commented Jun 6, 2024

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...

image image

@cormullion
Copy link
Owner

VS-Code seems happy with the anchors I added on 25CC.

Screenshot 2024-06-06 at 11 18 32

@cormullion cormullion added the enhancement may be implemented as an enhancement label Jun 6, 2024
@AlexpFr
Copy link
Author

AlexpFr commented Jun 6, 2024

Thanks a bunch!

image

@cormullion cormullion added fixed? might be fixed, needs to be checked by issue author and removed enhancement may be implemented as an enhancement labels Oct 20, 2024
Copy link

This issue has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed? might be fixed, needs to be checked by issue author stale
Projects
None yet
Development

No branches or pull requests

2 participants