home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / ft-beta.zip / freetype / lib / extend / ftxgasp.h next >
C/C++ Source or Header  |  1997-10-06  |  2KB  |  56 lines

  1. /*******************************************************************
  2.  *
  3.  *  ftxgasp.h                                                   1.0
  4.  *
  5.  *    Gasp table support API extension
  6.  *
  7.  *  Copyright 1996, 1997 by
  8.  *  David Turner, Robert Wilhelm, and Werner Lemberg.
  9.  *
  10.  *  This file is part of the FreeType project, and may only be used
  11.  *  modified and distributed under the terms of the FreeType project
  12.  *  license, LICENSE.TXT. By continuing to use, modify or distribute
  13.  *  this file you indicate that you have read the license and
  14.  *  understand and accept it fully.
  15.  *
  16.  *
  17.  *  The gasp table is currently loaded by the core engine, but the 
  18.  *  standard API doesn't give access to it. This file is used to
  19.  *  demonstrate the use of a simple API extension.            
  20.  *
  21.  *  The additional API functions are defined in the file "ftxgasp.h"
  22.  *  while they're implemented in "ttgasp.c"
  23.  *
  24.  ******************************************************************/
  25.  
  26.  /* You must include this file after "freetype.h" */
  27.  
  28. #ifndef FREETYPE_H
  29. #error freetype.h was not included
  30. #endif
  31.  
  32. #ifndef FTXGASP_H
  33. #define FTXGASP_H
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39.  TT_Error  TT_Get_Face_Gasp_Flags( TT_Face  face,
  40.                                    int      point_size,
  41.                                    int*     grid_fit,
  42.                                    int*     smooth_font );
  43.  
  44.  /* This function returns for a given 'point_size' the values of the */
  45.  /* gasp flags 'grid_fit' and 'smooth_font'. The returned values are */
  46.  /* booleans (where 0 = NO, and 1 = YES).                            */
  47.  
  48.  /* Note that this function will returned TT_Err_Table_Missing if    */
  49.  /* the font file doesn't contain any gasp table                     */
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55. #endif /* FTGASP_H */
  56.