Westwood Font Editor

From ModdingWiki
Jump to: navigation, search

The Westwood Font Editor is an editor specifically designed for editing indexed bitmap fonts. It is developed by Nyerguds. It can edit fonts from a very wide variety of games, though the majority of supported types are those from the games developed by Westwood Studios and Sierra/Dynamix.

Due to the fact the entire editor is built on manipulating 8-bit images, there is no support planned for Westwood's later high-colour font formats.

The program is written in C# on the .Net framework v3.5. Being a .Net program, it can probably run on Linux using Mono. All code in the editor that was specifically written for the editor is released under the WTF Public License, meaning it can be used without restriction. A few components taken from online resources, as well as an ini reader originally written by Nyerguds for another project, have similarly permissive licenses, mentioned in the tool's readme and/or the actual source code files.

The tool was originally created to edit the font files in Command & Conquer, but was soon expanded to support all known indexed bitmap font types created by Westwood Studios. After a request from the translation community at OldGamesItalia, research was started on implementing the fonts of the Sierra/Dynamix games. As cooperation with OldGamesItalia continued, increasingly more fonts of old DOS games were added.

Use

The tool is distributed as a simple .zip file to be unpacked in a new folder. Once unpacked, the included .exe file runs the program.

It is a straightforward pixel editor, with tile selection on the left, the editor in the middle, and colour selection on a palette to the right. In addition to a series of generated palettes, palettes can be added in Westwood's 256-colour palette format.

The font editor can edit fonts, and can convert fonts between all the supported types, but currently lacks the ability to create new font files from scratch. There is also no import or export function to normal image types, though the font editor does have clipboard support for both copying and pasting symbols, and for copying the text bitmap generated in the editor's preview pane.

Since the Font Editor's main purpose is translations of games to languages that require new characters or new character variations with diacritics, it features a list of all known 8-bit ASCII-compatible text encodings, so the list at the side can accurately show the characters to create no matter the targeted code page. The preview pane, likewise, adapts to this chosen text encoding to convert the typed text to 8-bit font indices, so the preview text can be generated correctly.

Note that like many game files, fonts are often stored in game archives and must be extracted first. In fact, some of the supported games have no external font files, and the font data needs to be extracted from the exe file to allow editing it, and reinserted afterwards.

Currently the editor has no functionality for importing raw data by giving the data information for opening it, but such a generic system may be added later.

Links