Skip to content

jjjordan/putty-italics

Repository files navigation

Putty italics patch

This repository contains a patch that enables italics in the Windows version of PuTTY. Italics text was specified in ECMA-48 in 1976, yet terminal emulator support for it has only caught on somewhat recently. Support exists in many libvte-based terminals, but to date it's not even on the PuTTY wishlist.

I'd like to eventually submit this patch upstream, however, it would likely require implementations for the other operating systems, and some fairly thorough testing before it would be accepted...

Screenshots

With italics

With Italics The JOE Editor with the Zenburn color scheme

Without italics

No Italics

Font support

The patch is a bit picky about which fonts it will allow. Many monospaced fonts do not have a native italics face, and instead rely on the Operating System to apply a linear transformation for an "Oblique" face. They wind up overhanging the next glyph and cause generally bad artifacts during painting. For this reason, the patch rejects any font without a true Italics face.

These fonts, however, are known to work:

Apply the patch

To apply the patch, get the source code for the right version of PuTTY. Place the patch file within reach, and run something to the effect of:

patch -p1 < italics-0.70.patch

Then, build PuTTY as normal. You'll need to build the Makefiles/project files with mkfiles.pl and finally build.