Secret Ink
This project started because I simply couldn’t find the thing I wanted: A good SCP-like-generator-with-built-in-redactions that looked like it was actually typed on paper. However, as I started working on it, I soon came to realize that this was hard to find for a reason.
A puddle as deep as an ocean
If you never went down the rabbit hole of how you get from the char primitive of 8-bit binary to these words on the screen (shut up about utf-8, I know, it’s more than 1 byte, kinda), you will soon realize that it is way more complicated than you think. This modified xkcd comic from the HarfBuzz github page should at least give you some idea of the strange complexity we are dealing with here, and HarfBuzz isn’t even the whole of it, that’s just for text shaping. That doesn’t even cover:
- Rasterizing
- Word-Wrapping
- UTF-8
- Fonts
- Locales
- Inevitable hopelessness
So, needless to say, I had a lot more work cut out for me than I thought. Hopefully I can go more in depth with all of that, but right now, I am putting this on the backburner. I will make it avalible to anyone who wants to look at my awful code.
Config file
I did add a config file to make the setup somewhat easier, but just keep in mind that you will have to download/specify your own fonts and page textures, since I didn’t want to put those on my repo.