News for hackers. Stuff that matters.
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 dmitrygr on Wednesday May 06, 2020 @10:26PM (#23099019)
<img src="img.svg" style="height: 1em; display: inline; vertical-align: bottom;" />
Re:Sparks: A typeface for creating sparklines in text withou... by jbverschoor on Wednesday May 06, 2020 @10:38PM (#23099092)
Baseline
Re:Sparks: A typeface for creating sparklines in text withou... by hanniabu on Wednesday May 06, 2020 @10:45PM (#23099133)
Interlinked