Re:Sparks: A typeface for creating sparklines in text withou...
by leephillips on Wednesday May 06, 2020 @02:40PM
(#23094711)
This is great. I think we're just seeing the beginning of the crazy things that people are going to be doing by abusing (in the best possible sense) opentype.
Re:Sparks: A typeface for creating sparklines in text withou...
by pjs_ on Wednesday May 06, 2020 @09:58PM
(#23098831)
I use things like this and FontAwesome etc. a bunch, and they no doubt solve a real problem. But I also sort of wish that the problem were solved in a way that does not involve stuffing things that are not even remotely text into a font.
It seems like there should be a generic way to say "put image X (SVG, PNG, whatever) on the screen here, as if it were a glyph, and also do scaling and linebreaks and alignment properly, oh and colors and so on". I expect this already exists somewhere deep inside CSS - does anyone know the story?
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 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.
Re:Sparks: A typeface for creating sparklines in text withou...
by jfim on Wednesday May 06, 2020 @02:40PM
(#23094708)
Apparently the consultancy that built this closed their doors in February of this year.
> On February 25th, after a decade of business, we’ll be closing After the Flood to focus on other projects. We’d like to thank all of our clients and collaborators for their support.
Re:Sparks: A typeface for creating sparklines in text withou...
by mattlondon on Wednesday May 06, 2020 @04:58PM
(#23096207)
A couple of things that spring to mind:
- super simple: no need to integrate a charting library or do server-side rendering
- performance: if you have a table of hundreds of rows each with a sparkline chart (e.g
CPU load/QPS/error rate/etc for many nodes etc in a cluster), just some text will be hugely more performant that 100x charting widgets or 100x server-side rendered images.
https://www.scribbletone.com/typefaces/ff-chartwell
It seems like there should be a generic way to say "put image X (SVG, PNG, whatever) on the screen here, as if it were a glyph, and also do scaling and linebreaks and alignment properly, oh and colors and so on". I expect this already exists somewhere deep inside CSS - does anyone know the story?
[0] https://codepoints.net/U+2581
[1] https://codepoints.net/U+2588
5.2 MB (compressed) is a big package just for some narrower boxes.
The font file ranges from 18Kb to ~600kb, with most in the ~50kb, which is reasonable for the simplicity.
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.
[1]: https://en.wikipedia.org/wiki/Sparkline
Just a note, the website link is 404'd.
> On February 25th, after a decade of business, we’ll be closing After the Flood to focus on other projects. We’d like to thank all of our clients and collaborators for their support.
1) cuts and pastes into plain text files often
2) often wishes to take data from charts and munge it, although sparklines are probably too informationally sparse to bother.
https://github.com/holman/spark
It still seems like an inferior solution to just using SVG, but it's not insanely bulky.
- super simple: no need to integrate a charting library or do server-side rendering
- performance: if you have a table of hundreds of rows each with a sparkline chart (e.g CPU load/QPS/error rate/etc for many nodes etc in a cluster), just some text will be hugely more performant that 100x charting widgets or 100x server-side rendered images.
{0, 10, 20, 30, 40, 50, 60, 70, 80, 90}