I want to use the unicode (partial) block symbols (https://strangeweb.page/@jochie/115118219770375106) to draw graphs:
-
I want to use the unicode (partial) block symbols (https://strangeweb.page/@jochie/115118219770375106) to draw graphs:
chars = [' ','β','β','β','β','β','β','β','β']
The idea is that I can "scaleβ the horizontal bars (7/8, 6/8, 5/8, β¦) if/when at least one of the values gets a bit high, like this:
1οΈβ£ 0
2οΈβ£ 0
3οΈβ£ ββββββββ 12
4οΈβ£ βββββββββ 13
5οΈβ£ ββ 3
6οΈβ£ 0In my editor/client itβs fine, but some fonts show
U+258C βββ as taller than the others, which is a bit annoying!Any suggestions/alternatives?
-
undefined rag. Gustavino Bevilacqua ha condiviso questa discussione
undefined Oblomov ha condiviso questa discussione
-
I want to use the unicode (partial) block symbols (https://strangeweb.page/@jochie/115118219770375106) to draw graphs:
chars = [' ','β','β','β','β','β','β','β','β']
The idea is that I can "scaleβ the horizontal bars (7/8, 6/8, 5/8, β¦) if/when at least one of the values gets a bit high, like this:
1οΈβ£ 0
2οΈβ£ 0
3οΈβ£ ββββββββ 12
4οΈβ£ βββββββββ 13
5οΈβ£ ββ 3
6οΈβ£ 0In my editor/client itβs fine, but some fonts show
U+258C βββ as taller than the others, which is a bit annoying!Any suggestions/alternatives?
@jochie oh that's an interesting idea, I did something similar for sparklines using the vertical blocks
https://wok.oblomov.eu/tecnologia/sparkling-wok/
https://wok.oblomov.eu/tecnologia/sparkling-wok-2/
but recently I've replaced them with SVGs.From my experience, the question is: which Unicode codepoints are you using *exactly*, both full and partial?
-
@jochie oh that's an interesting idea, I did something similar for sparklines using the vertical blocks
https://wok.oblomov.eu/tecnologia/sparkling-wok/
https://wok.oblomov.eu/tecnologia/sparkling-wok-2/
but recently I've replaced them with SVGs.From my experience, the question is: which Unicode codepoints are you using *exactly*, both full and partial?
@oblomov I like those sparklines
As far as I can tell (checked again just now), I'm using these: 2588 for the full block, and 2589..258F for the (left) 1/8..7/8 partials.
-
@oblomov I like those sparklines
As far as I can tell (checked again just now), I'm using these: 2588 for the full block, and 2589..258F for the (left) 1/8..7/8 partials.
@jochie
> I like those sparklinesme too 8-D
> I'm using these: 2588 for the full block, and 2589..258F for the (left) 1/8..7/8 partials.
Weird. The screenshot looks like your editor is substituting U+25A0 for the full block, or maybe the font doesn't have it (see also the centering wrt to the text), but then why would the βextraβ on point 4 (the one with value 13) look correct? What font is your editor using?
-
@jochie
> I like those sparklinesme too 8-D
> I'm using these: 2588 for the full block, and 2589..258F for the (left) 1/8..7/8 partials.
Weird. The screenshot looks like your editor is substituting U+25A0 for the full block, or maybe the font doesn't have it (see also the centering wrt to the text), but then why would the βextraβ on point 4 (the one with value 13) look correct? What font is your editor using?
@oblomov That screenshot that I think you're referring to is actually the Discord app in the Firefox browser.
Plot twist!
You were on to something. While writing my response I noticed that I had a bug in my code and was unintentionally using the "left 7/8 blockβ U+2589 where I thought I was using the full block.
Back to the drawing board (hah) for me, and more
β
οΈ feelings with regards to fonts and unicode.
-
@oblomov That screenshot that I think you're referring to is actually the Discord app in the Firefox browser.
Plot twist!
You were on to something. While writing my response I noticed that I had a bug in my code and was unintentionally using the "left 7/8 blockβ U+2589 where I thought I was using the full block.
Back to the drawing board (hah) for me, and more
β
οΈ feelings with regards to fonts and unicode.
@oblomov And for completeness, the answer the other question. I _was_ using Monaco in my editor (Emacs) but for the partial blocks it was falling back to Andale-Mono.
Going back to the default which gets me Menlo for partial blocks and full block, and consistent heights.
Adding that to the long list of things to consider when picking my next (coding) font.