Page 123 - DCAP408_WEB_PROGRAMMING
P. 123

Unit 7: Character Sets, Fonts and the Keyboard




          The four low-order bits of this member state information regarding the pitch and the technology  Notes
          of the font. A constant is defined for each of the four bits.
          An application should cautiously test for qualities encoded in these low-order bits, making no
          arbitrary assumptions.


                 Example: Apart from having their own bits set, TrueType and PostScript fonts set the
          TMPF_VECTOR bit. A monospace bitmap font has all of these low-order bits clear; a proportional
          bitmap  font  sets  the  TMPF_FIXED_PITCH  bit.  A  Postscript  printer device  font  sets  the
          TMPF_DEVICE, TMPF_VECTOR, and TMPF_FIXED_PITCH bits.
          The four high-order bits of tmPitchAndFamily assign the font’s font family. An application can
          utilize the value 0xF0 and the bitwise AND operator to mask out the four low-order bits of
          tmPitchAndFamily, therefore receiving a value that can be directly compared with font family
          names to locate an identical match.
          tmCharSet
          States the character set of the font. The character set is one of the following values:


                      ANSI_CHARSET               DEFAULT_CHARSET
                      SYMBOL_CHARSET             SHIFTJIS_CHARSET
                      HANGUL_CHARSET             GB2312_CHARSET
                      CHINESEBIG5_CHARSET        OEM_CHARSET
                      JOHAB_CHARSET              HEBREW_CHARSET
                      ARABIC_CHARSET             GREEK_CHARSET
                      TURKISH_CHARSET            VIETNAMESE_CHARSET
                      THAI_CHARSET               EASTEUROPE_CHARSET
                      RUSSIAN_CHARSET            MAC_CHARSET
                      BALTIC_CHARSET

          Self Assessment

          Fill in the blanks:
          12.  ......................... is a font structure contains basic information about a physical font.
          13.  ......................... states an underlined font if it is nonzero.

          7.10 Putting Fonts to Work


          7.10.1 Installing OpenType or TrueType Fonts in Windows

          We suggest installing only one format — OpenType,  TrueType, or  PostScript —  of a  font.
          Installing two or more formats of the similar font may cause troubles when you attempt to use,
          view, or print the font.

          1.   Select Start > Settings > Control Panel



             Notes  In Windows XP, select Start > Control Panel.




                                           LOVELY PROFESSIONAL UNIVERSITY                                   117
   118   119   120   121   122   123   124   125   126   127   128