class: middle # Drawing fonts # using code --- # Agenda -- 1. What? -- 2. Getting to know the command line -- 3. Setting up tools -- 4. Launching Plancton -- 5. Playing around --- # What? * Font editing via code -- * Metafont -- developed by Donald Knuth for TeX --- # Getting to know the command line (Gtktcl) -- * using your computer with text -- * launch apps or little programs (scripts) -- * be careful but not anxious --- # Gtktcl -- * open Terminal (or even better install iTerm2) -- * try a few commands: -- * `pwd` prints the folder (print working directory) * `ls` lists files in current folder * `cd directory` move to another folder `directory` (change directory) --- # Gtktcl -- * open Terminal (or even better install iTerm2) -- * try a few commands: -- * `touch filename.extension` creates file named `filename` with extension `extension` in the current folder * `mkdir directory` creates folder `directory` in the current directory * `command -h` or `man command` opens the manual of the command (please insert a command like `ls`) ??? For man page type q to exit --- # Setting up tools * you can install additional tools for the command line * to help you: package managers i.e. homebrew --- # Setting up tools (Homebrew) * to start: -- * visit [brew.sh](https://brew.sh) -- * follow download instructions -- * this installs homebrew, a package manager for the command line --- # Setting up tools (Additionals) * in your command line type the following: -- * `brew install git` -- a version manager -- * `brew install fontforge` -- type design app fontforge’s command line tools -- * `brew install inkscape` -- vector app inkscape’s command line tools -- * `brew install virtualenv` -- a tool to run »virtual environments« (longer story) --- * `brew install texlive` -- a TeX distribution -- * `brew install python-lxml` -- a module to process XML and HTML in Python --- class: middle # Can we please start # drawing fonts? --- class: middle # Yes --- class: middle # One last thing --- # Plancton Editor * `git clone https://github.com/haw-type-design/plancton-editor.git` -- * `cd plancton-editor` -- * `virtualenv plancton-env` -- * `source plancton-env/bin/activate` -- * `pip3 install -r requirements.txt` -- * `python3 plancton-server.py` --- # Plancton Editor -- * open your browser -- * type `localhost:8088` -- * you should get something like:  --- class: middle # What’s next? --- # Quitting / Launching Plancton again ## Quitting * to quit Plancton close your browser * go to your Terminal and hit `Control C (^C)` --- # Quitting / Launching Plancton again ## Launching Plancton again * move to your plancton folder in Terminal i.e. Command and drag it to your Terminal * run the following commands in Terminal: * `source plancton-env/bin/activate` * `python3 plancton-server.py` --- # Next * familiarize with MF/MP commands i.e in this [manual](https://www.tug.org/docs/metapost/mpman.pdf) -- * some more [background and info about MF](https://github.com/simonthi/haw-type-tools-resources/tree/main/metafont) -- * draw some lettershapes -- * show and tell us about your findings/drawings in next week’s class -- * advisable: get familiar with Git and maybe get a Github Account