Edit

kc3-lang/freetype/src/psaux/afmparse.h

Branch :

  • Show log

    Commit

  • Author : Werner Lemberg
    Date : 2018-06-03 09:01:17
    Hash : 9ac9060d
    Message : [GSoC] src/*.*: Convert block comments to `light' style. This monster commit was created by applying Nikhil's scripts `docconverter.py' and `markify.py' to all C header and source files, followed up by minor manual clean-up. No change in functionality, of course. I used commit f7419907bc6044b9b7057f9789866426c804ba82 from https://github.com/nikramakrishnan/freetype-docs.git.

  • src/psaux/afmparse.h
  • /****************************************************************************
     *
     * afmparse.h
     *
     *   AFM parser (specification).
     *
     * Copyright 2006-2018 by
     * David Turner, Robert Wilhelm, and Werner Lemberg.
     *
     * This file is part of the FreeType project, and may only be used,
     * modified, and distributed under the terms of the FreeType project
     * license, LICENSE.TXT.  By continuing to use, modify, or distribute
     * this file you indicate that you have read the license and
     * understand and accept it fully.
     *
     */
    
    
    #ifndef AFMPARSE_H_
    #define AFMPARSE_H_
    
    
    #include <ft2build.h>
    #include FT_INTERNAL_POSTSCRIPT_AUX_H
    
    
    FT_BEGIN_HEADER
    
    
      FT_LOCAL( FT_Error )
      afm_parser_init( AFM_Parser  parser,
                       FT_Memory   memory,
                       FT_Byte*    base,
                       FT_Byte*    limit );
    
    
      FT_LOCAL( void )
      afm_parser_done( AFM_Parser  parser );
    
    
      FT_LOCAL( FT_Error )
      afm_parser_parse( AFM_Parser  parser );
    
    
      enum  AFM_ValueType_
      {
        AFM_VALUE_TYPE_STRING,
        AFM_VALUE_TYPE_NAME,
        AFM_VALUE_TYPE_FIXED,   /* real number */
        AFM_VALUE_TYPE_INTEGER,
        AFM_VALUE_TYPE_BOOL,
        AFM_VALUE_TYPE_INDEX    /* glyph index */
      };
    
    
      typedef struct  AFM_ValueRec_
      {
        enum AFM_ValueType_  type;
        union
        {
          char*     s;
          FT_Fixed  f;
          FT_Int    i;
          FT_UInt   u;
          FT_Bool   b;
    
        } u;
    
      } AFM_ValueRec, *AFM_Value;
    
    #define  AFM_MAX_ARGUMENTS  5
    
      FT_LOCAL( FT_Int )
      afm_parser_read_vals( AFM_Parser  parser,
                            AFM_Value   vals,
                            FT_Int      n );
    
      /* read the next key from the next line or column */
      FT_LOCAL( char* )
      afm_parser_next_key( AFM_Parser  parser,
                           FT_Bool     line,
                           FT_Offset*  len );
    
    FT_END_HEADER
    
    #endif /* AFMPARSE_H_ */
    
    
    /* END */