godot/thirdparty/freetype/include/freetype/internal/services/svpscmap.h

/****************************************************************************
 *
 * svpscmap.h
 *
 *   The FreeType PostScript charmap service (specification).
 *
 * Copyright (C) 2003-2023 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 SVPSCMAP_H_
#define SVPSCMAP_H_

#include <freetype/internal/ftobjs.h>


FT_BEGIN_HEADER


#define FT_SERVICE_ID_POSTSCRIPT_CMAPS


  /*
   * Adobe glyph name to unicode value.
   */
  PS_Unicode_ValueFunc;

  /*
   * Macintosh name id to glyph name.  `NULL` if invalid index.
   */
  PS_Macintosh_NameFunc;

  /*
   * Adobe standard string ID to glyph name.  `NULL` if invalid index.
   */
  PS_Adobe_Std_StringsFunc;


  /*
   * Simple unicode -> glyph index charmap built from font glyph names table.
   */
  PS_UniMap;


  PS_Unicodes;

  PS_UnicodesRec;


  /*
   * A function which returns a glyph name for a given index.  Returns
   * `NULL` if invalid index.
   */
  PS_GetGlyphNameFunc;

  /*
   * A function used to release the glyph name returned by
   * PS_GetGlyphNameFunc, when needed
   */
  PS_FreeGlyphNameFunc;

  PS_Unicodes_InitFunc;

  PS_Unicodes_CharIndexFunc;

  PS_Unicodes_CharNextFunc;


  FT_DEFINE_SERVICE( PsCMaps )
  {};


#define FT_DEFINE_SERVICE_PSCMAPSREC( class_,                               \
                                      unicode_value_,                       \
                                      unicodes_init_,                       \
                                      unicodes_char_index_,                 \
                                      unicodes_char_next_,                  \
                                      macintosh_name_,                      \
                                      adobe_std_strings_,                   \
                                      adobe_std_encoding_,                  \
                                      adobe_expert_encoding_ )

  /* */


FT_END_HEADER


#endif /* SVPSCMAP_H_ */


/* END */