javierbyte | 5 months ago | on: Brutalita Sans: An Experimental Font and Font Editor
javierbyte's comments
javierbyte | 5 months ago | on: Brutalita Sans: An Experimental Font and Font Editor
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 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 ;)
javierbyte | 1 year ago | on: Show HN: Depth of Field with CSS Demo
javierbyte | 1 year ago | on: Add Depth of Field to Screenshots
javierbyte | 4 years ago | on: Show HN: I made a grid based font editor and font
javierbyte | 4 years ago | on: Show HN: I made a grid based font editor and font
javierbyte | 4 years ago | on: Show HN: I made a grid based font editor and font
javierbyte | 4 years ago | on: Show HN: I made a grid based font editor and font
javierbyte | 4 years ago | on: Show HN: I made a grid based font editor and font
javierbyte | 4 years ago | on: Show HN: I made a grid based font editor and font
And yes, more points and different aspect ratio would be nice, currently the `textarea` works by having a native textarea invisible on top of the SVG render, and tuning it to be in sync was a bit hard. So I think I can make custom grids and ratios happen but I'll have to disable the textarea for them, no big deal I guess :)
javierbyte | 4 years ago | on: Show HN: I made a grid based font editor and font
javierbyte | 4 years ago | on: Show HN: I made a grid based font editor and font
javierbyte | 4 years ago | on: Show HN: Emoji to Scale
javierbyte | 4 years ago | on: Show HN: Emoji to Scale
javierbyte | 4 years ago | on: Antiviral Molnupiravir Reduces Risk of Hospitalization/Death by ~50 Percent
javierbyte | 4 years ago | on: The Framework is the most exciting laptop I've used
That's the thing, making something plug and play and mostly "driver-free" would be very hard to almost impossible. Framework laptops look amazing but they will require at least a bit more maintenance and knowledge, and that is fine too.
javierbyte | 4 years ago | on: FAA Releases Data Showing Trends in Dangerous Laser Strikes
So sad to hear. No one shines a laser on an aircraft accidentally, and it is not like the police are using lasers as an excuse to systematically punish a minority. We don't need to wait for a tragedy to happen here.
javierbyte | 4 years ago | on: ImageNet contains naturally occurring Apple NeuralHash collisions
javierbyte | 4 years ago | on: Ask HN: What's the most life-changing blog post you've ever read?
javierbyte | 4 years ago | on: Apple pays out millions to student after repair techs shared her personal images