~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/freetype/src/psaux/psauxmod.c

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************/
 
2
/*                                                                         */
 
3
/*  psauxmod.c                                                             */
 
4
/*                                                                         */
 
5
/*    FreeType auxiliary PostScript module implementation (body).          */
 
6
/*                                                                         */
 
7
/*  Copyright 2000-2001, 2002, 2003 by                                     */
 
8
/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 
9
/*                                                                         */
 
10
/*  This file is part of the FreeType project, and may only be used,       */
 
11
/*  modified, and distributed under the terms of the FreeType project      */
 
12
/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
 
13
/*  this file you indicate that you have read the license and              */
 
14
/*  understand and accept it fully.                                        */
 
15
/*                                                                         */
 
16
/***************************************************************************/
 
17
 
 
18
 
 
19
#include <ft2build.h>
 
20
#include "psauxmod.h"
 
21
#include "psobjs.h"
 
22
#include "t1decode.h"
 
23
#include "t1cmap.h"
 
24
 
 
25
 
 
26
  FT_CALLBACK_TABLE_DEF
 
27
  const PS_Table_FuncsRec  ps_table_funcs =
 
28
  {
 
29
    ps_table_new,
 
30
    ps_table_done,
 
31
    ps_table_add,
 
32
    ps_table_release
 
33
  };
 
34
 
 
35
 
 
36
  FT_CALLBACK_TABLE_DEF
 
37
  const PS_Parser_FuncsRec  ps_parser_funcs =
 
38
  {
 
39
    ps_parser_init,
 
40
    ps_parser_done,
 
41
    ps_parser_skip_spaces,
 
42
    ps_parser_skip_PS_token,
 
43
    ps_parser_to_int,
 
44
    ps_parser_to_fixed,
 
45
    ps_parser_to_bytes,
 
46
    ps_parser_to_coord_array,
 
47
    ps_parser_to_fixed_array,
 
48
    ps_parser_to_token,
 
49
    ps_parser_to_token_array,
 
50
    ps_parser_load_field,
 
51
    ps_parser_load_field_table
 
52
  };
 
53
 
 
54
 
 
55
  FT_CALLBACK_TABLE_DEF
 
56
  const T1_Builder_FuncsRec  t1_builder_funcs =
 
57
  {
 
58
    t1_builder_init,
 
59
    t1_builder_done,
 
60
    t1_builder_check_points,
 
61
    t1_builder_add_point,
 
62
    t1_builder_add_point1,
 
63
    t1_builder_add_contour,
 
64
    t1_builder_start_point,
 
65
    t1_builder_close_contour
 
66
  };
 
67
 
 
68
 
 
69
  FT_CALLBACK_TABLE_DEF
 
70
  const T1_Decoder_FuncsRec  t1_decoder_funcs =
 
71
  {
 
72
    t1_decoder_init,
 
73
    t1_decoder_done,
 
74
    t1_decoder_parse_charstrings
 
75
  };
 
76
 
 
77
 
 
78
  FT_CALLBACK_TABLE_DEF
 
79
  const T1_CMap_ClassesRec  t1_cmap_classes =
 
80
  {
 
81
    &t1_cmap_standard_class_rec,
 
82
    &t1_cmap_expert_class_rec,
 
83
    &t1_cmap_custom_class_rec,
 
84
    &t1_cmap_unicode_class_rec
 
85
  };
 
86
 
 
87
 
 
88
  static
 
89
  const PSAux_Interface  psaux_interface =
 
90
  {
 
91
    &ps_table_funcs,
 
92
    &ps_parser_funcs,
 
93
    &t1_builder_funcs,
 
94
    &t1_decoder_funcs,
 
95
 
 
96
    t1_decrypt,
 
97
    
 
98
    (const T1_CMap_ClassesRec*) &t1_cmap_classes,
 
99
  };
 
100
 
 
101
 
 
102
  FT_CALLBACK_TABLE_DEF
 
103
  const FT_Module_Class  psaux_module_class =
 
104
  {
 
105
    0,
 
106
    sizeof( FT_ModuleRec ),
 
107
    "psaux",
 
108
    0x20000L,
 
109
    0x20000L,
 
110
 
 
111
    &psaux_interface,  /* module-specific interface */
 
112
 
 
113
    (FT_Module_Constructor)0,
 
114
    (FT_Module_Destructor) 0,
 
115
    (FT_Module_Requester)  0
 
116
  };
 
117
 
 
118
 
 
119
/* END */