/**************************************************************************** * * cidobjs.c * * CID objects manager (body). * * Copyright (C) 1996-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 <freetype/internal/ftdebug.h> #include <freetype/internal/ftstream.h> #include "cidgload.h" #include "cidload.h" #include <freetype/internal/services/svpscmap.h> #include <freetype/internal/psaux.h> #include <freetype/internal/pshints.h> #include <freetype/ftdriver.h> #include "ciderrs.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 … /************************************************************************** * * SLOT FUNCTIONS * */ FT_LOCAL_DEF( void ) cid_slot_done( FT_GlyphSlot slot ) { … } FT_LOCAL_DEF( FT_Error ) cid_slot_init( FT_GlyphSlot slot ) { … } /************************************************************************** * * SIZE FUNCTIONS * */ static PSH_Globals_Funcs cid_size_get_globals_funcs( CID_Size size ) { … } FT_LOCAL_DEF( void ) cid_size_done( FT_Size cidsize ) /* CID_Size */ { … } FT_LOCAL_DEF( FT_Error ) cid_size_init( FT_Size cidsize ) /* CID_Size */ { … } FT_LOCAL_DEF( FT_Error ) cid_size_request( FT_Size size, FT_Size_Request req ) { … } /************************************************************************** * * FACE FUNCTIONS * */ /************************************************************************** * * @Function: * cid_face_done * * @Description: * Finalizes a given face object. * * @Input: * face :: * A pointer to the face object to destroy. */ FT_LOCAL_DEF( void ) cid_face_done( FT_Face cidface ) /* CID_Face */ { … } /************************************************************************** * * @Function: * cid_face_init * * @Description: * Initializes a given CID face object. * * @Input: * stream :: * Dummy argument for compatibility with the `FT_Face_InitFunc` API. * Ignored. The stream should be passed through `face->root.stream`. * * face_index :: * The index of the font face in the resource. * * num_params :: * Number of additional generic parameters. Ignored. * * params :: * Additional generic parameters. Ignored. * * @InOut: * face :: * The newly built face object. * * @Return: * FreeType error code. 0 means success. */ FT_LOCAL_DEF( FT_Error ) cid_face_init( FT_Stream stream, FT_Face cidface, /* CID_Face */ FT_Int face_index, FT_Int num_params, FT_Parameter* params ) { … } /************************************************************************** * * @Function: * cid_driver_init * * @Description: * Initializes a given CID driver object. * * @Input: * driver :: * A handle to the target driver object. * * @Return: * FreeType error code. 0 means success. */ FT_LOCAL_DEF( FT_Error ) cid_driver_init( FT_Module module ) { … } /************************************************************************** * * @Function: * cid_driver_done * * @Description: * Finalizes a given CID driver. * * @Input: * driver :: * A handle to the target CID driver. */ FT_LOCAL_DEF( void ) cid_driver_done( FT_Module driver ) { … } /* END */