Darius Henderson - Assignment1

#1 First let's review some font terminology. What is the baseline of a font? How are the ascender and decender heights related to the baseline?

The baseline of the font is the bottom line where characters of the font are positioned from. The part of the font above the baseline is the ascender, and the part below the baseline is the decender.

#2 Font sizes are often expressed in points (the argument to STFontFace::SetSize() is in units of points). One point is 1/72 of an inch. To display a font on screen at the correct size, the size of the font in pixels must be computed, which means we need to know the size of a pixel in inches. How many screen pixels would a 14 point font span if the screen has a resolution of 300 DPI (300 dots (pixels) per inch)? (notice that the STText and STFontFace classes return most information about fonts in units of pixels)

300 pixels per inch * 14/72 inches for the font = 58.3 = 58 pixels for the font

#3 Describe the correspondence between window coordinates and pixels that is established via the use of glViewport and glOrtho in the GLUT resize handler. After completely the assignment, it should be clear why it is wise to NOT to not modify this mapping in this assignment?

glOrtho sets the coordinate system for the screen and glViewport sets the viewspace. In this assignment it is important that the coordinate system is set to match the pixels in a 1-to-1 ratio so the fonts can be drawn properly.