/**************************************************************************** * * t1objs.c * * Type 1 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/ftcalc.h> #include <freetype/internal/ftdebug.h> #include <freetype/internal/ftstream.h> #include <freetype/ttnameid.h> #include <freetype/ftdriver.h> #include "t1gload.h" #include "t1load.h" #include "t1errors.h" #ifndef T1_CONFIG_OPTION_NO_AFM #include "t1afm.h" #endif #include <freetype/internal/services/svpscmap.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 … /************************************************************************** * * SIZE FUNCTIONS * */ static PSH_Globals_Funcs T1_Size_Get_Globals_Funcs( T1_Size size ) { … } FT_LOCAL_DEF( void ) T1_Size_Done( FT_Size t1size ) /* T1_Size */ { … } FT_LOCAL_DEF( FT_Error ) T1_Size_Init( FT_Size t1size ) /* T1_Size */ { … } FT_LOCAL_DEF( FT_Error ) T1_Size_Request( FT_Size t1size, /* T1_Size */ FT_Size_Request req ) { … } /************************************************************************** * * SLOT FUNCTIONS * */ FT_LOCAL_DEF( void ) T1_GlyphSlot_Done( FT_GlyphSlot slot ) { … } FT_LOCAL_DEF( FT_Error ) T1_GlyphSlot_Init( FT_GlyphSlot slot ) { … } /************************************************************************** * * FACE FUNCTIONS * */ /************************************************************************** * * @Function: * T1_Face_Done * * @Description: * The face object destructor. * * @Input: * face :: * A typeless pointer to the face object to destroy. */ FT_LOCAL_DEF( void ) T1_Face_Done( FT_Face t1face ) /* T1_Face */ { … } /************************************************************************** * * @Function: * T1_Face_Init * * @Description: * The face object constructor. * * @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 face record to build. * * @Return: * FreeType error code. 0 means success. */ FT_LOCAL_DEF( FT_Error ) T1_Face_Init( FT_Stream stream, FT_Face t1face, /* T1_Face */ FT_Int face_index, FT_Int num_params, FT_Parameter* params ) { … } /************************************************************************** * * @Function: * T1_Driver_Init * * @Description: * Initializes a given Type 1 driver object. * * @Input: * driver :: * A handle to the target driver object. * * @Return: * FreeType error code. 0 means success. */ FT_LOCAL_DEF( FT_Error ) T1_Driver_Init( FT_Module module ) { … } /************************************************************************** * * @Function: * T1_Driver_Done * * @Description: * Finalizes a given Type 1 driver. * * @Input: * driver :: * A handle to the target Type 1 driver. */ FT_LOCAL_DEF( void ) T1_Driver_Done( FT_Module driver ) { … } /* END */