8dd02cd7e479

Update
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 13 Apr 2019 10:04:33 -0400
parents f8fc2c7d1d73
children c48e8c311ae3
branches/tags (none)
files README.markdown

Changes

--- a/README.markdown	Fri Apr 12 20:37:14 2019 -0400
+++ b/README.markdown	Sat Apr 13 10:04:33 2019 -0400
@@ -337,3 +337,22 @@
 After evaluating some stuff, the screen seems to be garbled.  Not sure exactly
 what I need to do/configure to get the screen working properly.  Evaluating
 `(cls)` does clear the screen back to the beginning, so I can use that for now.
+
+## 2019-04-13
+
+Trying to get my code-to-PDF thing ported to Linux.  Random notes:
+
+* No idea where my header file is.  Probably forgot to commit it.
+* `pstopdf` is called `ps2pdf` on Linux and has different options.
+* To list fonts on the system: `fc-list`.
+* `enscript` on Linux can't just take one of these fonts because fuck you.  It
+  needs an "AFM" file for some reason.
+* Can generate an `afm` file with `ttf2afm` which is in the `texlive-binaries`
+  package along with a whole other pile of bullshit I don't need.  Cool.  `sudo
+  apt install texlive-binaries; and ttf2afm /usr/share/fonts/truetype/ubuntu/UbuntuMono-R.ttf | sudo tee /usr/share/enscript/afm/umr.afm`
+* Then I need to edit `/usr/share/enscript/afm/font.map` because this program is
+  incapable of `ls`ing a directory to find all the font maps in it or something.
+  Note that the font name here needs to match the font name in the generated
+  AFM even though you're explicitly telling the stupid program which AFM to use
+  with a given font name, because once again: fuck you.
+