Graph2Font (G2F)

Year
2005
Publisher
Freeware (Tebe / Mad Team)
Type
Development tool
Category
Graphics editor and converter (Windows)
Developer
Tomasz Biela (Tebe), Mad Team
Requirements
Windows PC; generated programs need a 64K Atari XL/XE

Overview

Graph2Font, usually shortened to G2F, is a PC program for drawing and converting Atari 8-bit graphics. It was written by Tomasz Biela (Tebe) of the Polish group Mad Team, who also wrote the MADS assembler and Mad Pascal. As the name suggests, its core idea is to build pictures out of fonts. An image is broken into 8×8 cells, each cell becomes a user-defined character, and the screen is stored as character codes plus one or more character sets. One AtariAge user described the result as "a series of user-defined characters" that reproduce the image inside an Atari program, calling it "very clever" but "fiendishly complicated" at first.

Character modes are cheap for the Atari to display and easy to change line by line, so G2F can combine them with player/missile overlays, display list interrupts that change colours and character sets on every line, and the GTIA modes. That gives far more colour than a plain bitmap. Pictures that viewers praised in demos such as Ilusia, The Shrine and Arsantica, and title screens in many modern games, were made this way. Commenters on Ilusia (2009) credited Graph2Font with bringing "a new quality" to Atari demos.

What it does

  • Import and convert: load a PC image (sized and colour-reduced first in a paint program such as Photoshop or GIMP) and convert it into characters, colours and overlays. Image → Convert to PMG turns graphics into player/missile data.
  • Edit: work directly with characters, colours per line, PMG and the GTIA modes. The Special → Limitations menu limits which character codes may be used (first and last character), for programmers who need to reserve part of the set.
  • Export: a complete Atari executable, optionally compressed, or assembler source for MADS plus raw data files (screen, font and colour tables), to include in your own program. Users routinely mention "G2F binaries" when sharing screen designs.

Limits worth knowing

  • Generated executables are built for 64K machines. To gain DLI cycles, every G2F image switches off the OS ROM and installs its own NMI handler, so the files will not run on a 48K 400/800 even when the picture itself would fit. Users have asked for a 48K option. To use G2F art on older machines, export the data and write your own display code.
  • The preview is not a perfect emulator. In GTIA mode 10 the real hardware shifts pixels (the effect behind HIP-style modes), and G2F does not model this, so a picture may need nudging by two hi-res pixels to look centred on a real Atari or in Altirra. Tebe confirmed this in 2022.
  • Screens are saved whole, including empty areas, so packers and RLE schemes are popular for squeezing G2F data into games.

History and getting it

G2F was in circulation by the mid-2000s: an English instruction document by Dracon and Miker is dated February 2005, and a Polish one July 2009. Its home page, g2f.atari8.info, also hosts tutorials (including Polish guides on drawing in G2F and a graphician's guide), galleries of G2F art, and companion tools such as G2F Extractor, BMP2MCH, BMP2MIC and the Rasta Converter family. The page lists version 4.0.3.29 (April 2026) in Full and Lite editions. It is Windows software. Mac and Linux users have had to do without it: one demo coder who had moved to macOS said G2F was the only tool he lacked.

Credits