Edit

kc3-lang/freetype/src/type42/t42types.h

Branch :

  • Show log

    Commit

  • Author : Werner Lemberg
    Date : 2006-01-12 08:12:27
    Hash : 8ab0979d
    Message : Prepare use of pscmap service within CFF module. * include/freetype/internal/services/svpscmap.h: Include FT_INTERNAL_OBJECTS_H. (PS_Unicode_Index_Func): Removed. Unused. (PS_Macintosh_Name_Func): Renamed to... (PS_Macintosh_NameFunc): This. Update all callers. (PS_Adobe_Std_Strings_Func): Renamed to... (PS_Adobe_Std_StringsFunc): This. Update all callers. (PS_UnicodesRec): This is the former `PS_Unicodes' structure. Add `cmap' member. Update all callers. (PS_Unicodes): This is now a typedef'd pointer to PS_UnicodesRec. Update all callers. (PS_Glyph_NameFunc): New typedef. (PS_Unicodes_InitFunc): Change arguments to expect a function and generic data pointer which returns a glyph name from a given index. * src/psnames/psmodule.c (ps_unicodes_init, ps_unicodes_char_index, ps_unicodes_char_next, pscmaps_interface): Updated. * include/freetype/internal/t1types.h (T1_FaceRec): Updated. * src/psaux/t1cmap.h (T1_CmapStdRec): Updated. (T1_CmapUnicode, T1_CmapUnicodeRec): Removed. * src/psaux/t1cmap.c (t1_get_glyph_name): New callback function. (t1_cmap_unicode_init, t1_cmap_unicode_done, t1_cmap_unicode_char_index, t1_cmap_unicode_char_next, t1_cmap_unicode_class_rec): Updated. * src/type42/t42types.h (T42_FaceRec): Updated.

  • src/type42/t42types.h
  • /***************************************************************************/
    /*                                                                         */
    /*  t42types.h                                                             */
    /*                                                                         */
    /*    Type 42 font data types (specification only).                        */
    /*                                                                         */
    /*  Copyright 2002, 2003, 2006 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.                                        */
    /*                                                                         */
    /***************************************************************************/
    
    
    #ifndef __T42TYPES_H__
    #define __T42TYPES_H__
    
    
    #include <ft2build.h>
    #include FT_FREETYPE_H
    #include FT_TYPE1_TABLES_H
    #include FT_INTERNAL_TYPE1_TYPES_H
    #include FT_INTERNAL_POSTSCRIPT_HINTS_H
    
    
    FT_BEGIN_HEADER
    
    
      typedef struct  T42_FaceRec_
      {
        FT_FaceRec      root;
        T1_FontRec      type1;
        const void*     psnames;
        const void*     psaux;
        const void*     afm_data;
        FT_Byte*        ttf_data;
        FT_ULong        ttf_size;
        FT_Face         ttf_face;
        FT_CharMapRec   charmaprecs[2];
        FT_CharMap      charmaps[2];
        PS_UnicodesRec  unicode_map;
    
      } T42_FaceRec, *T42_Face;
    
    
    FT_END_HEADER
    
    #endif /* __T1TYPES_H__ */
    
    
    /* END */