HN user

javierbyte

1,003 karma
Posts18
Comments48
View on HN
depth-of-field.vercel.app 2y ago

Show HN: Depth of Field with CSS Demo

javierbyte
6pts1
javier.xyz 4y ago

Show HN: Make ebooks with custom covers to use as lockscreen images on a Kindle

javierbyte
1pts0
javier.xyz 4y ago

Making better timelapses with Lightroom and JavaScript

javierbyte
2pts0
brutalita.com 4y ago

Show HN: I made a grid based font editor and font

javierbyte
243pts39
javier.xyz 4y ago

Show HN: Emoji to Scale

javierbyte
713pts124
javier.xyz 5y ago

Show HN: Tool that turns your images into plotter-like line drawings

javierbyte
405pts74
sombras.app 5y ago

Show HN: Sombras.app, toy to play with shadows and 3D, TensorFlow logo style

javierbyte
8pts3
javier.xyz 9y ago

Show HN: 'Hack' the user cursor

javierbyte
267pts58
javier.xyz 9y ago

Show HN: Docs2epub – doc scrapper and ebook generator

javierbyte
3pts0
javier.xyz 10y ago

Show HN: Find the visual center of your images

javierbyte
6pts2
github.com 10y ago

React Native bridge core moving to C++

javierbyte
28pts3
javier.xyz 10y ago

Show HN: Create simple image morphing transitions with css

javierbyte
4pts3
javier.xyz 10y ago

Img2css – convert any image into a pure css image

javierbyte
5pts1
javierbyte.github.io 10y ago

Show HN: A tool for creating cohesive color palettes

javierbyte
5pts0
javierbyte.github.io 10y ago

Show HN: I created a simple AI game with JS, come and play

javierbyte
1pts0
github.com 11y ago

Show HN: React component for blurred backgrounds

javierbyte
25pts17
javierbyte.github.io 11y ago

Show HN: React component for text gradients

javierbyte
2pts0
javierbyte.com 11y ago

Triangulator. Polygonal image generator

javierbyte
2pts0

Author 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 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 ;)

[1] https://javier.xyz/blog/brutalita-learning-opentypejs

When you download the font then it is a normal font and that does not happen. On the website, to make it possible to edit the characters in real time I'm drawing the font as SVG behind an invisible textarea; so when the text is edited really the textarea is changing and I'm drawing SVG behind every character to make it look like a textarea with the custom font. I'm curious which browser/OS are you using since I don't see the textarea text when I highlight something.

Sounds so good! That is a feature that I want to implement, when I was making the font I wanted the same feature (but decided to finish the font first!) so what I end up doing was using a different character to create a variation of a char and then replacing the coordinates in the JSON file later.

If you open the editor on a bigger window (I think I made it 1000px or more) you'll get the "full" editor with the dots that you are missing. I may make it an option so you can get the full editor on mobile too.

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 :)

1. Noted, the buttons are confusing. In the meantime: "download" downloads the original font that I made, "download edited" download currently edited font (if you have made any edits) in .otf format, "download json" downloads each char definition as coordinates, and "restore json" lets you restore a previously edited json so you can keep editing your font. Everything happens locally, there are no servers. 2. Yep 3. Do you have something in mind? :)

Hello HN! I wanted to make a font that I can "snap" to vertices on a grid for an upcoming project, and after starting making it I decided that it was going to be easier to iterate if I made an editor too. It uses opentype.js to generate the font and some invisible textarea tricks combined with svg for the text editor.

I'd like to buy a computer that's just like Macbook, except with repairable/swappable/upgradeable components

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.

I'm still waiting to hear about the aircraft that has gone down

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.

I lost one of my accounts last month to something similar to this. I used to have a secondary email as 2FA and then it got changed to "use one of my active devices", honestly I don't remember if there was some popup asking me to confirm the change, but one day I changed my iOS devices and the account was lost for good as I could not "tap confirm".

I tried to contact them from the email that used to be the 2FA, but no one could help me. It was a sad and eye-opening experience as I could have lost google domains and more.

I came to ask the same thing. "Each browser instance gets 16 vCPUs using state-of-the-art Intel CPUs running at up to 4.0 GHz." given how important single core performance is for most web apps + added streaming I doubt the Xeon setup gets close to the M1 performance.

[dead] 5 years ago

Update: seems to be back up! Update2: Maybe not

Agree, but instead of "that would have put" it should be "that could be putting", we don't know if there are people currently exploiting the vulnerability and without a patch very well could be happening now.