Re:Sparks: A typeface for creating sparklines in text withou...
by sjbrown on Wednesday May 06, 2020 @01:59PM
(#23094241)
We already have some rough glyphs for this: Unicode: 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608
[ Parent
| on HN ]
Re:Sparks: A typeface for creating sparklines in text withou...
by michaelmior on Wednesday May 06, 2020 @02:43PM
(#23094760)
While these can be helpful, I'm not sure how widespread the availability is so you would probably want to provide these glyphs anyway. (I could be wrong here. But I also don't know a good way to assess their availability.) It's also quite nice that you can just type in data with Sparks and get sparklines which isn't possible with the glyphs you mentioned.
Re:Sparks: A typeface for creating sparklines in text withou...
by swyx on Wednesday May 06, 2020 @03:21PM
(#23095166)
is there a resource to assess unicode glyph availability across devices? something like a caniuse?
Re:Sparks: A typeface for creating sparklines in text withou...
by jfim on Wednesday May 06, 2020 @02:38PM
(#23094690)
9601-9608 decimal, so U+2581 [0] to U+2588 [1]. They're a bit wide for a sparkline though.
Re:Sparks: A typeface for creating sparklines in text withou...
by ken on Wednesday May 06, 2020 @03:26PM
(#23095215)
Any environment I have that does custom fonts and glyph substitution also has CSS (or similar functionality) which can be used to make them thinner, if desired.
5.2 MB (compressed) is a big package just for some narrower boxes.
Re:Sparks: A typeface for creating sparklines in text withou...
by yohannparis on Wednesday May 06, 2020 @04:37PM
(#23095993)
5.2 MB is for the whole set, if you are using this font in a project, you will most likely set on one type of font format (.eof, etc.) and one weight (extra-thin, bold.)
The font file ranges from 18Kb to ~600kb, with most in the ~50kb, which is reasonable for the simplicity.
Re:Sparks: A typeface for creating sparklines in text withou...
by ken on Friday May 08, 2020 @12:22AM
(#23111357)
Fair point, but I disagree about even that size being reasonable -- or simple.
There's a million things you can implement as a font. I have yet to see anything I think is a good idea to implement as a font except the defined glyph shapes themselves.