X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=README.font;fp=README.font;h=561db72eebaf14e3a938598a3123aef03a43e09e;hp=0000000000000000000000000000000000000000;hb=88a9e026caed5568363cefb7d49308b875dc5e4a;hpb=100372ba9cc83542b9d9894001d70f40e28f8f4b diff --git a/README.font b/README.font new file mode 100644 index 0000000..561db72 --- /dev/null +++ b/README.font @@ -0,0 +1,28 @@ +How the font is generated, and how to edit it. + +The font used in VoR is generated from the pixel layout in +font_template.txt.gz. You can edit this file easily with vim. Don't unzip it, +vim handles this for you. Just open it up and do ":set nowrap". You should now +see the font and be able to edit it nicely with replace mode (hit capital "R"). + +The font is generated from this template by creating a huge blob object in +povray. A small diffuse sphere is created at the location of each # in the +template file, and the result is rendered where the density of all those +combined spheres is high enough. + +If you create a font that has considerably different dimensions you will have +to fiddle with a few numbers in the sources: + + * update the TEMPLATE_WIDTH and TEMPLATE_HEIGHT constants in font_guts.c + + * If you've changed the aspect ratio considerably: update the "up" and + "right" vectors in font.pov These determine the aspect ratio, and what area + of the coordinate space is rendered. Be sure to leave enough space around + the edges so the font doesn't get clipped. Don't worry about excess black + around the edges, it will be cropped automatically after rendering. The + constant OUTPUT_WIDTH in font_guts.c is in povray units. + + +The font template was created from the 10x20 font from the misc-fixed pack. It +was tweaked slightly in particular so the dots on the j, i and ! characters +don't touch the rest of the character.