3 ms·
We already have some rough glyphs for this: Unicode: 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608
by sjbrown 7y ago
We already have some rough glyphs for this: Unicode: 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608
- michaelmior 7y agoWhile 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.
- swyx 7y agois there a resource to assess unicode glyph availability across devices? something like a caniuse?
- deleted 7y ago[deleted]
- deleted 7y ago[deleted]
- jfim 7y ago9601-9608 decimal, so U+2581 [0] to U+2588 [1]. They're a bit wide for a sparkline though. [0] https://codepoints.net/U+2581 https://codepoints.net/U+2581 [1] https://codepoints.net/U+2588 https://codepoints.net/U+2588
- ken 7y agoAny 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.
- yohannparis 7y ago5.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.
- ken 7y agoFair 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.