source-code-pro icon indicating copy to clipboard operation
source-code-pro copied to clipboard

RFE: add U+2031 "PER TEN THOUSAND SIGN" glyph ("‱")

Open poettering opened this issue 4 years ago • 5 comments

I recently ran into some problems with a terminal program using the permyriad (aka "PER TEN THOUSAND SIGN") glyph. As it turns out Source Code Pro lacks the glyph which triggered some problems in the terminal implementation (for details see this: https://gitlab.gnome.org/GNOME/vte/-/issues/330

Long story short, would be excellent if Source Code Pro would carry a glyph for permyriad ("‱")

poettering avatar Feb 18 '21 19:02 poettering

Long story short, would be excellent if Source Code Pro would carry a glyph for permyriad ("‱")

A curiosity question ... how/where is this character used? What is the use case? Thanks.

kenmcd avatar Feb 19 '21 03:02 kenmcd

In the systemd project some resource control settings may be configured with fractions. We started out making this configurable by specifying percent, but eventually people wanted greater granularity hence we now accept permille and permyriad too.

(Usually it's easier to type in percent with two places after the dot though, admittedly, but it sounded fun accepting the unicode characters too. ;-))

see here for the documentation of one such feature:

https://github.com/systemd/systemd/blob/main/man/oomd.conf.xml#L53

poettering avatar Feb 19 '21 16:02 poettering

And here's he source code that implements the parse for this:

https://github.com/systemd/systemd/blob/main/src/basic/percent-util.c#L135

It's currently hard to look at in a terminal, due to the missing glyph.

poettering avatar Feb 19 '21 16:02 poettering

I’ll add this in the next update (which I am currently working on).

pauldhunt avatar Feb 20 '21 05:02 pauldhunt

That'd be excellent! Thank you!

poettering avatar Feb 20 '21 13:02 poettering