The following 114 words could not be found in the dictionary of 615 words (including 615 LocalSpellingWords) and are highlighted below:

about   above   an   and   argument   ascender   assignment   Assignment1   at   baseline   be   below   between   bottom   can   characters   classes   clear   completely   computed   coordinate   coordinates   correct   correspondence   Darius   decender   Describe   display   dots   drawn   established   expressed   Face   font   Font   fonts   for   from   gl   handler   heights   Henderson   How   if   important   in   In   inch   inches   information   know   let   line   many   mapping   match   means   modify   most   must   need   notice   of   often   on   One   Ortho   part   per   pixel   pixels   point   points   positioned   properly   ratio   related   resize   resolution   return   review   screen   set   Set   sets   should   size   Size   sizes   so   some   span   system   terminology   Text   that   The   the   this   to   To   units   use   via   Viewport   viewspace   we   What   where   which   why   window   wise   would  

    DariusHenderson/Assignment3

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.

Recent