How do I change the font creation code to create a bold or italic font?
To make an italic font, change the value of slant from “r” to “i”. To make a bold font, change the value of weight from “medium” to “bold”. To find out a little more about fonts in X-windows, try having a play with the program xfontsel, that lets you pick the different components of the X font string from a list of choices and then shows you what the resulting font looks like.