diff options
author | andreas 'randy' weinberger <vdr@smue.org> | 2010-02-21 19:58:27 +0100 |
---|---|---|
committer | andreas 'randy' weinberger <vdr@smue.org> | 2010-02-21 19:58:27 +0100 |
commit | 10ab31fa86dbf9875b5f6baa6ac59fefaaf86be3 (patch) | |
tree | 60ad7c856565f03e145b2996d1bb5f9cd64c0532 /docs/README.crtfont | |
download | graphlcd-base-10ab31fa86dbf9875b5f6baa6ac59fefaaf86be3.tar.gz graphlcd-base-10ab31fa86dbf9875b5f6baa6ac59fefaaf86be3.tar.bz2 |
initial git upload, based on graphlcd-base-0.1.5
Diffstat (limited to 'docs/README.crtfont')
-rw-r--r-- | docs/README.crtfont | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/docs/README.crtfont b/docs/README.crtfont new file mode 100644 index 0000000..03bf485 --- /dev/null +++ b/docs/README.crtfont @@ -0,0 +1,61 @@ +This is the README of the crtfont tool, which is part of the GraphLCD +base package. + +written by Andreas Regel (andreas.regel AT powarman.de) + +based on crtfont from the graphlcd plugin for the Video Disc Recorder +written by Carsten Siebholz (c.siebholz AT t-online.de) + +See the file COPYING for license information. + + +Description: +------------ +crtfont is a program to create fonts for the GraphLCD graphics library. + + +Installation and Configuration: +------------------------------- +see the file README in the base package's root directory. + + +Using crtfont: +-------------- +To create a font, 2 source files are required: +- an image, that contains the characters as a bitmap. This image might + be in: + - Portable Bit Map (PBM) format. +- a description file (*.desc), that contains informations about the + positions of each character in the image. + The format of the description file: + - The first line contains the version of the description file format: + version:1 + - The next lines contain the font attributes in the format + <attribute>:<value>, one attribute per line. Possible attributes + are: + fontheight: the total height of the font + fontascent: the vertical distance from the horizontal baseline to + the highest character coordinate. + lineheight: the baseline-to-baseline distance + spacebetween: additional space between characters in a text + spacewidth: the width of the space character. If this value is + greater than zero, all characters will be compressed + horizontally to their active pixels. + - All other lines define the characters and their positions in the + image. The syntax is like: + PosX_1 Char_1 PosX_2 Char_2 PosX_3 ... PosX_n Char_n EndX + where PosX_x specifies the horizontal position of the leftmost + pixel of the character. Char_x might be the character itself + (A, B, ...) or it's decimal ASCII value (65, 66, ...) + +Usage: crtfont -f <format> -b <bmpfile> -d <descfile> -o <outfile> + + -f --format specifies the format of the bitmap. Possible values + are: + PBM: file is an Portable Bit Map + -b --bmpfile specifies the name of the bitmap file (*.pbm) + -d --descfile specifies the name of the description file (*.desc) + -o --outfile specifies the name of the output file (*.fnt) + + example: crtfont -f PBM -b f12.pbm -d f12.desc -o f12.fnt + |