» Contents
» (0) Quickstart
» (1) Introduction
» (2) Installation & setup
» (2.5a) Custom fonts
» (3) Creating a character & starting to play
» (4) The world
» (5) Item and monster details
» (6) Character details
» (7) Tactics & strategy
» (8) Miscellanous

(2.5) Fonts
(3) Creating a character & starting to play
(2.5a) Custom fonts                                                             
For the Windows client it is possible to create your own custom fonts for the
game. You can use "Fony" for example: http://hukka.ncn.fi/?fony
(Up to client 4.6.1a it was not possible to use characters of numbers 128-255
but this has been addressed, so the full range of characters is available now.)

Since you might need/want to use mapping files to remap terrain features to the
characters in your font, you can create font-preference files that contain
mapping information.
The default font mapping file is lib/user/font-win.prf. If it exists, this file
will automatically be loaded by the game client.
However, the client first checks for the existance of a specific, custom font
mapping file that has a filename: lib/user/font-custom-FONTNAME.prf and loads
this instead of attempting to load font-win.prf.
This allows you to have a custom mapping file for each of your fonts.

You go to the fonts menu by pressing = f and switch to a font named 10X16X.FON.
Now the client will automatically try to not only load the font from the font
folder lib/xtra/font/10X16X.FON but also a mapping file to go with it, named
(On switching fonts, the client will automatically discard all mapping info it
loaded for the previously used font.)

Note that this mapping file loading only happens if you switch the font for the
main window, not when you switch fonts of the subwindows.

Font mapping files have the following syntax for mapping lines:
with 'attribute' and 'character' being optional.

The 'F' stands for 'feature', meaning a specific terrain tile such as floors,
walls, doors. You can see all of these in the file lib/game/f_info.txt, the
index of each feature is the number located right after 'N:'.

The 'R' stands for 'monster', meaning a specific base monster type. You can see
all of these in the client's in-game monster lore (~7) or in the spoiler file
lib/game/r_info.txt. The monster index is the number located right after 'N:'.

These mapping lines will remap the specified feature or monster to the symbol
with the number 'character' in your font, which may range from 0 to 255, and
display it in the colour 'attribute' which may range from 0 to 55 (up to 4.6.1a
client) or 57 (in later clients), with colours 0 to 15 being static colours and
the higher ones being animated.

Problems have been reported for mapping characters 2 and 16 to 27, there is
currently no further information available regarding this issue. If those don't
work for you, just pick different ones.


Maps the terrain feature 'granite wall' (#56 in f_info.txt) to the font symbol
#127 and the colour 2 (which is 'slate').

Maps the monster 'Morgoth, Lord of Darkness' (#862 in r_info.txt and in ~6) to
the font symbol #255, leaving its colour at its normal value (the one given in
r_info.txt) without changing it.

When using a custom font you probably want to turn off the option
'font_map_solid_walls' in = 1, as it interferes with the mapping of various
wall tiles: It will force-remap all affected wall tiles to character 127 for
Windows clients and to character 1 for Linux/OSX clients and all treasure veins
('*' symbol in the game, aka walls with treasure to mine) to character 1.

Here is a list of all supported colours:
Static colours:
 0  black           1  white           2  slate           3  orange
 4  red             5  green           6  blue            7  umber
 8  dark grey       9  light grey     10  violet         11  yellow
12  light red      13  light green    14  light blue     15  light umber
Animated (flickering in multiple hues) colours:
16  multi          17  poison         18  fire           19  cold
20  acid           21  electricity    22  confusion      23  sound
24  shards         25  light          26  darkness       27  mana-shield
28  invulnerable   29  curse          30  annihilation   31  half-multi
32  psi            33  nexus          34  nether         35  disenchantment
36  inertia        37  force          38  gravity        39  time
40  meteor         41  mana           42  disintegration 43  water
44  ice            45  plasma         46  detonations    47  nuke (toxic waste)
48  unbreath       49  holy orb       50  holy fire      51  hellfire
52  thunder        (53  lamp)         (54  dark lamp)    55  ember
(56 thin fire)     57  starlight

For the Linux/OSX client you'll need to either convert FON fonts to PCF format
(bitmap font files) or create fonts directly in PCF format.
Add them to your system with the usual font-adding procedures for your specific
Linux distribution, then you can select them in TomeNET via  = f  (or enter
them directly in your .tomenetrc config file).
(2.5) Fonts
(3) Creating a character & starting to play