summaryrefslogtreecommitdiff
path: root/src/tfm/tfmmod.c
blob: c4e88254363bd363b005537a3b5f872a54af01aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/****************************************************************************
 *
 * tfmmod.c
 *
 *   FreeType auxiliary TFM module.
 *
 * Copyright 2000-2018 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 <ft2build.h>
#include "tfmmod.h"
#include "tfmobjs.h"


  FT_CALLBACK_TABLE_DEF
  const TFM_Parser_FuncsRec  tfm_parser_funcs =
  {
    tfm_init,           /* init          */
    tfm_parse_metrics,  /* parse metrics */
    tfm_close,          /* done          */
  };

  static
  const TFM_Interface  tfm_interface =
  {
    &tfm_parser_funcs,
  };

  FT_CALLBACK_TABLE_DEF
  const FT_Module_Class  tfm_module_class =
  {
    0,
    sizeof ( FT_ModuleRec ),
    "tfm",
    0x20000L,
    0x20000L,

    &tfm_interface,   /* module-specific interface */

    (FT_Module_Constructor)NULL,  /* module_init   */
    (FT_Module_Destructor) NULL,  /* module_done   */
    (FT_Module_Requester)  NULL   /* get_interface */
  };


/* END */