Let's begin by looking at the different functions Windows provides for text output, the device context attributes that affect text, and the use of stock fonts.
The most common text output function is the one I've used in many sample programs so far:
TextOut (hdc, xStart, yStart, pString, iCount) ;
The xStart and yStart arguments are the starting position of the string in logical coordinates. Normally, this is the point at which Windows begins drawing the upper left corner of the first character. TextOut requires a pointer to the character string and the length of the string. The function does not recognize NULL-terminated character strings.
The meaning of the xStart and yStart arguments to TextOut can be ...