/**************************************************************************** * * t1cmap.c * * Type 1 character map support (body). * * Copyright (C) 2002-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. * */ #include "t1cmap.h" #include <freetype/internal/ftdebug.h> #include "psauxerr.h" /*************************************************************************/ /*************************************************************************/ /***** *****/ /***** TYPE1 STANDARD (AND EXPERT) ENCODING CMAPS *****/ /***** *****/ /*************************************************************************/ /*************************************************************************/ static void t1_cmap_std_init( T1_CMapStd cmap, FT_Int is_expert ) { … } FT_CALLBACK_DEF( void ) t1_cmap_std_done( FT_CMap cmap_ ) /* T1_CMapStd */ { … } FT_CALLBACK_DEF( FT_UInt ) t1_cmap_std_char_index( FT_CMap cmap, /* T1_CMapStd */ FT_UInt32 char_code ) { … } FT_CALLBACK_DEF( FT_UInt ) t1_cmap_std_char_next( FT_CMap cmap, FT_UInt32 *pchar_code ) { … } FT_CALLBACK_DEF( FT_Error ) t1_cmap_standard_init( FT_CMap cmap, /* T1_CMapStd */ FT_Pointer pointer ) { … } FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_standard_class_rec = …; FT_CALLBACK_DEF( FT_Error ) t1_cmap_expert_init( FT_CMap cmap, /* T1_CMapStd */ FT_Pointer pointer ) { … } FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_expert_class_rec = …; /*************************************************************************/ /*************************************************************************/ /***** *****/ /***** TYPE1 CUSTOM ENCODING CMAP *****/ /***** *****/ /*************************************************************************/ /*************************************************************************/ FT_CALLBACK_DEF( FT_Error ) t1_cmap_custom_init( FT_CMap cmap, /* T1_CMapCustom */ FT_Pointer pointer ) { … } FT_CALLBACK_DEF( void ) t1_cmap_custom_done( FT_CMap cmap ) /* T1_CMapCustom */ { … } FT_CALLBACK_DEF( FT_UInt ) t1_cmap_custom_char_index( FT_CMap cmap, /* T1_CMapCustom */ FT_UInt32 char_code ) { … } FT_CALLBACK_DEF( FT_UInt ) t1_cmap_custom_char_next( FT_CMap cmap, /* T1_CMapCustom */ FT_UInt32 *pchar_code ) { … } FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_custom_class_rec = …; /*************************************************************************/ /*************************************************************************/ /***** *****/ /***** TYPE1 SYNTHETIC UNICODE ENCODING CMAP *****/ /***** *****/ /*************************************************************************/ /*************************************************************************/ FT_CALLBACK_DEF( const char * ) psaux_get_glyph_name( void* face_, FT_UInt idx ) { … } FT_CALLBACK_DEF( FT_Error ) t1_cmap_unicode_init( FT_CMap cmap, /* PS_Unicodes */ FT_Pointer pointer ) { … } FT_CALLBACK_DEF( void ) t1_cmap_unicode_done( FT_CMap cmap ) /* PS_Unicodes */ { … } FT_CALLBACK_DEF( FT_UInt ) t1_cmap_unicode_char_index( FT_CMap cmap, /* PS_Unicodes */ FT_UInt32 char_code ) { … } FT_CALLBACK_DEF( FT_UInt ) t1_cmap_unicode_char_next( FT_CMap cmap, /* PS_Unicodes */ FT_UInt32 *pchar_code ) { … } FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_unicode_class_rec = …; /* END */