godot/thirdparty/freetype/src/type42/t42parse.c

/****************************************************************************
 *
 * t42parse.c
 *
 *   Type 42 font parser (body).
 *
 * Copyright (C) 2002-2023 by
 * Roberto Alameda.
 *
 * 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.
 *
 */


#include "t42parse.h"
#include "t42error.h"
#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftstream.h>
#include <freetype/internal/psaux.h>


  /**************************************************************************
   *
   * The macro FT_COMPONENT is used in trace mode.  It is an implicit
   * parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
   * messages during execution.
   */
#undef  FT_COMPONENT
#define FT_COMPONENT


  static void
  t42_parse_font_matrix( FT_Face  face,
                         void*    loader_ );
  static void
  t42_parse_encoding( FT_Face  face,
                      void*    loader_ );

  static void
  t42_parse_charstrings( FT_Face  face,
                         void*    loader_ );

  static void
  t42_parse_sfnts( FT_Face  face,
                   void*    loader_ );


  /* as Type42 fonts have no Private dict,         */
  /* we set the last argument of T1_FIELD_XXX to 0 */
  static const
  T1_FieldRec  t42_keywords[] =;


#define T1_Add_Table( p, i, o, l )
#define T1_Release_Table( p )

#define T1_Skip_Spaces( p )
#define T1_Skip_PS_Token( p )

#define T1_ToInt( p )
#define T1_ToBytes( p, b, m, n, d )

#define T1_ToFixedArray( p, m, f, t )
#define T1_ToToken( p, t )

#define T1_Load_Field( p, f, o, m, pf )
#define T1_Load_Field_Table( p, f, o, m, pf )


  /********************* Parsing Functions ******************/

  FT_LOCAL_DEF( FT_Error )
  t42_parser_init( T42_Parser     parser,
                   FT_Stream      stream,
                   FT_Memory      memory,
                   PSAux_Service  psaux )
  {}


  FT_LOCAL_DEF( void )
  t42_parser_done( T42_Parser  parser )
  {}


  static int
  t42_is_space( FT_Byte  c )
  {}


  static void
  t42_parse_font_matrix( FT_Face  face,     /* T42_Face */
                         void*    loader_ )
  {}


  static void
  t42_parse_encoding( FT_Face  face,
                      void*    loader_ )
  {}


  T42_Load_Status;


  static void
  t42_parse_sfnts( FT_Face  face,
                   void*    loader_ )
  {}


  static void
  t42_parse_charstrings( FT_Face  face,     /* T42_Face */
                         void*    loader_ )
  {}


  static FT_Error
  t42_load_keyword( T42_Face    face,
                    T42_Loader  loader,
                    T1_Field    field )
  {}


  FT_LOCAL_DEF( FT_Error )
  t42_parse_dict( T42_Face    face,
                  T42_Loader  loader,
                  FT_Byte*    base,
                  FT_Long     size )
  {}


  FT_LOCAL_DEF( void )
  t42_loader_init( T42_Loader  loader,
                   T42_Face    face )
  {}


  FT_LOCAL_DEF( void )
  t42_loader_done( T42_Loader  loader )
  {}


/* END */