qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_FontInfo
  MSGraph Contents Index                                    Back
 
  TYPE
      { structure for _GetFontInfo }
      _FontInfo = RECORD
          FontType  : Integer;    { bit 0 set=vector, clear=bit map }
          Ascent    : Integer;    { pixels from top to baseline }
          PixWidth  : Integer;    { width in pixels, 0=proportional }
          PixHeight : Integer;    { character height in pixels }
          AvgWidth  : Integer;    { average character width in pixels }
          FileName  : CSTRING[80];    { file name including path }
          FaceName  : CSTRING[31];    { font name }
          END;
 
  Unit:     MSGraph
 
  Context:  _GetFontInfo
 
  Description
 
    The following diagram illustrates the meaning of some of the
    fields:
 
                   ____________________
                 ┌     ████             ┐
                 │    █    █            │
                 │    █    █            │
       Ascent ───┤    █    █   ███      │
                 │    █  █ █   █  █     ├── PixHeight
                 │    █   █    █  █     │
        baseline └ ____███_█___███_____ │
                            █  █        │
                     __________█_______ ┘
 
                     └───┬───┘
                         │
 
                     PixWidth (0 = proportional)
 
 
    When bit 0 in the FontType field is set, the font is a vector
    (stroke) font. When bit 0 is clear, the font is a bit map font.
    Test the bit by comparing the FontType field with a bit mask,
    using the AND operator:
 
       IF (FontInfo_variable.FontType AND $01 = 0 ) THEN . . .