├── .gitignore ├── README.md ├── lemon.ttf └── potrace /.gitignore: -------------------------------------------------------------------------------- 1 | *.bdf 2 | *.sfd 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # A Vectorized Version of [artwiz lemon](https://github.com/phallus/fonts) 2 | 3 | This makes the font scalable and usable even on high definition displays. 4 | 5 | See `potrace` for the autotrace script which was used to build the font. 6 | 7 | ## Installation 8 | 9 | Place `lemon.ttf` in a directory in your fonts path (e.g ~/.fonts). 10 | 11 | **Note that the font is named 'lemon', in contrast to the bitmap version which 12 | uses 'artwiz lemon'.** 13 | -------------------------------------------------------------------------------- /lemon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fennerm/artwiz-lemon-ttf/928e2c011c612d41edbc159de8b62e82a50cf9fe/lemon.ttf -------------------------------------------------------------------------------- /potrace: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # A fontforge autotrace script for vectorizing bitmap fonts. 3 | 4 | # This script is designed for use with fontforge, see: 5 | # http://monsterfacegames.blogspot.com/2013/10/creating-pixel-font-for-your-game.html 6 | # https://stackoverflow.com/questions/3750124/how-to-convert-a-bitmap-font-fon-into-a-truetype-font-ttf/8350648 7 | 8 | # Script was based on: 9 | # https://gist.github.com/bendmorris/7170209 10 | # ... but reduces filter radius, which I found gives better results. 11 | 12 | argv=("$0" "$@") 13 | last=${argv[$#]} 14 | startwidth=$(identify -format "%w" -- "$last") 15 | startheight=$(identify -format "%h" -- "$last") 16 | newwidth=$(( $startwidth * 40)) 17 | newheight=$(( $startheight * 40)) 18 | cat "$last" | 19 | mkbitmap -f 3 -s 1 | 20 | convert -scale "${newwidth}x${newheight}" - - | 21 | /usr/bin/potrace \ 22 | --turdsize 0 \ 23 | --opttolerance 0 \ 24 | -a 0 \ 25 | "${argv[@]:1:$#-1}" \ 26 | -r 2880 27 | --------------------------------------------------------------------------------