Page 121 - DCAP408_WEB_PROGRAMMING
P. 121

Unit 7: Character Sets, Fonts and the Keyboard




              LONG  tmDigitizedAspectY;                                                         Notes
              char  tmFirstChar;
              char  tmLastChar;
              char  tmDefaultChar;
              char  tmBreakChar;
              BYTE  tmItalic;
              BYTE  tmUnderlined;
              BYTE  tmStruckOut;
              BYTE  tmPitchAndFamily;
              BYTE  tmCharSet;
          }  TEXTMETRIC;

          7.9.1 Members

          tmHeight
          States the height (ascent descent) of characters.

          tmAscent
          States the ascent (units above the base line) of characters.
          tmDescent
          States the descent (units below the base line) of characters.
          tmInternalLeading

          States the amount of leading (space) inside the bounds set by the  tmHeight member. Accent
          marks and other diacritical characters may happen in this area. The designer may set this member
          to zero.
          tmExternalLeading
          States the amount of extra leading (space) that the application adds among rows. Since this area
          is outside the font, it includes no marks and is not altered by text output calls in either OPAQUE
          or TRANSPARENT mode. The designer may set this member to zero.

          tmAveCharWidth
          States the average width of characters in the font (generally defined as the width of the letter  x).
          This value does not comprise the overhang needed for bold or italic characters.

          tmMaxCharWidth
          States the width of the widest character in the font.
          tmWeight
          Specifies the weight of the font.
          tmOverhang

          Specifies the  extra  width per string  that may  be  added  to some synthesized fonts.  When
          synthesizing some attributes, such as bold or italic, graphics device interface (GDI) or a device
          may have to add width to a string on both a per-character and per-string basis.






                                           LOVELY PROFESSIONAL UNIVERSITY                                   115
   116   117   118   119   120   121   122   123   124   125   126