ftpic.c 1.9 KB
Newer Older
M
Ming, Bai 已提交
1 2 3 4 5 6
/***************************************************************************/
/*                                                                         */
/*  ftpic.c                                                                */
/*                                                                         */
/*    The FreeType position independent code services (body).              */
/*                                                                         */
7
/*  Copyright 2009-2015 by                                                 */
M
Ming, Bai 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
/*  Oran Agra and Mickey Gabel.                                            */
/*                                                                         */
/*  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 <ft2build.h>
#include FT_FREETYPE_H
#include FT_INTERNAL_OBJECTS_H
#include "basepic.h"

#ifdef FT_CONFIG_OPTION_PIC

  /* documentation is in ftpic.h */

  FT_BASE_DEF( FT_Error )
G
Grissiom 已提交
29
  ft_pic_container_init( FT_Library  library )
M
Ming, Bai 已提交
30
  {
G
Grissiom 已提交
31 32
    FT_PIC_Container*  pic_container = &library->pic_container;
    FT_Error           error;
M
Ming, Bai 已提交
33

G
Grissiom 已提交
34 35

    FT_MEM_SET( pic_container, 0, sizeof ( *pic_container ) );
M
Ming, Bai 已提交
36 37

    error = ft_base_pic_init( library );
G
Grissiom 已提交
38
    if ( error )
M
Ming, Bai 已提交
39 40 41 42 43 44 45 46
      return error;

    return FT_Err_Ok;
  }


  /* Destroy the contents of the container. */
  FT_BASE_DEF( void )
G
Grissiom 已提交
47
  ft_pic_container_destroy( FT_Library  library )
M
Ming, Bai 已提交
48 49 50 51 52 53 54 55
  {
    ft_base_pic_free( library );
  }

#endif /* FT_CONFIG_OPTION_PIC */


/* END */