Hate the font, love the editor. edit: tried to type "à", and the letter is not recognized in the font (appears in red in the editor). Would there be a way to tell the editor that "à" = "a" + "`", rather than retyping the symbol from scratch? edit2 : Having to remove all the [2..n] points if you want to change the second point you made is also a bit of a pain, especially for people like me with little experience of wh…
I want to create a GenAI fork of this where you do one character and it tries to mimic the style for all of the others.
Brutalita Sans: An Experimental Font and Font Editor
61–70 of 86 posts
Re: Brutalita Sans: An Experimental Font and Font Editor
#62Re: Brutalita Sans: An Experimental Font and Font Editor
#63I had fun building this small project, there are a few fun things I did to make this work:
- The editor is a textarea with a monospace font, but the text is transparent, the font is rendered on top of it using SVG of the same size and line height as the monospace font behind it. This way I didn't have to recreate a whole editor and got the real-time preview I wanted.
- The way the SVG preview and the 'real font' are constructed is different. I talk about this a bit more on my blog [1] but in short in SVG I can use "thick lines" with rounded corners, and for the font I have to render polygons and I found a great library "mfogel/polygon-clipping" that makes the process of combining them a breeze.
Thank you all for the interest! I might work on an update or two ;)
Re: Brutalita Sans: An Experimental Font and Font Editor
#64To me the magic here is that the font used on the website text updates in realtime when you make changes to any glyph. Anyone know how that's happening, exactly?
Re: Brutalita Sans: An Experimental Font and Font Editor
#65To me the magic here is that the font used on the website text updates in realtime when you make changes to any glyph. Anyone know how that's happening, exactly?
Re: Brutalita Sans: An Experimental Font and Font Editor
#66Re: Brutalita Sans: An Experimental Font and Font Editor
#67I'd like more info on the possible "operations" that form the font glyph though. First I thought it was all just choosing dots on the 3x5 grid and connecting them with lines, but there also seem to be "half-strokes" (lowercase i) and "rounded corners" that don't align with the dots (used for almost all "round" letters like O, C etc). Especially the latter seem to be crucial if you don't want all the round segment to look like diamonds.
So how do I do those things in the editor and are there even more of them?
Edit: Or is it really just 5x9 instead of 3x5 with only every second grid point visible? Lowercase "f" looks like that.
Also, it's kind of obvious you can't draw a "#" sign on a 3x5 grid...
Re: Brutalita Sans: An Experimental Font and Font Editor
#68Hate the font, love the editor. edit: tried to type "à", and the letter is not recognized in the font (appears in red in the editor). Would there be a way to tell the editor that "à" = "a" + "`", rather than retyping the symbol from scratch? edit2 : Having to remove all the [2..n] points if you want to change the second point you made is also a bit of a pain, especially for people like me with little experience of wh…
I want to create a GenAI fork of this where you do one character and it tries to mimic the style for all of the others.
Re: Brutalita Sans: An Experimental Font and Font Editor
#69Author here! I'm so happy to see Brutalita randomly popping up on Hacker News! I had fun building this small project, there are a few fun things I did to make this work: - The editor is a textarea with a monospace font, but the text is transparent, the font is rendered on top of it using SVG of the same size and line height as the monospace font behind it. This way I didn't have to recreate a whole editor and got the…
But well, it is an addictive game! :)