TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Leon Sans, a geometric typeface made with code

687 pointsby BafSover 5 years ago

30 comments

kccqzyover 5 years ago
It should be noted that Metafont is also a popular system for creating fonts with code. It is even more meta than this because it&#x27;s a language for creating fonts with code.<p>When looking at exactly how glyphs are defined (see <a href="https:&#x2F;&#x2F;github.com&#x2F;cmiscm&#x2F;leonsans&#x2F;blob&#x2F;master&#x2F;src&#x2F;font&#x2F;lower.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cmiscm&#x2F;leonsans&#x2F;blob&#x2F;master&#x2F;src&#x2F;font&#x2F;lowe...</a>) it struck me as quite similar to reading raw SVG paths with plenty of magic numbers. It doesn&#x27;t strike me as particularly &quot;code&quot;-like per se (more like an extremely limited DSL to describe data).
评论 #20856279 未加载
评论 #20855090 未加载
评论 #20856114 未加载
pacaroover 5 years ago
Albrecht Durer gave detailed instructions on how to construct the upper case letters (or at least those needed to write Latin) using compass and ruler.<p>A while back I made a coffeescript version of that <a href="http:&#x2F;&#x2F;pollrobots.github.io&#x2F;BlogCode&#x2F;durer.html" rel="nofollow">http:&#x2F;&#x2F;pollrobots.github.io&#x2F;BlogCode&#x2F;durer.html</a>
评论 #20863983 未加载
评论 #20864942 未加载
评论 #20858628 未加载
hirundoover 5 years ago
Combine this with eye tracking for a page of text that grows just the words or figures you&#x27;re looking at. You could display a larger page on a smaller one. E.g. show a multi page newspaper section on a single page, illegibly small until you focus on a particular headline. As you focus on that its teaser becomes visible, then the leading paragraph, etc.<p>You could display a link that when you look at it, it grows and resolves into its own content, recursively. Surf links by zooming in. The back button zooms out. It could be a natural way to navigate a graph of text.
评论 #20856515 未加载
评论 #20855871 未加载
评论 #20855961 未加载
评论 #20856053 未加载
评论 #20905979 未加载
评论 #20855890 未加载
huhtenbergover 5 years ago
The OpenType spec includes support for variable weights, added in 2016.<p>This is yet another feature it borrowed from TrueType GX, which in turn was a part of Mac&#x27;s QuickDraw GX dating back to mid 90s.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Variable_fonts" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Variable_fonts</a><p>[2] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;QuickDraw_GX#TrueType_GX" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;QuickDraw_GX#TrueType_GX</a><p>[3] <a href="https:&#x2F;&#x2F;webkit.org&#x2F;blog&#x2F;7051&#x2F;variable-fonts-on-the-web&#x2F;" rel="nofollow">https:&#x2F;&#x2F;webkit.org&#x2F;blog&#x2F;7051&#x2F;variable-fonts-on-the-web&#x2F;</a>
评论 #20857158 未加载
spectramaxover 5 years ago
From what I know, fonts are created by optical judgment, fiddling with kerning until it looks right and a tremendous amount of trial and error - this is because our vision system&#x27;s complexity is compounded by &quot;short-cuts&quot; (optical illusions) that brain takes when processing dorsal and ventral pathways of the brain. In my view, this font is jarring to the eyes and ugly - I am not sure if this has to do with the programmatic nature (variable fonts are sort of programmatic, but with aforementioned manual adjustments) or if the font design itself. If you&#x27;re a typographer, please share your thoughts and critique.<p>A font such as this can be categorized under &quot;Display font&quot; but it would not pass the mustard for any serious candidate for text.
评论 #20857132 未加载
ofrzetaover 5 years ago
It&#x27;s nice but it&#x27;s no longer HTML text. So you can&#x27;t use it as a web font or for any HTML text elements. Also no cut and paste, no accessibility etc.
评论 #20857417 未加载
评论 #20856978 未加载
评论 #20875298 未加载
评论 #20859007 未加载
评论 #20856963 未加载
alanbernsteinover 5 years ago
This is fascinating, there is quite a bit of overlap with a font that I started designing recently: <a href="http:&#x2F;&#x2F;alanbernstein.net&#x2F;images&#x2F;line-font-lowercase" rel="nofollow">http:&#x2F;&#x2F;alanbernstein.net&#x2F;images&#x2F;line-font-lowercase</a><p>I do small projects on CNC machines, and I got annoyed at having to trace both sides of a character, when using the outline of a standard font. In response, I created the single-stroke characters shown above, but only enough of them to draw basic labels.<p>Part of my original inspiration was this blog post: <a href="https:&#x2F;&#x2F;mzucker.github.io&#x2F;2016&#x2F;08&#x2F;03&#x2F;miniray.html" rel="nofollow">https:&#x2F;&#x2F;mzucker.github.io&#x2F;2016&#x2F;08&#x2F;03&#x2F;miniray.html</a><p>It would be interesting to do a closer comparison of these two fonts, it looks like some of our letters are identical. I definitely prefer some of Leon&#x27;s characters, especially the &#x27;s&#x27;. It should be easy enough for me to implement mine in javascript, because I focused on simplicity of the glyph definitions. For example, lowercase &#x27;e&#x27; is defined like this:<p><pre><code> &#x27;e&#x27;: [Line([-0.5, 0.5], [0.5, 0.5]), Arc([0, 0.5], 0.5, 0, 7&#x2F;4)], </code></pre> I hope I can find the time to experiment with this.
josephgover 5 years ago
Oh this is cool! I do plotter art sometimes and I’ve been looking for a good font to use for awhile. Most modern fonts don’t work well when drawn with a plotter because they depend heavily on fills rather than pure strokes. Thanks for this - I’ll give this a try!
评论 #20856645 未加载
hawskiover 5 years ago
It looks terrific and really remarkable. There must be something like it for an animation software. Could somebody point me to the right direction, outside of web?<p>However please refrain from usage on the web. Artistic and presentation use is ok, but CRUD, most blogs and other utilities is not ok.
pvinisover 5 years ago
Iosevka[0] is another great font that is code-generated.<p>0: <a href="https:&#x2F;&#x2F;github.com&#x2F;be5invis&#x2F;Iosevka" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;be5invis&#x2F;Iosevka</a>
评论 #20865408 未加载
emmanueloga_over 5 years ago
Super cool work! Congrats for the birth of baby Leon :-)<p>--<p>I got interested in typographic animation a while back, there are two related Wikipedia pages: &quot;Motion Graphics&quot; [1] and &quot;Kinetic Typography&quot; [2].<p>There is not a lot of info describing algorithms to perform Kinetic Typography that I could find. There are a few tools for doing Kinetic Typography for After Effects [3] and a couple other random software products of varying quality.<p>Btw, After Effects seems to be the closed-source reference implementation for all sorts of complex and cool looking effects. If for some reason all releases and source code of After Effects where to disappear from existence, it would set back the whole field of Motion Graphics by 25 years...<p>1: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Motion_graphics" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Motion_graphics</a><p>2: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Kinetic_typography" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Kinetic_typography</a><p>3: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Adobe_After_Effects" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Adobe_After_Effects</a>
fangpenlinover 5 years ago
This looks so awesome! Unlimited use-cases. Just however I can hear my Macbook Pro taking off (air fan spinning like crazy) when browsing the demo page lol
layoutIfNeededover 5 years ago
So, a stroke-based font like anything made with METAFONT?
评论 #20855802 未加载
Yuval_Haleviover 5 years ago
I must say that it&#x27;s one of the coolest sites I&#x27;ve seen lately<p>Beautiful fonts and I love how they show it in many different variations using creative animations
205guyover 5 years ago
I&#x27;m going to join the chorus saying that it&#x27;s cool what you can do with an algorithmic and programmable font.<p>However, my next thought is that will create noisy and busy displays or web pages and so it is of limited practical&#x2F;every-day use. I showed it to an Aspie friend who recoiled at all the moving letters.<p>Just because you can, doesn&#x27;t mean you should.
评论 #20856159 未加载
leegrover 5 years ago
What a perfectly normal way to celebrate the birth of a baby
mlyleover 5 years ago
It&#x27;s cool- I like the dynamic weighting and the minimal control points. As other people point out, there&#x27;s very little &quot;code.&quot; It would be cool if features would slowly nudge as you increase weight to ensure that they are preserved and balance is maintained as the weight increases.
vkakuover 5 years ago
That&#x27;s impressive AF. The website demo is cool, although it ran a bit slow on my PC&#x2F;GPU.<p>I love the fact that most stuff (including paintings) are better created as a command stream vs when rasterized.<p>Minimum( number(Commands), number(RasterizedOutput) ) is always a deciding factor, but this is indeed well done.
roger104over 5 years ago
Very cool - now if only I could get the &quot;colorful&quot; version of that font for Vim...
ru999golover 5 years ago
that would be interesting if &quot;made with code&quot; was true. In reality this is not anywhere near close to what I would dare to describe as &quot;made with code&quot;: <a href="https:&#x2F;&#x2F;github.com&#x2F;cmiscm&#x2F;leonsans&#x2F;blob&#x2F;master&#x2F;src&#x2F;font&#x2F;upper.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cmiscm&#x2F;leonsans&#x2F;blob&#x2F;master&#x2F;src&#x2F;font&#x2F;uppe...</a>
guerrillaover 5 years ago
Is there a non-dynamic version of this font or is it specific to this project? I see other geometrics in Wikipedia but not this one.
hatmatrixover 5 years ago
Coolness of the idea aside, I&#x27;m sitting here trying to decide if it looks better than Roboto, my current go-to font.
评论 #20855669 未加载
kossTKRover 5 years ago
This looks absolutely stellar. Also the animations strike a perfect balance between style and gimmick. Awesome work!
snazzover 5 years ago
This would make a really cool combo with something like reveal.js, for the world’s coolest presentation transitions.
SCdFover 5 years ago
Fonts are like art: I don&#x27;t know exactly why I like something, but I know when I do.<p>This font is gorgeous.
hanniabuover 5 years ago
Pretty cool, but the WebGL examples on your page brought my computer to a crawl.
评论 #20856069 未加载
cat199over 5 years ago
a) awesome font<p>b) great, now my browser can also be dynamically generating typefaces in order to programmatically render the html
LilBytesover 5 years ago
This is absolutely beautiful.<p>Wow! Thank you for the post.
koliberover 5 years ago
Is this &lt;blink 2.0&gt;?
intricatedetailover 5 years ago
This is smashing! Something for a cool cat like myself.