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

Centring on decimal separator #189

Closed
CiaranOMara opened this issue Oct 8, 2022 · 3 comments
Closed

Centring on decimal separator #189

CiaranOMara opened this issue Oct 8, 2022 · 3 comments

Comments

@CiaranOMara
Copy link

There is a Unicode character 'FIGURE SPACE' (U+2007,  ). That character may provide a solution for centring different fonts on a decimal separator.

JuliaData/DataFrames.jl#3096

@ronisbr
Copy link
Owner

ronisbr commented Oct 11, 2022

Thanks @CiaranOMara !

What I does not understand is how to treat numbers that have different widths in non-monospace fonts. For example:

1111111111
0000000000

Both lines have 10 numbers.

@CiaranOMara
Copy link
Author

Oh, that's annoying. I thought a font's numeric characters had the same width, and the purpose of the figure/numeric space was to facilitate grouping in precisely this type of scenario.

@ronisbr
Copy link
Owner

ronisbr commented Oct 12, 2022

The only way to get this is by using monospaced fonts. However, nobody liked the idea to use monospace fonts in HTML printing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants