frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I built an AI personal diary inspired by Harry Potter [video]

https://www.youtube.com/shorts/elNtTJnl86k
3•slalani304•1mo ago
Hi HN,

I spent the last few weeks building an AI diary inspired by Tom Riddle’s diary from Harry Potter. You write and an AI responds in cursive handwriting, just like the movie.

I used an ESP32 and a TFT Touchscreen display, and 3D printed the case, basilisk fang, and corners.

Finding a font for the AI response was tricky. Since I wanted the response to look as if it was handwritten, I needed to use single-stroke fonts but there were very few online. Eventually, I stumbled upon Hershey fonts (https://en.wikipedia.org/wiki/Hershey_fonts), which are a collection of single-stroke fonts developed in the 1960s for cathode ray tubes, and found a page where someone had converted them into C header files (https://solhsa.com/hershey/fontprev.html) that I could parse to get the stroke values for each letter.

Would love some feedback!