Note that this function only works for TrueType fonts. We're going to create a set of display lists, one for each character in the font. CreateFont creates the font. There's a lot of parameters here, most of which I've set to zero. The 14 is the size of the font in pixels.
Different sizes yield different size fonts on the display.
A display context contains the set of tools that windows functions would use to draw in the window. There are pens for drawing lines, bitmaps for area fills, and fonts for text. The wgl function will utilize whatever font is currently selected in the display context. The call SelectObject makes the new font you just created the current font in the context. Note that we save the return value from SelectObject in a pointer oldfont.