News for hackers. Stuff that matters.
Re:Leon Sans, a geometric typeface made with code by ofrzeta on Monday September 02, 2019 @01:26AM (#20856944)
It's nice but it's no longer HTML text. So you can't use it as a web font or for any HTML text elements. Also no cut and paste, no accessibility etc.
Re:Leon Sans, a geometric typeface made with code by dominicr on Monday September 02, 2019 @03:41AM (#20857417)
Accessibility was my first thought. For as long as there's been the web there's been an ongoing struggle between visual improvements and accessibility. One thing we've learnt is that many developers don't take accessibility into consideration, so messing around with the simplest concept of HTML, text, seems like a negative in terms of accessibility.
Re:Leon Sans, a geometric typeface made with code by cpach on Monday September 02, 2019 @01:34AM (#20856978)
I’m not so sure about that. AFAICT it’s possible to add accessibility to canvas elements. See e.g. http://pauljadam.com/demos/canvas.html
Re:Leon Sans, a geometric typeface made with code by ofrzeta on Monday September 02, 2019 @02:08AM (#20857087)
Well, ok, you can provide accessibility alternatives to a Canvas. But does it make much sense to do that for something that would otherwise be text? Ok, granted that Leon Sans will probably be used for nice headers and such it would probably be feasible.
Re:Leon Sans, a geometric typeface made with code by KuhlMensch on Wednesday September 04, 2019 @05:01AM (#20875298)
Yeah, in my mind this occupies a very different space that an actual font. It's sizzle & style. Not substance.
Re:Leon Sans, a geometric typeface made with code by tiborsaas on Monday September 02, 2019 @09:32AM (#20859007)
There are lots of use cases, consider generating art for example.
Re:Leon Sans, a geometric typeface made with code by dmix on Monday September 02, 2019 @01:29AM (#20856963)
Is there really no way to turn this into a WOFF?

It's beautiful!

Re:Leon Sans, a geometric typeface made with code by chx on Monday September 02, 2019 @01:36AM (#20856983)
Re:Leon Sans, a geometric typeface made with code by ofrzeta on Monday September 02, 2019 @02:11AM (#20857099)
Well, I can. Not sure how your pasting a StackOverflow URL is an easy solution to that problem. I see no mention of SVG on the Leon site. To use the proposed solution you would first need to generate SVG from the Leon Javascript Canvas code. That's probably not impossible but certainly not "easy".
Re:Leon Sans, a geometric typeface made with code by chx on Monday September 02, 2019 @04:13AM (#20857525)
Re:Leon Sans, a geometric typeface made with code by ofrzeta on Wednesday September 04, 2019 @12:58AM (#20874116)
Just to make a point I cloned that repo and ran "npm test" that failed with

  "/tmp/canvas2svg/node_modules/socket.io/lib/store.js:35
  Store.prototype.__proto__ = EventEmitter.prototype;
                                       
  TypeError: Cannot read property 'prototype' of undefined
  ..."

But otherwise I am sure it will work out of the box. Just keep on Googling!