next up previous contents index
Next: Creating new fonts Up: Text Previous: Freetype labels   Contents   Index

Special characters

Tnimage can import any image file and use it as a source of new anti-aliased fonts. By default, tnimage looks in /.tnimage for font image files. When the font image file is opened, it is treated differently from a normal image. To add a special character, click on the desired symbol in the font image and drag it to its new location. The symbol will be pasted onto the topmost image using the currently-selected foreground color. If the font image contains anti-aliased characters, the symbol will be treated as an anti-aliased character. If the image on which the symbol is pasted is grayscale, the symbol will be converted to grayscale before being applied to the image.


\begin{picture}( 100,40 )(0,0)
\put(0, -40){ \epsfig{file = greek.ps, width=4in}}
\end{picture}
Sample font image for Greek letters.

This feature allows users to create their own font files for special characters, commonly-used text strings, or icons.

Notes

1. To use an image as a font file, be sure to use "Draw...Special Character", not "Open image".

2. Fine positioning of the symbol can be achieved by using the arrow keys. Drag the symbol to the desired location with the mouse. Then, continue holding the mouse button and press the keypad arrows (1-9). The mouse cursor and symbol will move a fixed distance in the corresponding direction. When the symbol is in the correct location, release the mouse button. The distance by which the cursor moves can be increased or decreased by pressing the gray (+) or (-) keys on the numeric keypad.

3. To create a label consisting of more than one character, set the background pixel value of the image containing the text to 253 or 254. This will cause the entire string to be selected.

4. Up to 510 different font images can be displayed at any given time. This number can be increased by changing MAXIMAGES in xmtnimage.h and recompiling tnimage.

5. Since tnimage is an image editing program and not a drawing program, the only way to edit the text after it has been added to the image is with the ``undo'' or ``erase'' functions.


next up previous contents index
Next: Creating new fonts Up: Text Previous: Freetype labels   Contents   Index
root 2006-11-13